:root {
    --primary: #2980FE;
    --primary-dark: #1664d9;
    --white: #ffffff;
    --soft: #f6f9ff;
    --soft-blue: #eef6ff;
    --line: #e5ebf3;
    --text: #1f2a3d;
    --muted: #617086;
    --deep: #132033;
    --shadow: 0 18px 48px rgba(31, 42, 61, 0.08);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

* { 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: linear-gradient(180deg, #ffffff 0%, #f7fbff 46%, #ffffff 100%);
    line-height: 1.75;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.2rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--deep);
    letter-spacing: -0.02em;
}
.logo img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 12px;
}
.nav-toggle {
    display: inline-flex;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--deep);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
}
.site-nav {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}
.site-nav.open { display: grid; }
.site-nav a {
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 700;
}
.site-nav a.active,
.site-nav a:hover {
    color: var(--primary);
    background: var(--soft-blue);
}

.container,
.content-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}
.narrow-container {
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
}
.section { padding: 56px 0; }
.section-soft { background: var(--soft); }
.section-title {
    margin: 0 0 14px;
    font-size: clamp(1.75rem, 5vw, 2.7rem);
    line-height: 1.2;
    letter-spacing: -0.04em;
    color: var(--deep);
}
.section-lead {
    margin: 0 0 28px;
    color: var(--muted);
    max-width: 760px;
}
.eyebrow,
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--soft-blue);
    color: var(--primary);
    font-size: 0.86rem;
    font-weight: 800;
}
.eyebrow::before,
.category-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 99px;
    background: var(--primary);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 24px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--white);
    font-weight: 800;
    box-shadow: 0 16px 36px rgba(41,128,254,0.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 44px rgba(41,128,254,0.28);
}
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 800;
    margin-top: 10px;
}
.text-link::after { content: "→"; }

.portal-hero {
    position: relative;
    overflow: hidden;
    padding: 48px 0 32px;
}
.portal-hero::before {
    content: "";
    position: absolute;
    inset: -160px -120px auto auto;
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(41,128,254,0.18), rgba(41,128,254,0));
    pointer-events: none;
}
.hero-grid {
    display: grid;
    gap: 34px;
    align-items: center;
}
.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(2.1rem, 9vw, 4.7rem);
    line-height: 1.05;
    letter-spacing: -0.06em;
    color: var(--deep);
}
.hero-copy p {
    color: var(--muted);
    font-size: 1.04rem;
    margin: 0 0 24px;
}
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.security-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}
.security-tags span {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: .9rem;
    font-weight: 700;
}
.hero-visual {
    position: relative;
    min-height: 390px;
    display: grid;
    place-items: center;
    padding: 26px;
    border-radius: 36px;
    background:
        linear-gradient(145deg, rgba(41,128,254,0.14), rgba(255,255,255,0.88)),
        var(--soft-blue);
    border: 1px solid rgba(41,128,254,0.12);
    box-shadow: var(--shadow);
}
.hero-visual .product-main {
    width: min(360px, 84%);
    margin: 0 auto;
    filter: drop-shadow(0 24px 42px rgba(28, 62, 105, .14));
}
.float-card,
.float-pill {
    position: absolute;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(31,42,61,0.09);
    backdrop-filter: blur(14px);
}
.float-card {
    left: 16px;
    bottom: 18px;
    border-radius: 20px;
    padding: 14px;
    min-width: 190px;
}
.float-card strong { display: block; color: var(--deep); }
.float-card small { color: var(--muted); }
.float-pill {
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--primary);
    font-weight: 800;
    font-size: .86rem;
}
.float-pill.cold { top: 24px; left: 18px; }
.float-pill.swap { top: 92px; right: 18px; }
.float-pill.dapp { bottom: 92px; right: 18px; }

.channel-nav,
.category-grid,
.risk-grid,
.process-steps,
.feature-grid,
.card-grid {
    display: grid;
    gap: 16px;
}
.channel-card,
.category-card,
.risk-card,
.step-card,
.feature-card,
.info-card,
.faq-item,
.notice-box,
.check-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: 0 12px 32px rgba(31,42,61,0.05);
}
.channel-card {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.channel-label {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--soft-blue);
    color: var(--primary);
    font-weight: 900;
    margin-bottom: 12px;
}
.channel-card h3,
.category-card h3,
.risk-card h3,
.step-card h3,
.feature-card h3,
.info-card h3,
.check-card h3 { margin: 0 0 8px; color: var(--deep); line-height: 1.35; }
.channel-card p,
.category-card p,
.risk-card p,
.step-card p,
.feature-card p,
.info-card p,
.check-card p { margin: 0; color: var(--muted); }

