:root {
    --primary: #2980FE;
    --primary-dark: #1764d8;
    --ink: #1f2937;
    --muted: #64748b;
    --soft: #f4f7fb;
    --soft-blue: #f1f7ff;
    --line: #dfe7f2;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(41, 128, 254, 0.10);
    --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.75;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { color: var(--muted); margin: 0 0 16px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; color: var(--ink); }
h1 { font-size: clamp(34px, 9vw, 68px); letter-spacing: -1.2px; }
h2 { font-size: clamp(26px, 6vw, 44px); letter-spacing: -0.6px; }
h3 { font-size: 20px; }
ul { margin: 0; padding-left: 20px; color: var(--muted); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(223,231,242,0.75);
}
.header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.logo, .footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.2px;
}
.logo img, .footer-logo img { width: 38px; height: 38px; border-radius: 12px; }
.nav-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 3px; }
.site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
}
.site-nav.is-open { display: grid; gap: 4px; }
.site-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 650;
}
.site-nav a:hover, .site-nav a.active { color: var(--primary); background: var(--soft-blue); }

.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(860px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 72px 0; }
.section.soft { background: var(--soft); }
.gradient-bg {
    background:
        radial-gradient(circle at 20% 0%, rgba(41,128,254,0.18), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}
.kicker, .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--primary);
    background: var(--soft-blue);
    border: 1px solid rgba(41,128,254,0.18);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 16px;
}
.kicker::before, .category-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
}
.lead { font-size: 18px; color: #475569; }
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--white);
    font-weight: 800;
    border: 0;
    box-shadow: 0 12px 26px rgba(41,128,254,0.24);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.download-btn:hover { transform: translateY(-2px); background: var(--primary-dark); box-shadow: 0 18px 34px rgba(41,128,254,0.28); }
.text-link { color: var(--primary); font-weight: 800; }
.text-link:hover { text-decoration: underline; }

.web3-hero {
    padding: 82px 0 48px;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    gap: 36px;
    align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 26px 0; }
.safety-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.safety-tags span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.82);
    border: 1px solid var(--line);
    color: #475569;
    font-size: 14px;
    font-weight: 700;
}
.hero-visual {
    position: relative;
    min-height: 360px;
    display: grid;
    place-items: center;
    border-radius: 32px;
    background: linear-gradient(145deg, #ffffff, #edf6ff);
    border: 1px solid rgba(41,128,254,0.12);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.hero-visual::before {
    content: "";
    position: absolute;
    inset: 32px;
    border-radius: 50%;
    border: 1px dashed rgba(41,128,254,0.28);
}
.hero-visual img { width: min(78%, 360px); filter: drop-shadow(0 22px 34px rgba(15,23,42,0.12)); position: relative; z-index: 1; }
.float-label {
    position: absolute;
    z-index: 2;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--line);
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(15,23,42,0.08);
}
.float-label.l1 { left: 18px; top: 42px; }
.float-label.l2 { right: 18px; top: 82px; }
.float-label.l3 { left: 28px; bottom: 70px; }
.float-label.l4 { right: 26px; bottom: 28px; }

.ecosystem-nav { padding: 28px 0 64px; }
.ecosystem-grid, .category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.ecosystem-card, .info-card, .risk-card, .faq-item, .step-card, .side-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 12px 32px rgba(15,23,42,0.04);
}
.ecosystem-card {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.ecosystem-card span {
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--soft-blue);
    color: var(--primary);
    font-weight: 800;
    font-size: 13px;
}
.ecosystem-card h3 { margin-top: 14px; }
.ecosystem-card a { color: var(--primary); font-weight: 800; margin-top: 12px; }

.feature-split, .web3-section, .hardware-wallet-section, .digital-assets-section, .swap-section, .developer-center-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
}
.feature-media {
    border-radius: 32px;
    padding: 24px;
    background: linear-gradient(145deg, #ffffff, #eef6ff);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.feature-media img { margin: 0 auto; max-height: 430px; object-fit: contain; }
.feature-list {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}
.feature-list div, .check-list li {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px 16px;
    color: #475569;
}
.check-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.check-list li::before { content: "•"; color: var(--primary); font-weight: 900; margin-right: 8px; }

.privacy-section, .submit-chain-section {
    display: grid;
    gap: 18px;
}
.privacy-panel, .safety-panel, .submit-panel, .dev-panel {
    border-radius: 30px;
    padding: 28px;
    border: 1px solid rgba(41,128,254,0.16);
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    box-shadow: var(--shadow);
}
.submit-panel { display: grid; gap: 16px; }
.panel-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
.panel-item {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255,255,255,0.86);
    border: 1px solid var(--line);
}
.dev-code {
    background: #f8fbff;
    border: 1px solid #dce9fa;
    border-radius: 24px;
    padding: 18px;
    color: #334155;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    overflow: auto;
}
.dev-code span { color: var(--primary); }

.process-steps {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}
.step-card { position: relative; padding-left: 70px; }
.step-number {
    position: absolute;
    left: 20px;
    top: 22px;
    width: 36px;
    height: 36px;
    border-radius: 14px;
    background: var(--primary);
    color: var(--white);
    display: grid;
    place-items: center;
    font-weight: 900;
}
.risk-grid {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}
.risk-card { border-left: 4px solid var(--primary); }
.risk-card strong { display: block; margin-bottom: 8px; }
.faq-list { display: grid; gap: 14px; margin-top: 26px; }
.faq-item h3 { margin-bottom: 8px; }
.cta-section {
    text-align: center;
    padding: 72px 0;
    background: linear-gradient(135deg, #f7fbff, #edf5ff);
}
.cta-box {
    width: min(880px, calc(100% - 32px));
    margin: 0 auto;
    border-radius: 32px;
    padding: 34px 22px;
    border: 1px solid rgba(41,128,254,0.16);
    background: rgba(255,255,255,0.84);
    box-shadow: var(--shadow);
}

.page-hero {
    padding: 76px 0 44px;
    background: radial-gradient(circle at 20% 10%, rgba(41,128,254,0.18), transparent 28%), linear-gradient(180deg, #ffffff, #f5f9ff);
}
.page-layout {
    display: grid;
    gap: 24px;
    align-items: start;
}
.article-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 26px;
    box-shadow: 0 12px 32px rgba(15,23,42,0.04);
}
.article-card + .article-card { margin-top: 18px; }
.sidebar { display: grid; gap: 16px; }
.operation-list { counter-reset: steps; list-style: none; padding: 0; display: grid; gap: 14px; }
.operation-list li {
    counter-increment: steps;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 16px 16px 16px 58px;
    background: var(--white);
    position: relative;
    color: var(--muted);
}
.operation-list li::before {
    content: counter(steps);
    position: absolute;
    left: 16px;
    top: 18px;
    width: 28px;
    height: 28px;
    border-radius: 11px;
    background: var(--primary);
    color: var(--white);
    display: grid;
    place-items: center;
    font-weight: 900;
}

.download-page-steps { display: grid; gap: 14px; margin: 24px 0; }
.download-page-steps .step-card { padding-left: 74px; }

.site-footer {
    background: #f8fafc;
    border-top: 1px solid var(--line);
    padding: 42px 0 24px;
}
.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    gap: 28px;
}
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.footer-links a { color: #475569; font-weight: 700; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

@media (min-width: 640px) {
    .ecosystem-grid, .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .risk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
    .nav-toggle { display: none; }
    .site-nav {
        position: static;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 4px;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .site-nav a { font-size: 14px; padding: 8px 10px; }
    .hero-grid { grid-template-columns: 1.02fr .98fr; gap: 56px; }
    .web3-hero { padding: 104px 0 62px; }
    .ecosystem-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ecosystem-card:first-child { grid-column: span 2; }
    .feature-split, .web3-section, .hardware-wallet-section, .digital-assets-section, .swap-section, .developer-center-section { grid-template-columns: 1fr 1fr; gap: 52px; }
    .hardware-wallet-section .feature-media, .swap-section .feature-media { order: -1; }
    .privacy-section { grid-template-columns: 1fr 1.1fr; align-items: center; }
    .submit-chain-section { grid-template-columns: 1.1fr .9fr; align-items: center; }
    .process-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .risk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .page-layout { grid-template-columns: minmax(0, 1fr) 320px; }
    .article-card { padding: 34px; }
    .footer-inner { grid-template-columns: 1.2fr 1fr; align-items: start; }
    .footer-bottom { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1120px) {
    .site-nav a { padding: 9px 12px; }
    .hero-visual { min-height: 520px; }
    .section { padding: 92px 0; }
}
