/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure native hidden attribute always wins (prevents accidental overrides) */
[hidden] {
    display: none !important;
}

:root {
    /* Brochure-like theme (orange/black/white) */
    --primary-color: #111827; /* near-black */
    --secondary-color: #374151; /* slate */
    --accent-color: #f28c28; /* brochure orange */

    --text-dark: #111827;
    /* Slightly darker secondary text for better readability in light/day mode */
    --text-light: #4b5563;
    --bg-light: #f7f7f7;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;

    --shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
    --shadow-lg: 0 14px 40px rgba(17, 24, 39, 0.14);
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);

    /* Fixed navbar sizing + mobile safe-area support (iOS notch, in-app browsers) */
    --navbar-height: 80px;
    --safe-area-top: env(safe-area-inset-top, 0px);
    --navbar-total-height: calc(var(--navbar-height) + var(--safe-area-top));
}

@media (max-width: 640px) {
    :root {
        --navbar-height: 72px;
    }
}

@media (max-width: 420px) {
    :root {
        --navbar-height: 64px;
    }
}

/* Theme: default = light, dark overrides via html[data-theme="dark"] */
html {
    color-scheme: light;
    background: var(--bg-white);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --text-dark: #f3f4f6;
    --text-light: #cbd5e1;
    --bg-light: #0b1220;
    --bg-white: #0f172a;
    --border-color: rgba(255, 255, 255, 0.14);
    --shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 18px 60px rgba(0, 0, 0, 0.55);
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: var(--bg-white);
    /* Reserve space for the fixed navbar so top content (e.g. breadcrumb) isn't hidden underneath. */
    padding-top: var(--navbar-total-height);
}

/* Home page keeps the hero flush with the top (navbar overlays hero). */
body[data-page="index.html"] {
    padding-top: 0;
}

/* Prevent “flash” on initial load while i18n + dynamic content render */
html.preload body {
    opacity: 0 !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Logo样式 */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-img {
    width: 120px;
    height: 44px;
    object-fit: contain;
    object-position: center;
    background: #ffffff;
    padding: 4px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.logo:hover .logo-img {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-subtext {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding-top: var(--safe-area-top);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
    /* Helps some mobile browsers (iOS/WeChat) reliably render fixed + backdrop-filter layers */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

html[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.88);
}

.navbar.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.navbar .logo-subtext {
    display: none;
}

.footer .logo-subtext {
    display: block;
    color: rgba(255, 255, 255, 0.75);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Top-right professional controls (icon + select + caret) */
.nav-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-tool {
    /* Control surface tokens */
    /* Default (day mode): light surface + dark text for readability */
    --control-bg: rgba(255, 255, 255, 0.92);
    --control-bg-hover: rgba(255, 255, 255, 0.98);
    --control-border: rgba(17, 24, 39, 0.12);
    --control-shadow: 0 10px 26px rgba(17, 24, 39, 0.10);
    --tool-pad-x: 0.85rem;
    --tool-gap: 0.55rem;
    --tool-icon: 18px;
    --tool-caret: 16px;

    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--tool-gap);
    height: 40px;
    padding: 0 var(--tool-pad-x);
    border-radius: 999px;

    /* Layered background = more “product” feel */
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.06), rgba(17, 24, 39, 0) 62%),
        var(--control-bg);
    color: var(--text-dark);
    border: 1px solid var(--control-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.55) inset,
        0 0 0 rgba(0, 0, 0, 0);

    cursor: pointer;
    transition:
        background 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.nav-tool:hover {
    background:
        linear-gradient(180deg, rgba(242, 140, 40, 0.14), rgba(242, 140, 40, 0) 62%),
        var(--control-bg-hover);
    border-color: rgba(242, 140, 40, 0.30);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.10) inset,
        var(--control-shadow);
    transform: translateY(-1px);
}

.nav-tool:active {
    transform: translateY(0);
}

.nav-tool:focus-within {
    outline: none;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.10) inset,
        0 0 0 3px rgba(242, 140, 40, 0.22),
        var(--control-shadow);
}

/* Keyboard focus should look intentional */
.nav-tool-select:focus-visible {
    outline: none;
}

.nav-tool-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.95;
    pointer-events: none;
    z-index: 2;
}

.nav-tool-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    pointer-events: none;
    z-index: 2;
}

.nav-tool-label {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1;
    letter-spacing: 0.01em;
    pointer-events: none;
    z-index: 2;

    /* Compact pill; full text remains in the dropdown list */
    max-inline-size: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-tool-lang .nav-tool-label {
    max-inline-size: 8.5rem;
}

.nav-tool-theme .nav-tool-label {
    max-inline-size: 6.25rem;
}

.nav-tool-select {
    appearance: none;
    border: none;
    outline: none;
    background: transparent;
    color: inherit;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* keep native select for full click area, but render label ourselves */
    cursor: pointer;
    z-index: 3;
}

/* Dropdown option list readability (Windows browsers) */
.theme-select option,
.lang-select option {
    background: #ffffff;
    color: #111827;
}

/* Theme icon switching based on current mode */
.nav-tool-icon-theme .icon { display: none; }
html[data-theme-mode="system"] .nav-tool-icon-theme .icon-system { display: inline-block; }
html[data-theme-mode="light"] .nav-tool-icon-theme .icon-light { display: inline-block; }
html[data-theme-mode="dark"] .nav-tool-icon-theme .icon-dark { display: inline-block; }

html[data-theme="dark"] .theme-select,
html[data-theme="dark"] .lang-select {
    /* selects are now transparent inside .nav-tool; keep compatibility if used elsewhere */
    background: transparent;
    color: inherit;
    border: none;
}

html[data-theme="dark"] .theme-select:hover,
html[data-theme="dark"] .lang-select:hover {
    background: transparent;
}

/* Dropdown option list (improves readability on Windows browsers) */
html[data-theme="dark"] .theme-select option,
html[data-theme="dark"] .lang-select option {
    background: #0f172a;
    color: #f3f4f6;
}

.lang-toggle {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    min-width: 50px;
}

.lang-toggle:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.lang-select {
    /* legacy class kept for JS hooks; visual styling handled by .nav-tool + .nav-tool-select */
    padding: 0;
    background: transparent;
    color: inherit;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.875rem;
    transition: var(--transition);
    appearance: none;
}

.lang-select:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

.lang-select:focus {
    outline: none;
    box-shadow: none;
}

/* Dark theme control surface */
html[data-theme="dark"] .nav-tool {
    --control-bg: rgba(255, 255, 255, 0.06);
    --control-bg-hover: rgba(255, 255, 255, 0.10);
    --control-border: rgba(255, 255, 255, 0.14);
    --control-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);

    color: var(--text-dark);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 0 0 rgba(0, 0, 0, 0);
}

