/* ============================================
   董小姐品牌宣传网站 — Premium Style Sheet
   Design: 柔和茶绿 + 温暖金 + Glass Morphism
   ============================================ */

/* === 主题色彩系统 === */
:root {
    /* 品牌主色 - 柔和茶绿系 (Soft Tea Green) */
    --primary: #6A9E7D;
    --primary-light: #8BBD9F;
    --primary-dark: #4D7A5E;
    --primary-rgb: 106, 158, 125;

    /* 品牌辅助色 - 温暖金 */
    --accent: #D4A843;
    --accent-light: #E8C56A;
    --accent-dark: #B8922E;
    --accent-rgb: 212, 168, 67;

    /* 中性色 */
    --text-primary: #1A1A2E;
    --text-secondary: #4A4A68;
    --text-muted: #8A8AA0;

    /* 背景系统 */
    --bg-main: #F5F8F5;
    --bg-section: #EFF3EE;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.08);
    --bg-hero: linear-gradient(135deg, #4D7A5E 0%, #6A9E7D 40%, #8BBD9F 100%);

    /* 边框与阴影 */
    --border-light: rgba(0, 0, 0, 0.06);
    --border-glass: rgba(255, 255, 255, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-glass: 0 8px 32px rgba(106, 158, 125, 0.15);

    /* 动画曲线 - Premium Feel */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-back: cubic-bezier(0.68, -0.6, 0.32, 1.6);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* 间距系统 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* 字号系统 */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;
    --text-hero: clamp(3rem, 8vw, 6rem);

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 100px;

    /* 布局 */
    --nav-height: 72px;
    --container-max: 1200px;
}

/* === 深色主题 === */
[data-theme="dark"] {
    --text-primary: #F0F0E8;
    --text-secondary: #C8C8B8;
    --text-muted: #8888A0;
    --bg-main: #0E1410;
    --bg-section: #141D16;
    --bg-card: rgba(28, 40, 32, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-hero: linear-gradient(135deg, #1A2E22 0%, #2A4A38 40%, #3A6A50 100%);
    --border-light: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.12);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glass: 0 8px 32px rgba(106, 158, 125, 0.2);
}

/* === 全局基础 === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text-primary);
    background: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s var(--ease-out-expo), color 0.4s var(--ease-out-expo);
}

::selection {
    background: rgba(var(--primary-rgb), 0.2);
    color: var(--primary);
}

/* === 导航栏右侧区域 === */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* === 语言切换器（导航栏内） === */
.lang-switcher {
    display: flex;
    gap: 2px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius-pill);
    padding: 3px;
    backdrop-filter: blur(12px);
    transition: all 0.4s var(--ease-out-expo);
}

[data-theme="dark"] .lang-switcher {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.navbar.scrolled .lang-switcher {
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.lang-btn {
    padding: 5px 13px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-pill);
    transition: all 0.3s var(--ease-out-expo);
    letter-spacing: 0.02em;
}

.navbar.scrolled .lang-btn {
    color: var(--text-secondary);
}

.lang-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

.navbar.scrolled .lang-btn.active {
    background: var(--primary);
    color: #fff;
}

.lang-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.navbar.scrolled .lang-btn:hover:not(.active) {
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary);
}

/* === 导航栏内主题切换 === */
.nav-theme-toggle {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    cursor: pointer;
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-out-expo);
}

[data-theme="dark"] .nav-theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.8);
}

.navbar.scrolled .nav-theme-toggle {
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    color: var(--text-secondary);
}

.nav-theme-toggle:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.navbar.scrolled .nav-theme-toggle:hover {
    background: rgba(var(--primary-rgb), 0.18);
    color: var(--primary);
}

