/* FCB FOREST CURE BIOTECH - 全站样式 */
/* 高端生物科技品牌 - Apple风格 + 奢华暗黑设计 */

/* ==================== 重置与基础 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 暗黑奢华配色体系 */
    --bg-primary: #070c09;          /* 极深墨绿黑 */
    --bg-secondary: #0d1610;        /* 深墨绿 */
    --bg-card: #111a13;             /* 卡片背景 */
    --theme-green: #2d8a4e;         /* 主题墨绿 */
    --bright-green: #3dbd6a;        /* 亮绿高光 */
    --aurora-green: #00ff88;        /* 极光绿（点缀用） */
    --text-white: #f0f4f1;          /* 暖白文字 */
    --text-gray: #8fa898;           /* 暗灰绿文字 */
    --gold-accent: #c8a96e;         /* 金色点缀 */
    --border-color: rgba(45,138,78,0.15);
    
    /* 渐变 */
    --gradient-bg: linear-gradient(135deg, #070c09, #0d1610);
    --gradient-card: linear-gradient(145deg, #111a13, #0d1610);
    --gradient-button: linear-gradient(135deg, #2d8a4e, #3dbd6a);
    
    /* 间距 */
    --section-padding: 120px 5%;
    --container-max: 1400px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-primary);
    color: var(--text-white);
    line-height: 1.8;
    font-size: 16px;
    overflow-x: hidden;
}

/* 防止标题孤字独行 */
h1, h2, h3, h4, h5, h6, .hero-title, .hero-subtitle, .section-title, .card-title {
    word-break: keep-all;
    text-wrap: balance;
}

/* ==================== 导航栏 ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 5%;
    background: rgba(7,12,9,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 15px 5%;
    background: rgba(7,12,9,0.95);
}

.navbar .container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
}

.logo-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: all 0.3s ease;
    /* 圆形logo，无需border-radius */
}

.logo:hover .logo-icon {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px rgba(0, 255, 136, 0.6));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo .brand-name {
    font-size: 22px;
    letter-spacing: 0.15em;
    color: var(--text-white);
    text-transform: uppercase;
}

.logo .brand-cn {
    font-size: 11px;
    color: var(--text-gray);
    letter-spacing: 0.1em;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    gap: 45px;
    list-style: none;
    align-items: center;
}

/* 导航栏项目间距响应式调整 */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 25px;
    }
    .nav-menu a {
        font-size: 13px;
    }
}

.nav-menu a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--bright-green);
}

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

.nav-menu a:hover::after {
    width: 100%;
}

.lang-switch {
    font-size: 13px;
    color: var(--text-gray);
    cursor: pointer;
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.lang-switch:hover {
    border-color: var(--bright-green);
    color: var(--bright-green);
    background: rgba(61,189,106,0.1);
    transform: translateY(-1px);
}

/* 移动端汉堡菜单 */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-white);
    transition: all 0.3s ease;
}

/* ==================== Hero大横幅 ==================== */
.hero {
    min-height: auto; /* 改为auto，允许内容自然延伸，不强制一屏 */
    display: flex;
    align-items: flex-start; /* 顶部对齐 */
    justify-content: center;
    position: relative;
    overflow: visible; /* 改为visible，允许内容溢出可见 */
    padding: 200px 5% 80px; /* 增加顶部padding到200px，确保第一行文字完全显示 */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-bg);
    z-index: -2;
}

/* 动态粒子画布 */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    padding: 10px 5% 0; /* 减小顶部内边距到10px */
    animation: fadeInUp 1.2s ease;
    width: 100%;
    margin-top: 0; /* 确保内容从顶部开始 */
    position: relative; /* 确保正常定位 */
    z-index: 10; /* 确保在背景和粒子之上 */
}

.hero-tag {
    font-size: 13px;
    letter-spacing: 0.25em;
    color: var(--gold-accent);
    text-transform: uppercase;
    margin-top: 10px; /* 减小上边距 */
    margin-bottom: 15px; /* 减小下边距 */
    font-weight: 600;
    opacity: 1; /* 确保完全可见 */
    display: inline-block; /* 确保盒模型正常 */
    padding: 8px 20px; /* 增加一些内边距，使标签更明显 */
    background: rgba(255, 215, 0, 0.1); /* 添加轻微背景色，增加可见性 */
    border-radius: 20px;
    position: relative; /* 确保正常定位 */
    z-index: 10; /* 确保在其他元素之上 */
}