html[data-theme="dark"] .nav-tool:hover {
    background:
        linear-gradient(180deg, rgba(242, 140, 40, 0.14), rgba(242, 140, 40, 0) 62%),
        rgba(255, 255, 255, 0.10);
    border-color: rgba(242, 140, 40, 0.30);
}

@media (prefers-reduced-motion: reduce) {
    .nav-tool {
        transition: none;
    }
    .nav-tool:hover,
    .nav-tool:active {
        transform: none;
    }
}

@media (max-width: 640px) {
    .nav-controls {
        gap: 0.6rem;
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    .nav-tool {
        height: 36px;
        padding: 0 0.75rem;
    }
    .nav-tool-select {
        font-size: 0.85rem;
    }
    /* Mobile: reduce header width pressure so hamburger/menu is always visible */
    .navbar .logo-img {
        width: 92px;
        height: 34px;
    }
    .navbar .logo-text {
        font-size: 1.1rem;
    }
    .navbar .nav-actions {
        gap: 0.5rem;
    }
    .nav-tool-label {
        display: none;
    }
    /* Ensure hamburger is always visible on small screens (prevent overflow push-out) */
    .navbar .container {
        gap: 0.5rem;
        flex-wrap: nowrap;
    }
    .nav-actions {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
    }
    .nav-brand {
        flex: 0 1 auto;
        min-width: 0;
    }
    .hamburger {
        flex: 0 0 auto;
        margin-left: 0.25rem;
    }
    /* If width is tight, keep brand compact */
    .navbar .logo-text-wrap {
        display: none;
    }
    .nav-actions {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media (max-width: 420px) {
    .nav-controls {
        gap: 0.45rem;
    }
    .nav-tool {
        padding: 0 0.65rem;
    }
    /* Narrow phones: keep logo visible, but make it more compact */
    .navbar .logo-img {
        width: 74px;
        height: 28px;
        padding: 2px;
        border-radius: 8px;
        box-shadow: none;
    }
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-link.active::after,
.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-color);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 首页英雄区 */
.hero-section {
    position: relative;
    /* Override global `section { padding: 5rem 0; }` to avoid a big white band above hero */
    padding: 0;
    /* Navbar is fixed; keep hero below it and size hero to the remaining viewport */
    height: calc(100vh - var(--navbar-total-height));
    min-height: 520px;
    overflow: hidden;
    margin-top: var(--navbar-total-height);
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 首页第一张粉碎铲斗工作图：
   在默认 cover 的基础上再“拉远”一点点——比 contain 近一点，比 105% 更远 */
.hero-slide-crushing {
    /* 再轻微减小放大比例，让视角更远一点 */
    background-size: 102% auto;
    background-position: center center;
    background-color: #000; /* 避免四周空白，用深色填充 */
}

/* Hero backgrounds use center focal point by default */

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.78) 0%, rgba(242, 140, 40, 0.45) 100%);
    z-index: 1;
}

.slide-content {
    text-align: center;
    color: white;
    z-index: 3;
    padding: 2rem;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.animate-fade-up {
    animation: fadeInUp 1s ease;
}

.animate-fade-up-delay {
    animation: fadeInUp 1s ease 0.2s both;
}

.animate-fade-up-delay-2 {
    animation: fadeInUp 1s ease 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 10;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 3rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

.scroll-indicator {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid white;
    border-radius: 12px;
    margin: 0 auto;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: #db7a18;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--primary-color);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

html[data-theme="dark"] .btn-outline {
    color: var(--text-dark);
    border-color: rgba(255, 255, 255, 0.22);
}

html[data-theme="dark"] .btn-outline:hover {
    background: rgba(255, 255, 255, 0.10);
    color: var(--text-dark);
    border-color: rgba(255, 255, 255, 0.28);
}

.btn-view {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Disabled UI (temporary feature shutdown) */
.btn.is-disabled,
.btn[aria-disabled="true"],
button.btn:disabled {
    opacity: 0.55;
    filter: grayscale(0.25);
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

.feature-disabled-note {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

/* 通用区块样式 */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-top: 1.5rem;
}

/* 产品预览 */
.products-preview {
    background: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Hero mosaic background (multi-field collage filling the whole slide) */
.mosaic-slide {
    /* Use the same layout as default .slide; just clear custom background */
    background: none;
}

.slide-mosaic {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 18px;
    z-index: 0;
    isolation: isolate; /* allow a single overlay layer for the whole mosaic */
}

.slide-mosaic .mosaic-tile {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    filter: saturate(1.02) contrast(1.04);
    z-index: 0; /* keep tiles below the overlay + text */
}

/* Extra gradient mask directly over the 6-tile mosaic for hero-3 */
.slide-mosaic::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.7) 0%, rgba(242, 140, 40, 0.4) 100%);
}

.mosaic-slide .slide-overlay,
.mosaic-slide .slide-content {
    position: relative;
    z-index: 2;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .slide-mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(3, minmax(0, 1fr));
        padding: 14px;
    }
}

@media (max-width: 640px) {
    .slide-mosaic {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, minmax(0, 1fr));
    }
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

html[data-theme="dark"] .product-card,
html[data-theme="dark"] .product-card-large,
html[data-theme="dark"] .advantage-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-card {
    cursor: pointer;
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #ffffff;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-image-contain {
    object-fit: contain;
    padding: 12px;
    background: #ffffff;
}

html[data-theme="dark"] .product-image-contain {
    background: #ffffff;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.86);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none; /* click-through so the whole card navigates */
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

html[data-theme="dark"] .tag {
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.06);
}

.view-all {
    text-align: center;
    margin-top: 3rem;
}

/* 特色优势 */
.features-section {
    background: white;
}

html[data-theme="dark"] .features-section,
html[data-theme="dark"] .timeline-section,
html[data-theme="dark"] .about-content-section,
html[data-theme="dark"] .contact-content-section,
html[data-theme="dark"] .product-detail-section {
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .timeline-content,
html[data-theme="dark"] .contact-info-card,
html[data-theme="dark"] .contact-form-section,
html[data-theme="dark"] .spec-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 首页：核心价值观 */
.values-section {
    background: var(--bg-white);
    position: relative;
}

.values-section::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(242, 140, 40, 0), rgba(242, 140, 40, 0.35), rgba(242, 140, 40, 0));
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.value-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0.9;
}

.value-card::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 140, 40, 0.08), transparent 70%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.value-card:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

html[data-theme="dark"] .value-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(242, 140, 40, 0.3);
}