/* === 导航栏 === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 100;
    background: rgba(var(--primary-rgb), 0);
    backdrop-filter: blur(0px);
    transition: all 0.4s var(--ease-out-expo);
}

.navbar.scrolled {
    background: rgba(var(--primary-rgb), 0.95);
    backdrop-filter: blur(30px);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(14, 20, 16, 0.95);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: #fff;
    font-size: var(--text-2xl);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 2px;
}

.brand-icon {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    color: #fff;
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-pill);
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent-light);
    border-radius: 2px;
}

.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

/* === Hero 区域 === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--bg-hero);
    overflow: hidden;
}

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

.hero-content {
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
    color: #fff;
    font-size: var(--text-sm);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s var(--ease-out-expo) both;
}

.badge-icon {
    font-size: 1.2rem;
}

.hero-title {
    color: #fff;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s both;
}

.title-line {
    display: block;
    font-size: var(--text-hero);
    font-weight: 800;
    letter-spacing: 8px;
    line-height: 1.1;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.title-sub {
    display: block;
    font-size: var(--text-2xl);
    font-weight: 400;
    letter-spacing: 4px;
    margin-top: var(--space-md);
    color: rgba(255, 255, 255, 0.85);
}

.hero-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--text-lg);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.4s both;
}

.hero-actions {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    margin-bottom: var(--space-3xl);
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.6s both;
}

.hero-stats {
    display: flex;
    gap: var(--space-3xl);
    justify-content: center;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.8s both;
}

.stat-item {
    text-align: center;
    color: #fff;
}

.stat-number {
    display: block;
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--accent-light);
}

.stat-unit {
    font-size: var(--text-lg);
    color: var(--accent-light);
    font-weight: 600;
}

.stat-label {
    display: block;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--space-xs);
}

.hero-scroll-hint {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
    animation: fadeInUp 0.8s var(--ease-out-expo) 1s both;
}

.scroll-arrow {
    animation: bounce 2s ease infinite;
    margin-top: var(--space-sm);
}

/* === 按钮系统 === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-2xl);
    font-size: var(--text-base);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.5);
    background: var(--accent-light);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn.full-width {
    width: 100%;
    justify-content: center;
}

/* === Glass Card 系统 === */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    transition: all 0.4s var(--ease-out-expo);
}

[data-theme="dark"] .glass-card {
    background: rgba(30, 42, 35, 0.85);
}

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

/* === Section 通用 === */
.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-4xl) var(--space-xl);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-badge {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-pill);
    margin-bottom: var(--space-lg);
}

[data-theme="dark"] .section-badge {
    background: rgba(var(--primary-rgb), 0.15);
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
}

.section-desc {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* === 产品中心 === */
.products {
    background: var(--bg-section);
}

.product-categories {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.cat-btn {
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.cat-btn.active,
.cat-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.product-img {
    height: 220px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--accent-rgb), 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .product-img {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(var(--accent-rgb), 0.2));
}

.product-img.has-image {
    padding: 0;
    background: none;
}

.product-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out-expo);
}

.product-card:hover .product-thumb {
    transform: scale(1.08);
}

.product-icon-fallback {
    font-size: 4rem;
    transition: transform 0.4s var(--ease-out-expo);
}

.product-card:hover .product-icon-fallback {
    transform: scale(1.15);
}

.product-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.05) 100%);
    pointer-events: none;
}

.product-info {
    padding: var(--space-lg);
}

.product-name {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.product-tag {
    display: inline-block;
    padding: 2px var(--space-sm);
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-size: var(--text-xs);
    border-radius: var(--radius-pill);
    margin-right: var(--space-xs);
}

.product-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: var(--space-sm);
    line-height: 1.5;
}

.product-price {
    margin-top: var(--space-md);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--accent);
}

/* === 品牌故事 === */
.story {
    background: var(--bg-main);
    position: relative;
}

.story-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: radial-gradient(circle at 20% 50%, rgba(var(--primary-rgb), 0.5) 0%, transparent 50%),
                      radial-gradient(circle at 80% 50%, rgba(var(--accent-rgb), 0.3) 0%, transparent 50%);
}

.story-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto var(--space-3xl);
    padding: var(--space-2xl) 0;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-2xl);
    position: relative;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
    padding-right: calc(50% + 40px);
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
    padding-left: calc(50% + 40px);
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: var(--text-xs);
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
    z-index: 2;
}

.marker-year {
    font-size: var(--text-xs);
    font-weight: 700;
}

.timeline-content {
    padding: var(--space-lg);
    width: 100%;
}

.timeline-content h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--primary);
}

.timeline-content p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* 品牌理念 */
.brand-values {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-xl);
}

.value-card {
    padding: var(--space-2xl);
    text-align: center;
    cursor: default;
}

.value-icon {
    width: 64px;
    height: 64px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-size: 1.5rem;
    color: var(--primary);
    transition: all 0.4s var(--ease-out-expo);
}

[data-theme="dark"] .value-icon {
    background: rgba(var(--primary-rgb), 0.15);
}

.value-card:hover .value-icon {
    transform: scale(1.2);
    background: var(--primary);
    color: #fff;
}

.value-card h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.value-card p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* === 新闻动态 === */
.news {
    background: var(--bg-section);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.news-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
}

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

.news-img {
    height: 200px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08), rgba(var(--accent-rgb), 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.news-img.has-image {
    padding: 0;
    background: none;
}

.news-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out-expo);
}

.news-card:hover .news-thumb {
    transform: scale(1.06);
}

