:root {
    --primary: #0c4a6e;
    --primary-dark: #082f49;
    --accent: #0284c7;
    --accent-light: #38bdf8;
    --water: #0ea5e9;
    --text: #1e293b;
    --muted: #64748b;
    --bg: #f8fafc;
    --white: #fff;
    --border: #e2e8f0;
    --shadow: 0 8px 30px rgba(12, 74, 110, 0.12);
    --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    --max: 1200px;
}

/* 数据加载完成前隐藏静态占位，避免切换页面闪现英文横幅 */
body:not(.hm-ready) #site-header,
body:not(.hm-ready) #site-footer,
body:not(.hm-ready) .page-banner,
body:not(.hm-ready) .hero-slider,
body:not(.hm-ready) .section,
body:not(.hm-ready) .article-body,
body:not(.hm-ready) .float-contact {
    visibility: hidden;
}
body.hm-ready #site-header,
body.hm-ready #site-footer,
body.hm-ready .page-banner,
body.hm-ready .hero-slider,
body.hm-ready .section,
body.hm-ready .article-body,
body.hm-ready .float-contact {
    visibility: visible;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--primary); }
.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }

/* Topbar */
.topbar { background: var(--primary-dark); color: #cbd5e1; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; gap: 16px; flex-wrap: wrap; }
.topbar-contact { display: flex; gap: 24px; flex-wrap: wrap; }
.lang-switcher { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lang-switcher a {
    color: #94a3b8; font-size: 12px; padding: 4px 8px; border-radius: 4px;
    border: 1px solid transparent; text-decoration: none;
}
.lang-switcher a:hover { color: #fff; border-color: #475569; }
.lang-switcher a.is-active { color: #38bdf8; border-color: #38bdf8; background: rgba(56,189,248,0.1); }
.topbar a { color: #e2e8f0; }
.topbar a:hover { color: var(--accent-light); }
.topbar-right { display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.topbar-auth-sep {
    width: 1px; height: 18px; background: #475569; margin: 0 16px; flex-shrink: 0;
}
.topbar-auth { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.topbar-auth-user {
    color: #e2e8f0; font-size: 12px; font-weight: 600;
    max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    text-decoration: none;
}
.topbar-auth-user:hover { color: #38bdf8; text-decoration: underline; }
.topbar-auth-btn {
    border: 1px solid #475569; background: transparent; color: #e2e8f0;
    font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 4px;
    cursor: pointer; line-height: 1.4;
}
.topbar-auth-btn:hover { color: #fff; border-color: #94a3b8; }
.topbar-auth-btn--primary {
    border-color: #38bdf8; color: #38bdf8; background: rgba(56,189,248,0.08);
}
.topbar-auth-btn--primary:hover { background: rgba(56,189,248,0.18); color: #7dd3fc; }

.auth-modal {
    position: fixed; inset: 0; z-index: 9999; display: none;
    align-items: center; justify-content: center; padding: 20px;
}
.auth-modal.is-open { display: flex; }
.auth-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.auth-modal-panel {
    position: relative; background: var(--white); border-radius: 12px;
    width: min(440px, 100%); max-height: 90vh; overflow-y: auto;
    padding: 28px 24px 24px; box-shadow: var(--shadow);
}
.auth-modal-close {
    position: absolute; top: 10px; right: 12px; border: none; background: none;
    font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted);
}
.auth-modal-panel h2 { margin: 0 0 20px; font-size: 22px; }
.auth-modal-error {
    background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca;
    border-radius: 8px; padding: 10px 12px; margin-bottom: 16px; font-size: 14px;
}
.auth-modal-panel .form-field { margin-bottom: 14px; }
.auth-modal-panel .form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.auth-modal-panel .form-field input {
    width: 100%; border: 1px solid var(--border); border-radius: 8px;
    padding: 10px 12px; font-size: 15px;
}
.btn-auth-primary {
    background: var(--accent); color: var(--white); border: 2px solid var(--accent);
    border-radius: 6px; font-size: 14px; font-weight: 700; padding: 10px 16px; cursor: pointer;
}
.btn-auth-primary:hover { background: var(--primary); border-color: var(--primary); }
.btn-auth-submit { width: 100%; margin-top: 8px; }
.auth-modal-switch { margin: 16px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.auth-modal-divider {
    display: flex; align-items: center; gap: 12px; margin: 16px 0;
    font-size: 13px; color: var(--muted);
}
.auth-modal-divider::before, .auth-modal-divider::after {
    content: ''; flex: 1; height: 1px; background: #e2e8f0;
}
.btn-auth-google {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 11px 16px; border: 1px solid #dadce0; border-radius: 8px;
    background: #fff; color: #3c4043; font-size: 15px; font-weight: 600; cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}
.btn-auth-google:hover { background: #f8f9fa; box-shadow: 0 1px 3px rgba(60,64,67,0.15); }
.btn-auth-google svg { width: 20px; height: 20px; flex-shrink: 0; }
.auth-link-btn {
    border: none; background: none; color: var(--accent); font-weight: 700;
    cursor: pointer; padding: 0; font-size: 14px;
}
.auth-link-btn:hover { text-decoration: underline; }
body.auth-modal-open { overflow: hidden; }

/* Header：顶栏 + 主导航整体吸顶，滚动时保持在 Banner 上方 */
#site-header {
    position: sticky;
    top: 0;
    z-index: 200;
}
.main-header {
    background: var(--white);
    box-shadow: 0 1px 0 var(--border);
    position: relative;
    z-index: 1;
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; flex-direction: column; line-height: 1.1; color: var(--primary); font-weight: 800; flex-shrink: 0; }
.brand-main { font-size: 1.5rem; letter-spacing: 0.04em; }
.brand-sub { font-size: 0.75rem; color: var(--accent); letter-spacing: 0.2em; text-transform: uppercase; }
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 60;
}
.header-nav-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.main-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a { color: var(--text); font-size: 14px; font-weight: 600; padding: 8px 14px; letter-spacing: 0.03em; }
.main-nav a:hover, .main-nav a.is-active { color: var(--accent); }
.main-nav-auth {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-left: 10px;
    margin-left: 4px;
    border-left: 1px solid var(--border);
}
.nav-auth-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}
.nav-auth-user {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 10px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
}
.nav-auth-user:hover { color: var(--accent); }
.nav-auth-btn {
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    line-height: 1.2;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.nav-auth-btn:hover { color: var(--accent); border-color: var(--accent); }
.nav-auth-btn--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}
.nav-auth-btn--primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.main-nav-lang {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
}
.lang-dropdown { position: relative; }
.lang-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    line-height: 1.2;
    white-space: nowrap;
}
.lang-dropdown-btn:hover { color: var(--accent); border-color: var(--accent); }
.lang-dropdown-icon { font-size: 15px; line-height: 1; }
.lang-dropdown-caret { font-size: 10px; opacity: 0.65; margin-left: 2px; }
.lang-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 168px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 6px 0;
    z-index: 300;
}
.lang-dropdown.is-open .lang-dropdown-menu { display: block; }
.lang-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}
.lang-dropdown-menu a:hover { background: #f0f9ff; color: var(--accent); }
.lang-dropdown-menu a.is-active { color: var(--accent); background: #f0f9ff; }
.btn-quote {
    background: var(--accent) !important;
    color: var(--white) !important;
    border-radius: 4px;
    margin-left: 8px;
    padding: 10px 18px !important;
}
.btn-quote:hover { background: var(--primary) !important; color: var(--white) !important; }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    margin: -8px 0;
    flex-shrink: 0;
}

/* Hero slider */
.hero-slider { position: relative; height: 720px; overflow: hidden; background: var(--primary-dark); }
.hero-slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: flex-start;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide > .container.hero-content {
    margin-inline: 0 auto;
    margin-left: max(16px, calc(50% - var(--max) / 2));
    width: min(100% - 32px, var(--max));
    max-width: 640px;
    text-align: left;
}
.hero-content { position: relative; z-index: 2; color: var(--white); padding: 0; }
.hero-content h1 {
    font-size: clamp(1.5rem, 4vw, 2.25rem); line-height: 1.25; margin-bottom: 16px; font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85), 0 4px 16px rgba(0, 0, 0, 0.55);
}
.hero-content p {
    font-size: 1rem; opacity: 0.92; margin-bottom: 24px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 2px 10px rgba(0, 0, 0, 0.5);
}
.btn-hero {
    display: inline-block; background: var(--water); color: var(--white);
    padding: 12px 28px; font-weight: 600; border-radius: 4px; font-size: 14px;
}
.btn-hero:hover { background: var(--accent-light); color: var(--primary-dark); }
.hero-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero-dot {
    width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--white);
    background: transparent; cursor: pointer; padding: 0;
}
.hero-dot.is-active { background: var(--white); }

/* Section common */
.section { padding: 72px 0; }
.section--white { background: var(--white); }
.section--gray { background: var(--bg); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .label { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--primary); margin-top: 8px; }

/* Product center */
.cat-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 36px; }
.cat-tab {
    padding: 10px 20px; border: 1px solid var(--border); background: var(--white);
    border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted);
}
.cat-tab.is-active, .cat-tab:hover { border-color: var(--accent); color: var(--accent); background: #f0f9ff; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
    background: var(--white); border-radius: 8px; overflow: hidden;
    box-shadow: var(--shadow); transition: transform 0.25s;
}
.product-card:hover { transform: translateY(-4px); }
.product-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.product-card h3 { font-size: 14px; padding: 14px; text-align: center; color: var(--primary); font-weight: 600; }
.product-card { display: block; color: inherit; text-decoration: none; }

/* Product detail page (B2B layout) */
.pd-page { padding-top: 28px; padding-bottom: 56px; }
.pd-loading, .pd-empty { color: var(--muted); padding: 40px 0; }
.pd-breadcrumb {
    font-size: 13px; color: var(--muted); margin-bottom: 28px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.pd-breadcrumb a { color: var(--muted); text-decoration: none; }
.pd-breadcrumb a:hover { color: var(--accent); }
.pd-breadcrumb-sep { color: #cbd5e1; }

.pd-top-grid {
    display: grid;
    grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.pd-gallery-main,
.product-gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 1.05;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pd-gallery-main img,
.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.25s ease;
}
.pd-gallery-main img.is-fading,
.product-gallery-main img.is-fading { opacity: 0.45; }

.pd-gallery-thumbs,
.product-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.pd-gallery-thumbs .pg-thumb,
.product-gallery-thumbs .pg-thumb {
    width: 84px;
    height: 84px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    flex-shrink: 0;
}
.pd-gallery-thumbs .pg-thumb.is-active,
.product-gallery-thumbs .pg-thumb.is-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.pd-title {
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    margin: 0 0 20px;
}
.pd-excerpt {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.85;
    margin: 0 0 24px;
}

.pd-spec-block { margin-bottom: 28px; }
.pd-spec-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}
.pd-spec-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.pd-spec-btn {
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    color: #374151;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    text-align: left;
}
.pd-spec-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.pd-spec-btn.is-active {
    border-color: var(--accent);
    background: #f0f9ff;
    color: #0369a1;
    font-weight: 600;
    box-shadow: 0 0 0 1px var(--accent);
}
.pd-size-block { margin-top: 16px; }
.pd-size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.pd-size-btn {
    padding: 8px 16px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 6px;
    background: #fff;
    color: var(--text, #334155);
    font-size: 14px;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}
.pd-size-btn:hover {
    border-color: var(--primary, #0ea5e9);
}
.pd-size-btn.is-active {
    border-color: var(--primary, #0ea5e9);
    background: var(--primary, #0ea5e9);
    color: #fff;
}
.pd-spec-note {
    margin: 12px 0 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    min-height: 1.2em;
}

.pd-meta {
    margin: 0 0 32px;
    padding: 0;
}
.pd-meta-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}
.pd-meta-row dt {
    margin: 0;
    color: #6b7280;
    font-weight: 500;
}
.pd-meta-row dd { margin: 0; color: #111827; }
.pd-meta-tags { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pd-meta-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f3f4f6;
    border-radius: 999px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
}
a.pd-meta-tag:hover { background: #e0f2fe; color: var(--accent); }
.pd-btn-quote {
    display: inline-block;
    padding: 14px 36px;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    transition: background 0.2s, transform 0.2s;
}
.pd-btn-quote:hover {
    background: #0284c7;
    transform: translateY(-1px);
    color: #fff;
}

.pd-detail-block {
    margin-top: 48px;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
}
.pd-detail-head {
    position: relative;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}
.pd-detail-head h2 {
    display: inline-block;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent);
    margin-bottom: -13px;
}
.pd-detail-body {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.9;
}
.pd-detail-body p { margin: 0 0 16px; }
.pd-detail-body p:last-child { margin-bottom: 0; }

/* Cases */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; }
.case-card img { width: 100%; height: 100%; object-fit: cover; }
.case-card .case-overlay {
    position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(8,47,73,0.9));
    display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; color: var(--white);
}
.case-card h3 { font-size: 14px; font-weight: 600; line-height: 1.4; }
.case-card p { font-size: 12px; opacity: 0.85; margin-top: 4px; }

/* Video block */
.video-block {
    background: var(--primary-dark); border-radius: 12px; overflow: hidden;
    aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
    color: #94a3b8; font-size: 15px;
    background-image: linear-gradient(135deg, #0c4a6e, #0369a1);
}
.video-block iframe,
.video-block video.home-video-player {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: contain;
    background: #000;
}

/* About home */
.about-home { display: flex; flex-direction: column; gap: 36px; }
.about-home-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.about-home-media { min-height: 0; }
.about-home-media .about-home-image,
.about-home-media .about-media { height: 100%; }
.about-home-footer { text-align: center; }
.about-home-footer .btn-more { margin-top: 0; }
.about-home .stats-row--home {
    margin-top: 0;
    grid-template-columns: repeat(4, 1fr);
}
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-side { display: flex; flex-direction: column; gap: 24px; }
.about-home-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: var(--shadow);
    object-fit: cover;
}
.about-media--video,
.about-page-media .about-media--video {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #000;
}
.about-video-player {
    width: 100%;
    height: auto;
    display: block;
    max-height: 420px;
    object-fit: contain;
    background: #000;
}
.about-media--embed {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
    background: #0c4a6e;
}
.about-media--embed iframe,
.about-media--embed video {
    width: 100%;
    height: 100%;
    min-height: 240px;
    border: 0;
    display: block;
}
.about-text p { color: var(--muted); margin-bottom: 20px; }
.mission-vision .mv-text { display: block; margin-top: 8px; }
.mission-vision { display: grid; gap: 16px; margin: 24px 0; }
.mv-box { background: #f0f9ff; border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: 0 8px 8px 0; }
.mv-box strong { display: block; color: var(--primary); margin-bottom: 6px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.stat-item { text-align: center; padding: 20px 12px; background: var(--white); border-radius: 8px; box-shadow: var(--shadow); }
.stat-item .num { font-size: 1.5rem; font-weight: 800; color: var(--accent); display: block; }
.stat-item .lbl { font-size: 12px; color: var(--muted); margin-top: 4px; }
.btn-more {
    display: inline-block; margin-top: 16px; padding: 10px 24px;
    border: 2px solid var(--accent); color: var(--accent); font-weight: 600; border-radius: 4px;
}
.btn-more:hover { background: var(--accent); color: var(--white); }

/* Why choose */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card { background: var(--white); padding: 28px 22px; border-radius: 8px; box-shadow: var(--shadow); border-top: 3px solid var(--water); }
.why-card h3 { font-size: 16px; color: var(--primary); margin-bottom: 12px; }
.why-card p { font-size: 14px; color: var(--muted); }

/* Customer reviews carousel */
.reviews-carousel { width: 100%; }
.reviews-viewport {
    overflow: hidden;
    width: 100%;
    --review-card-width: 320px;
}
.reviews-track {
    display: flex;
    gap: 24px;
    will-change: transform;
}
.review-card {
    flex: 0 0 var(--review-card-width);
    width: var(--review-card-width);
    background: var(--white);
    border-radius: 8px;
    padding: 28px 24px 24px;
    box-shadow: var(--shadow);
    border: 1px solid #e8eaed;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    box-sizing: border-box;
}
.review-stars { margin-bottom: 16px; line-height: 1; }
.review-star { color: #d1d5db; font-size: 18px; letter-spacing: 2px; }
.review-star.is-on { color: var(--accent); }
.review-text {
    margin: 0 0 20px;
    flex: 1;
    font-size: 15px;
    line-height: 1.65;
    color: #374151;
}
.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f0f2f5;
}
.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    overflow: hidden;
}
.review-avatar.has-img { background: #e5e7eb; }
.review-avatar.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.review-name { display: block; font-size: 15px; color: #111; font-weight: 600; }
.review-role { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.reviews-empty { text-align: center; color: var(--muted); padding: 24px 0; }

/* News */
.news-list { display: grid; gap: 24px; }
.news-item {
    display: grid; grid-template-columns: 100px 1fr; gap: 24px;
    background: var(--white); padding: 24px; border-radius: 8px; box-shadow: var(--shadow);
}
.news-date { font-size: 13px; color: var(--accent); font-weight: 700; }
.news-item h3 { font-size: 16px; margin: 6px 0 10px; }
.news-item h3 a { color: var(--primary); }
.news-item p { font-size: 14px; color: var(--muted); }

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white); text-align: center; padding: 64px 24px;
}
.cta-section h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); margin-bottom: 12px; }
.cta-section p { opacity: 0.9; margin-bottom: 28px; max-width: 560px; margin-inline: auto; }
.cta-section .btn-hero { background: var(--white); color: var(--primary); }

/* Page banner */
.page-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
    color: var(--white); padding: 56px 0; text-align: center;
}
.page-banner h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
.page-banner p { opacity: 0.9; margin-top: 8px; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px; font: inherit;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.btn-submit {
    background: var(--accent); color: var(--white); border: none; padding: 14px 32px;
    font-weight: 600; border-radius: 6px; cursor: pointer; font-size: 15px;
}
.btn-submit:hover { background: var(--primary); }
.form-status { margin-top: 12px; padding: 10px 14px; border-radius: 6px; font-size: 14px; display: none; }
.form-status--success { display: block; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.form-status--error { display: block; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.contact-info p { margin-bottom: 12px; color: var(--muted); }
.contact-info strong { color: var(--primary); }

/* Footer */
.site-footer { background: var(--primary-dark); color: #cbd5e1; padding: 56px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 0.8fr 0.8fr; gap: 32px; padding-bottom: 40px; }
.footer-col h4 { color: var(--white); font-size: 15px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #94a3b8; font-size: 14px; }
.footer-col a:hover { color: var(--accent-light); }
.footer-about p { font-size: 14px; line-height: 1.7; }
.footer-copy { text-align: center; padding: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; }

/* Float contact */
.float-contact {
    position: fixed; right: 0; top: 50%; transform: translateY(-50%);
    z-index: 200; display: flex; flex-direction: column;
    box-shadow: -4px 0 16px rgba(0,0,0,0.15);
}
.float-item {
    writing-mode: vertical-rl; text-orientation: mixed;
    background: var(--accent); color: var(--white) !important;
    padding: 14px 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.float-item:hover { background: var(--primary); color: var(--white) !important; }
.float-item:last-child { border-bottom: none; }

/* Article detail */
.article-body { background: var(--white); padding: 40px; border-radius: 8px; box-shadow: var(--shadow); }
.article-body h1 { font-size: 1.5rem; color: var(--primary); margin-bottom: 12px; }
.article-meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.article-body p { margin-bottom: 16px; color: var(--text); }
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 16px 0;
    display: block;
}

body.nav-open { overflow: hidden; }

/* Responsive — tablet & mobile */
@media (max-width: 1024px) {
    .container { width: min(100% - 28px, var(--max)); }
    .hero-slider { height: clamp(360px, 48vh, 520px); }
    .hero-slide > .container.hero-content {
        margin-left: max(14px, calc(50% - var(--max) / 2));
        max-width: min(100%, 560px);
    }
    .section { padding: 56px 0; }
    .section-head { margin-bottom: 36px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .cases-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .about-split,
    .about-home-top { grid-template-columns: 1fr; gap: 32px; }
    .stats-row,
    .about-home .stats-row--home { grid-template-columns: repeat(2, 1fr); }
    .about-home .stats-row--home { grid-template-columns: repeat(2, 1fr); }
    .page-banner { padding: 48px 0; }
    .cat-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 6px;
        margin-bottom: 28px;
    }
    .cat-tab { flex-shrink: 0; }
    .pd-top-grid { grid-template-columns: 1fr; gap: 32px; }
    .pd-meta-row { grid-template-columns: 96px 1fr; }
}

@media (max-width: 768px) {
    .container { width: min(100% - 24px, var(--max)); }
    .main-header { position: relative; }
    .header-row { min-height: 60px; gap: 12px; }
    .brand-main { font-size: 1.25rem; }
    .brand-sub { font-size: 0.65rem; letter-spacing: 0.14em; }
    .nav-toggle { display: block; }
    .header-nav-wrap {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--white);
        padding: 12px 16px 16px;
        box-shadow: var(--shadow);
        border-top: 1px solid var(--border);
        z-index: 50;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .header-nav-wrap.is-open { display: flex; }
    .main-nav {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 4px;
    }
    .main-nav a {
        width: 100%;
        padding: 12px 14px;
        border-radius: 6px;
    }
    .main-nav a:hover,
    .main-nav a.is-active { background: #f0f9ff; }
    .main-nav-auth {
        border-left: none;
        border-top: 1px solid var(--border);
        margin: 12px 0 0;
        padding: 12px 0 0;
        width: 100%;
        justify-content: center;
    }
    .nav-auth-group { width: 100%; justify-content: center; flex-wrap: wrap; }
    .nav-auth-btn, .nav-auth-user { width: 100%; text-align: center; max-width: none; }
    .topbar-inner { flex-direction: column; align-items: flex-start; }
    .btn-quote { margin-left: 0 !important; text-align: center; }

    .header-actions .lang-dropdown-btn {
        min-height: 44px;
        padding: 8px 10px;
        font-size: 13px;
    }
    .header-actions .lang-dropdown-menu {
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        left: auto;
        width: auto;
        min-width: 168px;
        margin-top: 0;
        box-shadow: var(--shadow);
    }
    .header-actions .lang-dropdown.is-open .lang-dropdown-menu { display: block; }
    .header-actions .lang-dropdown-menu a { padding: 12px 16px; }

    .hero-slider { height: clamp(260px, 38vh, 380px); }
    .hero-slide > .container.hero-content {
        margin-left: 0;
        width: 100%;
        max-width: none;
        padding: 0 4px;
    }
    .hero-content h1 { font-size: clamp(1.2rem, 5vw, 1.65rem); margin-bottom: 12px; }
    .hero-content p { font-size: 0.9rem; margin-bottom: 16px; }
    .btn-hero { padding: 10px 20px; font-size: 13px; }
    .hero-dots { bottom: 14px; }

    .section { padding: 44px 0; }
    .section-head { margin-bottom: 28px; }
    .section-head h2 { font-size: clamp(1.25rem, 4.5vw, 1.65rem); }

    .product-grid, .cases-grid, .why-grid { grid-template-columns: 1fr; }
    .product-card h3 { font-size: 13px; padding: 12px; }
    .why-card { padding: 22px 18px; }

    .news-item { grid-template-columns: 1fr; gap: 8px; padding: 18px; }
    .news-date { font-size: 12px; }

    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .form-field input, .form-field textarea, .form-field select {
        font-size: 16px; /* 避免 iOS 输入框自动放大 */
    }
    .btn-submit { width: 100%; padding: 14px 20px; }

    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .site-footer { padding: 40px 0 0; }
    .float-contact { display: none; }

    .page-banner { padding: 36px 0; }
    .page-banner h1 { font-size: clamp(1.35rem, 5vw, 1.75rem); }

    .article-body { padding: 24px 16px; }
    .article-body h1 { font-size: 1.25rem; }
    .article-content img { margin: 12px 0; }

    .pd-page { padding-top: 16px; padding-bottom: 40px; }
    .pd-breadcrumb { font-size: 12px; margin-bottom: 20px; gap: 6px; }
    .pd-gallery-thumbs .pg-thumb,
    .product-gallery-thumbs .pg-thumb { width: 72px; height: 72px; }
    .pd-spec-btn { padding: 10px 14px; font-size: 12px; min-height: 44px; }
    .pd-size-btn { min-height: 40px; }
    .pd-btn-quote {
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        box-sizing: border-box;
    }
    .pd-detail-block { margin-top: 32px; }
    .pd-detail-body { font-size: 14px; line-height: 1.75; }

    .cta-section { padding: 48px 16px; }

    .auth-modal-panel { padding: 24px 18px 20px; }
    .auth-modal-panel .form-field input { font-size: 16px; }
}

@media (max-width: 480px) {
    .stats-row,
    .about-home .stats-row--home { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-item { padding: 16px 10px; }
    .stat-item .num { font-size: 1.25rem; }
    .pd-meta-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 10px 0;
    }
    .pd-meta-row dt { font-size: 12px; }
    .case-card h3 { font-size: 13px; }
    .reviews-viewport { --review-card-width: 100%; }
}

/* 平板横屏：主导航仍可折叠，避免挤占 Logo */
@media (max-width: 900px) and (min-width: 769px) {
    .main-header { position: relative; }
    .nav-toggle { display: block; }
    .header-nav-wrap {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--white);
        padding: 16px;
        box-shadow: var(--shadow);
        border-top: 1px solid var(--border);
        z-index: 50;
    }
    .header-nav-wrap.is-open { display: flex; }
    .main-nav { flex-direction: column; align-items: stretch; width: 100%; }
    .main-nav a { width: 100%; padding: 10px 14px; }
    .header-actions .lang-dropdown-btn { min-height: 44px; }
    .header-actions .lang-dropdown-menu {
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        min-width: 168px;
        box-shadow: var(--shadow);
    }
}