.hero-title {
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px; /* 减小间距 */
    background: linear-gradient(135deg, var(--text-white), var(--bright-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 28px);
    color: var(--text-gray);
    margin-bottom: 10px; /* 减小间距 */
    font-weight: 400;
}

.hero-subtitle-en {
    font-size: clamp(12px, 1.5vw, 16px);
    color: var(--text-gray);
    letter-spacing: 0.05em; /* 减小字间距，适配中文 */
    margin-bottom: 30px; /* 减小与图片的间距 */
    opacity: 0.7;
    font-weight: 400;
}

.hero-visual {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-visual img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-visual img:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 255, 136, 0.3) !important;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 40px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-button);
    color: var(--text-white);
    box-shadow: 0 8px 30px rgba(45,138,78,0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 45px rgba(61,189,106,0.5);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 5px 20px rgba(45,138,78,0.4);
}

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

.btn-outline:hover {
    background: var(--theme-green);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45,138,78,0.3);
}

.btn-outline:active {
    transform: translateY(0);
}

/* 滚动提示 */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator::after {
    content: '';
    display: block;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--theme-green), transparent);
    margin: 10px auto;
}

/* ==================== 数字亮点条 ==================== */
.stats-bar {
    padding: 50px 5%;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 25px 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 140px;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(61,189,106,0.05);
}

.stat-number {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    color: var(--bright-green);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
    line-height: 1.1;
    white-space: nowrap;
}

.stat-label {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    letter-spacing: 0.01em;
}

/* ==================== 通用Section样式 ==================== */
section {
    padding: var(--section-padding);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-tag {
    font-size: 13px;
    letter-spacing: 0.2em;
    color: var(--gold-accent);
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 600;
}

.section-title {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 25px;
    color: var(--text-white);
}

.section-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-gray);
    line-height: 1.9;
    margin-bottom: 50px;
    max-width: 800px;
    letter-spacing: 0.015em;
}

/* ==================== 技术演进故事（全屏交替） ==================== */
.tech-story {
    background: var(--bg-primary);
}

.story-slide {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 5%;
    position: relative;
    overflow: hidden;
    gap: 60px;
}

.story-slide:nth-child(even) {
    background: var(--bg-secondary);
    flex-direction: row-reverse;
}

.story-content {
    flex: 1;
    max-width: 550px;
    z-index: 2;
}

.story-number {
    font-size: 100px;
    font-weight: 900;
    color: rgba(45,138,78,0.12);
    line-height: 0.8;
    margin-bottom: 15px;
}

.story-title {
    font-size: clamp(26px, 3.2vw, 42px);
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.story-description {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.85;
    margin-bottom: 30px;
    letter-spacing: 0.01em;
}

.story-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 400px;
}

