/* ============================================
   Tokenim 官网 - 全新视觉与布局
   配色：深海军 + 琥珀 + 青绿
   字体：Plus Jakarta Sans
   ============================================ */

:root {
    --color-bg-dark: #0c1222;
    --color-bg-card: #151d2e;
    --color-bg-elevated: #1a2438;
    --color-accent-amber: #f59e0b;
    --color-accent-teal: #14b8a6;
    --color-accent-coral: #f97316;
    --color-text-primary: #f1f5f9;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;
    --color-border: rgba(148, 163, 184, 0.12);
    --font-main: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 60px rgba(245, 158, 11, 0.08);
    --transition-base: 0.25s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg-dark);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 内容区图片：PC 60%-100% 自适应，移动端 100% */
.section-product .product-img,
.section-security .security-img,
.section-guide .guide-img {
    width: 100%;
}

@media (min-width: 769px) {
    .product-img { width: 85%; }
    .guide-img { width: 90%; }
}

/* ---------- 布局容器 ---------- */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent-amber), var(--color-accent-coral));
    color: #0c1222;
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent-teal), #0d9488);
    color: #fff;
}

.btn-accent:hover {
    box-shadow: 0 0 30px rgba(20, 184, 166, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.btn-ghost:hover {
    background: var(--color-bg-elevated);
    color: var(--color-text-primary);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 24px;
    background: rgba(12, 18, 34, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition-base);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.35rem;
}

.brand-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    gap: 32px;
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-base);
}

.main-nav a:hover {
    color: var(--color-accent-teal);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 24px;
    background: var(--color-bg-card);
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu.is-open {
    display: flex;
}

/* ---------- 主视觉区 ---------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-banner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12, 18, 34, 0.92) 0%, rgba(12, 18, 34, 0.7) 50%, rgba(12, 18, 34, 0.4) 100%);
}

.hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    width: 100%;
}

.hero-content {
    max-width: 560px;
    flex-shrink: 0;
}

.hero-label {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-accent-teal);
    background: rgba(20, 184, 166, 0.12);
    border-radius: 100px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    flex-shrink: 0;
    width: min(280px, 35vw);
}

.phone-mockup {
    background: var(--color-bg-card);
    border-radius: 28px;
    padding: 10px;
    box-shadow: var(--shadow-soft), 0 0 0 1px var(--color-border);
}

.phone-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 9 / 16;
}

.app-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.carousel-img.active {
    opacity: 1;
    z-index: 1;
}

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.carousel-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.2s;
}

.carousel-dots .dot.active {
    background: var(--color-accent-teal);
}

/* ---------- 为何选择 ---------- */
.section-why {
    padding: 100px 0;
}

.section-head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 56px;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent-amber);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-sub {
    color: var(--color-text-secondary);
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.advantage-card {
    padding: 32px;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.advantage-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: var(--shadow-soft);
}

.card-icon {
    width: 48px;
    height: 48px;
    color: var(--color-accent-amber);
    margin-bottom: 20px;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.advantage-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.advantage-card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* ---------- 支持币种 ---------- */
.section-coins {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--color-bg-elevated) 0%, var(--color-bg-dark) 100%);
}

.section-head--light .section-tag {
    color: var(--color-accent-teal);
}

.chain-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 120px;
    gap: 16px;
    margin-bottom: 24px;
}

.chain-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.chain-item:hover {
    border-color: var(--color-accent-teal);
    transform: scale(1.02);
}

.chain-item--large {
    grid-column: span 2;
    grid-row: span 2;
}

.chain-item--wide {
    grid-column: span 2;
}

.chain-icon {
    font-size: 2rem;
    color: var(--color-accent-amber);
}

.chain-item--large .chain-icon {
    font-size: 3.5rem;
}

.chain-note {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ---------- 安全保障 ---------- */
.section-security {
    padding: 100px 0;
}

.security-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.security-content .section-tag {
    display: block;
    margin-bottom: 12px;
}

.security-content .section-title {
    text-align: left;
    margin-bottom: 32px;
}

.security-list {
    list-style: none;
}

.security-list li {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-secondary);
}

.security-list li:last-child {
    border-bottom: none;
}

.security-list strong {
    color: var(--color-text-primary);
    display: block;
    margin-bottom: 6px;
}

.security-img {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: var(--radius-md);
    object-fit: cover;
}

/* ---------- 功能亮点 ---------- */
.section-product {
    padding: 100px 0;
    background: var(--color-bg-elevated);
}

.product-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.product-visual {
    max-width: 100%;
}

.product-img {
    width: 100%;
    max-width: 560px;
    height: auto;
    border-radius: var(--radius-lg);
    object-fit: contain;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-block {
    padding: 32px 28px;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-accent-coral);
}

.feature-block h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-block p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* ---------- 使用指南 ---------- */
.section-guide {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-bg-elevated) 100%);
}

.guide-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: center;
}

.guide-visual {
    max-width: 100%;
}

.guide-img {
    width: 100%;
    max-width: 640px;
    height: auto;
    border-radius: var(--radius-lg);
    object-fit: cover;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.step-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    text-align: left;
}

.step-num {
    flex-shrink: 0;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-accent-teal);
    opacity: 0.6;
}

.step-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-item p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* ---------- FAQ ---------- */
.section-faq {
    padding: 100px 0;
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 20px 0;
}

.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    padding-right: 24px;
    position: relative;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.2rem;
    color: var(--color-accent-amber);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    margin-top: 16px;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---------- 下载区 ---------- */
.section-download {
    padding: 100px 0;
}

.download-box {
    text-align: center;
    padding: 64px 48px;
    background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg-elevated) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
}

.download-box h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.download-box > p {
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

.download-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- 页脚 ---------- */
.site-footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-card);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 64px;
    align-items: start;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.footer-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-brand-name {
    font-weight: 700;
    font-size: 1.15rem;
}

.footer-tagline {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    gap: 48px;
}

.footer-col-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--color-accent-teal);
}

.footer-index {
    padding: 24px 0;
    font-size: 0.85rem;
}

.footer-index a {
    color: var(--color-text-secondary);
}

.footer-index a:hover {
    color: var(--color-accent-teal);
}

.footer-sep {
    color: var(--color-text-muted);
    margin: 0 12px;
    font-size: 0.75rem;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.footer-copyright {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.footer-disclaimer {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
    max-width: 560px;
    opacity: 0.9;
}

/* ---------- 动效：滚动浮现 ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-visual {
        width: 240px;
    }
    
    .advantage-grid {
        grid-template-columns: 1fr;
    }
    
    .security-split {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .security-content .section-title {
        text-align: center;
    }
    
    .security-visual {
        display: flex;
        justify-content: center;
    }
    
    .product-split {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .product-visual {
        order: -1;
    }
    
    .guide-layout {
        grid-template-columns: 1fr;
    }
    
    .guide-visual {
        order: -1;
    }
    
    .chain-bento {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chain-item--large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .hero-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .header-actions {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .header-actions .btn {
        display: none;
    }
    
    .mobile-menu .btn {
        display: inline-flex;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .guide-steps {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 32px;
    }

    .footer-index {
        font-size: 0.8rem;
    }

    .footer-sep {
        margin: 0 8px;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .download-buttons .btn {
        width: 100%;
    }
}