.news-icon-fallback {
    font-size: 3rem;
    transition: transform 0.4s var(--ease-out-expo);
}

.news-card:hover .news-icon-fallback {
    transform: scale(1.1);
}

.news-date-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    background: rgba(var(--primary-rgb), 0.9);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.news-body {
    padding: var(--space-lg);
}

.news-title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.news-excerpt {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

.news-more {
    text-align: center;
    margin-top: var(--space-2xl);
}

/* === 联系我们 === */
.contact {
    background: var(--bg-main);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-2xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.info-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
}

.info-icon {
    width: 48px;
    height: 48px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

[data-theme="dark"] .info-icon {
    background: rgba(var(--primary-rgb), 0.15);
}

.info-detail h3 {
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.info-detail p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.contact-form {
    padding: var(--space-2xl);
}

.contact-form h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-xl);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-section);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    color: var(--text-primary);
    transition: all 0.3s var(--ease-out-expo);
    outline: none;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
    background: rgba(15, 20, 16, 0.8);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* === 页脚 === */
.footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-xl);
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: var(--space-3xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-2xl);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: var(--space-lg);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s var(--ease-out-expo);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.footer-col h4 {
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: rgba(255, 255, 255, 0.9);
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
    text-decoration: none;
    padding: var(--space-xs) 0;
    transition: all 0.3s var(--ease-out-expo);
}

.footer-col a:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-lg) var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
}

.admin-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: var(--text-xs);
    transition: color 0.3s;
}

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

/* === 回到顶部 === */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s var(--ease-out-expo);
    z-index: 50;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.4);
}

/* === Mobile Overlay === */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out-expo);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* === 弹窗 === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

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

.modal-content {
    max-width: 600px;
    width: 100%;
    padding: var(--space-2xl);
    position: relative;
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 36px;
    height: 36px;
    background: rgba(var(--primary-rgb), 0.1);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s var(--ease-out-expo);
}

.modal-close:hover {
    background: rgba(var(--primary-rgb), 0.2);
}

/* === Magnetic Effect === */
.magnetic-btn {
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
}

.magnetic-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

/* === 动画 === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 滚动触发动画 */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === 响应式 === */
@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .story-timeline::before {
        left: 24px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-marker {
        left: 24px;
    }
}

@media (max-width: 768px) {
    .nav-right {
        gap: 6px;
    }

    .lang-switcher {
        gap: 1px;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    .nav-theme-toggle {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: var(--primary-dark);
        flex-direction: column;
        padding: var(--space-3xl) var(--space-xl);
        gap: var(--space-md);
        z-index: 101;
        transition: right 0.4s var(--ease-out-expo);
    }

    .nav-links.mobile-open {
        right: 0;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-stats {
        gap: var(--space-xl);
    }

    .stat-number {
        font-size: var(--text-3xl);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: var(--text-3xl);
    }

    .brand-values {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    :root {
        --space-xl: 24px;
        --space-2xl: 32px;
        --space-3xl: 48px;
        --space-4xl: 64px;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .brand-values {
        grid-template-columns: 1fr;
    }

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

/* ============================================
   Toast 提示组件 — Premium
   ============================================ */
.premium-toast {
    position: fixed; bottom: 24px; right: 24px; padding: 14px 22px;
    border-radius: 12px; font-size: 0.92rem; font-weight: 600; z-index: 9999;
    display: flex; align-items: center; gap: 10px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
    animation: toastSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(calc(var(--toast-index, 0) * -68px));
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.01em; line-height: 1.4; max-width: 360px;
}
.premium-toast .toast-icon {
    font-size: 1.15rem; font-weight: 700; flex-shrink: 0;
    width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.premium-toast.toast-out { opacity: 0; transform: translateY(-12px) scale(0.95); }

.toast-success { background: rgba(52,199,89,0.92); color: #fff; }
.toast-success .toast-icon { background: rgba(255,255,255,0.25); }

.toast-error { background: rgba(255,59,48,0.92); color: #fff; }
.toast-error .toast-icon { background: rgba(255,255,255,0.25); }

.toast-warning { background: rgba(255,159,10,0.92); color: #fff; }
.toast-warning .toast-icon { background: rgba(255,255,255,0.25); }

.toast-info { background: rgba(106,158,125,0.92); color: #fff; }
.toast-info .toast-icon { background: rgba(255,255,255,0.25); }

@keyframes toastSlideUp {
    from { opacity: 0; transform: translateY(24px) scale(0.92); }
    to { opacity: 1; transform: translateY(calc(var(--toast-index, 0) * -68px)) scale(1); }
}

[data-theme="dark"] .premium-toast {
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.2);
}
