/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 宣传册内容突出显示 */
.brochure-highlight {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(0, 102, 255, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.brochure-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.brochure-content-card {
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 24px;
    padding: 3rem;
    margin-top: 2rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
    }
    50% {
        box-shadow: 0 20px 60px rgba(0, 212, 255, 0.4);
    }
}

.brochure-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: var(--gradient-3);
    color: var(--bg-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.brochure-text {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1.1rem;
    margin: 2rem 0;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
    padding: 1.5rem;
    background: var(--bg-darker);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.brochure-text::-webkit-scrollbar {
    width: 8px;
}

.brochure-text::-webkit-scrollbar-track {
    background: var(--bg-darker);
    border-radius: 4px;
}

.brochure-text::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.brochure-text::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.brochure-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.brochure-actions .btn {
    flex: 1;
    min-width: 200px;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .brochure-content-card {
        padding: 2rem 1.5rem;
    }
    .brochure-badge {
        right: 20px;
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    .brochure-text {
        font-size: 1rem;
        max-height: 300px;
    }
    .brochure-actions {
        flex-direction: column;
    }
    .brochure-actions .btn {
        width: 100%;
    }
}

:root {
    --primary-color: #00d4ff;
    --secondary-color: #0066ff;
    --accent-blue: #0061E2;
    --accent-coral: #FF394A;
    --brand-purple: #a78bfa;
    --brand-purple-deep: #7c3aed;
    --bg-dark: #0a0e27;
    --bg-darker: #050810;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* 浅色模式：统一背景与文字 */
[data-theme="light"] {
    --bg-dark: #f0f4f8;
    --bg-darker: #e2e8f0;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --card-bg: rgba(255, 255, 255, 0.9);
    --border-color: rgba(0, 0, 0, 0.08);
}

/* 深色模式：全黑背景 + 蓝色统一为 #1964FE（含导航、标题、全站强调色） */
[data-theme="dark"] {
    --accent-blue: #1964FE;
    --primary-color: #1964FE;
    --bg-dark: #000000;
    --bg-darker: #000000;
    --card-bg: rgba(0, 0, 0, 0.6);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

[data-theme="light"] body {
    background-color: var(--bg-dark);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9997;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .navbar {
    background: #000000;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .navbar {
    background: #ffffff;
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: nowrap;
    width: 100%;
}

.logo {
    flex-shrink: 0;
    margin-right: auto;
}

.nav-menu {
    flex: 0 1 auto;
    justify-content: center;
    margin: 0 auto;
}

.nav-actions {
    flex-shrink: 0;
    margin-left: auto;
    position: relative;
    z-index: 9998;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer !important;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: nowrap;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    flex-shrink: 0;
    white-space: nowrap;
    margin: 0;
    padding: 0;
}

/* 方案三：霓虹描边 - 主项悬浮底部发光线 */
.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, text-shadow 0.3s, box-shadow 0.3s;
    position: relative;
    white-space: nowrap;
    display: inline-block;
}

.nav-menu a:hover {
    color: #00d4ff;
    text-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--primary-color));
    box-shadow: 0 0 10px var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* 导航高亮 - 当前页面 */
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    width: 100%;
}

/* 产品下拉菜单 */
.nav-menu li {
    position: relative;
}

/* 方案三：下拉框霓虹边框 + 整体背景统一 + 边框光点滑动；高度=内容叠加；子导航背景浅灰/透明不抢眼 */
.product-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(45, 55, 72, 0.92);
    backdrop-filter: blur(14px);
    border: 2px solid rgba(0, 212, 255, 0.5);
    border-radius: 12px;
    padding: 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9996;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin-top: 10px;
    overflow: visible;
}

/* 首页子导航左移，产品子导航右移，避免重叠 */
.nav-menu > li:first-child .product-dropdown {
    left: -48px;
}
.nav-menu > li:nth-child(2) .product-dropdown {
    left: 12px;
}

/* 边框光点：沿边框滑动；悬浮某子项时跳动到该区域 */
.product-dropdown::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00d4ff;
    box-shadow: 0 0 12px #00d4ff, 0 0 20px rgba(0, 212, 255, 0.8);
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    z-index: 10;
    transition: left 0.2s ease, top 0.2s ease;
}
.nav-menu li:hover .product-dropdown::before {
    opacity: 1;
    animation: border-light-spot 2.5s linear infinite;
}
/* 悬浮到某子项时：光点跳到该子项对应左侧边框位置 */
.product-dropdown.has-hover::before {
    animation: none;
    left: 0;
    top: var(--spot-y, 0);
}

@keyframes border-light-spot {
    0%   { left: 0;    top: 0; }
    25%  { left: 100%; top: 0; }
    50%  { left: 100%; top: 100%; }
    75%  { left: 0;    top: 100%; }
    100% { left: 0;    top: 0; }
}

.nav-menu li:hover .product-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    border-color: rgba(0, 212, 255, 0.9);
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.25), inset 0 0 20px rgba(0, 212, 255, 0.03);
}

/* 子导航：浅色背景能遮住下方内容，首尾项圆角与容器一致 */
.product-dropdown a {
    display: block;
    position: relative;
    padding: 0.48rem 1.5rem;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    background: rgba(45, 55, 72, 0.85);
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}
.product-dropdown a:first-child {
    border-radius: 10px 10px 0 0;
}
.product-dropdown a:last-child {
    border-radius: 0 0 10px 10px;
}
.product-dropdown a:first-child:last-child {
    border-radius: 10px;
}

/* 悬浮：轻微高亮，不抢眼 */
.product-dropdown a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: none;
}

/* 浅色模式：子导航使用浅色背景（替代灰色） */
[data-theme="light"] .product-dropdown {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 97, 226, 0.25);
    box-shadow: 0 12px 40px rgba(0, 97, 226, 0.12), 0 4px 20px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .nav-menu li:hover .product-dropdown {
    border-color: rgba(0, 97, 226, 0.45);
    box-shadow: 0 12px 40px rgba(0, 97, 226, 0.15), 0 4px 20px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .product-dropdown a {
    color: var(--text-primary);
    background: transparent;
}
[data-theme="light"] .product-dropdown a:hover {
    background: rgba(0, 97, 226, 0.08);
    color: var(--accent-blue);
}
[data-theme="light"] .nav-menu a:hover,
[data-theme="light"] .nav-menu a.active {
    color: var(--accent-blue);
    text-shadow: none;
}
[data-theme="light"] .nav-menu a:hover::after,
[data-theme="light"] .nav-menu a.active::after {
    background: var(--accent-blue);
}

[data-theme="dark"] .nav-menu a {
    color: var(--text-secondary);
}
[data-theme="dark"] .nav-menu a:hover,
[data-theme="dark"] .nav-menu a.active {
    color: #1964FE;
    text-shadow: 0 0 12px rgba(25, 100, 254, 0.5);
}
[data-theme="dark"] .nav-menu a:hover::after,
[data-theme="dark"] .nav-menu a.active::after {
    background: #1964FE;
    box-shadow: 0 0 10px rgba(25, 100, 254, 0.5);
}
[data-theme="dark"] .product-dropdown a:hover {
    color: #1964FE;
}

@keyframes dropdown-glow {
    0%, 100% {
        background-position: 100% 0;
    }
    50% {
        background-position: 0 0;
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 9998;
}

.lang-switch {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    user-select: none;
    outline: none;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
    display: inline-block;
    z-index: 9999 !important;
    pointer-events: auto !important;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    isolation: isolate;
}

.lang-switch:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.2);
}

.lang-switch:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.15);
}

.lang-switch:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 深色/浅色模式切换按钮（在语言切换左侧） */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
}

/* 主题图标：深色模式显示☀️，浅色模式显示🌙 */
.theme-toggle .theme-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.theme-toggle .theme-icon-light {
    display: inline;
}

.theme-toggle .theme-icon-dark {
    display: none;
}

[data-theme="light"] .theme-toggle .theme-icon-light {
    display: none;
}

[data-theme="light"] .theme-toggle .theme-icon-dark {
    display: inline;
}

/* 语言选择菜单 */
.language-menu {
    position: fixed !important;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 10000 !important;
    backdrop-filter: blur(10px);
    pointer-events: auto !important;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    isolation: isolate;
}

.language-menu[style*="block"] {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    user-select: none;
}

.language-option:hover {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.2);
}

.language-option:active {
    background: rgba(0, 212, 255, 0.25);
    transform: translateX(1px);
}

.language-option.active {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-color);
    font-weight: 600;
}

.language-option .flag {
    font-size: 1.25rem;
}