.value-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(242, 140, 40, 0.16), rgba(242, 140, 40, 0.08));
    color: var(--accent-color);
    font-size: 2rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(242, 140, 40, 0.24), rgba(242, 140, 40, 0.14));
    box-shadow: 0 8px 20px rgba(242, 140, 40, 0.25);
}

html[data-theme="dark"] .value-icon {
    background: linear-gradient(135deg, rgba(242, 140, 40, 0.22), rgba(242, 140, 40, 0.12));
}

html[data-theme="dark"] .value-card:hover .value-icon {
    background: linear-gradient(135deg, rgba(242, 140, 40, 0.30), rgba(242, 140, 40, 0.20));
}

.value-title {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.value-card:hover .value-title {
    color: var(--accent-color);
}

/* 页面标题 */
.page-header {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: white;
    /* Slightly shorter + more responsive than the old fixed padding */
    padding: clamp(5.75rem, 10vh, 7.5rem) 0 clamp(3.25rem, 7vh, 4.75rem);
    margin-top: var(--navbar-total-height);
    text-align: center;
    background:
        radial-gradient(1100px 520px at 18% 18%, rgba(242, 140, 40, 0.30), rgba(242, 140, 40, 0) 60%),
        radial-gradient(900px 420px at 86% 34%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 55%),
        linear-gradient(135deg, #0b1220 0%, var(--primary-color) 55%, #0b1220 100%);
}

html[data-theme="dark"] .page-header {
    background:
        radial-gradient(1100px 520px at 18% 18%, rgba(242, 140, 40, 0.24), rgba(242, 140, 40, 0) 60%),
        radial-gradient(900px 420px at 86% 34%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 55%),
        linear-gradient(135deg, #070d18 0%, #0b1220 60%, #070d18 100%);
}

.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Subtle grid texture (masked so it fades out naturally) */
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 52px 52px;
    opacity: 0.22;
    mask-image: radial-gradient(circle at 50% 35%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0) 80%);
    pointer-events: none;
    z-index: -1;
}

.page-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(242, 140, 40, 0), rgba(242, 140, 40, 0.95), rgba(242, 140, 40, 0));
    opacity: 0.95;
    pointer-events: none;
    z-index: 0;
}

.page-title {
    position: relative;
    display: inline-block;
    font-size: clamp(2.1rem, 4.6vw, 3.25rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1.12;
    margin-bottom: 0.85rem;
    animation: fadeInUp 0.9s ease both;
}

.page-title::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -0.22em;
    height: 0.34em;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(242, 140, 40, 0),
        rgba(242, 140, 40, 0.55),
        rgba(242, 140, 40, 0)
    );
    filter: blur(0.2px);
    opacity: 0.95;
    z-index: -1;
}

.page-subtitle {
    font-size: clamp(1rem, 2.1vw, 1.25rem);
    opacity: 0.92;
    max-width: 46rem;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.86);
    animation: fadeInUp 0.9s ease 0.12s both;
}

