/* ============================================================
   GreenSpark EV Charging - 全站共享主样式 (原创)
   主题色: #0F764A (rgba(15,118,74,1))
   字体: 系统无衬线 (英文外贸站点,规避字体授权风险)
   ============================================================ */

/* ---------- 1. 重置与基础 ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --theme-color: rgba(15, 118, 74, 1);
    --theme-color-dark: rgba(11, 92, 58, 1);
    --theme-color-light: rgba(15, 118, 74, 0.12);
    --text-main: #333333;
    --text-sub: #666666;
    --text-mute: #999999;
    --border-color: #e5e5e5;
    --bg-light: #f7f8f7;
    --bg-white: #ffffff;
    --font-ratio: 1;
    --header-h: 105px;
    --topbar-h: 40px;
    --max-width: 1200px;
    --shadow-card: 0 0 22px rgba(0, 0, 0, 0.12);
    --transition: all 0.36s ease;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    color: var(--text-main);
    background: var(--bg-white);
    line-height: 1.6;
    font-size: calc(var(--font-ratio) * 14px);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
    border: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-size: inherit;
    outline: none;
}

/* ---------- 2. 布局容器 ---------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 70px 0;
}

.section-tight {
    padding: 50px 0;
}

.bg-light {
    background: var(--bg-light);
}

.bg-theme {
    background: var(--theme-color);
}

.text-center {
    text-align: center;
}

/* ---------- 3. 顶部联系栏 ---------- */
.topbar {
    background: var(--theme-color);
    color: #fff;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.topbar-info {
    display: flex;
    align-items: center;
    gap: 28px;
}

.topbar-info .info-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: calc(var(--font-ratio) * 14px);
    color: #fff;
    white-space: nowrap;
}