.language-option .name {
    font-weight: 500;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

/* Hero区域：仅第一屏，顶部留出固定导航高度避免被遮挡 */
.hero {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0;
    padding-top: 72px;
}

/* 左侧文案区：绝对定位在 hero 内，z-index 高于画布避免被遮挡 */
.hero-content-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    padding: 80px 5vw 2rem 5vw;
    display: flex;
    z-index: 2;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    z-index: 2;
    opacity: 0;
    overflow: hidden;
    transform: translateX(-80px);
    transition: width 0.9s ease-out, opacity 0.8s ease-out 0.15s, transform 0.8s ease-out 0.2s;
}

.hero-content-left.active {
    width: 66.666%;
    opacity: 1;
    transform: translateX(0);
}

/* 浅色模式：第一屏左侧主题蓝底 + 白底高亮 + iOS 白底蓝字 */
[data-theme="light"] .hero-content-left {
    background: linear-gradient(120deg, rgba(0, 212, 255, 0.22) 0%, rgba(0, 102, 255, 0.15) 60%, rgba(0, 212, 255, 0.08) 100%);
}

/* 浅色模式：第一屏去掉上下多余，严格一屏内 */
[data-theme="light"] .hero {
    padding: 0;
    max-height: 100vh;
    box-sizing: border-box;
}
[data-theme="light"] .hero-content-left {
    padding: 64px 5vw 1.5rem 5vw;
}
[data-theme="light"] #hero-canvas-container,
[data-theme="light"] .hero-canvas-container {
    min-height: 0;
    height: 100%;
}
[data-theme="light"] .hero .scroll-indicator {
    bottom: 1rem;
}

/* ========== hero 动画：仅 logo 放大 + 背景往中间推进 + 两侧推进 ========== */
/* Logo 缩放：0 → 1，刚开始慢、往中间推进时加快（ease-in） */
@keyframes hero-logoScale {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
/* ========== hero.html 风格：三栏 + 视频序列，适配 data-theme 浅色/深色 ========== */
:root {
    --hero-reveal-duration: 1000ms;
    --hero-ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);
    --hero-ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
    --hero-gap: 2px;
    /* hero 圆角与 Avalanche 一致：外框 20px，内卡 12px */
    --hero-radius-outer: 1.25rem;
    --hero-radius-card: 0.75rem;
    /* hero-sequencer 动画体系（与文档逻辑一致） */
    --navbar-height: 72px;
    --hero-left-height: 338px;
    --hero-right-height: 338px;
    --radius-4xl: 1.25rem;
    --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
    --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);
}

.hero-video-layout {
    display: block;
    padding: 0;
    padding-top: 72px;
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
}
/* 导航与英雄区、圆角区域四周间隙统一为 --hero-gap */
.hero-video-layout .hero-inner {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--hero-gap);
    min-height: calc(100vh - 72px - var(--hero-gap) * 2);
    margin: var(--hero-gap);
    max-width: calc(100% - var(--hero-gap) * 2);
    box-sizing: border-box;
    align-items: stretch;
    border-radius: var(--hero-radius-outer);
}
@media (min-width: 1024px) {
    .hero-video-layout .hero-inner {
        border-radius: var(--hero-radius-outer);
        grid-template-rows: 1fr;
        height: calc(100vh - 72px - var(--hero-gap) * 2);
        min-height: calc(100vh - 72px - var(--hero-gap) * 2);
    }
}
.hero-video-layout .hero-left {
    grid-column: 1 / span 3;
    display: flex;
    flex-direction: column;
    gap: var(--hero-gap);
    min-height: 0;
    height: 100%;
    box-sizing: border-box;
}
.hero-video-layout .hero-left-card {
    padding: 1.5rem;
    border-radius: var(--hero-radius-card);
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
}
/* 左侧 AVAX 式：最先出现时为一整块（左上填满），视频开始后左上往上缩进、左下作为一块区域出现 */
.hero-video-layout .hero-left .hero-mount-left.hero-left-card {
    flex: 1 1 0;
    max-height: none;
    min-height: 0;
    transition: flex 1.05s cubic-bezier(0.25, 0.46, 0.45, 0.94), max-height 1.05s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-video-layout .hero-left.hero-left-split .hero-mount-left.hero-left-card {
    flex: 0 1 auto;
    max-height: 32%;
}
/* 左下：初始不占位，视频开始后作为「一块区域」平滑出现（节奏放慢、无跳动） */
.hero-video-layout .hero-left-card-bottom {
    flex: 0 0 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transition: flex 1.05s cubic-bezier(0.25, 0.46, 0.45, 0.94), max-height 1.05s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.85s ease;
}
.hero-video-layout .hero-left-card-bottom.hero-bottom-reveal {
    flex: 1 1 0;
    max-height: 80vh;
    opacity: 1;
}
.hero-video-layout .hero-left-card-bottom-inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
    opacity: 0;
    transform: translateY(-12%);
}
.hero-video-layout .hero-left-card-bottom-inner.hero-pull-down-start {
    animation: hero-pull-down 1.05s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s forwards;
}
@keyframes hero-pull-down {
    0% { opacity: 0; transform: translateY(-12%); }
    100% { opacity: 1; transform: translateY(0); }
}
.hero-video-layout .hero-learn-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.9) 0%, rgba(0, 102, 255, 0.9) 50%, rgba(124, 58, 237, 0.85) 100%);
    background-size: 200% 200%;
    transition: background-position 0.4s ease, box-shadow 0.3s ease, transform 0.2s ease;
}
.hero-video-layout .hero-learn-more-btn:hover {
    background-position: 100% 100%;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
    transform: translateY(-1px);
}
[data-theme="light"] .hero-video-layout .hero-learn-more-btn {
    color: #fff;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #6366f1 50%, var(--accent-coral) 100%);
    background-size: 200% 200%;
}
[data-theme="light"] .hero-video-layout .hero-learn-more-btn:hover {
    background-position: 100% 100%;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.35);
}
.hero-video-layout .hero-left-card-bottom::-webkit-scrollbar {
    display: none;
}
.hero-video-layout .hero-left-card-bottom .hero-description {
    line-height: 1.65;
    font-size: clamp(0.875rem, 2vw, 1.0625rem);
    margin-top: 0.5rem;
}
.hero-video-layout .hero-left-card-bottom {
    padding: 1.25rem 1.5rem;
}
/* 描述区上方科技感图：预留更多空间给文字 */
.hero-video-layout .hero-desc-visual {
    flex: 0 0 auto;
    max-height: min(22vh, 160px);
    min-height: 80px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(0, 102, 255, 0.06) 50%, rgba(124, 58, 237, 0.06) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-video-layout .hero-desc-visual-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0.5rem;
}
[data-theme="light"] .hero-video-layout .hero-desc-visual {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.06) 0%, rgba(124, 58, 237, 0.05) 100%);
}
.hero-video-layout .hero-left-card-bottom .hero-description {
    flex: 0 1 auto;
    margin-bottom: 0;
}
.hero-video-layout .hero-content-left {
    position: relative;
    width: 100%;
    opacity: 1;
    transform: none;
    transition: none;
    background: transparent;
    padding: 0;
    height: auto;
}
.hero-video-layout .hero-content-left .hero-content { padding-left: 0; }
.hero-video-layout .hero-center-wrap {
    grid-column: 4 / span 6;
    position: relative;
    min-height: 0;
    height: 100%;
}
.hero-video-layout #hero-logo-white-area #hero-sequencer {
    position: absolute;
    inset: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    overflow: hidden;
}

/* 视频区与 logo 区同一位置；logo 消失时直接显示，无动画，看起来视频从 logo 直接播放 */
#hero-sequencer {
    clip-path: inset(0 0 0 0 round var(--radius-4xl));
    opacity: 0;
    transition: none;
}
#hero-sequencer.mounted {
    clip-path: inset(0 0 0 0 round var(--radius-4xl));
    opacity: 1;
    transition: none;
}