/* 产品列表页 */
.products-list-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-tabs-wrap {
    width: 100%;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

/* Touch devices: prefer single-row, horizontally scrollable filter tabs.
   This avoids relying on a single viewport-width breakpoint (some mobile WebViews report wider layouts). */
@media (hover: none) and (pointer: coarse) {
    .filter-tabs-wrap {
        position: relative;
        width: 100%;
    }

    .filter-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        gap: 0.6rem;
        padding: 0.25rem 0.1rem;
        margin-bottom: 1.75rem;
        overscroll-behavior-x: contain;
    }
    .filter-tabs::-webkit-scrollbar { display: none; }
    .filter-tab {
        white-space: nowrap;
        flex: 0 0 auto;
    }

    /* Visual affordance: subtle edge fades + arrows to indicate horizontal scroll */
    .filter-tabs-wrap {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .filter-tabs-wrap::before,
    .filter-tabs-wrap::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 1.25rem;
        z-index: 2;
        pointer-events: none;
        opacity: 0.95;
    }
    .filter-tabs-wrap::before {
        left: 0;
        background: linear-gradient(90deg, var(--bg-light), rgba(0,0,0,0));
    }
    .filter-tabs-wrap::after {
        right: 0;
        background: linear-gradient(270deg, var(--bg-light), rgba(0,0,0,0));
    }

    /* Arrow glyphs sitting on top of the fades */
    .filter-tabs-wrap .filter-scroll-hint {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 18px;
        border-radius: 999px;
        background: rgba(17, 24, 39, 0.18);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.25);
        z-index: 3;
        pointer-events: none;
        display: grid;
        place-items: center;
        transition: opacity 200ms ease, transform 200ms ease;
    }
    html[data-theme="dark"] .filter-tabs-wrap .filter-scroll-hint {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.16);
    }
    .filter-tabs-wrap .filter-scroll-hint::before {
        content: "";
        width: 6px;
        height: 6px;
        border-right: 2px solid rgba(255, 255, 255, 0.95);
        border-bottom: 2px solid rgba(255, 255, 255, 0.95);
        display: block;
    }
    .filter-tabs-wrap .filter-scroll-hint.left { left: 4px; }
    .filter-tabs-wrap .filter-scroll-hint.left::before { transform: rotate(135deg); }
    .filter-tabs-wrap .filter-scroll-hint.right { right: 4px; }
    .filter-tabs-wrap .filter-scroll-hint.right::before { transform: rotate(-45deg); }

    /* When JS decides scrolling is not needed, hide hints */
    .filter-tabs-wrap.no-scroll-hint::before,
    .filter-tabs-wrap.no-scroll-hint::after,
    .filter-tabs-wrap.no-scroll-hint .filter-scroll-hint { display: none; }

    /* When user has scrolled to either end, JS will toggle these */
    .filter-tabs-wrap.at-start::before,
    .filter-tabs-wrap.at-start .filter-scroll-hint.left { opacity: 0; }
    .filter-tabs-wrap.at-end::after,
    .filter-tabs-wrap.at-end .filter-scroll-hint.right { opacity: 0; }

    /* Subtle motion draws attention to horizontal scroll */
    @keyframes kw-filter-hint-pulse-right {
        0%, 100% { transform: translateY(-50%) translateX(0); opacity: 1; }
        50% { transform: translateY(-50%) translateX(-4px); opacity: 1; }
    }
    @keyframes kw-filter-hint-pulse-left {
        0%, 100% { transform: translateY(-50%) translateX(0); opacity: 1; }
        50% { transform: translateY(-50%) translateX(4px); opacity: 1; }
    }
    .filter-tabs-wrap:not(.at-end):not(.no-scroll-hint) .filter-scroll-hint.right {
        animation: kw-filter-hint-pulse-right 1.4s ease-in-out infinite;
    }
    .filter-tabs-wrap:not(.at-start):not(.no-scroll-hint) .filter-scroll-hint.left {
        animation: kw-filter-hint-pulse-left 1.4s ease-in-out infinite;
    }

    /* One-time explicit tip (injected by JS when overflow exists) */
    .filter-tabs-swipe-tip {
        margin: -0.35rem 0 1.1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.78);
        letter-spacing: 0.02em;
        user-select: none;
        pointer-events: none;
        opacity: 0;
        transform: translateY(-4px);
        transition: opacity 260ms ease, transform 260ms ease;
    }
    .filter-tabs-swipe-tip.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
    html[data-theme="dark"] .filter-tabs-swipe-tip {
        color: rgba(255, 255, 255, 0.74);
    }
    .filter-tabs-swipe-tip .chev {
        width: 10px;
        height: 10px;
        border-right: 2px solid rgba(242, 140, 40, 0.95);
        border-bottom: 2px solid rgba(242, 140, 40, 0.95);
        display: inline-block;
    }
    .filter-tabs-swipe-tip .chev.left { transform: rotate(135deg); }
    .filter-tabs-swipe-tip .chev.right { transform: rotate(-45deg); }
}

html[data-theme="dark"] .filter-tab {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-dark);
    border-color: rgba(255, 255, 255, 0.14);
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.fav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    margin-left: 0.5rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.08);
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 800;
}

html[data-theme="dark"] .fav-count {
    background: rgba(255, 255, 255, 0.16);
    color: var(--text-dark);
}

.filter-tab.active .fav-count {
    background: rgba(255, 255, 255, 0.20);
    color: #fff;
}

/* Improve contrast for active filter tab on dark backgrounds */
html[data-theme="dark"] .filter-tab:hover,
html[data-theme="dark"] .filter-tab.active {
    background: rgba(242, 140, 40, 0.22);
    color: var(--text-dark);
    border-color: rgba(242, 140, 40, 0.50);
}

.favorite-toggle {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(17, 24, 39, 0.35);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: var(--transition);
    z-index: 3;
}

.favorite-toggle::before {
    content: "♡";
    color: #fff;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 42px;
    display: block;
    text-align: center;
}

.favorite-toggle.is-fav {
    background: rgba(242, 140, 40, 0.90);
    border-color: rgba(242, 140, 40, 0.95);
}

.favorite-toggle.is-fav::before {
    content: "♥";
}

.favorite-toggle:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

/* Product detail favorites button (shared state class set by script.js) */
#addToFavorites.is-fav {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

/* Lightweight toast */
.kw-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(12px);
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.92);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.22);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.kw-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