.story-visual-placeholder {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1;
    background: var(--gradient-card);
    border-radius: 25px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.story-visual-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-visual-placeholder svg {
    width: 60%;
    height: 60%;
    opacity: 0.3;
}

/* ==================== 卡片网格 ==================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    cursor: default;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--bright-green);
    box-shadow: 0 25px 70px rgba(45,138,78,0.3), 0 0 0 1px rgba(61,189,106,0.2);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-button);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 28px;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-white);
}

.card-description {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ==================== Footer ==================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 80px 5% 30px;
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--bright-green);
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--bright-green);
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-gray);
    font-size: 13px;
}

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

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

/* ==================== 响应式 ==================== */

/* ========== 新增：折叠屏全面支持 ========== */

/* 1. 小尺寸折叠屏竖屏（窄屏，如Galaxy Z Flip合起来 280-380px） */
@media (max-width: 380px) {
    .navbar {
        padding: 10px 3%;
    }
    
    .logo .brand-name {
        font-size: 13px;
        letter-spacing: 0.03em;
    }
    
    .logo .brand-cn {
        font-size: 7px;
    }
    
    .logo-icon {
        width: 30px;
        height: 30px;
    }
    
    .logo {
        gap: 6px;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-toggle span {
        width: 20px;
        height: 2px;
    }
    
    .hero-title {
        font-size: 28px !important;
    }
    
    .hero-subtitle {
        font-size: 14px !important;
    }
}

/* 2. 折叠屏竖屏展开状态（中等宽度，如Galaxy Z Fold展开竖屏 520-680px） */
@media (min-width: 520px) and (max-width: 680px) and (orientation: portrait) {
    .navbar {
        padding: 15px 4%;
    }
    
    .logo .brand-name {
        font-size: 17px;
    }
    
    .logo .brand-cn {
        font-size: 9px;
    }
    
    .logo-icon {
        width: 42px;
        height: 42px;
    }
    
    .mobile-toggle {
        display: flex;
    }
}

/* 3. 折叠屏横屏合起来（窄屏横屏 480-680px x <400px） */
@media (min-width: 480px) and (max-width: 680px) and (max-height: 400px) and (orientation: landscape) {
    .navbar {
        padding: 8px 3%;
    }
    
    .logo .brand-name {
        font-size: 14px;
    }
    
    .logo .brand-cn {
        display: none; /* 极窄横屏隐藏副标题 */
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        top: 50px;
        height: calc(100vh - 50px);
        padding: 20px 0;
        gap: 12px;
    }
    
    .hero {
        min-height: 80vh !important;
        padding: 40px 3% !important;
    }
}

/* 4. 三折叠屏竖屏（如Mate X3折起来，较窄 420-520px） */
@media (min-width: 420px) and (max-width: 520px) and (orientation: portrait) {
    .navbar {
        padding: 12px 4%;
    }
    
    .logo .brand-name {
        font-size: 15px;
    }
    
    .logo .brand-cn {
        font-size: 8px;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
    }
    
    .mobile-toggle {
        display: flex;
    }
}

/* 5. 三折叠屏横屏展开（超宽屏 >1200px，但高度较低 <700px） */
@media (min-width: 1200px) and (max-height: 700px) and (orientation: landscape) {
    .navbar {
        padding: 10px 5%;
    }
    
    .hero {
        min-height: 85vh !important;
        padding-top: 50px !important;
    }
    
    .hero-title {
        font-size: 48px !important;
        margin-bottom: 15px !important;
    }
    
    .hero-subtitle {
        font-size: 18px !important;
    }
    
    /* 保持桌面端导航栏显示 */
    .mobile-toggle {
        display: none;
    }
    
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        padding: 0;
        gap: 30px;
    }
}

/* 6. 折叠屏横屏展开（中等宽度 768-1024px，高度 <600px） */
@media (min-width: 768px) and (max-width: 1024px) and (max-height: 600px) and (orientation: landscape) {
    .navbar {
        padding: 10px 4%;
    }
    
    .logo .brand-name {
        font-size: 16px;
    }
    
    .logo .brand-cn {
        font-size: 9px;
    }
    
    .logo-icon {
        width: 38px;
        height: 38px;
    }
    
    /* 横屏折叠屏展开时使用汉堡菜单 */
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        top: 55px;
        width: 300px;
        right: 0;
        left: auto;
        height: calc(100vh - 55px);
    }
    
    .nav-menu.active {
        left: auto;
        right: 0;
    }
}

