/* 申宇健康企业官网样式表 */
/* 参考 aokezn.com 风格：干净、专业、健康科技风 */

:root {
    /* 品牌主色：墨绿（强调色、按钮、链接高亮） */
    --primary: #2F7A57;
    --primary-light: #4A9B75;
    /* 按钮颜色 */
    --btn-primary: #2F7A57;
    --btn-primary-light: #4A9B75;
    --accent: #2F7A57;
    --accent-light: #4A9B75;
    /* 文字与深色背景 */
    --dark: #523E2E;
    --text: #523E2E;
    --text-muted: #7D6B5D;
    /* 页面背景 */
    --bg: #F8F5F0;
    --bg-soft: #EFEBE5;
    --white: #FFFFFF;
    --border: #D9D3C8;
    --shadow: 0 4px 20px rgba(82, 62, 46, 0.08);
    --shadow-hover: 0 12px 32px rgba(82, 62, 46, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --max-width: 1760px;
    --header-height: 72px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(32px, 5vw, 96px);
}

.section {
    padding: 80px 0;
}

.section-bg {
    background: var(--bg);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px;
}

.section-label {
    display: inline-block;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.section-desc {
    color: var(--text-muted);
    font-size: 17px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--btn-primary);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(47, 122, 87, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(47, 122, 87, 0.35);
}

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

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

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

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

.btn-sm {
    padding: 10px 24px;
    font-size: 14px;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(248, 245, 240, 0.98);
    border-bottom: 1px solid rgba(217, 211, 200, 0.6);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 22px;
    color: var(--dark);
}

.logo-img {
    height: 62px;
    width: auto;
    display: block;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    border-radius: 10px;
    font-size: 16px;
    letter-spacing: -1px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 38px;
}

.main-nav a {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text);
    position: relative;
    padding: 8px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* 导航下拉子菜单 */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown-label {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-caret {
    background: none;
    border: none;
    color: var(--text);
    font-size: 12px;
    line-height: 1;
    padding: 0 0 0 4px;
    margin: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: none;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 160px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(47, 122, 87, 0.15);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 100;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 2px;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: rgba(47, 122, 87, 0.06);
    color: var(--primary);
}

.dropdown-menu a::after {
    display: none;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
}

/* 语言切换按钮（中 / EN） */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--white);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    color: var(--text-muted);
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
}

.lang-switch:hover {
    border-color: var(--accent);
    color: var(--primary);
}

.lang-opt {
    padding: 2px 4px;
    border-radius: 50px;
    color: var(--text-muted);
    transition: color 0.2s ease, background 0.2s ease;
}

.lang-opt.active {
    color: var(--white);
    background: var(--primary);
}

.lang-sep {
    color: var(--border);
    font-weight: 400;
}

.menu-toggle {
    display: none;
    width: 32px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Flash messages */
.flash-container {
    padding-top: 24px;
}

.flash {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 12px;
    font-size: 14px;
}

.flash-success { background: #C6F6D5; color: #22543D; }
.flash-danger { background: #FED7D7; color: #742A2A; }
.flash-warning { background: #FEEBC8; color: #744210; }
.flash-info { background: #BEE3F8; color: #2A4365; }

/* Hero */
.hero {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    margin-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    color: var(--text);
    padding: 80px 0;
    display: none;
}

.hero-label {
    display: inline-block;
    background: rgba(47, 122, 87, 0.08);
    backdrop-filter: blur(4px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 24px;
    border: 1px solid rgba(47, 122, 87, 0.15);
    color: var(--primary);
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-title span {
    color: var(--primary);
}

.hero-desc {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 36px;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 48px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.hero-stat strong {
    display: block;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 4px;
}

.hero-stat span {
    font-size: 14px;
    opacity: 0.85;
}

/* Stats bar */
.stats-bar {
    background: linear-gradient(rgba(248, 245, 240, 0.25), rgba(248, 245, 240, 0.25)), url('../images/wood-texture.jpg') center/cover fixed;
    color: var(--text);
    padding: 48px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item h3 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 15px;
    opacity: 0.9;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.card-category {
    background: rgba(0, 180, 216, 0.1);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 600;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-text {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 16px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.card-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

/* Products */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.product-card .card-image {
    background: var(--bg);
    aspect-ratio: 4/3;
}

.product-card .card-image img {
    object-fit: cover;
}

.product-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 16px 0;
}

.product-spec {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.product-spec svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
    flex-shrink: 0;
}

/* Product modules - alternating horizontal layout */
.product-section {
    padding: 0;
    background: var(--white);
    /* 飞入动画初始态（translateX）会撑出横向溢出，此处裁剪；clip 不影响纵向滚动 */
    overflow-x: hidden;
    overflow-x: clip;
}

.product-module {
    padding: 90px 0;
}

.product-module:nth-child(even) {
    background: var(--bg-soft);
}

.product-module-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
}

.product-module-reverse .product-module-gallery {
    order: 2;
}

.product-module-reverse .product-module-body {
    order: 1;
}

.product-module-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-module-gallery img {
    max-width: 100%;
    max-height: 480px;
    object-fit: contain;
    margin: 0 auto;
    transition: transform 0.5s ease;
}

.product-module:hover .product-module-gallery img {
    transform: scale(1.03);
}

.product-module-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 28px;
    line-height: 1.2;
}

.product-module-specs {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: product-spec;
}

.product-module-specs li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    counter-increment: product-spec;
}

.product-module-specs li::before {
    content: counter(product-spec) "、";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--text);
    font-weight: 500;
}

.product-module-specs li strong {
    color: var(--dark);
    font-weight: 600;
    margin-right: 4px;
}

.product-module-extra {
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-muted);
}

.product-module-extra strong {
    color: var(--dark);
    font-weight: 600;
}

.product-module-actions {
    margin-top: 34px;
}

.product-module-actions .btn {
    padding: 13px 36px;
    font-size: 15px;
}

/* 产品模块滚动飞入动画（仅在 JS 可用时启用，避免无脚本时内容不可见） */
.js-anim .product-module .product-module-gallery {
    opacity: 0;
    transform: translateX(-90px) scale(0.94);
    transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}

.js-anim .product-module-reverse .product-module-gallery {
    transform: translateX(90px) scale(0.94);
}

.js-anim .product-module-body > * {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}

.js-anim .product-module.is-visible .product-module-gallery {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.js-anim .product-module.is-visible .product-module-body > * {
    opacity: 1;
    transform: translateY(0);
}

/* 文字块依次入场，形成层次感 */
.js-anim .product-module.is-visible .product-module-body > *:nth-child(1) { transition-delay: 0.15s; }
.js-anim .product-module.is-visible .product-module-body > *:nth-child(2) { transition-delay: 0.25s; }
.js-anim .product-module.is-visible .product-module-body > *:nth-child(3) { transition-delay: 0.35s; }
.js-anim .product-module.is-visible .product-module-body > *:nth-child(4) { transition-delay: 0.45s; }
.js-anim .product-module.is-visible .product-module-body > *:nth-child(5) { transition-delay: 0.55s; }

/* 减弱动效偏好：直接显示，不做动画 */
@media (prefers-reduced-motion: reduce) {
    .js-anim .product-module .product-module-gallery,
    .js-anim .product-module-body > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Cases */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.case-result {
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
}

/* Solutions */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.solution-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--border);
}

.solution-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-light);
}

.solution-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.solution-code {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 180, 216, 0.1);
    color: var(--primary);
    border-radius: 12px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.solution-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.solution-price {
    font-size: 15px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.solution-fit {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.solution-features {
    list-style: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.solution-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 10px;
}

.solution-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
}

/* News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.news-card .card-image {
    aspect-ratio: 16/10;
}

.news-card .card-title {
    font-size: 17px;
}

/* About section on home */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    width: 100%;
    max-width: 640px;
    aspect-ratio: 4/3;
    flex-shrink: 0;
    background: var(--bg-card);
    justify-self: end;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-content .section-header {
    text-align: left;
    margin-left: 0;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 32px 0;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.about-feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 180, 216, 0.1);
    color: var(--primary);
    border-radius: 10px;
    font-size: 18px;
    flex-shrink: 0;
}

.about-feature h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.about-feature p {
    font-size: 14px;
    color: var(--text-muted);
}

/* CTA */
.cta-section {
    background: linear-gradient(rgba(248, 245, 240, 0.25), rgba(248, 245, 240, 0.25)), url('../images/wood-texture.jpg') center/cover fixed;
    color: var(--text);
    text-align: center;
    padding: 80px 0;
}

.cta-section .section-title {
    color: var(--text);
}

.cta-section .section-desc {
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Page banner */
.page-banner {
    position: relative;
    padding: 140px 0 80px;
    margin-top: var(--header-height);
    background: linear-gradient(rgba(248, 245, 240, 0.25), rgba(248, 245, 240, 0.25)), url('../images/wood-texture.jpg') center/cover;
    color: var(--text);
    text-align: center;
}

.page-banner h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-banner p {
    font-size: 17px;
    opacity: 0.9;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    font-size: 14px;
    opacity: 0.8;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Filter bar */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 22px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: var(--btn-primary);
    color: var(--white);
    border-color: var(--btn-primary);
}

/* Detail pages */
.detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.detail-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg);
    box-shadow: var(--shadow);
}

.detail-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.detail-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.detail-meta span {
    background: var(--bg);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    color: var(--text-muted);
}

.detail-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.detail-content {
    color: var(--text);
    font-size: 16px;
    line-height: 1.9;
}

.detail-content p {
    margin-bottom: 16px;
}

.detail-content h2,
.detail-content h3 {
    color: var(--dark);
    margin: 28px 0 16px;
}

.detail-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 32px 0;
}

.detail-spec {
    background: var(--bg);
    padding: 18px;
    border-radius: var(--radius);
}

.detail-spec dt {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.detail-spec dd {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
}

/* Contact page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
}

.contact-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-item svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 500;
}

.contact-info-item p {
    font-size: 17px;
    font-weight: 600;
    color: var(--dark);
}

.contact-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

/* Footer */
.site-footer {
    background: var(--bg-soft);
    color: var(--text);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.footer-brand .logo {
    color: var(--text);
    margin-bottom: 20px;
}

.footer-slogan {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--text);
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.7;
    color: var(--text-muted);
}

.footer-contact span {
    color: var(--text-muted);
}

.footer-contact a {
    color: var(--primary);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-beian {
    margin-top: 8px;
    font-size: 13px;
}

.footer-beian a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-beian a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* 404 */
.error-page {
    text-align: center;
    padding: 120px 20px;
}

.error-page h1 {
    font-size: 120px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.error-page h2 {
    font-size: 28px;
    color: var(--dark);
    margin: 20px 0 12px;
}

.error-page p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Utility */
.text-center { text-align: center; }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }

/* Responsive */
@media (max-width: 1024px) {
    .product-grid,
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .solution-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-section,
    .detail-container,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-module {
        padding: 64px 0;
    }
    .product-module-inner {
        gap: 50px;
    }
    .product-module-gallery img {
        max-height: 340px;
    }
    .product-module-title {
        font-size: 30px;
        margin-bottom: 22px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }
    .logo-img {
        height: 50px;
    }
    .section {
        padding: 56px 0;
    }
    .section-title {
        font-size: 28px;
    }
    .hero {
        display: block;
        min-height: auto;
    }
    .hero-bg {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        min-height: auto;
        z-index: 0;
    }
    .hero-bg img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    .hero-overlay {
        display: none;
    }
    .hero-content {
        position: relative;
        max-width: 100%;
        color: var(--text);
        padding: 32px 0 48px;
        text-align: center;
    }
    .hero-label {
        background: rgba(47, 122, 87, 0.08);
        border-color: rgba(47, 122, 87, 0.15);
        color: var(--primary);
    }
    .hero-title span {
        color: var(--primary);
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-actions .btn-white {
        background: var(--btn-primary);
        color: var(--white);
    }
    .hero-actions .btn-outline {
        color: var(--btn-primary) !important;
        border-color: var(--btn-primary) !important;
    }
    .hero-stats {
        flex-direction: column;
        gap: 24px;
        justify-content: center;
        border-color: var(--border);
    }
    .hero-stat strong {
        color: var(--primary);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-grid,
    .case-grid,
    .news-grid,
    .solution-grid {
        grid-template-columns: 1fr;
    }
    .about-features {
        grid-template-columns: 1fr;
    }
    .page-banner {
        padding: 100px 0 60px;
    }
    .page-banner h1 {
        font-size: 30px;
    }
    .detail-title {
        font-size: 26px;
    }
    .detail-specs,
    .form-row {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    .footer-brand,
    .footer-contact {
        grid-column: 1 / -1;
    }
    .footer-links h4 {
        margin-bottom: 16px;
    }
    .header-phone span {
        display: none;
    }
    .menu-overlay {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: transparent;
        opacity: 0;
        visibility: hidden;
        z-index: 999;
    }
    body.menu-open .menu-overlay {
        opacity: 1;
        visibility: visible;
    }
    .main-nav {
        position: absolute;
        top: 100%;
        right: 12px;
        left: auto;
        bottom: auto;
        width: 220px;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        gap: 2px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
        box-shadow: 0 12px 40px rgba(11, 40, 57, 0.18);
        border: 1px solid rgba(226, 232, 240, 0.8);
        z-index: 1100;
        max-height: calc(100vh - var(--header-height) - 24px);
        overflow-y: auto;
        border-radius: 14px;
    }
    .main-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .main-nav a {
        width: 100%;
        padding: 11px 12px;
        font-size: 15px;
        font-weight: 500;
        color: var(--dark);
        text-align: left;
        border-bottom: none;
        border-radius: 9px;
        transition: background 0.2s ease, color 0.2s ease;
    }
    .main-nav a:hover,
    .main-nav a.active {
        color: var(--primary);
        background: rgba(47, 122, 87, 0.06);
    }
    .nav-dropdown {
        position: relative;
        width: 100%;
        flex-wrap: wrap;
    }
    .nav-dropdown > a {
        width: 100%;
        padding-right: 36px;
    }
    .dropdown-caret {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 3px;
        top: 8px;
        transform: none;
        width: 30px;
        height: 30px;
        font-size: 12px;
        color: var(--text-muted);
        background: rgba(47, 122, 87, 0.08);
        border-radius: 50%;
        border: none;
        padding: 0;
        margin: 0;
        cursor: pointer;
        z-index: 2;
        transition: transform 0.25s ease, color 0.2s ease, background 0.2s ease;
    }
    .dropdown-caret:active {
        background: rgba(47, 122, 87, 0.14);
    }
    .nav-dropdown.open .dropdown-caret {
        transform: rotate(180deg);
    }
    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 4px 0 4px 12px;
        opacity: 1;
        visibility: visible;
        display: none;
        width: 100%;
        min-width: auto;
    }
    .dropdown-menu::before {
        display: none;
    }
    .nav-dropdown.open .dropdown-menu {
        display: block;
    }
    /* 覆盖桌面端 hover 规则的 translateX(-50%)，触摸设备点击后会残留 hover 态 */
    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown.open .dropdown-menu {
        transform: none;
    }
    .dropdown-menu a {
        padding: 10px 12px;
        font-size: 15px;
        border-bottom: none;
        color: var(--text);
        border-radius: 8px;
    }
    .dropdown-menu a:hover,
    .dropdown-menu a.active {
        background: rgba(47, 122, 87, 0.06);
        color: var(--primary);
    }
    .nav-dropdown.open > a {
        color: var(--primary);
        background: rgba(47, 122, 87, 0.04);
    }
    .nav-dropdown.open .dropdown-caret {
        color: var(--primary);
        background: rgba(47, 122, 87, 0.1);
    }
    .product-module {
        padding: 48px 0;
    }
    .product-module-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .container {
        padding: 0 24px;
    }
    .product-module-reverse .product-module-gallery,
    .product-module-reverse .product-module-body {
        order: 0;
    }
    .product-module-gallery img {
        max-height: 260px;
    }
    .product-module-title {
        font-size: 26px;
        margin-bottom: 18px;
    }
    .product-module-specs li {
        font-size: 14px;
        padding-left: 26px;
        margin-bottom: 10px;
    }
    .product-module-extra {
        font-size: 14px;
    }
    .product-module-actions .btn {
        width: 100%;
        text-align: center;
    }
    /* 移动端改为纵向飞入，避免横向位移造成溢出 */
    .js-anim .product-module .product-module-gallery,
    .js-anim .product-module-reverse .product-module-gallery {
        transform: translateY(44px) scale(0.96);
    }
    .js-anim .product-module.is-visible .product-module-gallery {
        transform: translateY(0) scale(1);
    }
    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    .hero-desc {
        font-size: 16px;
    }
    .section-title {
        font-size: 24px;
    }
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    .contact-form {
        padding: 24px;
    }
}