html[data-theme="dark"] .kw-toast {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* 全站悬浮联系按钮（邮箱 / 微信一键复制） */
.contact-fab {
    position: fixed;
    right: 24px;
    bottom: 96px; /* 保持在返回顶部按钮之上，避免重叠 */
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    /* IMPORTANT:
       The panel is present in the DOM even when hidden (opacity:0), which can make the
       container's box very large and accidentally block taps on underlying content.
       Let clicks pass through the container; re-enable pointer events only on real controls. */
    pointer-events: none;
}

.contact-fab-button {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #ffffff;
    box-shadow: var(--shadow-lg);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        opacity 0.2s ease;
    pointer-events: auto;
}

.contact-fab-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-fab-button svg {
    display: block;
}

.contact-fab-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.contact-fab-button:active {
    transform: translateY(0) scale(0.96);
    box-shadow: var(--shadow);
}

.contact-fab-panel {
    width: 260px;
    max-width: calc(100vw - 40px);
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    color: var(--text-dark);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 0.75rem 0.75rem 0.7rem;
    /* Take the hidden panel out of normal flow so it doesn't create an invisible "tap shield" */
    position: absolute;
    right: 0;
    bottom: calc(54px + 10px);
    transform: translateY(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.contact-fab-title {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.35rem;
}

.contact-fab-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-fab-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.45rem;
    border-radius: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, transform 0.12s ease;
}

.contact-fab-row:hover {
    background: var(--bg-light);
    transform: translateY(-1px);
}

.contact-fab-row:active {
    transform: translateY(0);
}

.contact-fab-row-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(242, 140, 40, 0.12);
    color: var(--accent-color);
    flex-shrink: 0;
    font-size: 0.9rem;
}

.contact-fab-row-main {
    flex: 1;
    min-width: 0;
}

.contact-fab-row-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.contact-fab-row-value {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-fab-row-copy {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-color);
    flex-shrink: 0;
}

.contact-fab-row-arrow {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    flex-shrink: 0;
    margin-left: auto;
}

.contact-fab-row-wechat:hover .contact-fab-row-arrow {
    color: var(--accent-color);
    transform: translateX(2px);
    transition: color 0.2s ease, transform 0.2s ease;
}

/* 禁用状态：微信号未配置时的展示 */
.contact-fab-row[data-disabled="true"] {
    cursor: default;
    opacity: 0.6;
}

.contact-fab-row[data-disabled="true"]:hover {
    background: transparent;
    transform: none;
}

.contact-fab.contact-fab-open .contact-fab-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

html[data-theme="dark"] .contact-fab-panel {
    background: rgba(15, 23, 42, 0.98);
    border-color: rgba(255, 255, 255, 0.16);
}

/* 微信二维码模态框 */
.wechat-qrcode-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.wechat-qrcode-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.wechat-qrcode-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.wechat-qrcode-modal-content {
    position: relative;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    text-align: center;
}

.wechat-qrcode-modal.active .wechat-qrcode-modal-content {
    transform: scale(1);
}

.wechat-qrcode-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
}

.wechat-qrcode-modal-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.wechat-qrcode-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.wechat-qrcode-modal-image {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: var(--radius);
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 0 auto 1rem;
}

.wechat-qrcode-modal-hint {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

html[data-theme="dark"] .wechat-qrcode-modal-content {
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] .wechat-qrcode-modal-close {
    color: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] .wechat-qrcode-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .contact-fab-row:hover {
    background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 640px) {
    .contact-fab {
        right: 16px;
        bottom: 88px;
    }

    .contact-fab-button {
        width: 50px;
        height: 50px;
    }
}

.products-grid-full {
    display: grid;
    gap: 2rem;
}

.product-card-large {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    transition: var(--transition);
    opacity: 0;
    transform: translateX(-30px);
}

.product-card-large.visible {
    opacity: 1;
    transform: translateX(0);
}

.product-card-large:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.product-card-large .product-image-wrapper {
    position: relative;
    height: 360px; /* keep all product cover areas consistent */
    min-height: 360px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

html[data-theme="dark"] .product-card-large .product-image-wrapper {
    background: #ffffff;
}

html[data-theme="dark"] .main-image {
    background: rgba(255, 255, 255, 0.03);
}

.product-card-large .product-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* show full image */
    padding: 12px;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

.product-badge.new {
    background: #10b981;
}

.product-card-large .product-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.spec-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
}

.spec-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.spec-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

html[data-theme="dark"] .spec-value {
    color: var(--text-dark);
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* 图册页面 */
.gallery-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.gallery-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: -1rem 0 2rem;
    flex-wrap: wrap;
}

.btn-link {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid rgba(242, 140, 40, 0.35);
}

.btn-link:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    display: block;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: scale(0.9);
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover video {
    transform: scale(1.1);
}

.worksites-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.75rem;
}

.worksites-empty {
    grid-column: 1 / -1;
    padding: 2.5rem 1.25rem;
    text-align: center;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

html[data-theme="dark"] .worksites-empty {
    background: rgba(255, 255, 255, 0.05);
}

.worksites-skeleton {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(242, 140, 40, 0.12), rgba(255, 255, 255, 0.04));
    background-size: 240% 100%;
    animation: worksitesShimmer 1.35s ease infinite;
}

@keyframes worksitesShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.worksites-category-card {
    position: relative;
}

.worksites-category-cover {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.72), rgba(242, 140, 40, 0.35));
    background-size: cover;
    background-position: center;
}

.worksites-category-cover.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 1rem;
    text-align: center;
}

.worksites-category-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.worksites-category-title {
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.worksites-category-meta {
    font-weight: 700;
    font-size: 0.8rem;
    opacity: 0.86;
    letter-spacing: 0.01em;
}

.worksites-video-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem;
    text-align: center;
    background:
        radial-gradient(circle at 25% 25%, rgba(242, 140, 40, 0.28), rgba(17, 24, 39, 0.78) 60%),
        linear-gradient(180deg, rgba(17, 24, 39, 0.75), rgba(17, 24, 39, 0.9));
    color: rgba(255, 255, 255, 0.92);
}

.worksites-play {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
    position: relative;
}

.worksites-play::before {
    content: "";
    position: absolute;
    left: 28px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 20px solid rgba(255, 255, 255, 0.92);
}

.worksites-video-title {
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.25;
    opacity: 0.95;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.modal-content video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 0.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    background: #000;
}

.worksites-preview-card {
    text-decoration: none;
    color: inherit;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-view-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

html[data-theme="dark"] .gallery-view-btn {
    background: rgba(255, 255, 255, 0.10);
    color: var(--text-dark);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.gallery-view-btn:hover {
    transform: scale(1.1);
}

/* 图片查看器模态框 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.image-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    z-index: 2001;
    /* IMPORTANT:
       Keep a stable "stage" size so prev/next buttons don't shift when image size changes. */
    width: 90vw;
    height: 90vh;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Reserve space for side nav buttons so they don't overlap the image */
    padding: 0 clamp(56px, 7vw, 96px);
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* About / gallery modal: image + text说明纵向排布 */
.modal-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 100%;
    max-height: 90vh;
}

.modal-main img {
    max-height: 75vh;
}

.modal-caption {
    width: 100%;
    max-width: 960px;
    color: #e5e7eb;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.7;
}

.modal-caption-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    color: #f9fafb;
}

.modal-caption-desc {
    font-size: 0.95rem;
    opacity: 0.92;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 3rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.modal-prev {
    left: clamp(12px, 2vw, 24px);
}

.modal-next {
    right: clamp(12px, 2vw, 24px);
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

/* 产品详情页 */
.product-detail-section {
    padding: 4rem 0;
    background: white;
}

.breadcrumb {
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border-color);
    background: #f9fafb;
    border-radius: 999px;
    color: var(--text-light);
    font-size: 0.9rem;
}

html[data-theme="dark"] .breadcrumb {
    background: rgba(255, 255, 255, 0.04);
}

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

.breadcrumb a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

html[data-theme="dark"] .breadcrumb a {
    color: var(--text-dark);
}

.breadcrumb-sep {
    color: #9ca3af;
    font-weight: 700;
}

.breadcrumb-current {
    color: var(--text-dark);
    font-weight: 800;
}

@media (max-width: 640px) {
    .breadcrumb {
        border-radius: var(--radius-sm);
        padding: 0.6rem 0.85rem;
        max-width: 100%;
    }
}

.product-detail-content {
    display: grid;
    /* Use minmax(0, 1fr) so grid items can actually shrink.
       Without this, long unbreakable content can force horizontal overflow on mobile. */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
}

.product-images {
    position: sticky;
    top: 100px;
    min-width: 0;
}

.main-image {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-lg);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* show full image by default */
    padding: 12px;
    transition: var(--transition);
    cursor: zoom-in;
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
    gap: 0.5rem;
}

/* 产品详情页：缩略图滑动条（可配置每屏显示数量，超过时可左右滑动） */
.thumbnail-carousel {
    --thumbs-per-view: 4;
    --thumb-gap: 0.5rem;
    /* Cap thumbnail size so they don't become huge on wide screens */
    --thumb-max: 72px;
    position: relative;
}

.thumbnail-viewport {
    overflow: hidden;
}

.thumbnail-strip {
    display: flex;
    gap: var(--thumb-gap);
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 2px; /* keep focus ring visible */
    scrollbar-width: none; /* Firefox */
}

.thumbnail-strip::-webkit-scrollbar {
    display: none; /* WebKit */
}

/* Keep exactly N thumbnails visible within the viewport */
.thumbnail-carousel .thumbnail {
    /* More robust than flex-basis:min(...) (some environments drop that declaration and thumbs become huge). */
    flex: 0 0 auto;
    width: var(--thumb-max);
    height: var(--thumb-max);
    aspect-ratio: 1;
}

.thumb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-color);
    font-size: 22px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

html[data-theme="dark"] .thumb-nav {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(15, 23, 42, 0.78);
    color: var(--text-dark);
}

.thumb-nav:hover {
    transform: translateY(-50%) scale(1.06);
}

.thumb-nav:disabled {
    opacity: 0.45;
    cursor: default;
    transform: translateY(-50%);
    box-shadow: none;
}

.thumb-prev {
    left: -10px;
}

.thumb-next {
    right: -10px;
}

/* Only show arrows when JS decides they are needed */
.thumbnail-carousel.no-nav .thumb-nav {
    display: none;
}

.thumbnail-carousel.no-nav .thumbnail-strip {
    justify-content: center; /* when all thumbs fit, center them */
}

.thumbnail {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    opacity: 0.7;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
    transform: scale(1.03);
}

@media (max-width: 1024px) {
    .thumbnail-carousel {
        --thumb-max: 64px;
    }
}

@media (max-width: 640px) {
    .thumbnail-carousel {
        --thumb-max: 56px;
    }
}

.product-details {
    padding: 1rem 0;
    min-width: 0;
}

.product-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    /* Prevent long English titles from forcing horizontal overflow */
    overflow-wrap: anywhere;
    word-break: break-word;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stars {
    color: var(--accent-color);
    font-size: 1.25rem;
}

.product-price {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.price-value {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 2rem;
}

.product-description-full,
.product-specifications,
.product-features-list {
    margin-bottom: 2rem;
}

.product-description-full h3,
.product-specifications h3,
.product-features-list h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.spec-table-wrap {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

html[data-theme="dark"] .spec-table-wrap {
    background: rgba(255, 255, 255, 0.03);
}

.spec-table {
    width: 100%;
    min-width: 620px; /* keeps columns readable; wrapper will scroll on small screens */
    border-collapse: separate;
    border-spacing: 0;
}

.spec-table th,
.spec-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    font-size: 0.95rem;
    line-height: 1.4;
}

.spec-table thead th {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.14), rgba(16, 185, 129, 0.06));
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    white-space: nowrap;
}

