/* ===== CSS Variables ===== */
:root {
    /* Primary Colors - Gold Theme */
    --primary-500: #FFC700;
    --primary-700: #E0A800;
    --primary-200: #FFF0B3;
    
    /* Neutral Colors - Dark Theme */
    --neutral-950: #000000;
    --neutral-900: #141414;
    --neutral-800: #1E1E1E;
    --neutral-700: #3F3F46;
    --neutral-500: #A1A1AA;
    --neutral-300: #E4E4E7;
    
    /* Semantic Colors */  
    --success: #4ADE80;
    --warning: #FACC15;
    --error: #F87171;
    
    /* Typography */
    --font-heading: 'DOSUKOI', 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-xxl: 0px;
    
    /* Border Radius */
    --radius: 8px;
    
    /* Shadows */
    --shadow-glow-md: 0 0 24px rgba(255, 199, 0, 0.2);
    --shadow-glow-lg: 0 0 48px rgba(255, 199, 0, 0.3);
}

/* ===== Custom Font: DOSUKOI ===== */
@font-face {
    font-family: 'DOSUKOI';
    src: url('assets/fonts/DOSUKOI.ttf?v=2') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block; /* 避免初次渲染回退其他字体，确保始终使用DOSUKOI */
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--neutral-950);
    color: var(--neutral-300);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ===== Particle Background (Global, fixed) ===== */
#particles-js {
    position: fixed;
    inset: 0; /* 更稳健地贴合视口，避免 100vw 引发的移动端右侧空隙 */
    width: 100%;
    height: 100vh; /* 基础高度 */
    z-index: 0; /* behind content */
    pointer-events: none;
    background: transparent;
}
/* 现代移动端视口单位支持：在地址栏显隐时仍能铺满 */
@supports (height: 100dvh) {
  #particles-js { height: 100dvh; }
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent; /* 初始不显示背景条 */
    backdrop-filter: none;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    animation: navSlideDown 600ms ease-out forwards;
    transition: background 240ms ease, backdrop-filter 240ms ease, border-color 240ms ease;
}

.navbar.scrolled {
    background: rgba(20, 20, 20, 0.95); /* 滚动后显示背景条 */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neutral-700);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    flex-direction: row;
    align-items: center; /* 垂直居中 */
}

.logo-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    border-radius: 4px;
    background: transparent;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-500);
    text-shadow: var(--shadow-glow-md);
}

/* 导航图片 Logo */
.nav-logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.logo-subtitle {
    display: none; /* 移除副标题显示 */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--neutral-300);
    text-decoration: none;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    display: block;
    opacity: 0;
    transform: translateY(-12px);
    animation: navItemDrop 500ms ease-out forwards;
}

.nav-link.active {
    color: var(--primary-500);
    text-shadow: 0 0 8px rgba(255, 199, 0, 0.5);
}

.nav-link:hover:not(.active):not(.disabled):not(.cta-nav) {
    text-shadow: 0 0 12px rgba(180, 110, 0, 0.55), 0 0 24px rgba(180, 110, 0, 0.35);
}

.nav-link.cta-nav {
    background: var(--primary-500);
    color: var(--neutral-950);
    font-weight: 600;
    box-shadow: var(--shadow-glow-md);
    border-radius: calc(var(--radius) * 2);
}

.nav-link.cta-nav:hover {
    background: var(--primary-700);
    transform: scale(1.05);
}

.nav-link.disabled {
    color: var(--neutral-500);
    cursor: not-allowed;
    opacity: 0.6;
    animation: none !important; /* 禁用入场动画，避免闪烁 */
    transform: none; /* 保持静止不位移 */
}