.hero-video-layout .hero-center-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-video-layout .hero-sequencer-inner {
    position: absolute;
    left: 50%;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translate(-50%, calc((var(--hero-left-height) - var(--hero-right-height)) / 2));
    transition: none;
}
#hero-sequencer.mounted .hero-sequencer-inner {
    opacity: 1;
    transform: translate(-50%, calc((var(--hero-left-height) - var(--hero-right-height)) / 2));
    transition: none;
}
.hero-video-layout .hero-sequencer-inner .video-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 600ms var(--ease-out-cubic), transform 800ms var(--ease-in-out-quart);
}
#hero-sequencer.mounted .hero-sequencer-inner .video-layer {
    opacity: 1;
    transform: scale(1);
}
/* 第一段视频无入场动画，直接显示播放，与 logo 无缝衔接 */
#hero-sequencer.mounted .hero-sequencer-inner #layer-1 {
    opacity: 1;
    transform: scale(1);
    transition: none;
}
#hero-sequencer.mounted .hero-sequencer-inner #layer-2 { transition-delay: 50ms; }
#hero-sequencer.mounted .hero-sequencer-inner #layer-3 { transition-delay: 100ms; }
#hero-sequencer.mounted .hero-sequencer-inner #layer-4 { transition-delay: 150ms; }
#hero-sequencer.mounted .hero-sequencer-inner #layer-5 { transition-delay: 200ms; }
#hero-sequencer.mounted .hero-sequencer-inner #layer-6 { transition-delay: 250ms; }
.hero-video-layout .hero-sequencer-inner .video-layer-inner {
    aspect-ratio: 16/9;
    width: 100%;
    max-width: 53.76rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-video-layout .hero-sequencer-inner .hero-center-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.hero-video-layout .video-layer.invisible { visibility: hidden; }

/* HUD 层：2000ms 延迟 + 1000ms 过渡，暗色模式 mix-blend-mode */
.hero-video-layout .hud-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 1rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1000ms 2000ms var(--ease-out-cubic);
}
#hero-sequencer.mounted .hud-layer { opacity: 1; }
.hero-video-layout .hud-layer-dark { mix-blend-mode: screen; }
.hero-video-layout .hud-video { width: 40%; height: auto; object-fit: contain; transform: scaleX(-1); }
.hero-video-layout .hud-video-right { width: 33.33%; }
[data-theme="light"] .hero-video-layout .hud-layer { display: none !important; }
[data-theme="dark"] .hero-video-layout .hud-layer-light,
[data-theme="dark"] .hero-video-layout .hud-layer-dark { display: none !important; opacity: 0 !important; }

.hero-video-layout .hero-right {
    grid-column: 10 / span 3;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    box-sizing: border-box;
}
.hero-video-layout .hero-right-card {
    padding: 1.5rem;
    border-radius: var(--hero-radius-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 0;
    min-height: 0;
}
/* 左侧主标题、右侧标题：与「全球算力」一致（渐变徽章），字号统一便于一行展示 */
.hero-video-layout .hero-left .hero-main-title,
.hero-video-layout .hero-right-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5em;
    font-weight: 700;
    font-size: clamp(1.2rem, 3.2vw, 1.75rem);
    line-height: 1.25;
    color: #fff;
    padding: 0.35em 0.6em;
    margin: 0 0 0.5rem 0;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-coral) 100%);
    box-shadow: 0 2px 12px rgba(0, 97, 226, 0.4);
    -webkit-text-fill-color: unset;
    clip-path: none;
    overflow: visible;
    text-align: center;
}
.hero-video-layout .hero-left .hero-main-title {
    white-space: nowrap;
}
.hero-video-layout .hero-right-title {
    margin-bottom: 0.5rem;
}
.hero-video-layout .hero-left .hero-main-title::before,
.hero-video-layout .hero-left .hero-main-title::after { display: none !important; }
.hero-video-layout .hero-content-left.active .hero-main-title { animation: none; }
.hero-video-layout .hero-content-left.active .hero-main-title::before,
.hero-video-layout .hero-content-left.active .hero-main-title::after { animation: none; }
.hero-video-layout .hero-right-time { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.hero-video-layout .hero-right-day { font-size: 0.9rem; opacity: 0.8; margin-bottom: 1rem; }
.hero-video-layout .hero-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    margin-top: auto;
}
.hero-video-layout .hero-scroll-hint-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.hero-video-layout .hero-scroll-hint-text {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.hero-video-layout .hero-scroll-hint-sub {
    font-size: 0.7rem;
    opacity: 0.75;
    font-weight: 500;
    text-transform: none;
}
.hero-video-layout .hero-scroll-hint-arrow {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

/* 白底 + logo + 视频同一区域：无 overlay 整层隐藏，仅隐藏 logo；视频在 white-area 内循环播 */
/* 满屏白色圆角背景：在三栏底层，与 logo 同步由外向内推进至视频区域 */
.hero-white-round-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #ffffff;
    border-radius: var(--radius-4xl, 1.5rem);
    pointer-events: none;
    backface-visibility: hidden;
    transition: left 1.5s cubic-bezier(0.42, 0, 1, 1), top 1.5s cubic-bezier(0.42, 0, 1, 1), width 1.5s cubic-bezier(0.42, 0, 1, 1), height 1.5s cubic-bezier(0.42, 0, 1, 1), border-radius 1.5s cubic-bezier(0.42, 0, 1, 1);
}
[data-theme="dark"] .hero-video-layout .hero-white-round-bg {
    display: none;
}
.hero-video-layout > #hero-logo-white-area {
    position: absolute;
    inset: 0;
    z-index: 25;
    pointer-events: none;
}
.hero-video-layout > #hero-logo-white-area #hero-sequencer { pointer-events: auto; }
/* 白底区：透明背景；初始铺满全屏，随 logo 变大往中间推进（开始慢、推进快），1.5s 内缩小到视频区 */
.hero-logo-white-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-4xl, 1.5rem);
    background: transparent;
    border: none;
    box-shadow: none;
    transition: left 1.5s cubic-bezier(0.42, 0, 1, 1), top 1.5s cubic-bezier(0.42, 0, 1, 1), width 1.5s cubic-bezier(0.42, 0, 1, 1), height 1.5s cubic-bezier(0.42, 0, 1, 1), border-radius 1.5s cubic-bezier(0.42, 0, 1, 1);
}
[data-theme="light"] .hero-video-layout .hero-logo-white-area,
[data-theme="dark"] .hero-video-layout .hero-logo-white-area { background: transparent; }
/* logo 外层：与 .hero-sequencer-inner 同定位、铺满区域，内部再居中 50% 的 logo，避免 logo 跑到上面 */
.hero-overlay-logo-wrap {
    position: absolute;
    left: 50%;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, calc((var(--hero-left-height) - var(--hero-right-height)) / 2));
}
/* logo 图片：在 55% 基础上再 +10% = 60.5%，在铺满的容器里居中 */
.hero-overlay-logo-img {
    width: 60.5%;
    max-width: calc(53.76rem * 0.605);
    aspect-ratio: 16/9;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: scale(0);
    animation: hero-logoScale 1.5s cubic-bezier(0.42, 0, 1, 1) forwards;
    transition: none;
}
/* 浅色模式：首页开始后 10ms logo 开始变大，与背景缩小同步 */
[data-theme="light"] .hero-video-layout .hero-overlay-logo-img {
    animation-delay: 10ms;
}

