:root {
    --primary: #2980FE;
    --primary-dark: #1767d8;
    --primary-soft: #eef5ff;
    --bg: #ffffff;
    --bg-soft: #f6f9fe;
    --bg-bluegray: #f1f6fd;
    --text: #1f2937;
    --muted: #64748b;
    --line: #e4eaf2;
    --card: #ffffff;
    --shadow: 0 16px 42px 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", "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%; height: auto; display: block; }
.container { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 18px; }
.logo, .footer-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.02em; color: #152035; }
.logo img, .footer-logo img { width: 36px; height: 36px; object-fit: contain; border-radius: 10px; }
.nav-toggle { display: none; }
.nav-button { display: grid; gap: 5px; width: 44px; height: 44px; align-content: center; justify-content: center; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.nav-button span { width: 20px; height: 2px; background: #233042; border-radius: 2px; }
.site-nav { display: none; position: absolute; top: 72px; left: 18px; right: 18px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.nav-toggle:checked ~ .site-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.site-nav a { padding: 10px 12px; color: var(--muted); border-radius: 12px; font-weight: 650; font-size: 0.95rem; }
.site-nav a.active, .site-nav a:hover { color: var(--primary); background: var(--primary-soft); }
.portal-hero {
    position: relative;
    overflow: hidden;
    padding: 58px 0 26px;
    background:
        radial-gradient(circle at top right, rgba(41,128,254,.18), transparent 36%),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}
.portal-hero::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -160px;
    top: 140px;
    background: rgba(41,128,254,0.08);
    border-radius: 999px;
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 32px; align-items: center; }
.eyebrow, .category-badge, .mini-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid rgba(41,128,254,0.16);
    padding: 7px 12px;
    font-size: 0.86rem;
    font-weight: 750;
}
h1, h2, h3 { line-height: 1.25; color: #152035; margin: 0 0 14px; }
h1 { font-size: clamp(2.05rem, 7vw, 4.25rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(1.55rem, 4vw, 2.6rem); letter-spacing: -0.03em; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 16px; color: var(--muted); }
.lead { font-size: 1.06rem; color: #40516a; max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 24px 0 16px; }
.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,0.26);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}
.download-btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 18px 34px rgba(41,128,254,0.32); }
.hero-tags, .pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tags span, .pill-list span {
    padding: 8px 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: #40516a;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 650;
}
.hero-visual { position: relative; min-height: 360px; display: grid; place-items: center; }
.device-card {
    position: relative;
    width: min(390px, 88vw);
    padding: 18px;
    border-radius: 34px;
    background: linear-gradient(145deg, #ffffff, #edf5ff);
    border: 1px solid rgba(41,128,254,0.14);
    box-shadow: var(--shadow);
}
.device-card img { width: 100%; border-radius: 26px; }
.float-card {
    position: absolute;
    background: rgba(255,255,255,0.95);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px 14px;
    box-shadow: 0 12px 34px rgba(21,32,53,.10);
    color: #233042;
    font-weight: 750;
    font-size: .9rem;
}
.float-card small { display: block; color: var(--muted); font-weight: 600; }
.float-asset { left: 0; top: 34px; }
.float-cold { right: 0; top: 108px; }
.float-swap { left: 12px; bottom: 56px; }
.float-dapp { right: 18px; bottom: 18px; }
.section { padding: 58px 0; }
.section-soft { background: var(--bg-soft); }
.section-bluegray { background: var(--bg-bluegray); }
.section-head { max-width: 760px; margin-bottom: 28px; }
.channel-nav { margin-top: 24px; display: grid; gap: 14px; grid-template-columns: 1fr; }
.channel-card, .feature-card, .risk-card, .category-card, .faq-item, .info-card, .step-card, .notice-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(21,32,53,0.05);
}
.channel-card { padding: 18px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; }
.channel-card .tag { width: fit-content; color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 5px 10px; font-size: .78rem; font-weight: 800; }
.channel-card p { margin-bottom: 6px; }
.text-link { color: var(--primary); font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.text-link::after { content: "→"; }
.split-feature { display: grid; gap: 28px; align-items: center; padding: 28px; border-radius: 30px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.split-feature.reverse .feature-media { order: -1; }
.feature-media { border-radius: 28px; background: linear-gradient(145deg, #eef5ff, #ffffff); padding: 18px; border: 1px solid rgba(41,128,254,0.13); }
.feature-media img { border-radius: 22px; margin: 0 auto; }
.feature-list { display: grid; gap: 12px; margin: 20px 0; padding: 0; list-style: none; }
.feature-list li { position: relative; padding-left: 28px; color: #40516a; }
.feature-list li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); position: absolute; left: 4px; top: .75em; box-shadow: 0 0 0 5px var(--primary-soft); }
.process-steps { display: grid; gap: 14px; counter-reset: step; }
.step-card { padding: 20px; position: relative; overflow: hidden; }
.step-card::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    font-weight: 850;
    margin-bottom: 14px;
}
.risk-grid, .category-grid, .card-grid { display: grid; gap: 16px; }
.risk-card { padding: 20px; border-left: 4px solid var(--primary); }
.risk-card strong { color: #152035; display: block; margin-bottom: 8px; }
.category-card { padding: 20px; min-height: 178px; display: flex; flex-direction: column; justify-content: space-between; }
.category-card h3 { color: #152035; }
.faq-list { display: grid; gap: 14px; }
.faq-item { padding: 20px; }
.faq-item h3 { margin-bottom: 8px; }
.cta-section { text-align: center; background: linear-gradient(135deg, #eef5ff, #ffffff 58%, #f5f9ff); border: 1px solid var(--line); border-radius: 32px; padding: 36px 22px; box-shadow: var(--shadow); }
.page-hero { padding: 58px 0 38px; background: linear-gradient(180deg, #fff 0%, #f6f9fe 100%); }
.page-hero .inner { max-width: 840px; }
.content-layout { display: grid; gap: 24px; align-items: start; }
.article-panel { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 24px; box-shadow: 0 12px 30px rgba(21,32,53,0.05); }
.article-panel h2 { font-size: 1.35rem; margin-top: 26px; }
.article-panel h2:first-child { margin-top: 0; }
.article-panel ul, .article-panel ol { margin: 12px 0 20px; padding-left: 22px; color: #40516a; }
.article-panel li { margin: 8px 0; }
.side-panel { display: grid; gap: 14px; }
.notice-card { padding: 20px; background: linear-gradient(180deg, #fff, #f8fbff); }
.notice-card h3 { color: var(--primary); }
.check-list { display: grid; gap: 10px; margin: 16px 0; padding: 0; list-style: none; }
.check-list li { padding: 12px 14px; border-radius: 16px; background: var(--bg-soft); color: #40516a; border: 1px solid var(--line); }
.download-strip { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.download-page-card { max-width: 760px; margin: 0 auto; text-align: center; }
.download-page-card .download-btn { margin: 10px auto 8px; }
.site-footer { background: #101828; color: #e5edf8; padding: 48px 0 0; }
.site-footer p, .site-footer a { color: #b8c4d6; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.footer-grid { display: grid; gap: 28px; }
.footer-grid > div { display: grid; align-content: start; gap: 8px; }
.footer-logo { color: #fff; }
.footer-bottom { margin-top: 34px; border-top: 1px solid rgba(255,255,255,.12); padding: 16px 18px; text-align: center; color: #94a3b8; font-size: .88rem; }
@media (min-width: 640px) {
    .channel-nav { grid-template-columns: repeat(2, 1fr); }
    .risk-grid, .category-grid, .card-grid { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .container { width: min(1160px, calc(100% - 56px)); }
    .nav-button { display: none; }
    .site-nav { display: flex; position: static; padding: 0; border: 0; box-shadow: none; background: transparent; align-items: center; gap: 2px; }
    .site-nav a { font-size: .92rem; padding: 9px 10px; }
    .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr); }
    .portal-hero { padding: 82px 0 38px; }
    .channel-nav { grid-template-columns: repeat(3, 1fr); }
    .split-feature { grid-template-columns: 1.05fr .95fr; padding: 42px; gap: 42px; }
    .split-feature.reverse .feature-media { order: 2; }
    .split-feature.reverse { grid-template-columns: .95fr 1.05fr; }
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .risk-grid { grid-template-columns: repeat(3, 1fr); }
    .process-steps { grid-template-columns: repeat(3, 1fr); }
    .content-layout { grid-template-columns: minmax(0, 1fr) 320px; }
    .article-panel { padding: 34px; }
    .footer-grid { grid-template-columns: 1.4fr .8fr .8fr .8fr; }
}
@media (min-width: 1120px) {
    .site-nav a { padding: 10px 12px; }
}
@media (max-width: 420px) {
    .container { width: min(100% - 28px, 1120px); }
    .nav-toggle:checked ~ .site-nav { grid-template-columns: 1fr; }
    .float-card { position: static; margin-top: 10px; width: 100%; }
    .hero-visual { min-height: auto; display: block; }
    .device-card { width: 100%; }
    .split-feature, .article-panel { padding: 20px; border-radius: 22px; }
    .download-btn { width: 100%; }
}