.coming-soon {
    position: absolute;
    top: -20px;
    right: 0;
    background: var(--warning);
    color: var(--neutral-950);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.nav-item:hover .coming-soon {
    opacity: 1;
    transform: translateY(0);
}

/* 入场动画：导航按钮顺序出现（从左到右） */
.nav-menu .nav-item:nth-child(1) .nav-link:not(.disabled) { animation-delay: 400ms; }
.nav-menu .nav-item:nth-child(2) .nav-link:not(.disabled) { animation-delay: 520ms; }
.nav-menu .nav-item:nth-child(3) .nav-link:not(.disabled) { animation-delay: 640ms; }
.nav-menu .nav-item:nth-child(4) .nav-link:not(.disabled) { animation-delay: 760ms; }
.nav-menu .nav-item:nth-child(5) .nav-link:not(.disabled) { animation-delay: 880ms; }
.nav-menu .nav-item:nth-child(6) .nav-link:not(.disabled) { animation-delay: 1000ms; }
.nav-menu .nav-item:nth-child(7) .nav-link:not(.disabled) { animation-delay: 1120ms; }

@keyframes navSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes navItemDrop {
    from { transform: translateY(-12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ===== Mobile Navigation ===== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--neutral-300);
    transition: 0.3s;
    border-radius: 2px;
}

/* ===== Hero Section ===== */
.hero-title {
    font-family: 'DOSUKOI' !important;
}

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 左对齐 */
    position: relative;
    background-color: var(--neutral-950);
    overflow: hidden;
}


.hero-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    text-align: left;
    animation: heroFadeIn 1.5s ease-out;
    position: relative;
    z-index: 1;
}

@keyframes heroFadeIn {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-content {
    flex: 1;
    padding-right: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
}

.hero-main-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    width: 100%;
}

.hero-title {
    font-family: 'DOSUKOI', var(--font-heading), sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-500);
    margin-bottom: var(--space-sm);
    text-shadow: 0 0 20px rgba(255, 199, 0, 0.3);
    animation: titleGlow 3s ease-in-out infinite alternate;
    white-space: nowrap;
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 20px rgba(255, 199, 0, 0.3); }
    100% { text-shadow: 0 0 30px rgba(255, 199, 0, 0.6), 0 0 40px rgba(255, 199, 0, 0.4); }
}


.hero-description {
    font-size: 18px;
    color: var(--primary-500);
    margin-bottom: var(--space-xl);
    animation: subtitleSlide 1s ease-out 0.6s both;
}

@keyframes subtitleSlide {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ===== Hero Gold Animation ===== */
.hero-gold {
    margin: var(--space-xl) 0;
    animation: goldFloat 2s ease-in-out infinite;
}

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

.gold-icon {
    position: relative;
    display: inline-block;
}

.gold-coin {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #FFD700, #FFA500, #FF8C00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow-lg);
    position: relative;
    animation: coinSpin 4s linear infinite;
}

@keyframes coinSpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.gold-coin::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    border-radius: 50%;
}

.gold-inner {
    background: linear-gradient(135deg, #FFF8DC, #F5DEB3);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.gold-text {
    font-family: var(--font-mono);
    font-weight: 600;
    color: #8B4513;
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(255,255,255,0.3);
}

.gold-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-200);
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
}

.sparkle:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 30%; right: 15%; animation-delay: 0.7s; }
.sparkle:nth-child(3) { bottom: 20%; left: 30%; animation-delay: 1.4s; }

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

/* ===== CTA Buttons ===== */
.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: var(--space-xl);
    animation: ctaFadeIn 1s ease-out 0.9s both;
}

@keyframes ctaFadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.btn-primary, .btn-secondary {
    font-family: var(--font-bodys);
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    border: none;
    border-radius: calc(var(--radius) * 3); /* 在原基础上再增加50% */
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #FFF6B7 0%, #FFD700 35%, #E0A800 100%);
    color: var(--neutral-950);
    box-shadow: var(--shadow-glow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FFF9D1 0%, #FFE14A 35%, #D19A00 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-glow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--neutral-300);
    border: 2px solid var(--neutral-500);
}

.btn-secondary:hover {
    border-color: var(--primary-500);
    color: var(--primary-500);
    box-shadow: var(--shadow-glow-md);
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--primary-500);
    border-bottom: 2px solid var(--primary-500);
    transform: rotate(45deg);
    opacity: 0.6;
}