.topbar-info .info-item img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.topbar-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-social a {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

.topbar-social a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.topbar-social a img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* ---------- 4. 页头与导航 ---------- */
.header {
    background: #fff;
    height: var(--header-h);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo img {
    height: 56px;
    width: auto;
    object-fit: contain;
}

.logo .logo-text {
    font-size: calc(var(--font-ratio) * 22px);
    font-weight: 700;
    color: var(--theme-color);
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.logo .logo-text span {
    display: block;
    font-size: calc(var(--font-ratio) * 11px);
    color: var(--text-mute);
    font-weight: 400;
    letter-spacing: 2px;
}

.nav {
    display: flex;
    align-items: center;
    height: var(--header-h);
    list-style: none;
}

.nav > li > a {
    display: flex;
    align-items: center;
    height: var(--header-h);
    padding: 0 22px;
    font-size: calc(var(--font-ratio) * 18px);
    color: var(--text-main);
    position: relative;
    white-space: nowrap;
}

.nav > li > a::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 30px;
    height: 2px;
    background: var(--theme-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav > li > a:hover,
.nav > li.active > a {
    color: var(--theme-color);
}

.nav > li > a:hover::after,
.nav > li.active > a::after {
    transform: scaleX(1);
}

/* 导航 CTA 按钮 (GET QUOTE) */
.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 24px;
    padding: 10px 26px;
    background: var(--theme-color);
    color: #fff !important;
    border-radius: 4px;
    font-size: calc(var(--font-ratio) * 15px);
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 2px solid var(--theme-color);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--theme-color-dark);
    border-color: var(--theme-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 118, 74, 0.35);
}

.nav-cta::after {
    display: none;
}

/* 汉堡按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--theme-color);
    transition: var(--transition);
    margin: 0 auto;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 5. 页脚 ---------- */
.footer {
    background: #1a2b22;
    color: #c7d4cc;
    padding: 50px 0 0;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col.footer-brand {
    flex: 1.4;
    min-width: 280px;
}

.footer-col h4 {
    color: #fff;
    font-size: calc(var(--font-ratio) * 16px);
    margin-bottom: 18px;
    font-weight: 600;
}

.footer-col p {
    font-size: calc(var(--font-ratio) * 13px);
    line-height: 1.9;
    color: #9fb0a6;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-col p img {
    width: 15px;
    height: 15px;
    margin-top: 4px;
    flex-shrink: 0;
    filter: brightness(0) invert(0.75);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: calc(var(--font-ratio) * 13px);
    color: #9fb0a6;
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.footer-brand .footer-logo img {
    height: 42px;
    filter: brightness(0) invert(1);
}

.footer-brand .footer-logo .logo-text {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    background: var(--theme-color);
}

.footer-social a img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    padding: 18px 0;
    text-align: center;
    font-size: calc(var(--font-ratio) * 12px);
    color: #7a8c82;
}

.footer-bottom a {
    color: #7a8c82;
    margin: 0 4px;
}

.footer-bottom a:hover {
    color: #fff;
}

.footer-bottom .sep {
    margin: 0 5px;
}

/* ---------- 6. 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    font-size: calc(var(--font-ratio) * 15px);
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    line-height: 1.4;
}

.btn-primary {
    background: var(--theme-color);
    color: #fff;
    border-color: var(--theme-color);
}

.btn-primary:hover {
    background: var(--theme-color-dark);
    border-color: var(--theme-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 118, 74, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--theme-color);
    border-color: var(--theme-color);
}

.btn-outline:hover {
    background: var(--theme-color);
    color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--theme-color);
    border-color: #fff;
}

.btn-light:hover {
    background: var(--theme-color);
    color: #fff;
    border-color: var(--theme-color);
}

.btn-white-outline {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-white-outline:hover {
    background: #fff;
    color: var(--theme-color);
}

.btn-lg {
    padding: 14px 40px;
    font-size: calc(var(--font-ratio) * 16px);
}

/* ---------- 7. 区块标题 ---------- */
.section-title {
    text-align: center;
    margin-bottom: 45px;
}

.section-title .title-sub {
    display: inline-block;
    font-size: calc(var(--font-ratio) * 13px);
    color: var(--theme-color);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    padding: 0 30px;
}

.section-title .title-sub::before,
.section-title .title-sub::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 20px;
    height: 1px;
    background: var(--theme-color);
}

.section-title .title-sub::before {
    left: 0;
}

.section-title .title-sub::after {
    right: 0;
}

.section-title h2 {
    font-size: calc(var(--font-ratio) * 34px);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

.section-title h2 em {
    color: var(--theme-color);
    font-style: normal;
}

.section-title p {
    font-size: calc(var(--font-ratio) * 15px);
    color: var(--text-sub);
    max-width: 680px;
    margin: 14px auto 0;
}

/* 大字竖排装饰标题 (还原源站字母装饰) */
.vert-label {
    position: absolute;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: calc(var(--font-ratio) * 12px);
    letter-spacing: 4px;
    color: var(--theme-color);
    opacity: 0.5;
    font-weight: 600;
    text-transform: uppercase;
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
    background: var(--bg-light);
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: calc(var(--font-ratio) * 13px);
    color: var(--text-mute);
}

.breadcrumb ul li a:hover {
    color: var(--theme-color);
}

.breadcrumb ul li.sep {
    color: #ccc;
}

.breadcrumb ul li.current {
    color: var(--theme-color);
}

/* ---------- 9. 通用动画 ---------- */
.animate-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.animate-up.delay-1 { transition-delay: 0.1s; }
.animate-up.delay-2 { transition-delay: 0.2s; }
.animate-up.delay-3 { transition-delay: 0.3s; }
.animate-up.delay-4 { transition-delay: 0.4s; }

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes scaleImage {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ---------- 10. 返回顶部 ---------- */
.back-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 46px;
    height: 46px;
    background: var(--theme-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 14px rgba(15, 118, 74, 0.4);
}

.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-top:hover {
    background: var(--theme-color-dark);
    transform: translateY(-3px);
}

/* ---------- 11. 侧边悬浮咨询 ---------- */
.side-contact {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.side-contact a {
    width: 50px;
    height: 50px;
    background: var(--theme-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.side-contact a:hover {
    background: var(--theme-color-dark);
    width: 60px;
}

.side-contact a img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

/* ---------- 12. 工具类 ---------- */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.hide { display: none !important; }

.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s ease;
}

.img-zoom:hover img {
    transform: scale(1.08);
}

/* ---------- 13. 响应式 768px ---------- */
@media screen and (max-width: 992px) {
    :root {
        --header-h: 70px;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --font-ratio: 0.9;
        --header-h: 60px;
        --topbar-h: 0px;
    }

    body {
        font-size: 14px;
    }

    /* 顶部联系栏隐藏 */
    .topbar {
        display: none;
    }

    .container {
        padding: 0 16px;
    }

    .section {
        padding: 45px 0;
    }

    /* 导航变汉堡 */
    .nav-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: var(--header-h);
        right: 0;
        width: 75%;
        max-width: 320px;
        height: calc(100vh - var(--header-h));
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 0;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        overflow-y: auto;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        height: auto;
        min-height: calc(100vh - var(--header-h));
    }

    .nav.open {
        transform: translateX(0);
    }

    .nav > li {
        width: 100%;
    }

    .nav > li > a {
        height: 52px;
        padding: 0 24px;
        width: 100%;
        font-size: 16px;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav > li > a::after {
        display: none;
    }

    .nav-cta {
        margin: 12px 24px 0;
        width: calc(100% - 48px);
        padding: 12px 20px;
    }

    .logo img {
        height: 40px;
    }

    .logo .logo-text {
        font-size: 18px;
    }

    .logo .logo-text span {
        font-size: 9px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .section-title {
        margin-bottom: 30px;
    }

    .footer-top {
        gap: 30px;
    }

    .footer-col {
        min-width: 45%;
    }

    .footer-col.footer-brand {
        min-width: 100%;
    }

    .side-contact {
        display: none;
    }

    .back-top {
        right: 16px;
        bottom: 16px;
        width: 40px;
        height: 40px;
    }

    .btn {
        padding: 10px 24px;
    }

    .vert-label {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .footer-col {
        min-width: 100%;
    }

    .section-title h2 {
        font-size: 21px;
    }

    .btn {
        width: 100%;
    }
}
