:root {
    --primary: #2980FE;
    --primary-dark: #1769df;
    --primary-soft: #eaf3ff;
    --bg: #ffffff;
    --surface: #f6f8fb;
    --surface-blue: #f4f8ff;
    --border: #e3e8f0;
    --text: #1e2a3a;
    --muted: #637083;
    --deep: #0f2137;
    --shadow: 0 18px 45px rgba(32, 73, 128, 0.10);
    --radius: 22px;
    --radius-sm: 16px;
    --container: 1180px;
}

* { 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(--text);
    background: var(--bg);
    line-height: 1.75;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { margin: 0 0 16px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.nav-container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.brand, .footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--deep);
    letter-spacing: .02em;
}
.brand-logo { width: 36px; height: 36px; object-fit: contain; }
.brand-text { font-size: 18px; }
.nav-toggle { display: none; }
.nav-toggle-label {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 14px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: #fff;
}
.nav-toggle-label span {
    width: 18px;
    height: 2px;
    background: var(--deep);
    border-radius: 999px;
}
.main-nav {
    position: absolute;
    top: 70px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px;
    box-shadow: var(--shadow);
}
.nav-toggle:checked ~ .main-nav { display: flex; }
.main-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 15px;
}
.main-nav a.active, .main-nav a:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.container, .section-inner, .narrow-container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}
.narrow-container { max-width: 920px; }
.section { padding: 64px 0; }
.section-soft { background: var(--surface); }
.section-blue { background: linear-gradient(135deg, #f4f8ff 0%, #ffffff 100%); }
.section-head {
    max-width: 780px;
    margin: 0 auto 30px;
    text-align: center;
}
.kicker, .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}
h1, h2, h3 { color: var(--deep); line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: clamp(34px, 7vw, 64px); letter-spacing: -0.04em; }
h2 { font-size: clamp(27px, 4vw, 42px); letter-spacing: -0.03em; }
h3 { font-size: 21px; }
.lead { color: var(--muted); font-size: 17px; }
.muted { color: var(--muted); }

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(41,128,254,.22);
    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,.28);
}
.link-arrow {
    display: inline-flex;
    color: var(--primary);
    font-weight: 800;
    margin-top: 10px;
}
.link-arrow::after { content: "→"; margin-left: 6px; }

.product-hero {
    position: relative;
    overflow: hidden;
    padding: 58px 0 42px;
    background:
        radial-gradient(circle at 15% 10%, rgba(41,128,254,.18), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}
.product-hero::after {
    content: "";
    position: absolute;
    inset: auto -120px -160px auto;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(41,128,254,.12);
}
.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 34px;
    align-items: center;
}
.hero-copy .lead { max-width: 650px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 26px 0; }
.hero-note { color: var(--muted); font-size: 14px; }
.safety-tags, .mini-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.safety-tags span, .mini-tags span {
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    color: var(--deep);
    border: 1px solid var(--border);
    font-size: 14px;
    box-shadow: 0 8px 22px rgba(32,73,128,.06);
}
.hero-visual {
    position: relative;
    padding: 18px;
    border-radius: 32px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(219,229,242,.9);
    box-shadow: var(--shadow);
}
.app-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 370px;
    border-radius: 28px;
    background: linear-gradient(160deg, #f4f8ff 0%, #ffffff 62%, #eaf3ff 100%);
    overflow: hidden;
}
.app-visual img {
    max-height: 410px;
    object-fit: contain;
    margin: auto;
}
.float-card, .float-pill {
    position: absolute;
    background: rgba(255,255,255,.94);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 16px 32px rgba(25,55,96,.12);
    padding: 12px 14px;
    font-size: 13px;
}
.float-card strong { display: block; color: var(--deep); }
.float-card small, .float-pill small { color: var(--muted); }
.float-card.asset-status { left: 14px; top: 20px; }
.float-pill { color: var(--primary); font-weight: 800; }
.float-pill.cold { right: 16px; top: 42px; }
.float-pill.swap { left: 20px; bottom: 38px; }
.float-pill.dapp { right: 22px; bottom: 28px; }

.feature-shortcuts, .category-grid, .risk-grid, .faq-grid, .card-grid {
    display: grid;
    gap: 16px;
}
.shortcut-card, .feature-card, .risk-card, .faq-item, .content-card, .step-card, .info-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    box-shadow: 0 10px 28px rgba(32,73,128,.06);
}
.shortcut-card .icon, .feature-card .icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 900;
    margin-bottom: 12px;
}
.shortcut-card p, .feature-card p, .risk-card p, .faq-item p { color: var(--muted); font-size: 15px; }