/* ===== Container ===== */
.container {
    max-width: 2560px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ===== Section Styles ===== */
section {
    padding: var(--space-xxl) 0;
    position: relative;
}


/* ===== A类: Deposit Section ===== */
.section-a {
    background: transparent;
}

.deposit-preview {
    background: transparent;
    border-radius: 0;
    padding: var(--space-xl);
    border: none;
    box-shadow: none;
}

.deposit-preview h3 {
    font-family: 'DOSUKOI', var(--font-heading), sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-500);
    margin-bottom: var(--space-md);
    text-align: center;
    white-space: nowrap;
}

.deposit-animation {
    text-align: center;
    margin: var(--space-xl) 0;
}

.deposit-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0; /* 图片之间不要有间隔 */
    flex-wrap: nowrap;
    margin-bottom: var(--space-lg);
    transform: scale(0.85); /* 整体等比例缩小一点 */
    transform-origin: center; 
    will-change: transform;
}

.flow-img {
    flex: 0 0 auto; /* 使用图片原始尺寸 */
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.flow-img img {
    width: auto;
    height: auto;
    display: block;
}


.deposit-item {
    background-color: var(--neutral-950);
    border: 1px solid var(--primary-500);
    box-shadow: 0 0 10px var(--primary-500);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.deposit-icon {
    width: 60px;
    height: auto;
    margin-bottom: 10px;
}

.deposit-arrow svg path {
    stroke-width: 4;
}

.deposit-return {
    background-color: var(--neutral-950);
    border: 2px solid var(--primary-500);
}

.percent {
    font-size: 20px;
}

.plus {
    font-size: 18px;
}

.gold-mini {
    font-size: 20px;
    animation: goldRotate 3s linear infinite;
}

@keyframes goldRotate {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.deposit-features {
    max-width: 600px;
    margin: 40px auto 0;
    text-align: left;
}

.feature-item {
    margin-bottom: 20px;
}

.feature-item h4 {
    color: var(--primary-500);
    font-weight: 600;
    margin-bottom: 10px;
    position: relative; /* 让伪元素基于标题进行绝对定位 */
}

/* A-section 三个黄色标题添加同色小图标（金币点） */
.deposit-features .feature-item h4::before {
    content: '';
    position: absolute;
    left: -0.9em; /* 向左外凸，超出正文左对齐线 */
    top: 50%;
    transform: translateY(-50%); /* 垂直居中到标题文字 */
    width: 0.72em;
    height: 0.72em;
    border-radius: 50%;
    background: var(--primary-500);
    box-shadow: 0 0 8px rgba(255, 199, 0, 0.45);
}

.feature-item p {
    color: var(--neutral-300);
    line-height: 1.6;
}

/* A类区域滚动入场：从下往上飞入 */
.section-a .animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    will-change: transform, opacity;
    transition: transform 500ms ease, opacity 500ms ease;
}

.section-a .animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* A区图片（A1–A5）专用：从左往右飞入，距离更长、速度更慢 */
.section-a .deposit-flow .flow-img.animate-on-scroll {
    opacity: 0;
    transform: translateX(-220px); /* 飞入距离更长 */
    will-change: transform, opacity;
    transition: transform 1000ms cubic-bezier(0.22, 1, 0.36, 1), opacity 1000ms ease; /* 更慢更柔和 */
}
.section-a .deposit-flow .flow-img.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateX(0);
}

/* ===== B类: Section Title ===== */
.feature-section-title {
    font-family: 'DOSUKOI', var(--font-heading), sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-500);
    text-align: center;
    margin-bottom: var(--space-lg);
    white-space: nowrap;
}
/* 与 Deposit 标题距 Hero 的上内边距对齐 */
.section-b .feature-section-title { margin-top: var(--space-xl); }

.section-b .feature-section-spacer {
    height: var(--section-b-spacer, clamp(200px, 20vh, 500px));
}