/* 横屏模式优化 - 折叠屏展开横屏（高度小宽度大的情况） */
@media (max-height: 900px) and (orientation: landscape) and (max-width: 1400px) {
    /* 横屏且宽度不超过1400px时启用汉堡菜单 */
    .mobile-toggle {
        display: flex !important;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 350px; /* 横屏时菜单宽度固定 */
        height: calc(100vh - 70px);
        background: rgba(13,22,16,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 30px 0;
        gap: 15px;
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        font-size: 16px !important;
        padding: 10px 30px;
    }
}

/* 横屏模式通用优化（所有横屏） */
@media (max-height: 900px) and (orientation: landscape) {
    /* 横屏时缩小导航栏高度 */
    .navbar {
        padding: 12px 5% !important;
    }
    
    .logo .brand-name {
        font-size: 18px !important;
    }
    
    .logo .brand-cn {
        font-size: 9px !important;
    }
    
    .logo-icon {
        width: 42px !important;
        height: 42px !important;
    }
    
    /* 横屏时Hero区域优化 */
    .hero {
        min-height: 500px !important;
        padding-top: 60px !important;
    }
    
    .hero-title {
        font-size: clamp(32px, 5vw, 56px) !important;
    }
    
    .hero-subtitle {
        font-size: clamp(16px, 2vw, 22px) !important;
    }
    
    /* 横屏时section padding */
    :root {
        --section-padding: 60px 5%;
    }
}

/* 全局响应式规则 - 1024px以下全部强制单列 */
@media (max-width: 1024px) {
    /* 强制所有grid布局为单列 */
    div[style*="display: grid"],
    div[style*="grid-template-columns"],
    section[style*="display: grid"] {
        grid-template-columns: 1fr !important;
    }
}

/* 折叠屏展开状态和中等屏幕优化 (769px-1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    :root {
        --section-padding: 80px 5%;
    }
    
    /* 导航栏优化 - 折叠屏展开时 */
    .nav-menu {
        gap: 15px; /* 减小间距避免重叠 */
    }
    
    .nav-menu a {
        font-size: 12px; /* 缩小字体 */
        white-space: nowrap; /* 防止换行 */
    }
    
    .logo .brand-name {
        font-size: 18px;
    }
    
    .logo .brand-cn {
        font-size: 10px;
    }
    
    .logo-icon {
        width: 45px;
        height: 45px;
    }
    
    .card-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* 强制所有Grid布局为单列 */
    [style*="display: grid"],
    [style*="grid-template-columns"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
    
    /* 确保内联样式也被覆盖 */
    div[style*="grid-template-columns: repeat"] {
        grid-template-columns: 1fr !important;
    }
}

/* 窄屏折叠屏展开状态 (769px-900px) - 使用汉堡菜单 */
@media (max-width: 900px) and (min-width: 769px) {
    /* 在这个范围启用汉堡菜单，避免导航项重叠 */
    .mobile-toggle {
        display: flex !important;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(13,22,16,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 0;
        gap: 20px;
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-menu a {
        font-size: 16px !important; /* 恢复正常大小 */
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .lang-switch {
        font-size: 13px;
    }
    
    /* 额外确保单列布局 */
    [style*="minmax(300px"],
    [style*="minmax(320px"],
    [style*="minmax(350px"],
    [style*="minmax(380px"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 40px 5%; /* 从60px缩小到40px，更紧凑 */
    }
    
    /* 手机竖屏紧凑优化 */
    section {
        padding: 40px 5% !important; /* 统一section间距 */
    }
    
    .hero {
        padding: 100px 5% 40px !important; /* 减小底部padding */
        min-height: auto !important; /* 改为auto让内容自适应 */
        display: flex;
        align-items: flex-start; /* 改为顶部对齐 */
        justify-content: center;
    }
    
    .hero-content {
        padding: 10px 0 !important; /* 减小内部padding */
        text-align: center;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-tag {
        font-size: 10px !important;
        padding: 5px 12px !important; /* 减小padding */
        margin-top: 5px !important; /* 减小上边距 */
        margin-bottom: 12px !important; /* 减小下边距 */
        letter-spacing: 0.1em !important;
    }
    
    .hero-title {
        font-size: 28px !important; /* 减小标题 */
        margin-bottom: 8px !important; /* 减小间距 */
        line-height: 1.3 !important;
        padding: 0 10px;
        word-break: keep-all; /* 防止不必要的换行 */
    }
    
    .hero-subtitle {
        font-size: 15px !important; /* 减小字体 */
        margin-bottom: 6px !important; /* 减小间距 */
        line-height: 1.5 !important;
        padding: 0 15px;
        word-break: keep-all;
    }
    
    .hero-subtitle-en {
        font-size: 10px !important; /* 减小字体 */
        margin-bottom: 15px !important; /* 减小间距 */
        opacity: 0.7;
        line-height: 1.4 !important;
        padding: 0 10px;
    }
    
    .hero-visual {
        margin-top: 20px !important; /* 大幅减小上边距 */
        padding: 0 10px;
    }
    
    .hero-visual img {
        border-radius: 15px !important;
        box-shadow: 0 15px 40px rgba(0, 255, 136, 0.15) !important;
    }
    
    .hero-buttons {
        margin-top: 20px !important; /* 减少按钮区域上边距 */
        gap: 10px !important; /* 减少按钮间距 */
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .btn {
        padding: 12px 24px !important; /* 缩小按钮 */
        font-size: 14px !important;
        white-space: nowrap;
    }
    
    .scroll-indicator {
        bottom: 20px !important; /* 向上移动滚动指示器 */
    }
    
    /* 数字统计栏紧凑 */
    .stats-bar {
        padding: 35px 5% !important;
    }
    
    .stats-container {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 25px !important;
    }
    
    .stat-item {
        padding: 20px 10px !important;
        min-height: 120px !important;
    }
    
    .stat-number {
        font-size: 36px !important;
        margin-bottom: 10px !important;
    }
    
    .stat-label {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }
    
    /* 卡片网格紧凑 */
    .card {
        padding: 25px !important; /* 从默认30px缩小 */
        margin-bottom: 20px !important; /* 减少卡片间距 */
    }
    
    .card-title {
        font-size: 20px !important;
        margin-bottom: 12px !important;
    }
    
    .card-text {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
    
    /* 技术演进故事紧凑 */
    .tech-story {
        padding: 40px 5% !important;
    }
    
    .story-slide {
        padding: 30px 0 !important; /* 减少幻灯片padding */
        margin-bottom: 30px !important; /* 减少间距 */
    }
    
    .story-title {
        font-size: 24px !important;
        margin-bottom: 15px !important;
    }
    
    .story-text {
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin-bottom: 15px !important;
    }
    
    .story-image {
        margin-top: 20px !important; /* 减少图片上边距 */
    }
    
    /* Footer紧凑 */
    footer {
        padding: 40px 5% 20px !important; /* 减少footer padding */
    }
    
    .footer-content {
        gap: 30px !important; /* 减少footer间距 */
        margin-bottom: 20px !important;
    }
    
    .footer-section h3 {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }
    
    /* 汉堡菜单模式 */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(13,22,16,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 0;
        gap: 20px;
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto; /* 允许滚动 */
    }
    
    .nav-menu a {
        font-size: 16px; /* 恢复正常大小 */
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .story-slide {
        flex-direction: column !important;
        text-align: center;
    }
    
    .story-slide:nth-child(even) {
        flex-direction: column !important;
    }
    
    .story-content {
        max-width: 100%;
    }
    
    .card-grid {
        grid-template-columns: 1fr !important;
    }
    
    .stats-container {
        grid-template-columns: 1fr !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* 修复双列问题 - 强制单列布局 - 增强版 */
    [style*="grid-template-columns"],
    [style*="display: grid"],
    div[style*="repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
        display: grid !important;
    }
    
    /* 针对特定minmax值 */
    [style*="minmax(200px"],
    [style*="minmax(220px"],
    [style*="minmax(240px"],
    [style*="minmax(250px"],
    [style*="minmax(280px"],
    [style*="minmax(300px"],
    [style*="minmax(320px"],
    [style*="minmax(350px"],
    [style*="minmax(380px"] {
        grid-template-columns: 1fr !important;
    }
}

/* ==================== 折叠屏手机专用优化（更紧凑） ==================== */
@media (max-width: 480px) {
    :root {
        --section-padding: 30px 5%; /* 从40px进一步缩小到30px */
    }
    
    /* 统一section间距 - 超紧凑 */
    section {
        padding: 30px 5% !important;
    }
    
    .hero {
        padding: 90px 5% 30px !important; /* 减小底部padding */
        min-height: auto !important; /* 改为auto */
        display: flex;
        align-items: flex-start; /* 顶部对齐 */
        justify-content: center;
    }
    
    .hero-content {
        padding: 8px 0 !important; /* 大幅减小内部padding */
        text-align: center;
        width: 100%;
    }
    
    /* 首屏标签 */
    .hero-tag {
        font-size: 8px !important; /* 再减小 */
        padding: 4px 10px !important; /* 减小padding */
        margin-top: 3px !important; /* 减小上边距 */
        margin-bottom: 10px !important; /* 减小下边距 */
        letter-spacing: 0.08em !important;
    }
    
    /* 首屏标题 */
    .hero-title {
        font-size: 24px !important; /* 再减小标题 */
        margin-bottom: 6px !important; /* 减小间距 */
        line-height: 1.3 !important;
        padding: 0 8px;
        word-break: keep-all;
    }
    
    .hero-subtitle {
        font-size: 13px !important; /* 再减小 */
        margin-bottom: 5px !important; /* 减小间距 */
        line-height: 1.5 !important;
        padding: 0 12px;
        word-break: keep-all;
    }
    
    .hero-subtitle-en {
        font-size: 9px !important; /* 再减小 */
        margin-bottom: 12px !important; /* 减小间距 */
        opacity: 0.6;
        line-height: 1.4 !important;
        padding: 0 8px;
    }
    
    .hero-visual {
        margin-top: 15px !important; /* 大幅减小上边距 */
        padding: 0 5px;
    }
    
    .hero-visual img {
        border-radius: 12px !important;
        box-shadow: 0 10px 30px rgba(0, 255, 136, 0.12) !important;
    }
    
    .hero-buttons {
        margin-top: 18px !important;
        gap: 8px !important;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .btn {
        padding: 10px 20px !important;
        font-size: 13px !important;
        white-space: nowrap;
    }
    
    .scroll-indicator {
        bottom: 15px !important;
    }
    
    /* Logo缩小 */
    .logo .brand-name {
        font-size: 15px;
        letter-spacing: 0.05em;
    }
    
    .logo .brand-cn {
        font-size: 8px;
    }
    
    .logo-icon {
        width: 35px; /* 从40px缩小 */
        height: 35px;
    }
    
    .logo {
        gap: 8px; /* 从10px缩小 */
    }
    
    /* 导航栏更紧凑 */
    .navbar {
        padding: 12px 5%; /* 从15px缩小 */
    }
    
    .nav-menu {
        top: 65px; /* 相应调整 */
        height: calc(100vh - 65px);
        padding: 30px 0; /* 减少内部padding */
    }
    
    /* 强制单列布局 */
    .card-grid,
    [style*="display: grid"],
    [style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important; /* 从20px缩小 */
    }
    
    /* Hero标题更紧凑 */
    .hero-title {
        font-size: 28px !important; /* 从32px缩小 */
        line-height: 1.2 !important;
        margin-bottom: 12px !important;
    }
    
    .hero-subtitle {
        font-size: 15px !important; /* 从16px缩小 */
        margin-bottom: 15px !important;
    }
    
    .hero-tag {
        font-size: 10px !important;
        padding: 5px 12px !important;
        margin-bottom: 12px !important;
    }
    
    .hero-buttons {
        margin-top: 20px !important;
        gap: 10px !important;
    }
    
    .btn {
        padding: 10px 24px !important; /* 进一步缩小按钮 */
        font-size: 13px !important;
    }
    
    /* 数字统计栏超紧凑 */
    .stats-bar {
        padding: 25px 5% !important;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    .stat-item {
        padding: 18px 12px !important;
        min-height: 110px !important;
    }
    
    .stat-number {
        font-size: 32px !important;
        margin-bottom: 8px !important;
    }
    
    .stat-label {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }
    
    /* 卡片更紧凑 */
    .card {
        padding: 20px !important; /* 从25px缩小 */
        margin-bottom: 15px !important;
    }
    
    .card-title {
        font-size: 18px !important; /* 从20px缩小 */
        margin-bottom: 10px !important;
    }
    
    .card-text {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
    
    /* 技术演进故事紧凑 */
    .tech-story {
        padding: 30px 5% !important;
    }
    
    .story-slide {
        padding: 25px 0 !important;
        margin-bottom: 25px !important;
    }
    
    .story-title {
        font-size: 22px !important; /* 从24px缩小 */
        margin-bottom: 12px !important;
    }
    
    .story-text {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 12px !important;
    }
    
    .story-number {
        font-size: 48px !important; /* 缩小数字装饰 */
    }
    
    .story-image {
        margin-top: 15px !important;
    }
    
    .story-image img {
        border-radius: 15px !important; /* 从20px缩小 */
    }
    
    /* Footer超紧凑 */
    footer {
        padding: 30px 5% 15px !important;
    }
    
    .footer-content {
        gap: 25px !important;
        margin-bottom: 15px !important;
    }
    
    .footer-section h3 {
        font-size: 15px !important;
        margin-bottom: 10px !important;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 12px !important;
        line-height: 1.5 !important;
        margin-bottom: 6px !important;
    }
    
    /* Section标题紧凑 */
    .section-title {
        font-size: 26px !important; /* 从28px进一步缩小 */
        line-height: 1.3 !important;
        margin-bottom: 15px !important; /* 减少下边距 */
    }
    
    .section-subtitle {
        font-size: 13px !important; /* 从14px缩小 */
        margin-bottom: 20px !important;
    }
    
    /* 按钮组紧凑（已在上面定义，这里不重复） */
    .hero-buttons,
    [style*="display: flex"][style*="justify-content: center"] {
        flex-direction: column !important;
        gap: 10px !important; /* 从15px缩小 */
    }
    
    .btn {
        width: 100%;
        padding: 12px 26px !important; /* 从15px 30px缩小 */
        font-size: 13px !important;
    }
    
    /* 数据统计（大数字）紧凑 */
    [style*="font-size: 72px"],
    [style*="font-size: 64px"],
    [style*="font-size: 56px"] {
        font-size: 32px !important; /* 从36px进一步缩小 */
    }
    
    /* 页脚居中 */
    .footer-content {
        text-align: center;
    }
    
    .footer-bottom {
        padding-top: 15px !important; /* 减少顶部padding */
    }
    
    /* 通用间距减小 */
    h1, h2, h3, h4, h5, h6 {
        margin-bottom: 12px !important;
    }
    
    p {
        margin-bottom: 12px !important;
    }
    
    ul, ol {
        padding-left: 18px !important; /* 减少缩进 */
    }
    
    li {
        margin-bottom: 8px !important;
    }
    
    /* 图片容器紧凑 */
    .image-container {
        margin: 15px 0 !important;
    }
    
    img {
        border-radius: 12px !important; /* 从15px缩小 */
    }
    
    .footer-section ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* ==================== 超小折叠屏（Galaxy Z Fold内屏等）- 极致紧凑 ==================== */
@media (max-width: 350px) {
    :root {
        --section-padding: 25px 4%; /* 进一步缩小到25px，左右4% */
    }
    
    /* 统一section极致紧凑 */
    section {
        padding: 25px 4% !important;
    }
    
    .hero {
        padding: 40px 4% !important;
        min-height: 60vh !important;
    }
    
    .hero-content {
        padding: 12px 0 !important;
    }
    
    /* Logo极致缩小 */
    .logo .brand-name {
        font-size: 13px; /* 从14px缩小 */
    }
    
    .logo .brand-cn {
        font-size: 7px; /* 从8px缩小 */
    }
    
    .logo-icon {
        width: 32px; /* 从35px缩小 */
        height: 32px;
    }
    
    .logo {
        gap: 6px; /* 从8px缩小 */
    }
    
    /* 导航栏极致紧凑 */
    .navbar {
        padding: 10px 4% !important;
    }
    
    /* Hero区域极致紧凑 */
    .hero-title {
        font-size: 24px !important; /* 从28px缩小 */
        margin-bottom: 10px !important;
    }
    
    .hero-subtitle {
        font-size: 14px !important;
        margin-bottom: 12px !important;
    }
    
    .hero-tag {
        font-size: 9px !important;
        padding: 4px 10px !important;
    }
    
    .hero-buttons {
        margin-top: 15px !important;
        gap: 8px !important;
    }
    
    .btn {
        padding: 10px 20px !important;
        font-size: 12px !important;
    }
    
    /* 数字统计栏极致紧凑 */
    .stats-bar {
        padding: 20px 4% !important;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .stat-item {
        padding: 15px 8px !important;
        min-height: 100px !important;
    }
    
    .stat-number {
        font-size: 28px !important;
        margin-bottom: 6px !important;
    }
    
    .stat-label {
        font-size: 10px !important;
        line-height: 1.3 !important;
    }
    
    /* Section标题极致紧凑 */
    .section-title {
        font-size: 22px !important; /* 从24px缩小 */
        margin-bottom: 12px !important;
    }
    
    .section-subtitle {
        font-size: 12px !important;
        margin-bottom: 15px !important;
    }
    
    /* 卡片极致紧凑 */
    .card {
        padding: 18px !important; /* 从20px缩小 */
        margin-bottom: 12px !important;
    }
    
    .card-title {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }
    
    .card-text {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }
    
    /* 技术演进极致紧凑 */
    .story-slide {
        padding: 20px 0 !important;
        margin-bottom: 20px !important;
    }
    
    .story-title {
        font-size: 20px !important;
        margin-bottom: 10px !important;
    }
    
    .story-text {
        font-size: 12px !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
    }
    
    .story-number {
        font-size: 42px !important;
    }
    
    /* Footer极致紧凑 */
    footer {
        padding: 25px 4% 12px !important;
    }
    
    .footer-section h3 {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }
    
    /* 通用间距极致压缩 */
    h1, h2, h3, h4, h5, h6 {
        margin-bottom: 10px !important;
    }
    
    p {
        margin-bottom: 10px !important;
    }
}

/* ==================== 终极移动端覆盖规则（解决inline grid问题） ==================== */

/* === 768px以下：强制所有grid布局变为单列flex === */
@media (max-width: 768px) {
    /* 覆盖inline grid - 多重选择器提高优先级 */
    div[style*="display: grid"],
    div[style*="display:grid"],
    section[style*="display: grid"],
    section[style*="display:grid"],
    div[style*="grid-template-columns"],
    section[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    /* 强制子元素全宽 */
    div[style*="display: grid"] > *,
    div[style*="grid-template-columns"] > * {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* 统一间距 */
    div[style*="gap:"],
    div[style*="gap: "],
    section[style*="gap:"],
    section[style*="gap: "] {
        gap: 20px !important;
    }
    
    /* Hero标题防止孤字 */
    .hero-title,
    .section-title,
    h1, h2, h3 {
        word-break: keep-all !important;
        text-wrap: balance !important;
        hyphens: none !important;
    }
    
    /* 箭头装饰隐藏 */
    div[style*="font-size: 40px"],
    div[style*="font-size:40px"] {
        display: none !important;
    }
    
    /* Stats栏改为2列 */
    .stats-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    .stat-item {
        padding: 20px 10px !important;
        min-height: 120px !important;
    }
    
    /* 覆盖所有inline margin-top */
    [style*="margin-top: 80px"],
    [style*="margin-top:80px"] {
        margin-top: 40px !important;
    }
    
    [style*="margin-top: 60px"],
    [style*="margin-top:60px"] {
        margin-top: 30px !important;
    }
}

/* === 480px以下：超紧凑优化 === */
@media (max-width: 480px) {
    /* 进一步缩小间距 */
    [style*="gap:"],
    [style*="gap: "] {
        gap: 15px !important;
    }
    
    /* Hero区域紧凑化 */
    .hero {
        padding: 50px 5% 40px !important;
        min-height: 70vh !important;
    }
    
    .hero-title {
        font-size: 26px !important;
        line-height: 1.25 !important;
    }
    
    .hero-subtitle {
        font-size: 14px !important;
    }
    
    .hero-subtitle-en {
        font-size: 9px !important;
        opacity: 0.5;
    }
    
    .btn {
        padding: 10px 20px !important;
        font-size: 13px !important;
    }
    
    /* Stats改为2列 */
    .stats-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* 覆盖inline margin-top（小屏进一步缩小） */
    [style*="margin-top: 80px"],
    [style*="margin-top:80px"],
    [style*="margin-top: 60px"],
    [style*="margin-top:60px"] {
        margin-top: 25px !important;
    }
}

/* === 380px以下：折叠屏竖屏极限优化 === */
@media (max-width: 380px) {
    .hero-title {
        font-size: 24px !important;
    }
    
    .hero-subtitle {
        font-size: 13px !important;
    }
    
    .btn {
        padding: 9px 18px !important;
        font-size: 12px !important;
    }
    
    .stats-container {
        grid-template-columns: 1fr !important; /* 超小屏单列 */
        gap: 15px !important;
    }
    
    .stat-item {
        min-height: 100px !important;
    }
    
    /* 数据统计大数字缩小 */
    [style*="font-size: 72px"],
    [style*="font-size:72px"],
    [style*="font-size: 64px"],
    [style*="font-size:64px"],
    [style*="font-size: 56px"],
    [style*="font-size:56px"] {
        font-size: 40px !important;
    }
}

/* ==================== 实用工具类 ==================== */
.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--bright-green), var(--aurora-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }
