:root {
    --primary: #2980FE;
    --primary-dark: #1266df;
    --primary-soft: #EAF3FF;
    --bg: #F6F9FD;
    --surface: #FFFFFF;
    --surface-soft: #F8FBFF;
    --line: #DFE7F1;
    --text: #1E293B;
    --muted: #64748B;
    --deep: #0F172A;
    --shadow: 0 18px 45px rgba(41, 128, 254, .10);
    --shadow-soft: 0 10px 28px rgba(15, 23, 42, .08);
    --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.72;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 16px; }
main { overflow: hidden; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--deep);
    letter-spacing: .02em;
}
.logo img { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; }
.nav-toggle { display: none; }
.nav-toggle-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}
.nav-toggle-label span {
    width: 22px;
    height: 2px;
    background: var(--deep);
    border-radius: 99px;
}
.site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}
.nav-toggle:checked ~ .site-nav { display: flex; }
.site-nav a {
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--muted);
    font-weight: 650;
    font-size: 15px;
}
.site-nav a.active,
.site-nav a:hover { color: var(--primary); background: var(--primary-soft); }
.content-container,
.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}
.section {
    padding: 68px 0;
}
.section.alt { background: #fff; }
.section-title {
    margin: 0 0 12px;
    color: var(--deep);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.18;
    letter-spacing: -.03em;
}
.section-lead {
    color: var(--muted);
    max-width: 760px;
    font-size: 17px;
}
.kicker,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid rgba(41,128,254,.18);
    font-size: 13px;
    font-weight: 750;
    margin-bottom: 14px;
}
.download-btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #4E97FF);
    box-shadow: 0 14px 28px rgba(41, 128, 254, .25);
    font-weight: 800;
    border: 0;
    transition: transform .2s ease, box-shadow .2s ease;
}
.download-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(41, 128, 254, .32); }
.link-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 800;
    margin-top: 6px;
}
.link-arrow::after { content: "→"; margin-left: 6px; }
.web3-dashboard-hero {
    padding: 54px 0 34px;
    background:
        radial-gradient(circle at 14% 10%, rgba(41,128,254,.16), transparent 34%),
        radial-gradient(circle at 86% 18%, rgba(41,128,254,.10), transparent 30%),
        linear-gradient(180deg, #FFFFFF 0%, #F5F9FF 100%);
}
.hero-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    gap: 28px;
    align-items: center;
}
.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 7vw, 68px);
    line-height: 1.04;
    letter-spacing: -.05em;
    color: var(--deep);
}
.hero-copy p {
    color: var(--muted);
    font-size: 18px;
    max-width: 720px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 28px 0 20px;
}
.trust-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.trust-tags span {
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}
.hero-console {
    position: relative;
    padding: 18px;
    border-radius: 30px;
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(223,231,241,.9);
    box-shadow: var(--shadow);
}
.console-main {
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(180deg, #fff, #F5F9FF);
    border: 1px solid var(--line);
    padding: 16px;
}
.console-main img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    margin: 0 auto;
}
.console-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 14px;
}
.console-card {
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}
.console-card small {
    color: var(--primary);
    font-weight: 800;
}
.console-card strong {
    display: block;
    margin-top: 3px;
    color: var(--deep);
}
.service-index {
    padding: 26px 0 64px;
    background: linear-gradient(180deg, #F5F9FF, #fff);
}
.service-index-grid,
.category-grid {
    display: grid;
    gap: 16px;
}
.service-card,
.category-card,
.feature-card,
.risk-card,
.faq-item,
.tip-card,
.info-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-soft);
}
.service-card .pill {
    display: inline-flex;
    color: var(--primary);
    font-size: 12px;
    font-weight: 850;
    background: var(--primary-soft);
    padding: 5px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.service-card h3,
.category-card h3,
.feature-card h3,
.risk-card h3,
.tip-card h3,
.info-card h3 {
    margin: 0 0 8px;
    color: var(--deep);
    line-height: 1.28;
}
.service-card p,
.category-card p,
.feature-card p,
.risk-card p,
.tip-card p,
.info-card p {
    color: var(--muted);
    font-size: 15px;
}
.split-feature,
.digital-assets-hub,
.web3-ecosystem-section,
.hardware-wallet-section,
.swap-service-section {
    display: grid;
    gap: 24px;
    align-items: center;
}
.feature-visual {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: linear-gradient(180deg, #fff, #F4F8FF);
    box-shadow: var(--shadow);
}
.feature-visual img {
    max-height: 430px;
    object-fit: contain;
    margin: 0 auto;
}
.feature-points,
.check-list,
.process-steps,
.risk-grid,
.faq-grid {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}
.point,
.check-item,
.step-card {
    display: flex;
    gap: 13px;
    padding: 15px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
}
.point b,
.check-item b,
.step-card .num {
    flex: 0 0 auto;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 850;
}
.point span,
.check-item span,
.step-card p { color: var(--muted); }
.hardware-wallet-section-wrap,
.privacy-boundary-wrap,
.developer-wrap {
    background:
        linear-gradient(135deg, rgba(41,128,254,.07), rgba(255,255,255,.8)),
        #F8FBFF;
}
.privacy-boundary-section,
.submit-chain-section,
.developer-center-section {
    display: grid;
    gap: 22px;
}
.boundary-panel,
.submit-panel,
.dev-panel {
    border: 1px solid var(--line);
    border-radius: 30px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 24px;
}
.boundary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.boundary-tags span {
    padding: 9px 12px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 800;
    font-size: 13px;
}
.dev-code {
    background: #F7FAFF;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: var(--deep);
    overflow: auto;
}
.dev-code span { color: var(--primary); font-weight: 800; }
.process-steps { counter-reset: steps; }
.step-card {
    align-items: flex-start;
}
.step-card h3 { margin: 0 0 4px; color: var(--deep); }
.risk-card {
    border-left: 4px solid var(--primary);
}
.risk-card strong {
    display: block;
    color: var(--primary);
    margin: 10px 0 4px;
}
.faq-item h3 {
    margin: 0 0 8px;
    color: var(--deep);
}
.faq-item p { color: var(--muted); }
.cta-section {
    padding: 70px 0;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(41,128,254,.16), transparent 38%),
        linear-gradient(180deg, #fff, #EFF6FF);
}
.cta-box {
    width: min(900px, calc(100% - 32px));
    margin: 0 auto;
    border: 1px solid rgba(41,128,254,.18);
    border-radius: 30px;
    background: rgba(255,255,255,.82);
    box-shadow: var(--shadow);
    padding: 34px 22px;
}
.cta-box h2 { margin: 0 0 10px; color: var(--deep); font-size: clamp(28px, 4vw, 42px); }
.cta-box p { color: var(--muted); max-width: 680px; margin: 0 auto 24px; }
.page-hero {
    padding: 58px 0 32px;
    background:
        radial-gradient(circle at 20% 0%, rgba(41,128,254,.14), transparent 36%),
        linear-gradient(180deg, #fff, #F5F9FF);
}
.page-hero-inner {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
}
.page-hero h1 {
    margin: 0 0 14px;
    color: var(--deep);
    font-size: clamp(34px, 6vw, 56px);
    line-height: 1.1;
    letter-spacing: -.04em;
}
.page-hero p {
    color: var(--muted);
    font-size: 18px;
}
.article-layout {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    gap: 24px;
    padding: 42px 0 72px;
}
.article-main {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
}
.article-main h2 {
    color: var(--deep);
    margin-top: 8px;
}
.article-main p { color: var(--muted); }
.article-sidebar {
    display: grid;
    gap: 16px;
    align-content: start;
}
.sidebar-card {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 20px;
}
.sidebar-card h3 { margin: 0 0 8px; color: var(--deep); }
.sidebar-card ul,
.article-main ul,
.article-main ol {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}
.article-main li,
.sidebar-card li { margin: 7px 0; }
.download-row { margin-top: 24px; }
.download-panel {
    width: min(900px, calc(100% - 32px));
    margin: 42px auto 74px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: var(--shadow);
    padding: 26px;
}
.site-footer {
    background: #0F172A;
    color: #DDE7F4;
    padding: 44px 0 22px;
}
.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    gap: 24px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    margin-bottom: 10px;
}
.footer-brand img { width: 34px; height: 34px; border-radius: 10px; }
.footer-inner p { color: #AAB8C8; max-width: 620px; }
.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
}
.footer-links a {
    color: #DDE7F4;
    padding: 8px 0;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.12);
    color: #91A1B5;
    font-size: 14px;
}
@media (min-width: 640px) {
    .service-index-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .risk-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .faq-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-label { display: none; }
    .site-nav {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        gap: 2px;
    }
    .site-nav a { font-size: 14px; padding: 8px 10px; }
    .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 42px; }
    .service-index-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
    .service-index-grid .service-card:first-child { grid-column: span 2; }
    .digital-assets-hub,
    .web3-ecosystem-section,
    .hardware-wallet-section,
    .swap-service-section,
    .split-feature { grid-template-columns: 1fr 1fr; }
    .hardware-wallet-section .feature-visual,
    .web3-ecosystem-section .feature-visual { order: -1; }
    .privacy-boundary-section,
    .submit-chain-section,
    .developer-center-section { grid-template-columns: .95fr 1.05fr; align-items: center; }
    .process-steps { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .risk-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
    .category-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
    .article-layout { grid-template-columns: minmax(0, 1fr) 320px; }
    .article-main { padding: 34px; }
    .footer-inner { grid-template-columns: 1.2fr .8fr; }
}
@media (min-width: 1120px) {
    .site-nav a { padding: 9px 12px; }
}