/* ===== Scroll reveal (generic) ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    will-change: transform, opacity;
    transition: transform 500ms ease, opacity 500ms ease;
}
.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Hero Background Glow ===== */
.hero {
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: clamp(20px, 2.8vh, 72px);
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 120%;
    height: 120%;
    pointer-events: none;
    background: radial-gradient(
        1200px 800px at 100% 0%,
        rgba(255, 122, 0, 0.45) 0%,
        rgba(255, 160, 40, 0.30) 35%,
        rgba(255, 180, 80, 0.18) 55%,
        rgba(255, 180, 80, 0.08) 70%,
        rgba(255, 180, 80, 0.00) 85%
    );
    filter: blur(2px);
    z-index: 0;
}

/* ===== Hero Grid + Glow + Twinkle Background ===== */
.hero-grid-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Canvas for animated grid */
#animated-grid-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-grid-bg .grid-layer {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, rgba(255, 199, 0, 0.12) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(90deg, rgba(255, 199, 0, 0.12) 0 1px, transparent 1px 24px);
    opacity: 0.38;
    animation: gridMove 10s linear infinite;
    /* Hidden to use Canvas-based animated grid instead */
    display: none;
}

.hero-grid-bg .glow-layer { position: absolute; inset: 0; }
.hero-grid-bg .glow {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 199, 0, 0.26) 0%, rgba(255, 199, 0, 0.10) 50%, rgba(0, 0, 0, 0) 70%);
    filter: blur(8px);
    animation: pulse 6s ease-in-out infinite;
}
.hero-grid-bg .glow.g1 { top: 12%; left: 8%; width: 40%; height: 40%; animation-duration: 7s; }
.hero-grid-bg .glow.g2 { bottom: 15%; right: 12%; width: 35%; height: 35%; animation-duration: 5.5s; }
.hero-grid-bg .glow.g3 { top: 40%; left: 60%; width: 30%; height: 30%; animation-duration: 6.2s; }

.hero-grid-bg .glow-layer { display: none; }

.hero-grid-bg .twinkle-layer { position: absolute; inset: 0; }
.hero-grid-bg .dot {
    position: absolute;
    width: 1px;
    height: 1px;
    border-radius: 50%;
    background: rgba(255, 199, 0, 1);
    /* box-shadow: 0 0 0.3px rgba(255, 199, 0, 0.6), 0 0 0.6px rgba(255, 199, 0, 0.35); */
    animation: twinkle 2.2s ease-in-out infinite;
    animation-direction: alternate;
    opacity: 0.08;
    will-change: opacity, transform;
}

@keyframes twinkle {
    0% { opacity: 0; }
    30% { opacity: 0; }
    40% { opacity: 1; }
    45% { opacity: 0; }
    80% { opacity: 0; }
    90% { opacity: 0.9; }
    100% { opacity: 0; }
}

/* ===== B类: Feature Cards ===== */
.section-b {
    /* This section is now controlled by the sticky wrapper logic */
    padding: 0; /* Remove padding to allow sticky container to be full height */
    background: transparent;
}

.features-sticky-wrapper {
    height: auto; /* 交由 JS 计算初始高度并在滚动中动态收缩 */
}

.features-sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* 初始从上到下排列 */
    overflow: hidden;
}


.feature-cards-stack {
    position: relative;
    width: min(880px, 92vw);
    height: 100vh; /* 让卡片根据视口高度布局 */
    perspective: 1500px;
    transform-style: preserve-3d; /* Ensure children maintain 3D transforms */
    z-index: 1;
}

.feature-card-item {
    position: absolute;
    width: 100%;
    height: 50vh; /* 略微降低高度，缩短整体初始间距 */
    border-radius: 24px; /* More pronounced rounded corners */
    background: transparent;
    padding: 0;
    display: block;
    transform-origin: center;
    box-shadow: none;
    border: none;
    backface-visibility: hidden;
    will-change: transform;
    transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Image-only card content */
.feature-card-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
    display: block;
}

.card-content-left {
    width: 50%;
}

.card-content-left h3 {
    font-family: 'Playfair Display', 'Cinzel', Georgia, serif; /* 更具艺术感的衬线字体 */
    font-size: var(--font-5xl, 42px);
    font-weight: 700;
    color: var(--primary-200);
    margin-bottom: var(--space-lg);
    letter-spacing: 0.5px;
}