.spec-table tbody th[scope="row"] {
    text-align: left;
    font-weight: 600;
    color: var(--text-light);
    background: rgba(0, 0, 0, 0.015);
    white-space: nowrap;
}

html[data-theme="dark"] .spec-table tbody th[scope="row"] {
    background: rgba(255, 255, 255, 0.03);
}

.spec-table tbody td {
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.spec-table tbody tr:nth-child(even) th[scope="row"],
.spec-table tbody tr:nth-child(even) td {
    background: rgba(0, 0, 0, 0.025);
}

html[data-theme="dark"] .spec-table tbody tr:nth-child(even) th[scope="row"],
html[data-theme="dark"] .spec-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.02);
}

.spec-table tbody tr:hover th[scope="row"],
.spec-table tbody tr:hover td {
    background: rgba(16, 185, 129, 0.08);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .spec-table th,
    .spec-table td {
        padding: 0.75rem 0.85rem;
        font-size: 0.9rem;
    }

    .spec-table {
        min-width: 560px;
    }
}

.product-features-list ul {
    list-style: none;
}

.product-features-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
}

.product-features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.25rem;
}

.product-actions-detail {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* 相关产品 */
.related-products {
    padding: 4rem 0;
    background: var(--bg-light);
    width: 100%;
}

.related-products .container {
    width: 100%;
}

/* 关于我们页面 */
.about-content-section {
    padding: 4rem 0;
    background: white;
}

.culture-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.culture-section .core-values-tagline {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--primary-color);
}

.culture-section .core-values-tagline span {
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(242, 140, 40, 0.45);
    background: linear-gradient(135deg, rgba(242, 140, 40, 0.14), rgba(242, 140, 40, 0.04));
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.10);
}

html[data-theme="dark"] .culture-section .core-values-tagline {
    color: rgba(252, 211, 77, 0.96);
}

html[data-theme="dark"] .culture-section .core-values-tagline span {
    border-color: rgba(252, 211, 77, 0.55);
    background: linear-gradient(135deg, rgba(252, 211, 77, 0.20), rgba(15, 23, 42, 0.60));
}

.culture-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0.5rem 0 2.25rem;
}

.culture-filter {
    appearance: none;
    border: 1px solid rgba(17, 24, 39, 0.14);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-dark);
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.08);
}

html[data-theme="dark"] .culture-filter {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
}

.culture-filter:hover {
    transform: translateY(-1px);
    border-color: rgba(242, 140, 40, 0.35);
}

.culture-filter.active {
    background: linear-gradient(90deg, rgba(242, 140, 40, 0.92), rgba(242, 140, 40, 0.78));
    border-color: rgba(242, 140, 40, 0.95);
    color: #fff;
    box-shadow: 0 14px 34px rgba(242, 140, 40, 0.20);
}

.culture-grid {
    display: grid;
    /* Desktop: 5 columns (10 items = 5 x 2 layout) */
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.5rem;
}

.culture-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(17, 24, 39, 0.06);
    background: #fff;
    cursor: pointer;
    transition: var(--transition);

    /* reveal animation baseline */
    opacity: 0;
    transform: translateY(22px);
}

html[data-theme="dark"] .culture-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.10);
}

.culture-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.culture-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.culture-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #fff;
}

.culture-media .culture-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10;
    pointer-events: none;
}

html[data-theme="dark"] .culture-media {
    background: rgba(255, 255, 255, 0.03);
}

.culture-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    position: relative;
    z-index: 0;
}

.culture-card:hover .culture-media img {
    transform: scale(1.06);
}

.culture-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.06) 0%, rgba(17, 24, 39, 0.55) 70%, rgba(17, 24, 39, 0.78) 100%);
    opacity: 0.95;
    pointer-events: none;
    z-index: 1;
}

html[data-theme="dark"] .culture-overlay {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.60) 70%, rgba(0, 0, 0, 0.82) 100%);
}

.culture-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.05rem 1.25rem 1.0rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-items: center;
    text-align: center;
    z-index: 2;
}

.culture-badge {
    display: inline-flex;
    width: fit-content;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(242, 140, 40, 0.92);
    color: #fff;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

/* Badge in caption (legacy support, if any) */
.culture-caption .culture-badge {
    position: static;
    margin-bottom: 0.5rem;
}

.culture-title {
    font-size: 1.02rem;
    line-height: 1.35;
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.40);

    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.culture-desc {
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.86);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.38);

    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* About page: keep cards简洁，只在弹窗里展示详细说明 */
.culture-section .culture-desc {
    display: none;
}