.product-section {
    display: grid;
    gap: 30px;
    align-items: center;
}
.product-section .media-panel {
    border-radius: 28px;
    background: linear-gradient(145deg, #f4f8ff, #ffffff);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 22px;
}
.media-panel img {
    width: 100%;
    max-height: 430px;
    object-fit: contain;
    margin: auto;
}
.product-copy ul, .article-body ul, .check-list, .plain-list {
    padding: 0;
    margin: 16px 0 0;
    list-style: none;
}
.product-copy li, .article-body li, .check-list li, .plain-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    color: var(--muted);
}
.product-copy li::before, .article-body li::before, .check-list li::before, .plain-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .72em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}
.cold-wallet-section { background: linear-gradient(180deg, #f6f8fb 0%, #ffffff 100%); }
.swap-section .media-panel { background: linear-gradient(145deg, #ffffff, #f4f8ff); }
.dapp-section { background: #fff; }

.process-steps { display: grid; gap: 16px; counter-reset: steps; }
.step-card { position: relative; overflow: hidden; }
.step-number {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    margin-bottom: 12px;
}
.risk-card {
    border-left: 4px solid var(--primary);
}
.risk-card strong {
    display: block;
    color: var(--deep);
    margin-bottom: 6px;
}
.risk-card .advice {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    color: var(--deep);
    font-weight: 700;
    font-size: 14px;
}

.cta-section {
    margin: 0 auto;
    padding: 52px 24px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 80% 20%, rgba(41,128,254,.22), transparent 25%),
        linear-gradient(135deg, #f4f8ff 0%, #ffffff 100%);
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: var(--shadow);
}
.cta-section p { color: var(--muted); max-width: 700px; margin: 0 auto 24px; }

.page-hero {
    padding: 54px 0 34px;
    background:
        radial-gradient(circle at 12% 20%, rgba(41,128,254,.16), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}
.page-hero .narrow-container, .page-hero .container { position: relative; }
.page-summary {
    max-width: 760px;
    color: var(--muted);
    font-size: 17px;
}
.article-layout {
    display: grid;
    gap: 24px;
    align-items: start;
}
.article-body {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 10px 32px rgba(32,73,128,.06);
}
.article-body h2 { font-size: 26px; margin-top: 26px; }
.article-body h2:first-child { margin-top: 0; }
.side-panel {
    display: grid;
    gap: 16px;
}
.notice-box, .blue-box, .warning-box {
    border-radius: 22px;
    padding: 20px;
    border: 1px solid var(--border);
    background: var(--surface-blue);
}
.warning-box { background: #fff; border-left: 4px solid var(--primary); }
.blue-box { background: linear-gradient(135deg, #eaf3ff, #ffffff); }
.operation-list {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}
.operation-list div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
}
.operation-list span {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 900;
}
.download-panel { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }

.download-page-card {
    display: grid;
    gap: 22px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 30px;
    box-shadow: var(--shadow);
    padding: 26px;
}
.download-steps { display: grid; gap: 14px; }
.download-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 16px;
    background: var(--surface-blue);
    border: 1px solid var(--border);
    border-radius: 18px;
}
.download-step b {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    display: grid;
    place-items: center;
}

.faq-list { display: grid; gap: 14px; }
.faq-item h2, .faq-item h3 { font-size: 19px; margin-bottom: 8px; }
.about-values { display: grid; gap: 16px; }
.about-values .content-card { background: linear-gradient(180deg, #ffffff, #f8fbff); }

.site-footer {
    background: #f6f8fb;
    border-top: 1px solid var(--border);
    padding-top: 42px;
    margin-top: 64px;
}
.footer-container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    display: grid;
    gap: 28px;
}
.footer-logo img { width: 34px; height: 34px; object-fit: contain; }
.footer-brand p { color: var(--muted); max-width: 520px; margin-top: 12px; }
.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.footer-links div { display: grid; gap: 8px; }
.footer-links strong { color: var(--deep); margin-bottom: 4px; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
    width: min(100% - 32px, var(--container));
    margin: 28px auto 0;
    padding: 18px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
}

@media (min-width: 640px) {
    .feature-shortcuts { 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, .card-grid, .about-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-steps { 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; }
    .main-nav {
        position: static;
        display: flex !important;
        flex-direction: row;
        background: transparent;
        border: 0;
        padding: 0;
        box-shadow: none;
        align-items: center;
        gap: 4px;
    }
    .main-nav a { padding: 9px 11px; font-size: 14px; }
    .product-hero { padding: 84px 0 66px; }
    .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr); }
    .feature-shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .product-section { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 52px; }
    .product-section.reverse .media-panel { order: -1; }
    .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .risk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .process-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .article-layout { grid-template-columns: minmax(0, 1fr) 320px; }
    .article-body { padding: 34px; }
    .footer-container { grid-template-columns: 1fr 1.25fr; }
}

@media (min-width: 1100px) {
    .feature-shortcuts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .main-nav a { padding: 10px 12px; }
}

@media (max-width: 420px) {
    .container, .section-inner, .narrow-container, .nav-container, .footer-container, .footer-bottom { width: min(100% - 24px, var(--container)); }
    .hero-actions { align-items: stretch; }
    .download-btn { width: 100%; }
    .float-card, .float-pill { position: static; margin: 8px; }
    .app-visual { min-height: auto; padding: 14px; }
    .app-visual img { max-height: 300px; }
    .section { padding: 48px 0; }
}