.card-content-left p {
    font-size: var(--font-lg);
    color: var(--neutral-300);
    line-height: 1.6;
}

.card-image-right-placeholder {
    width: 45%;
    height: 80%;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    border: 1px dashed var(--neutral-600);
}

/* ===== C类: Roadmap ===== */
.section-c { background: transparent; }

/* Sticky horizontal roadmap */
.roadmap-sticky-wrapper {
    height: 250vh; /* vertical scroll distance to drive horizontal slide */
}

.roadmap-sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 左对齐，确保卡片从右缘出现、到左缘消失 */
    overflow: hidden; /* hide off-screen cards */
    position: sticky;
}

.roadmap-timeline {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
    margin-top: var(--space-xl);
    will-change: transform;
    position: relative;
    z-index: 1;
    opacity: 0; /* 初始不可见，仅显示背景标题 */
}

.roadmap-bg-title {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    font-family: 'DOSUKOI', var(--font-heading), sans-serif;
    font-weight: 700;
    font-size: clamp(72px, 12vw, 100px);
    letter-spacing: 0.08em;
    color: var(--primary-500);
    opacity: 0.35;
    text-align: center;
}

.roadmap-card {
    background: transparent;
    border: none;
    border-radius: 30px;
    width: 500px;
    height: 500px;
    padding: 0;
    display: block;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.roadmap-card.has-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.18), rgba(0,0,0,0.28));
    pointer-events: none;
}

.roadmap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 199, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.roadmap-card:hover::before {
    left: 100%;
}

.roadmap-card.sweep::before {
    left: 100%;
}

.roadmap-card:hover {
    /* 保留光划过动效（由 ::before 控制），移除边框/阴影/位移 */
}

.quarter {
    font-family: 'DOSUKOI', var(--font-heading), sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-500);
    margin-bottom: var(--space-sm);
}

.milestone {
    font-size: 16px;
    color: var(--neutral-300);
    line-height: 1.4;
}

/* ===== Partners Section ===== */
.partner-section {
    /*background: rgba(16, 16, 16, 0.75);*/
    padding: var(--space-xxl) 0;
    text-align: center;
}

/* 使 Partner 标题与 B 区标题的上间距一致 */
.partner-section .feature-section-title { margin-top: var(--space-xl); }

.partner-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 600;
    color: var(--primary-500);
    margin-bottom: var(--space-xl);
    /*text-transform: uppercase;*/
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 199, 0, 0.3);
}