.split-feature {
    display: grid;
    gap: 24px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow);
}
.split-feature + .split-feature { margin-top: 24px; }
.split-feature.cold-wallet-split { background: linear-gradient(145deg, #ffffff, var(--soft-blue)); }
.split-feature.swap-split { background: linear-gradient(145deg, var(--soft), #ffffff); }
.split-feature.dapp-split { background: linear-gradient(145deg, #ffffff, #f2f7ff); }
.split-copy h2 { margin: 0 0 12px; font-size: clamp(1.65rem, 5vw, 2.45rem); line-height: 1.18; color: var(--deep); letter-spacing: -0.04em; }
.split-copy p { color: var(--muted); margin: 0 0 18px; }
.feature-list,
.confirm-list {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    padding: 0;
    list-style: none;
}
.feature-list li,
.confirm-list li {
    padding-left: 28px;
    position: relative;
    color: var(--text);
}
.feature-list li::before,
.confirm-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 5px rgba(41,128,254,0.12);
}
.split-visual {
    min-height: 280px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: var(--soft-blue);
    padding: 18px;
}
.split-visual img { max-height: 360px; object-fit: contain; }
.dapp-panel {
    display: grid;
    gap: 14px;
}
.mini-panel {
    background: rgba(255,255,255,.88);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
}
.mini-panel strong { display: block; color: var(--deep); }
.mini-panel span { color: var(--muted); font-size: .93rem; }

.process-steps { counter-reset: step; }
.step-card {
    position: relative;
    padding-top: 54px;
}
.step-card::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: 18px;
    left: 20px;
    color: var(--primary);
    font-weight: 900;
    letter-spacing: -0.04em;
}
.risk-card {
    border-left: 4px solid var(--primary);
}
.risk-card .suggestion {
    display: block;
    margin-top: 12px;
    color: var(--deep);
    font-weight: 800;
}
.ecosystem-category .category-card {
    min-height: 170px;
}
.faq-list { display: grid; gap: 14px; }
.faq-item h3 { margin: 0 0 8px; color: var(--deep); }
.faq-item p { margin: 0; color: var(--muted); }
.cta-section {
    padding: 64px 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(41,128,254,.18), transparent 35%),
        linear-gradient(135deg, var(--soft-blue), #ffffff);
}
.cta-box {
    text-align: center;
    border: 1px solid rgba(41,128,254,.15);
    background: rgba(255,255,255,.78);
    border-radius: 34px;
    padding: 34px 20px;
    box-shadow: var(--shadow);
}
.cta-box h2 { margin: 0 0 10px; color: var(--deep); font-size: clamp(1.8rem, 6vw, 3rem); letter-spacing: -0.04em; }
.cta-box p { color: var(--muted); margin: 0 auto 22px; max-width: 720px; }

.page-hero {
    padding: 48px 0 30px;
    background:
        radial-gradient(circle at top right, rgba(41,128,254,.16), transparent 34%),
        linear-gradient(180deg, #ffffff, var(--soft));
    border-bottom: 1px solid var(--line);
}
.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 8vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.055em;
    color: var(--deep);
}
.page-hero p {
    color: var(--muted);
    max-width: 800px;
    margin: 0;
    font-size: 1.04rem;
}
.content-layout {
    display: grid;
    gap: 22px;
    align-items: start;
}
.article-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}
.article-card h2 { margin: 0 0 12px; color: var(--deep); font-size: 1.45rem; }
.article-card h3 { margin: 24px 0 8px; color: var(--deep); }
.article-card p { color: var(--muted); }
.side-panel {
    display: grid;
    gap: 14px;
}
.safety-panel {
    background: linear-gradient(145deg, var(--soft-blue), #ffffff);
    border: 1px solid rgba(41,128,254,.15);
    border-radius: var(--radius-md);
    padding: 20px;
}
.safety-panel h3 { margin: 0 0 10px; color: var(--deep); }
.safety-panel p,
.safety-panel li { color: var(--muted); }
.page-cta {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}
.info-strip {
    display: grid;
    gap: 12px;
    margin: 22px 0;
}
.notice-box {
    background: var(--soft-blue);
    box-shadow: none;
}
.notice-box strong { color: var(--primary); }
.download-steps {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}
.download-step {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: start;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
}
.download-step span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--soft-blue);
    color: var(--primary);
    font-weight: 900;
}
.download-step h3 { margin: 0 0 4px; }
.download-step p { margin: 0; color: var(--muted); }

.site-footer {
    background: #f5f8fc;
    border-top: 1px solid var(--line);
    padding: 42px 0 0;
}
.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    gap: 28px;
}
.footer-brand p {
    max-width: 480px;
    color: var(--muted);
}
.footer-links {
    display: grid;
    gap: 22px;
}
.footer-links div {
    display: grid;
    gap: 8px;
}
.footer-links strong { color: var(--deep); }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
    margin-top: 30px;
    padding: 18px 16px;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: .92rem;
}

@media (min-width: 560px) {
    .channel-nav,
    .category-grid,
    .risk-grid,
    .feature-grid,
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .info-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 820px) {
    .section { padding: 78px 0; }
    .portal-hero { padding: 70px 0 42px; }
    .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 48px; }
    .hero-copy p { font-size: 1.12rem; }
    .split-feature { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 34px; gap: 38px; }
    .split-feature.reverse .split-visual { order: -1; }
    .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .risk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .content-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
    .footer-inner { grid-template-columns: 1fr 1.35fr; }
    .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1040px) {
    .nav-toggle { display: none; }
    .site-nav {
        position: static;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 2px;
        padding: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
        border-radius: 0;
    }
    .site-nav a { font-size: .92rem; padding: 8px 10px; }
    .channel-nav { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .category-grid.ecosystem-category { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 430px) {
    .container,
    .content-container,
    .narrow-container,
    .header-inner,
    .footer-inner { width: min(100% - 24px, 1180px); }
    .hero-visual { min-height: 330px; padding: 18px; border-radius: 28px; }
    .float-card { min-width: 160px; padding: 12px; }
    .float-pill { font-size: .78rem; padding: 7px 10px; }
    .split-feature,
    .article-card { padding: 20px; }
    .download-btn { width: 100%; }
}