.culture-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 968px) {
    .culture-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .culture-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .culture-card,
    .culture-media img {
        transition: none;
    }
    .culture-card {
        transform: none;
        opacity: 1;
    }
    .culture-card:hover {
        transform: none;
    }
}

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image-large {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.about-image-large:hover img {
    transform: scale(1.05);
}

.about-text-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.about-text-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.company-advantages {
    padding: 4rem 0;
    background: var(--bg-light);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.advantage-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.advantage-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.advantage-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.advantage-card p {
    color: var(--text-light);
}

.timeline-section {
    padding: 4rem 0;
    background: white;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    width: 120px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

html[data-theme="dark"] .timeline-year {
    color: var(--text-dark);
}

.timeline-year::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--shadow);
}

html[data-theme="dark"] .timeline-year::before {
    background: var(--accent-color);
    border-color: #0f172a;
}

.timeline-content {
    flex: 1;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    margin: 0 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-item:hover .timeline-content {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.timeline-content p {
    color: var(--text-light);
}

/* 联系我们页面 */
.contact-content-section {
    padding: 4rem 0;
    background: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.contact-icon-large {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-info-card p {
    color: var(--text-light);
}

.wechat-qrcode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.wechat-qrcode {
    width: 180px;
    height: 180px;
    border-radius: var(--radius);
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wechat-qrcode:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wechat-qrcode-hint {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.contact-form-section {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.contact-form-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

html[data-theme="dark"] .contact-form input,
html[data-theme="dark"] .contact-form select,
html[data-theme="dark"] .contact-form textarea {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-dark);
    border-color: rgba(255, 255, 255, 0.14);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(242, 140, 40, 0.15);
}

.contact-form textarea {
    resize: vertical;
}

.contact-status {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: none;
}

.contact-status.info {
    display: block;
    background: rgba(59, 130, 246, 0.10);
    color: #1d4ed8;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.contact-status.success {
    display: block;
    background: rgba(16, 185, 129, 0.10);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.contact-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.10);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* 页脚 */
.footer {
    /* IMPORTANT: do NOT tie footer background to text variables (dark mode flips those) */
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
    width: 100%;
}

.footer .container {
    width: 100%;
}

html[data-theme="dark"] .footer {
    background: #050b16;
}

.footer .logo-text {
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* 响应式设计 */
@media (max-width: 968px) {
    .container {
        width: 100%;
        padding: 0 16px;
    }

    /* 确保导航栏在移动端始终可见 */
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        display: block !important;
        visibility: visible !important;
    }

    .navbar .container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100%;
        padding: 1rem 16px;
    }

    .nav-menu {
        position: fixed;
        top: var(--navbar-total-height);
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        z-index: 999;
    }

    html[data-theme="dark"] .nav-menu {
        background: rgba(15, 23, 42, 0.98);
        border-top: 1px solid rgba(255, 255, 255, 0.10);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-actions {
        order: -1;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .nav-controls {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .hamburger {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .product-detail-content,
    .about-intro,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Extra safety: prevent any accidental horizontal overflow within the product detail header */
    .product-detail-section,
    .product-detail-section .container {
        overflow-x: hidden;
    }

    /* 移动端产品详情页：图片区域不再sticky，正常流式布局 */
    .product-images {
        position: static;
        margin-bottom: 2rem;
        width: 100%;
        box-sizing: border-box;
    }

    /* Keep thumbnail nav buttons inside the viewport on mobile (avoid widening the section) */
    .thumb-prev { left: 6px; }
    .thumb-next { right: 6px; }

    .main-image {
        height: auto;
        min-height: 280px;
        max-height: 400px;
        width: 100%;
        box-sizing: border-box;
    }

    .product-detail-section {
        padding: 2rem 0;
    }

    .product-detail-section .container {
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .product-detail-content {
        width: 100%;
        box-sizing: border-box;
    }

    .product-details {
        width: 100%;
        box-sizing: border-box;
    }

    .product-title {
        font-size: 1.75rem;
    }

    .product-card-large {
        grid-template-columns: 1fr;
    }

    .product-card-large .product-image-wrapper {
        height: 300px;
        min-height: 300px;
    }

    .product-specs {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 60px;
    }

    .timeline-item {
        flex-direction: row !important;
    }

    .timeline-year {
        width: 120px;
    }

    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
        width: 100%;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .slider-controls {
        padding: 0 1rem;
    }

    .slider-btn {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    /* Products page (mobile): make product cards more compact */
    .filter-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.6rem;
        padding: 0.25rem 0.1rem;
        margin-bottom: 1.75rem;
    }
    .filter-tabs::-webkit-scrollbar { display: none; }
    .filter-tab {
        padding: 0.55rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .products-grid-full {
        gap: 1rem;
    }

    .product-card-large {
        border-radius: 14px;
        gap: 0;
    }

    .product-card-large .product-image-wrapper {
        height: 220px;
        min-height: 220px;
    }

    .product-card-large .product-image {
        padding: 10px;
    }

    .product-badge {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.35rem 0.75rem;
        font-size: 0.8rem;
    }

    .favorite-toggle {
        top: 0.7rem;
        left: 0.7rem;
        width: 38px;
        height: 38px;
    }
    .favorite-toggle::before {
        line-height: 38px;
        font-size: 1.15rem;
    }

    .product-card-large .product-info {
        padding: 1rem 1rem 1.05rem;
    }

    .product-card-large .product-name {
        font-size: 1.05rem;
        line-height: 1.25;
        margin-bottom: 0.55rem;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .product-card-large .product-description {
        font-size: 0.92rem;
        line-height: 1.55;
        margin: 0.25rem 0 0;
        color: var(--text-light);
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }

    .product-specs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
        margin: 0.95rem 0 0.85rem;
    }
    .spec-item {
        padding: 0.65rem 0.6rem;
        text-align: left;
    }
    .spec-label {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }
    .spec-value {
        font-size: 0.98rem;
    }

    .product-actions {
        flex-direction: column;
        gap: 0.6rem;
        margin-top: 0.85rem;
    }
    .product-actions .btn {
        width: 100%;
        padding: 0.75rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .related-products {
        width: 100%;
        padding: 2rem 0;
    }

    .related-products .container {
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .related-products .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
        margin-top: 2rem;
    }

    .related-products .product-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .footer {
        width: 100%;
        box-sizing: border-box;
    }

    .footer .container {
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 420px) {
    .product-card-large .product-image-wrapper {
        height: 190px;
        min-height: 190px;
    }
    .product-card-large .product-info {
        padding: 0.9rem 0.9rem 0.95rem;
    }
    .product-card-large .product-description {
        -webkit-line-clamp: 2;
    }
    .product-specs {
        grid-template-columns: 1fr;
    }
}

/* 核心价值观：响应式 */
@media (max-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .value-card {
        padding: 1.5rem 1.25rem;
    }
}