/* 浅色模式：第一屏底层黑色，面板白底深字，顶部留足空间避免被导航遮住 */
[data-theme="light"] .hero-video-layout {
    background: #000;
    padding-top: 72px;
}
/* 浅色模式：与深色统一使用 --hero-gap 模块间隙 */
[data-theme="light"] .hero-video-layout .hero-inner {
    background: #000;
}
/* 首页浅色模式：视频区域右下角圆角 ×5（与 --hero-radius-outer 一致） */
[data-theme="light"] .hero-video-layout #hero-sequencer,
[data-theme="light"] .hero-video-layout #hero-sequencer.mounted {
    clip-path: inset(0 0 0 0 round var(--hero-radius-outer) var(--hero-radius-outer) 6.25rem var(--hero-radius-outer));
}
[data-theme="light"] .hero-video-layout .hero-white-round-bg {
    border-radius: var(--hero-radius-outer) var(--hero-radius-outer) 6.25rem var(--hero-radius-outer);
}
[data-theme="light"] .hero-video-layout .hero-logo-white-area {
    border-radius: var(--hero-radius-outer) var(--hero-radius-outer) 6.25rem var(--hero-radius-outer);
}
[data-theme="light"] .hero-video-layout .hero-left { gap: var(--hero-gap); }
[data-theme="light"] .hero-video-layout .hero-left-card,
[data-theme="light"] .hero-video-layout .hero-right-card {
    background: #ffffff;
    color: #0f172a;
    border: none;
}
[data-theme="light"] .hero-video-layout .hero-left .hero-mount-left.hero-left-card {
    background: #ffffff;
}
[data-theme="light"] .hero-video-layout .hero-left .hero-mount-left .hero-subtitle-line {
    color: var(--accent-blue) !important;
    -webkit-text-fill-color: var(--accent-blue) !important;
    background: none !important;
}
[data-theme="light"] .hero-video-layout .hero-left .hero-main-title,
[data-theme="light"] .hero-video-layout .hero-right-title {
    color: #fff !important;
    -webkit-text-fill-color: unset !important;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-coral) 100%) !important;
    box-shadow: 0 2px 12px rgba(0, 97, 226, 0.35);
}
[data-theme="light"] .hero-video-layout .hero-left-card-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .hero-video-layout .hero-center-wrap,
[data-theme="light"] .hero-video-layout #hero-sequencer,
[data-theme="light"] .hero-video-layout .hero-center-inner,
[data-theme="light"] .hero-video-layout .hero-sequencer-inner,
[data-theme="light"] .hero-video-layout .hero-sequencer-inner .video-layer-inner,
[data-theme="light"] .hero-video-layout .hero-sequencer-inner .video-layer { background: transparent; border: none; min-height: 0; }
[data-theme="light"] .hero-video-layout .hero-logo-white-area { box-shadow: none; border: none; }
[data-theme="light"] .hero-video-layout .hero-main-title { color: #fff !important; }
[data-theme="light"] .hero-video-layout .hero-left .hero-mount-powered .hero-main-title,
[data-theme="light"] .hero-video-layout .hero-left .hero-mount-powered .hero-subtitle-line { color: #0f172a !important; -webkit-text-fill-color: #0f172a !important; }
[data-theme="light"] .hero-video-layout .hero-subtitle-line { color: #0f172a; -webkit-text-fill-color: #0f172a; }
[data-theme="light"] .hero-video-layout .hero-description,
[data-theme="light"] .hero-video-layout .hero-right-time,
[data-theme="light"] .hero-video-layout .hero-right-day,
[data-theme="light"] .hero-video-layout .hero-scroll-hint-sub { color: #334155; }
[data-theme="light"] .hero-video-layout .hero-scroll-hint-text { color: #0f172a; }
[data-theme="light"] .hero-video-layout .hero-description .hero-desc-tag { color: #0f172a; }
[data-theme="light"] .hero-video-layout .hero-description .hero-desc-flow { color: #0f172a; }

/* 深色模式：第一屏浅灰底，英雄区各圆角模块为黑色，与浅色统一 --hero-gap 间隙 */
[data-theme="dark"] .hero-video-layout { background: #383838; }
[data-theme="dark"] .hero-video-layout .hero-inner {
    background: #383838;
    border-radius: var(--hero-radius-outer);
    overflow: hidden;
    gap: var(--hero-gap);
    margin: var(--hero-gap);
    max-width: calc(100% - var(--hero-gap) * 2);
    min-height: calc(100vh - 72px - var(--hero-gap) * 2);
}
[data-theme="dark"] .hero-video-layout .hero-left { gap: var(--hero-gap); }
[data-theme="dark"] .hero-video-layout .hero-left-card,
[data-theme="dark"] .hero-video-layout .hero-right-card {
    background: #111111;
    color: var(--text-primary);
    border: none;
    border-radius: var(--hero-radius-card);
    overflow: hidden;
}
[data-theme="dark"] .hero-video-layout .hero-left-card-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--hero-radius-card);
}
[data-theme="dark"] .hero-video-layout .hero-center-wrap {
    border-radius: var(--hero-radius-card);
    overflow: hidden;
}
[data-theme="dark"] .hero-video-layout #hero-sequencer {
    background: #111111;
    border-radius: var(--hero-radius-card);
    overflow: hidden;
}
[data-theme="dark"] .hero-video-layout .hero-center-inner,
[data-theme="dark"] .hero-video-layout .hero-sequencer-inner .video-layer-inner,
[data-theme="dark"] .hero-video-layout .hero-sequencer-inner .video-layer { background: transparent !important; }
[data-theme="dark"] .hero-video-layout .hero-logo-white-area { border: none; box-shadow: none; }

/* 深色模式：第二屏（技术框架、产品生态等）浅灰背景，区块圆角区分 */
[data-theme="dark"] .main-3d-wrap { background: #383838; }
[data-theme="dark"] .main-3d-wrap .architecture,
[data-theme="dark"] .main-3d-wrap .stack-modules-wrap { background: #383838; }
[data-theme="dark"] .architecture { background: #383838; }
[data-theme="dark"] .stack-modules-wrap { background: #383838; }
[data-theme="dark"] .architecture-stack-section { background: #383838; }
[data-theme="dark"] .architecture-stack-header {
    background: #2e2e2e;
    border-radius: 0 0 1rem 1rem;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .architecture-stack-item {
    background: #2e2e2e;
    border-radius: 1rem;
}
[data-theme="dark"] .stack-modules-wrap .stack-module-item {
    background: #2e2e2e;
    border-radius: 1rem;
}
[data-theme="dark"] .hero-video-layout .hero-subtitle-line { color: #1964FE !important; -webkit-text-fill-color: #1964FE !important; }
[data-theme="dark"] .hero-video-layout .hero-left .hero-main-title,
[data-theme="dark"] .hero-video-layout .hero-right-title {
    color: #fff !important;
    -webkit-text-fill-color: unset !important;
    background: linear-gradient(135deg, #1964FE 0%, var(--accent-coral) 100%) !important;
    box-shadow: 0 2px 12px rgba(25, 100, 254, 0.4);
}
[data-theme="dark"] .hero-video-layout .hero-right-time,
[data-theme="dark"] .hero-video-layout .hero-right-day { color: var(--text-primary); }
[data-theme="dark"] .hero-video-layout .hero-scroll-hint span { color: var(--text-secondary); }
[data-theme="dark"] .hero-video-layout .hero-description .hero-desc-highlight { color: #1964FE; }

/* 两侧内容与 logo/背景同步推进：1.8s 与 Avalanche 节奏接近，脚本在开始时加 panels-in */
/* 首页点击 Learn more 跳转：当前页向上滑出 */
body.page-transition-out .hero-video-layout,
body.page-transition-out #home {
    transform: translateY(-100vh);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
body.page-transition-out { overflow: hidden; }

/* 从首页 Learn more 进入的页面：从下往上推动入场（云游戏等） */
#page-enter-wrap { transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
body.page-enter-from-bottom #page-enter-wrap { transform: translateY(100vh); }
body.page-enter-from-bottom { overflow: hidden; }

/* 两侧推进：先慢后快（ease-in）、与中间贴合丝滑、无跳动 */
.hero-video-layout #hero-left { transform: translateX(-100%); backface-visibility: hidden; will-change: transform; transition: transform 1.8s cubic-bezier(0.42, 0, 1, 1); }
.hero-video-layout #hero-right { transform: translateX(100%); backface-visibility: hidden; will-change: transform; transition: transform 1.8s cubic-bezier(0.42, 0, 1, 1); }
.hero-video-layout.panels-in #hero-left { transform: translateX(0); }
.hero-video-layout.panels-in #hero-right { transform: translateX(0); }

/* hero-mount 入场：随两侧滑入稍错开 */
.hero-video-layout .hero-mount {
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 0.8s var(--hero-ease-out-cubic), transform 0.8s var(--hero-ease-in-out-quart);
}
.hero-video-layout.panels-in .hero-mount { opacity: 1; transform: translateY(0); }
.hero-video-layout.panels-in .hero-mount-left { transition-delay: 0s; }
.hero-video-layout.panels-in .hero-mount-powered { transition-delay: 0.3s; }
.hero-video-layout.panels-in .hero-mount-right { transition-delay: 0.15s; }

.hero-video-layout .scroll-indicator { z-index: 5; }

@media (max-width: 1024px) {
    .hero-video-layout .hero-inner { grid-template-columns: repeat(12, 1fr); grid-template-rows: auto 1fr; }
    .hero-video-layout .hero-left { grid-column: 1 / span 6; grid-row: 1; }
    .hero-video-layout .hero-center-wrap { grid-column: 1 / -1; grid-row: 2; min-height: 0; }
    .hero-video-layout .hero-right { grid-column: 7 / span 6; grid-row: 1; }
    .hero-video-layout #hero-sequencer-inner .video-layer:nth-child(n+7) { display: none !important; }
}
@media (max-width: 768px) {
    .hero-video-layout .hero-inner { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
    .hero-video-layout .hero-left { grid-column: 1; grid-row: 1; }
    .hero-video-layout .hero-center-wrap { grid-column: 1; grid-row: 2; min-height: 0; }
    .hero-video-layout .hero-right { grid-column: 1; grid-row: 3; }
}

/* 3D 画布容器：relative 避免遮挡左侧内容，overflow 防止 3D 溢出 */
.hero-video-layout .hero-canvas-container { display: none !important; }
#hero-canvas-container,
.hero-canvas-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    z-index: 1;
    overflow: hidden;
    transition: left 0s, width 0.9s ease-out, right 0s;
    cursor: crosshair;
}

.hero-canvas-container.active {
    left: auto;
    right: 0;
    width: 33.333%;
    height: 100%;
}

@media (max-width: 768px) {
    .hero-content-left.active {
        width: 100%;
        height: 55%;
    }
    .hero-canvas-container.active {
        top: 55%;
        left: 0;
        width: 100%;
        height: 45%;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
    text-align: left;
    z-index: 1;
    max-width: 520px;
}

.hero-content-left .hero-content {
    padding-left: 2rem;
}

.hero-content-left .hero-buttons {
    justify-content: flex-start;
}

.hero-title {
    font-size: clamp(1.75rem, 4.5vw, 3.25rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.25;
}

.title-line {
    display: block;
    white-space: nowrap;
}

/* 首页主标题 PowerVerse Chain：品牌紫色变量发光 + 从左到右展开 + 扫光 */
.hero-main-title {
    display: inline-block;
    position: relative;
    overflow: hidden;
    color: #fff;
    clip-path: inset(0 100% 0 0);
}

.hero-main-title.hero-brand {
    letter-spacing: 0.02em;
}

.hero-content-left.active .hero-main-title {
    animation: hero-title-reveal 1s ease-out 0.2s forwards, hero-brand-glow 2.5s ease-in-out 1.2s infinite;
}

/* 一次性入场扫光 */
.hero-main-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(167, 139, 250, 0.35) 30%, rgba(255, 255, 255, 0.6) 50%, rgba(124, 58, 237, 0.35) 70%, transparent 100%);
    transform: translateX(-100%);
    pointer-events: none;
    z-index: 1;
}
.hero-content-left.active .hero-main-title::before {
    animation: hero-title-shine 1.8s ease-in-out 1.3s forwards;
}

/* 品牌常亮：持续从左到右扫过的紫色光带（一直点亮） */
.hero-main-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 42%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(167, 139, 250, 0.55) 25%, rgba(255, 255, 255, 0.75) 50%, rgba(124, 58, 237, 0.55) 75%, transparent 100%);
    transform: translateX(-100%);
    pointer-events: none;
    z-index: 1;
}
.hero-content-left.active .hero-main-title::after {
    animation: hero-brand-sweep 3.2s linear 2.5s infinite;
}

@keyframes hero-title-reveal {
    to { clip-path: inset(0 0 0 0); }
}

@keyframes hero-title-shine {
    to { transform: translateX(220%); }
}

/* 品牌名 PowerVerse Chain：一直点亮的紫色发光（常亮 + 轻微呼吸） */
@keyframes hero-brand-glow {
    0%, 100% {
        text-shadow: 0 0 24px rgba(167, 139, 250, 0.55), 0 0 48px rgba(124, 58, 237, 0.3), 0 0 32px rgba(0, 97, 226, 0.15);
    }
    50% {
        text-shadow: 0 0 32px rgba(167, 139, 250, 0.75), 0 0 56px rgba(124, 58, 237, 0.45), 0 0 40px rgba(0, 97, 226, 0.22);
    }
}

/* 品牌常亮扫光：持续循环的紫色光带 */
@keyframes hero-brand-sweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

.title-line.highlight {
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 第二行副标题：深色模式用渐变文字；浅色模式用白底高亮 */
.hero-subtitle-line {
    display: inline-block;
    white-space: nowrap;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
[data-theme="light"] .hero-subtitle-line {
    background: rgba(255, 255, 255, 0.95);
    color: #0a0e27;
    padding: 0.25em 0.5em;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #0a0e27;
}

/* 描述整体：提高对比度，其余文字更显眼 */
.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* RWA、DePIN、GameFi、DeFi 标签：双色强调 + 微动效 */
.hero-description .hero-desc-tag {
    display: inline-block;
    font-weight: 700;
    color: var(--primary-color);
    padding: 0.1em 0.35em;
    margin: 0 0.05em;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(0, 97, 226, 0.25) 0%, rgba(255, 57, 74, 0.15) 100%);
    border: 1px solid rgba(0, 97, 226, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: hero-desc-tag-in 0.6s ease-out backwards;
}
.hero-description .hero-desc-tag:nth-of-type(1) { animation-delay: 0.9s; }
.hero-description .hero-desc-tag:nth-of-type(2) { animation-delay: 1s; }
.hero-description .hero-desc-tag:nth-of-type(3) { animation-delay: 1.1s; }
.hero-description .hero-desc-tag:nth-of-type(4) { animation-delay: 1.2s; }
.hero-description .hero-desc-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(0, 97, 226, 0.35), 0 0 8px rgba(255, 57, 74, 0.2);
}
@keyframes hero-desc-tag-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 全球算力：最强强调 */
.hero-description .hero-desc-highlight {
    font-weight: 700;
    color: #fff;
    padding: 0.15em 0.45em;
    margin: 0 0.1em;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-coral) 100%);
    box-shadow: 0 2px 12px rgba(0, 97, 226, 0.4);
    animation: hero-desc-tag-in 0.6s ease-out 1.35s backwards;
}
.hero-description .hero-desc-highlight:hover {
    box-shadow: 0 4px 20px rgba(0, 97, 226, 0.5), 0 0 24px rgba(255, 57, 74, 0.25);
}
[data-theme="light"] .hero-description .hero-desc-highlight {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-coral) 100%);
    color: #fff;
    padding: 0.15em 0.45em;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 97, 226, 0.35);
}

/* 「与智慧」「激活智能生态」「开启数字文明新纪元」：显眼 + 入场动画 + 悬停微光 */
.hero-description .hero-desc-flow {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    padding: 0.08em 0.2em;
    border-radius: 4px;
    transition: color 0.25s ease, text-shadow 0.25s ease, background 0.25s ease;
    animation: hero-desc-flow-in 0.7s ease-out backwards;
}
.hero-description .hero-desc-flow:nth-child(6) { animation-delay: 1.5s; }
.hero-description .hero-desc-flow:nth-child(7) { animation-delay: 1.65s; }
.hero-description .hero-desc-flow:nth-child(8) { animation-delay: 1.8s; }
.hero-description .hero-desc-flow:hover {
    color: #fff;
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.4);
    background: rgba(167, 139, 250, 0.12);
}
@keyframes hero-desc-flow-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
[data-theme="light"] .hero-description .hero-desc-flow {
    color: #fff;
}
[data-theme="light"] .hero-description .hero-desc-flow:hover {
    background: rgba(0, 97, 226, 0.08);
    text-shadow: none;
}

[data-theme="light"] .hero-description {
    color: #fff;
}
[data-theme="light"] .hero-description .hero-desc-tag {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}
[data-theme="light"] .hero-description .hero-desc-tag:hover {
    box-shadow: 0 2px 12px rgba(0, 97, 226, 0.25), 0 0 8px rgba(255, 57, 74, 0.15);
}
[data-theme="light"] .hero-description .hero-desc-highlight {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-coral) 100%);
    color: #fff;
    padding: 0.15em 0.45em;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 97, 226, 0.35);
}

/* 中文、繁体首页描述一行显示 */
/* 英雄区描述：自然换行，不强制单行 */
html[lang="zh-CN"] .hero-description,
html[lang="zh-TW"] .hero-description {
    white-space: normal;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 0;
}
/* 按钮红蓝扫光条：悬停时从左到右扫过 */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 97, 226, 0.5) 25%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 57, 74, 0.5) 75%, transparent 100%);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
    z-index: 0;
    pointer-events: none;
}
.btn:hover::before {
    transform: translateX(220%);
}
.btn > * {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-3);
    color: var(--bg-dark);
}
/* 浅色模式第一屏：iOS 按钮白底 + 主题蓝字 */
[data-theme="light"] .hero .hero-buttons .btn-primary {
    background: #fff;
    color: var(--primary-color);
}
[data-theme="light"] .hero .hero-buttons .btn-primary:hover {
    background: rgba(255, 255, 255, 0.92);
    color: var(--secondary-color);
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3), 0 0 20px rgba(0, 97, 226, 0.2);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-blue);
    box-shadow: 0 0 16px rgba(255, 57, 74, 0.15);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    z-index: 3;
    transition: opacity 0.6s ease-out;
    pointer-events: none;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--accent-blue);
    border-radius: 12px;
    position: relative;
    box-shadow: 0 0 12px rgba(0, 97, 226, 0.3);
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent-coral);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ========== 首页动画优化：滚动揭示 + 交错入场（参考高端官网） ========== */
.reveal-section .section-header {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-section.animate-in .section-header {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.reveal-section .architecture-content {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-section.animate-in .architecture-content {
    opacity: 1;
    transform: translateY(0);
}
.reveal-section .architecture-content:nth-of-type(1) { transition-delay: 0.05s; }
.reveal-section .architecture-content:nth-of-type(2) { transition-delay: 0.15s; }
.reveal-section .architecture-content:nth-of-type(3) { transition-delay: 0.25s; }
.reveal-section .architecture-diagram .diagram-node {
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-section .architecture-diagram .center-node {
    transform: translate(-50%, -50%) scale(0.88);
}
.reveal-section .architecture-diagram .left-node { transition-delay: 0.2s; }
.reveal-section .architecture-diagram .center-node { transition-delay: 0.35s; }
.reveal-section .architecture-diagram .right-node { transition-delay: 0.2s; }
.reveal-section.animate-in .architecture-diagram .diagram-node {
    opacity: 1;
    transform: scale(1);
}
.reveal-section.animate-in .architecture-diagram .center-node {
    transform: translate(-50%, -50%) scale(1);
}
.reveal-section .connection-line {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-section.animate-in .connection-line { opacity: 1; transform: scaleX(1); }
.reveal-section.animate-in .connection-line.line-1 { transition-delay: 0.4s; }
.reveal-section.animate-in .connection-line.line-2 { transition-delay: 0.5s; }
.reveal-section.animate-in .connection-line.line-3 { transition-delay: 0.4s; }

/* 产品生态：从左滑入 + 末端弹性跳动 */
.reveal-section.products .product-card {
    opacity: 0;
    transform: translateX(-80px);
    transition: none;
}
.reveal-section.products.animate-in .product-card:nth-child(1) { animation: product-slide-bounce 0.7s ease-out 0.05s forwards; }
.reveal-section.products.animate-in .product-card:nth-child(2) { animation: product-slide-bounce 0.7s ease-out 0.12s forwards; }
.reveal-section.products.animate-in .product-card:nth-child(3) { animation: product-slide-bounce 0.7s ease-out 0.19s forwards; }
.reveal-section.products.animate-in .product-card:nth-child(4) { animation: product-slide-bounce 0.7s ease-out 0.26s forwards; }
.reveal-section.products.animate-in .product-card:nth-child(5) { animation: product-slide-bounce 0.7s ease-out 0.33s forwards; }
@keyframes product-slide-bounce {
    0% { opacity: 0; transform: translateX(-80px); }
    65% { opacity: 1; transform: translateX(12px); }
    85% { opacity: 1; transform: translateX(-4px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* 开发者中心：从左滑入 + 弹性缓动跳动 */
.reveal-section.developer .resource-card {
    opacity: 0;
    transform: translateX(-70px);
    transition: none;
}
.reveal-section.developer.animate-in .resource-card:nth-child(1) { animation: developer-slide-bounce 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s forwards; }
.reveal-section.developer.animate-in .resource-card:nth-child(2) { animation: developer-slide-bounce 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.12s forwards; }
.reveal-section.developer.animate-in .resource-card:nth-child(3) { animation: developer-slide-bounce 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.19s forwards; }
.reveal-section.developer.animate-in .resource-card:nth-child(4) { animation: developer-slide-bounce 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.26s forwards; }
@keyframes developer-slide-bounce {
    0% { opacity: 0; transform: translateX(-70px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* 应用场景：从左滑入 + 缩放弹跳 */
.reveal-section.scenarios .scenario-item {
    opacity: 0;
    transform: translateX(-60px) scale(0.92);
    transition: none;
}
.reveal-section.scenarios.animate-in .scenario-item:nth-child(1) { animation: scenario-slide-scale 0.72s cubic-bezier(0.34, 1.4, 0.64, 1) 0.05s forwards; }
.reveal-section.scenarios.animate-in .scenario-item:nth-child(2) { animation: scenario-slide-scale 0.72s cubic-bezier(0.34, 1.4, 0.64, 1) 0.12s forwards; }
.reveal-section.scenarios.animate-in .scenario-item:nth-child(3) { animation: scenario-slide-scale 0.72s cubic-bezier(0.34, 1.4, 0.64, 1) 0.19s forwards; }
.reveal-section.scenarios.animate-in .scenario-item:nth-child(4) { animation: scenario-slide-scale 0.72s cubic-bezier(0.34, 1.4, 0.64, 1) 0.26s forwards; }
.reveal-section.scenarios.animate-in .scenario-item:nth-child(5) { animation: scenario-slide-scale 0.72s cubic-bezier(0.34, 1.4, 0.64, 1) 0.33s forwards; }
.reveal-section.scenarios.animate-in .scenario-item:nth-child(6) { animation: scenario-slide-scale 0.72s cubic-bezier(0.34, 1.4, 0.64, 1) 0.4s forwards; }
.reveal-section.scenarios.animate-in .scenario-item:nth-child(7) { animation: scenario-slide-scale 0.72s cubic-bezier(0.34, 1.4, 0.64, 1) 0.47s forwards; }
.reveal-section.scenarios.animate-in .scenario-item:nth-child(8) { animation: scenario-slide-scale 0.72s cubic-bezier(0.34, 1.4, 0.64, 1) 0.54s forwards; }
@keyframes scenario-slide-scale {
    0% { opacity: 0; transform: translateX(-60px) scale(0.92); }
    70% { opacity: 1; transform: translateX(8px) scale(1.02); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}


/* Hero 副标题与按钮延迟入场 */
.hero .hero-description {
    opacity: 0;
    transform: translateY(16px);
    animation: hero-desc-in 0.8s ease-out 0.9s forwards;
}
.hero .hero-buttons {
    opacity: 0;
    transform: translateY(12px);
    animation: hero-btns-in 0.6s ease-out 1.2s forwards;
}
@keyframes hero-desc-in {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-btns-in {
    to { opacity: 1; transform: translateY(0); }
}

/* 尊重用户“减少动态”偏好：动画简化 */
@media (prefers-reduced-motion: reduce) {
    .hero-main-title,
    .hero-main-title::before,
    .hero-main-title::after,
    .hero-subtitle-line,
    .hero .hero-description,
    .hero .hero-buttons,
    .scroll-indicator { animation: none; }
    .hero-subtitle-line,
    .hero .hero-description,
    .hero .hero-buttons { opacity: 1; transform: none; }
    .scroll-indicator { opacity: 1; }
    .reveal-section .section-header,
    .reveal-section .architecture-content,
    .reveal-section .architecture-diagram .diagram-node,
    .reveal-section .connection-line,
    .reveal-section .product-card,
    .reveal-section .scenario-item,
    .reveal-section .resource-card {
        opacity: 1;
        transform: none;
        transition: none;
        animation: none;
    }
}

/* 通用区块样式 */
section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.title-main {
    display: block;
    color: var(--text-primary);
}

.title-sub {
    display: block;
    color: var(--primary-color);
    font-size: 0.6em;
    font-weight: 400;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* 基础容器：紧贴第一屏，无中间灰条 */
.architecture-stack-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0a1628;
    padding-top: 0;
}
[data-theme="light"] .architecture-stack-section {
    background: transparent;
}

.architecture-stack-header {
    position: sticky;
    top: 60px;
    z-index: 10;
    text-align: center;
    padding: 2rem 1rem 1.25rem;
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .architecture-stack-header {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: rgba(0, 102, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.08);
}

.architecture-stack-header .section-title {
    margin-bottom: 0.25rem;
}

.architecture-stack-hint {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.architecture-scroll-container {
    position: relative;
}

.architecture-stack {
    position: relative;
}

/* 三层高度减半（50vh），与产品生态/开发者中心一致的 sticky 堆叠交互 */
/* 三块无矮背景，仅保留层级与间距 */
.architecture-stack-item {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    padding: 2rem 2rem;
    z-index: 1;
    background: transparent;
    box-shadow: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.architecture-stack-item[data-layer="1"] {
    z-index: 3;
}

.architecture-stack-item[data-layer="2"] {
    z-index: 2;
}

.architecture-stack-item[data-layer="3"] {
    z-index: 1;
}

/* 与产品生态/开发者中心一致：进入视口时揭示动画 */
.architecture-stack-section.reveal-section .architecture-stack-item {
    opacity: 0;
    transform: translateY(24px);
}

.architecture-stack-section.reveal-section.animate-in .architecture-stack-item:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.08s;
}

.architecture-stack-section.reveal-section.animate-in .architecture-stack-item:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.16s;
}

.architecture-stack-section.reveal-section.animate-in .architecture-stack-item:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.24s;
}

/* 标题栏：无单独矮背景，仅保留文字与间距 */
.architecture-card-title-bar {
    position: relative;
    top: 0;
    z-index: 2;
    flex-shrink: 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 1.5rem 2rem 1rem;
    background: transparent;
    border-bottom: none;
}

.architecture-card-headline {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.architecture-card-headline span {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
}

/* 卡片内容：Avax风格居中 + hover 动效 */
.architecture-stack-inner.architecture-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.architecture-stack-inner.architecture-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.15);
}

.architecture-card-text {
    flex: 1;
}

.architecture-stack-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.architecture-stack-list li {
    font-size: 1.2rem;
    color: #fff;
    padding: 0.8rem 0;
    border-left: 3px solid var(--accent-blue);
    padding-left: 1rem;
    transition: border-color 0.25s ease, padding-left 0.25s ease;
}
.architecture-stack-list li:hover {
    border-left-color: var(--accent-coral);
    padding-left: 1.15rem;
}

.architecture-card-icon {
    flex: 0 0 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 50%;
}

.architecture-card-icon-symbol {
    font-size: 4rem;
}

/* 浅色主题适配 */
[data-theme="light"] .architecture-stack-item[data-layer="1"] {
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 -4px 24px rgba(0, 102, 255, 0.08);
}

[data-theme="light"] .architecture-stack-item[data-layer="2"] {
    background: rgba(248, 250, 255, 0.88);
    box-shadow: 0 -4px 24px rgba(0, 102, 255, 0.1);
}

[data-theme="light"] .architecture-stack-item[data-layer="3"] {
    background: rgba(240, 245, 255, 0.92);
    box-shadow: 0 -4px 28px rgba(0, 102, 255, 0.12);
}

[data-theme="light"] .architecture-card-headline {
    color: #0a1628;
}

[data-theme="light"] .architecture-card-headline span {
    color: rgba(10, 22, 40, 0.8);
}

[data-theme="light"] .architecture-stack-list li {
    color: #0a1628;
    border-left-color: var(--accent-blue);
}
[data-theme="light"] .architecture-stack-list li:hover {
    border-left-color: var(--accent-coral);
}

[data-theme="light"] .architecture-card-icon {
    background: rgba(0, 112, 243, 0.1);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .architecture-stack-item {
        min-height: 50vh;
        padding: 1.5rem 1rem;
    }

    .architecture-stack-header {
        padding: 1.5rem 1rem 1rem;
    }

    .architecture-card-title-bar {
        padding: 1rem 1rem;
        max-width: 100%;
    }

    .architecture-card-headline {
        font-size: 1.4rem;
    }

    .architecture-stack-inner.architecture-card {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .architecture-card-icon {
        flex: 0 0 120px;
        height: 120px;
    }

    .architecture-card-icon-symbol {
        font-size: 3rem;
    }

    .architecture-stack-list {
        align-items: center;
    }

    .architecture-stack-list li {
        font-size: 1rem;
        border-left: none;
        border-bottom: 1px solid #00d4ff;
        padding: 0.8rem 1rem;
    }
}


/* 保留旧类名以兼容可能存在的其他引用 */
.architecture {
    background: var(--bg-darker);
}

.architecture .section-header {
    margin-bottom: 1rem !important;
}

.architecture-content {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 0.3rem;
}

.architecture-content:last-of-type {
    margin-bottom: 0;
}

.architecture-content * {
    outline: none !important;
    border-color: var(--border-color) !important;
}

.architecture-diagram {
    position: relative;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diagram-node {
    position: absolute;
    width: 110px;
    height: 110px;
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
    transition: all 0.3s;
}

.diagram-node:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.3);
}

.center-node {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.left-node {
    top: 20%;
    left: 5%;
}

.right-node {
    top: 20%;
    right: 5%;
}

.node-icon {
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.node-label {
    font-size: 0.85rem;
    color: var(--text-primary);
    text-align: center;
    font-weight: 500;
}

.connection-line {
    position: absolute;
    background: var(--primary-color);
    opacity: 0.3;
    height: 2px;
    animation: pulse 2s ease-in-out infinite;
}

.line-1 { top: 28%; left: 15%; width: 35%; transform: rotate(-25deg); }
.line-2 { top: 28%; right: 15%; width: 35%; transform: rotate(25deg); }
.line-3 { top: 50%; left: 50%; width: 45%; transform: translateX(-50%) rotate(90deg); }

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.architecture-layers {
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: center;
    height: 100%;
}

.layer {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.layer:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.15);
    transform: translateX(5px);
}

.layer-title {
    color: var(--primary-color);
    font-size: 1.15rem; /* 进一步缩小标题字体 */
    margin-bottom: 0.4rem; /* 进一步缩小标题下方间距 */
    font-weight: 600;
}

.layer-list {
    list-style: none;
}

.layer-list li {
    padding: 0.15rem 0; /* 进一步缩小列表项间距 */
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.85rem; /* 进一步缩小字体 */
    transition: color 0.3s;
}

.layer-list li:hover {
    color: var(--text-primary);
}

.layer-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* 技术框架 + 产品生态 + 开发者 + 应用场景：统一 3D 画布容器 */
.main-3d-wrap {
    position: relative;
}

.main-3d-wrap .products-three-canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    z-index: 0;
}

.main-3d-wrap .architecture,
.main-3d-wrap .stack-modules-wrap {
    position: relative;
    z-index: 1;
}

.stack-modules-wrap {
    position: relative;
}

/* 浅色模式：三块背景与样式统一，且滑动堆叠（sticky） */
[data-theme="light"] .stack-modules-wrap .stack-module-item {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.92) 0%, rgba(203, 213, 225, 0.92) 100%);
    padding: 5rem 0;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .stack-modules-wrap .stack-module-item[data-stack="2"] {
    z-index: 2;
}

[data-theme="light"] .stack-modules-wrap .stack-module-item[data-stack="3"] {
    z-index: 3;
}

[data-theme="light"] .stack-modules-wrap .stack-module-item .container {
    position: relative;
    z-index: 2;
}

/* 产品生态模块 - 高级感视觉强化 */
.products {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 8rem 0;
    overflow: hidden;
}

[data-theme="light"] .products {
    background: transparent;
    padding: 5rem 0;
}

[data-theme="light"] .stack-modules-wrap .products::before {
    display: none;
}

[data-theme="light"] .products .section-title {
    color: var(--text-primary);
}

/* 产品生态背景装饰（微光纹理） */
.products::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(76, 181, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(129, 140, 248, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

/* 产品生态 - Three.js 粒子画布（在 .stack-modules-wrap 内已统一样式；此处兼容无 wrap 时） */
.products-three-canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    z-index: 1;
}

.stack-modules-wrap .products .container,
.products .container {
    position: relative;
    z-index: 2;
}

.products .section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.products .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 1rem;
    position: relative;
}

.products .section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    margin: 1rem auto 0;
    border-radius: 3px;
}

.products .section-description {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
}

.product-card {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    min-width: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(76, 181, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.1), transparent);
    transition: all 0.6s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(76, 181, 255, 0.3);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    background: rgba(30, 41, 59, 0.8);
}

.product-card:hover::before {
    left: 100%;
}

.product-icon {
    margin-bottom: 1rem;
}

.product-icon img {
    width: 2.5rem;
}

.product-card .product-name {
    color: #f8fafc;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.product-card .product-description {
    color: #94a3b8;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.product-card .product-link {
    color: #38bdf8;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.product-card .product-link:hover {
    color: #818cf8;
}

/* 产品卡片文字区域（用于浅色模式统一背景） */
.product-card-text {
    display: block;
}

/* 浅色模式：产品卡片浅蓝底 + 文字模块统一白底 */
[data-theme="light"] .products .product-card {
    background: rgba(224, 242, 254, 0.95);
    border-color: rgba(0, 102, 255, 0.18);
}
[data-theme="light"] .products .product-card:hover {
    background: rgba(219, 234, 254, 0.98);
    border-color: rgba(0, 102, 255, 0.28);
    box-shadow: 0 20px 25px -5px rgba(0, 102, 255, 0.08), 0 8px 10px -6px rgba(0, 102, 255, 0.06);
}
[data-theme="light"] .products .product-card-text {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.25rem 1rem 1.25rem;
    border-radius: 10px;
    margin-top: 0.75rem;
}
[data-theme="light"] .products .product-card .product-name {
    color: var(--text-primary);
}
[data-theme="light"] .products .product-card .product-description {
    color: var(--text-secondary);
}
[data-theme="light"] .products .product-card .product-link {
    color: var(--primary-color);
}
[data-theme="light"] .products .product-card .product-link:hover {
    color: var(--secondary-color);
}

/* 应用场景 - 深色下与产品生态统一背景与卡片 */
.scenarios {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="light"] .scenarios {
    background: transparent;
    padding: 5rem 0;
}

[data-theme="light"] .scenarios .section-title {
    color: var(--text-primary);
}

[data-theme="light"] .scenarios .section-description {
    color: var(--text-secondary);
}

[data-theme="light"] .scenarios .scenario-item {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 102, 255, 0.15);
}

[data-theme="light"] .scenarios .scenario-item:hover {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 102, 255, 0.25);
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.scenario-item {
    background: rgba(30, 41, 59, 0.6);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.scenario-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-3);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.scenario-item:hover::before {
    transform: scaleX(1);
}

.scenario-item:hover {
    transform: translateY(-5px);
    border-color: rgba(76, 181, 255, 0.3);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.scenario-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.scenario-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.scenario-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 开发者中心模块 - 深色下与产品生态统一背景 */
.developer {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 8rem 0;
    overflow: hidden;
}

[data-theme="light"] .developer {
    background: transparent;
    padding: 5rem 0;
}

[data-theme="light"] .stack-modules-wrap .developer::before,
[data-theme="light"] .stack-modules-wrap .developer::after {
    display: none;
}

[data-theme="light"] .developer .section-title {
    color: var(--text-primary);
}

[data-theme="light"] .developer .section-description {
    color: var(--text-secondary);
}

[data-theme="light"] .developer .resource-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .developer .resource-card:hover {
    background: var(--bg-darker);
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .developer .resource-card h3 {
    color: var(--text-primary);
}

[data-theme="light"] .developer .resource-card p {
    color: var(--text-secondary);
}

[data-theme="light"] .developer .resource-card .resource-link {
    color: var(--primary-color);
}

[data-theme="light"] .developer .resource-card .resource-link:hover {
    color: var(--secondary-color);
}

[data-theme="light"] .developer .developer-resources {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 100%;
}

[data-theme="light"] .developer .resource-card {
    padding: 1.25rem 1rem;
    min-height: 140px;
    display: flex;
    flex-direction: column;
}

[data-theme="light"] .developer .resource-card .resource-icon {
    margin-bottom: 0.6rem;
}

[data-theme="light"] .developer .resource-card .resource-icon img {
    width: 2rem;
}

[data-theme="light"] .developer .resource-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

[data-theme="light"] .developer .resource-card p {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    line-height: 1.45;
    flex: 1;
}

[data-theme="light"] .developer .resource-card .resource-link {
    font-size: 0.9rem;
}

.developer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, rgba(79, 172, 254, 0.2) 30%, rgba(0, 242, 254, 0.6) 50%, rgba(79, 172, 254, 0.2) 70%, transparent 100%);
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
}

.developer::after {
    content: "";
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(79, 172, 254, 0.06) 0%, transparent 65%);
    pointer-events: none;
    z-index: 1;
}

.developer .container {
    position: relative;
    z-index: 2;
}

.developer .section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.developer .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 1rem;
    position: relative;
}

.developer .section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #a855f7, #f472b6);
    margin: 1rem auto 0;
    border-radius: 3px;
}

.developer .section-description {
    font-size: 1.1rem;
    color: #c7d2fe;
    max-width: 600px;
    margin: 0 auto;
}

.developer-resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* 深色下与产品生态卡片一致 */
.resource-card {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.resource-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.08) 0%, rgba(0, 242, 254, 0.05) 100%);
    border-radius: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-8px);
    border-color: rgba(76, 181, 255, 0.3);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    background: rgba(30, 41, 59, 0.75);
}
.resource-card:hover::before {
    opacity: 1;
}


.resource-icon {
    margin-bottom: 1rem;
}

.resource-icon img {
    width: 3rem;
}

.resource-card h3 {
    color: #f8fafc;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.resource-card p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.resource-card .resource-link {
    color: #38bdf8;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.resource-card .resource-link:hover {
    color: #818cf8;
}

/* 代币经济 */
.token {
    background: var(--bg-darker);
}

.token-content {
    max-width: 800px;
    margin: 0 auto;
}

.token-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.token-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.token-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.token-card ul {
    list-style: none;
}

.token-card li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 1.5rem;
}

.token-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.token-card li:last-child {
    border-bottom: none;
}

/* 关于我们 */
.about {
    background: var(--bg-dark);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-text ul {
    list-style: none;
    margin-top: 1rem;
}

.about-text li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.about-text li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* 页脚：3D 背景 + 内容在上 */
.footer {
    position: relative;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
    overflow: hidden;
}

.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

#footer-three {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.footer-three-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0.5;
    background: rgba(10, 14, 23, 0.4);
    pointer-events: none;
}

[data-theme="light"] .footer {
    background-color: var(--bg-darker);
}

[data-theme="light"] .footer-three-overlay {
    background: rgba(226, 232, 240, 0.6);
}

.footer-inner {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s, text-shadow 0.2s, transform 0.2s;
    display: inline-block;
}

.footer-section a:hover {
    color: #00d4ff;
    text-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
}

.footer-section a:active {
    color: #5ce1ff;
    text-shadow: 0 0 16px rgba(0, 212, 255, 0.7);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 导航栏：保证右上角语言+菜单完全显示 */
    .navbar .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .nav-wrapper {
        gap: 0.5rem;
        min-width: 0;
    }
    .logo a span {
        display: none;
    }
    .logo a {
        padding: 0.25rem 0;
    }
    .logo-icon {
        width: 36px;
        height: 36px;
    }
    .nav-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
    }
    .menu-toggle {
        display: flex;
        padding: 0.4rem;
    }
    .lang-switch {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        min-width: auto;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        flex-direction: column;
        background: var(--bg-dark);
        width: 100%;
        padding: 2rem;
        transition: left 0.3s;
        border-top: 1px solid var(--border-color);
        gap: 1rem;
        z-index: 9999;
    }
    
    .nav-menu li {
        white-space: normal;
    }
    
    .nav-menu a {
        font-size: 1rem;
        white-space: normal;
    }

    .nav-menu.active {
        left: 0;
    }
    
    /* 移动端下拉菜单 */
    .product-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0.5rem 0 0.5rem 1.5rem;
        margin-top: 0;
        background: rgba(45, 55, 72, 0.92);
    }
    [data-theme="light"] .product-dropdown {
        background: rgba(255, 255, 255, 0.98);
    }
    .product-dropdown a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    /* 首页 Hero：标题两行分开、完整显示 */
    .hero {
        padding-top: 70px;
        padding-left: 16px;
        padding-right: 16px;
    }
    .hero .container {
        padding-left: 8px;
        padding-right: 8px;
    }
    .hero-content {
        max-width: 100%;
        padding: 0 8px;
    }
    .hero-title {
        font-size: clamp(1.5rem, 6.5vw, 2.5rem);
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    .title-line {
        display: block !important;
    }
    .hero-main-title,
    .hero-subtitle-line {
        display: block !important;
        white-space: nowrap;
        text-align: left;
    }
    .hero-main-title::after {
        display: block;
    }
    html[lang="zh-CN"] .hero-description,
    html[lang="zh-TW"] .hero-description,
    .hero-description {
        white-space: normal !important;
        font-size: 0.95rem;
        line-height: 1.7;
        padding: 0 4px;
    }

    .architecture-content {
        grid-template-columns: 1fr;
    }

    .architecture-diagram {
        height: 300px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-bottom {
        text-align: center;
    }

    /* 产品生态、开发者中心 - 移动端 */
    .products,
    .developer {
        padding: 5rem 0;
    }

    [data-theme="light"] .stack-modules-wrap .stack-module-item {
        min-height: 85vh;
        padding: 3rem 0;
    }

    [data-theme="light"] .developer .developer-resources {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .products .section-title,
    .developer .section-title {
        font-size: 2rem;
    }

    .product-card,
    .resource-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(1.35rem, 5.5vw, 2rem);
    }
    .hero-description {
        font-size: 0.9rem;
    }
    section {
        padding: 4rem 0;
    }
    .section-header {
        margin-bottom: 2rem;
    }
    .products-grid,
    .scenarios-grid,
    .developer-resources {
        grid-template-columns: 1fr;
    }
    [data-theme="light"] .developer .developer-resources {
        grid-template-columns: 1fr;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 选中文本样式 */
::selection {
    background: var(--primary-color);
    color: var(--bg-dark);
}