.logo-loop {
    width: 100%;
    overflow: hidden;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.logo-track {
    display: inline-flex;
    align-items: center;
    gap: clamp(24px, 4vw, 48px);
    will-change: transform;
    transform: translateX(0);
}


/* 图片 Logo 样式，与占位样式保持一致 */
.logo-item {
    height: 70px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* ===== Footer ===== */
.footer {
    background: var(--neutral-900);
    border-top: 1px solid var(--neutral-700);
    padding: var(--space-xl) 0 var(--space-lg);
}

/* ===== Mobile (<=768px): 仅对 Hero 与文字排版做适配；A/C 保持横向 ===== */
@media (max-width: 768px) {
  /* Hero：上下排版，文本与按钮占满宽度，GIF 放在按钮下方 */
  .hero-content { padding-right: 0; }
  .hero-main-content { flex-direction: column; align-items: center; justify-content: center; gap: var(--space-lg); }
  .hero-text-content { width: 100%; text-align: center; }
  /* 预留导航栏高度，避免与 hero 文本重叠 */
  .hero-container { padding-top: 72px; }
  .hero-cta { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
  .hero-visual-wrap { min-width: 100%; }
  .hero-visual { max-width: 92vw; max-height: 48vh; }

  /* A-section：保持横向，仅做等比例缩小以适配窄屏 */
  .deposit-flow { transform: scale(0.72); transform-origin: center; flex-wrap: nowrap !important; }
  .deposit-preview h3 { white-space: normal; font-size: clamp(28px, 8vw, 36px); }

  /* B-section：移动端改为普通纵向列表展示 */
  .features-sticky-wrapper { height: auto !important; }
  .features-sticky-container { position: relative; top: auto; height: auto; overflow: visible; }
  .feature-cards-stack { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); width: 100% !important; height: auto !important; }
  /* 允许动画修改 transform；移除强制覆盖 */
  .feature-card-item { position: static; height: auto; z-index: auto; }
  /* 竖屏：B-section 卡片滚动入场（轻微从下向上） */
  .section-b .feature-card-item.animate-on-scroll { opacity: 0; transform: translateY(16px); transition: transform 360ms ease, opacity 360ms ease; }
  .section-b .feature-card-item.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
  /* 竖屏：B-section 标题适配，避免超出屏幕 */
  .section-b .feature-section-title { white-space: normal; font-size: clamp(20px, 6vw, 30px); }
  /* 竖屏：B-section 卡片位移动画的基础过渡 */
  .section-b .feature-card-item { transition: transform 300ms ease, opacity 300ms ease; will-change: transform; }
  .section-b { padding: var(--space-xl) 0; }

  /* C-section：保持横向滑动，不强制覆盖 transform，交由 JS 控制位移 */
  .roadmap-sticky-wrapper { height: 250vh; }
  .roadmap-sticky-container { position: sticky; top: 0; height: 80vh; overflow: hidden; }
  .roadmap-timeline { display: flex; flex-direction: row; gap: var(--space-md); opacity: 0; /* 初始与桌面一致，JS 控制可见与位移 */ }
  .roadmap-card { width: min(86vw, 480px); height: min(86vw, 480px); }
  /* Partner：竖屏居中对齐 */
  .partner-logos { justify-content: center; width: 100%; }

  /* 移动端：缩小 Section-B 标题与卡片之间的间隔 */
  .section-b { --section-b-spacer: clamp(24px, 6vh, 64px); }
  .section-b .feature-section-spacer { height: var(--section-b-spacer); }
}


.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    color: var(--neutral-500);
    font-size: 14px;
}

/* ===== Scroll Animations ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* A-section：为 A1–A5 图片加快入场“飞行”速度（桌面端） */
.section-a .deposit-flow .flow-img.animate-on-scroll {
    transition: opacity 0.38s ease-out, transform 0.38s ease-out;
}

.deposit-step .animate-on-scroll:nth-child(1) {
    transition-delay: 0.1s;
}

.deposit-step .animate-on-scroll:nth-child(2) {
    transition-delay: 0.3s;
}

.deposit-step .animate-on-scroll:nth-child(3) {
    transition-delay: 0.5s;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .nav-menu { gap: var(--space-md); }
    .hero-title { font-size: 48px; }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--neutral-900);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        border-top: 1px solid var(--neutral-700);
        padding: var(--space-lg) 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 36px;
        white-space: normal; /* 移动端允许换行 */
    }
    
    .hero-cta { flex-direction: column; align-items: center; }

  /* A-section: 竖屏两列网格并放大单元高度（约+50%） */
  .deposit-flow { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); justify-items: center; transform: none; }
  .deposit-flow .flow-img { width: 100%; height: 240px; display: flex; align-items: center; justify-content: center; }
  .deposit-flow .flow-img img { height: 100%; width: auto; max-width: 100%; object-fit: contain; display: block; }

  /* B-section: 减少标题距离上一节的间距（减半） */
  .section-b .feature-section-title { margin-top: calc(var(--space-xl) / 2); }
  /* Partner 标题在竖屏与 B 标题一致大小 */
  .partner-section .feature-section-title { font-size: clamp(20px, 6vw, 30px); white-space: normal; }
    
    .feature-cards-stack { height: auto; flex-direction: column; gap: var(--space-md); }
    
    
    /* C-section: 保持横向滑动，避免改为 grid 布局 */
    .roadmap-timeline {
        display: flex;
        grid-template-columns: unset;
    }
    
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero-title { font-size: 28px; white-space: normal; }
    
    .roadmap-card { padding: var(--space-md); }

    /* A-section：小屏两列网格并提升单元高度 */
    .deposit-flow { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); justify-items: center; }
    .deposit-flow .flow-img { width: 100%; height: 220px; display: flex; align-items: center; justify-content: center; }
    .deposit-flow .flow-img img { height: 100%; width: auto; max-width: 100%; object-fit: contain; display: block; }

    /* C-section 背景标题在小屏避免裁切 */
    .roadmap-bg-title { font-size: clamp(28px, 10vw, 48px); padding: 0 var(--space-sm); word-break: break-word; overflow-wrap: anywhere; }
}

/* ===== Performance Optimizations ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-900);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-500);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-700);
}
.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: calc(var(--radius) * 2);
    border: 1px solid rgba(255, 199, 0, 0.30);
    background: rgba(255, 199, 0, 0.06);
    color: var(--neutral-300);
    font-size: 14px;
    letter-spacing: 0.3px;
    margin-bottom: var(--space-xs);
    animation: subtitleSlide 0.6s ease-out both;
}

.label-icon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-500);
    box-shadow: 0 0 8px rgba(255, 199, 0, 0.4);
}

.label-text { color: var(--neutral-300); }

.btn-primary::after {
    content: none;
    display: none;
}

.btn-secondary::after {
    content: none;
    display: none;
}
/* ===== Hero Visual (GIF) ===== */
.hero-visual-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 40%;
    min-height: 250px;
}

.hero-visual {
    height: auto; /* 等比例显示 */
    width: 100%;
    max-height: 390px; /* 上限控制，维持之前的放大要求 */
    max-width: 100%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    display: block;
}

/* ===== Global Heading Font Enforce ===== */
h1, h2, h3,
.section-title,
.feature-section-title,
.deposit-title,
.logo-text {
    font-family: 'DOSUKOI', var(--font-heading), sans-serif !important;
}
#ghost-cursor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 0;
}
.pill-link {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--radius) * 2);
    padding: var(--space-xs) var(--space-sm);
    min-height: calc(1em * 1.6 + var(--space-xs) * 2);
    display: inline-block;
    white-space: nowrap;
    isolation: isolate;
}

.pill-link::before,
.pill-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 0;
}

/* 未选中底色：半透明黑色 */
.pill-link::before {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 选中金色填充：由底部圆心向上扩张 */
.pill-link::after {
    background: linear-gradient(135deg, #FFF6B7 0%, #FFD700 35%, #E0A800 100%);
    transform: translateZ(0);
    clip-path: circle(0% at 50% 100%);
    transition: clip-path 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pill-text { pointer-events: none; will-change: transform, opacity; }
.pill-text-default { position: relative; z-index: 1; display: inline-block; color: var(--neutral-300); }
.pill-text-active {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-950);
    opacity: 0;
    transform: translateY(20px);
}

/* 悬停：文字上飞、金色填充扩张、新文字从下飞入 */
.pill-link:not(.is-active):hover::after {
    clip-path: circle(150% at 50% 100%);
}
.pill-link:not(.is-active):hover .pill-text-default {
    opacity: 0;
    transform: translateY(-20px) scale(0.98);
    filter: blur(0.3px);
    transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1), opacity 300ms ease, filter 300ms ease;
}
.pill-link:not(.is-active):hover .pill-text-active {
    opacity: 1;
    transform: translateY(0);
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 420ms ease;
    transition-delay: 80ms;
}

.pill-link:not(.is-active) .pill-text-default {
    transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1), opacity 300ms ease, filter 300ms ease;
}
.pill-link:not(.is-active) .pill-text-active {
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 420ms ease;
}

/* 选中态：保持 Home 的金色视觉 */
.pill-link.is-active::before { opacity: 0; }
.pill-link.is-active::after { clip-path: circle(150% at 50% 100%); }
.pill-link.is-active .pill-text-default { opacity: 0; transform: translateY(-12px); }
.pill-link.is-active .pill-text-active { opacity: 1; transform: translateY(0); font-weight: 600; }

/* 悬停选中态：轻微放大以强调 */
.pill-link.is-active:hover { transform: scale(1.03); transition: transform 180ms ease; }
