:root {
    --primary: #2980FE;
    --primary-soft: #EAF3FF;
    --primary-soft-2: #F4F8FF;
    --text: #1D2733;
    --muted: #667385;
    --light: #F6F8FB;
    --line: #E4EAF2;
    --white: #FFFFFF;
    --dark: #2B3440;
    --shadow: 0 20px 60px rgba(35, 76, 130, .10);
    --soft-shadow: 0 12px 34px rgba(42, 88, 155, .08);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FBFF 40%, #FFFFFF 100%);
    line-height: 1.72;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(228, 234, 242, .85);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -.02em;
    white-space: nowrap;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    object-fit: contain;
}

.brand-text {
    color: var(--dark);
}

.site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.site-nav.is-open {
    display: flex;
}

.site-nav a {
    padding: 10px 12px;
    color: var(--muted);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 650;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--primary);
    background: var(--primary-soft);
}

.nav-toggle {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--dark);
}

main {
    display: block;
}

.section {
    padding: 64px 0;
}

.section-head {
    margin: 0 auto 28px;
    max-width: 720px;
    text-align: center;
}

.section-kicker,
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 6px 12px;
    border: 1px solid rgba(41, 128, 254, .18);
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 13px;
    font-weight: 750;
}

.section-head .section-kicker,
.section-head .category-badge {
    margin-left: auto;
    margin-right: auto;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -.035em;
}

h1 {
    font-size: clamp(36px, 8vw, 66px);
}

h2 {
    font-size: clamp(28px, 5vw, 44px);
}

h3 {
    font-size: 20px;
}

p {
    margin: 0;
    color: var(--muted);
}

.lead {
    margin-top: 18px;
    font-size: 17px;
    color: #566476;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--white);
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(41, 128, 254, .28);
    transition: transform .2s ease, box-shadow .2s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(41, 128, 254, .34);
}

.link-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    color: var(--primary);
    font-weight: 750;
    font-size: 14px;
}

.link-pill::after {
    content: "→";
}

.app-hero {
    position: relative;
    padding: 56px 0 38px;
    overflow: hidden;
}

.app-hero::before {
    content: "";
    position: absolute;
    inset: -120px -40px auto auto;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(41, 128, 254, .18), rgba(41, 128, 254, 0) 66%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    gap: 34px;
    align-items: center;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-copy h1 {
    max-width: 700px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 26px;
}

.security-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.security-tags span {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    color: #4B5968;
    font-size: 13px;
    font-weight: 700;
}

.app-visual {
    position: relative;
    display: grid;
    justify-items: center;
    min-height: 360px;
    padding: 18px;
    border-radius: 34px;
    background: linear-gradient(145deg, #F7FBFF 0%, #FFFFFF 52%, #EAF3FF 100%);
    border: 1px solid rgba(228, 234, 242, .9);
    box-shadow: var(--shadow);
}

.app-visual .phone-img {
    width: min(78%, 360px);
    margin: auto;
    filter: drop-shadow(0 26px 46px rgba(41, 128, 254, .16));
}

.floating-card {
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid rgba(228, 234, 242, .95);
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--soft-shadow);
}

.floating-card strong {
    display: block;
    color: var(--text);
    font-size: 14px;
}

.floating-card span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.ability-bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 18px;
}

.ability-item {
    position: relative;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(60, 91, 130, .05);
}

.ability-item::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 18px;
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: var(--primary);
}

.ability-item h3 {
    padding-left: 18px;
    font-size: 17px;
}

.ability-item p {
    margin-top: 8px;
    font-size: 14px;
}

.feature-showcase {
    display: grid;
    gap: 18px;
}

.feature-card {
    position: relative;
    display: grid;
    gap: 18px;
    overflow: hidden;
    min-height: 260px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.feature-card.feature-large {
    background: linear-gradient(145deg, #FFFFFF, #F2F7FF);
}

.feature-card p {
    margin-top: 10px;
}

.feature-card img {
    width: min(100%, 260px);
    justify-self: end;
    border-radius: 22px;
    object-fit: contain;
}

.product-section,
.cold-wallet-panel,
.swap-panel,
.dapp-panel {
    position: relative;
    display: grid;
    gap: 26px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 32px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.cold-wallet-panel {
    background: linear-gradient(145deg, #F8FBFF, #FFFFFF);
}

.swap-panel {
    background: linear-gradient(145deg, #FFFFFF, #F7FAFF);
}

.dapp-panel {
    background: linear-gradient(145deg, #F9FCFF, #FFFFFF);
}

.product-media {
    position: relative;
    padding: 18px;
    border-radius: 28px;
    background: var(--primary-soft-2);
    border: 1px solid var(--line);
}

.product-media img {
    width: min(100%, 420px);
    margin: 0 auto;
    border-radius: 24px;
    object-fit: contain;
}

.feature-list,
.check-list {
    display: grid;
    gap: 10px;
    margin: 22px 0;
    padding: 0;
    list-style: none;
}

.feature-list li,
.check-list li {
    position: relative;
    padding: 12px 12px 12px 38px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #FFFFFF;
    color: #445365;
}

.feature-list li::before,
.check-list li::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 18px;
    width: 9px;
    height: 9px;
    border-radius: 99px;
    background: var(--primary);
}

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.process-steps {
    display: grid;
    gap: 14px;
}

.step-card {
    position: relative;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 10px 28px rgba(46, 83, 130, .06);
}

.step-number {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary);
    color: var(--white);
    font-weight: 850;
    margin-bottom: 12px;
}

.step-card p {
    margin: 8px 0 12px;
    font-size: 14px;
}

.risk-grid,
.ecosystem-grid,
.category-grid,
.info-grid {
    display: grid;
    gap: 16px;
}

.risk-card,
.category-card,
.info-card,
.faq-item,
.tip-box,
.side-card {
    position: relative;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 10px 28px rgba(46, 83, 130, .05);
}

.risk-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 22px 0 0 22px;
    background: var(--primary);
}

.risk-card h3,
.category-card h3,
.info-card h3,
.faq-item h3,
.side-card h3 {
    font-size: 18px;
}

.risk-card p,
.category-card p,
.info-card p,
.faq-item p,
.side-card p {
    margin-top: 9px;
    font-size: 14px;
}

.risk-card .suggestion {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: #315D98;
    font-size: 13px;
    font-weight: 700;
}

.category-card {
    min-height: 176px;
}

.category-card .link-pill {
    margin-top: 16px;
}

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-item {
    box-shadow: none;
}

.cta-section {
    padding: 42px 24px;
    text-align: center;
    border: 1px solid rgba(41, 128, 254, .13);
    border-radius: 32px;
    background: linear-gradient(135deg, #F5F9FF 0%, #FFFFFF 52%, #EAF3FF 100%);
    box-shadow: var(--soft-shadow);
}

.cta-section p {
    margin: 14px auto 24px;
    max-width: 720px;
}

.page-hero {
    padding: 54px 0 30px;
}

.page-hero-inner {
    display: grid;
    gap: 18px;
    max-width: 850px;
}

.page-hero .download-btn {
    margin-top: 12px;
}

.content-wrap {
    padding: 34px 0 72px;
}

.article-layout {
    display: grid;
    gap: 22px;
    align-items: start;
}

.article-card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.article-card p + p {
    margin-top: 16px;
}

.article-card h2 {
    margin-top: 28px;
    margin-bottom: 14px;
    font-size: clamp(24px, 4vw, 34px);
}

.article-card h2:first-child {
    margin-top: 0;
}

.side-stack {
    display: grid;
    gap: 14px;
}

.callout {
    padding: 18px;
    border: 1px solid rgba(41, 128, 254, .18);
    border-radius: 22px;
    background: var(--primary-soft-2);
}

.callout strong {
    color: var(--text);
}

.table-like {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.table-row {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #FFFFFF;
}

.table-row strong {
    color: var(--text);
}

.download-steps {
    counter-reset: dstep;
    display: grid;
    gap: 14px;
    padding: 0;
    list-style: none;
}

.download-steps li {
    counter-increment: dstep;
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 12px;
    align-items: start;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
}

.download-steps li::before {
    content: counter(dstep);
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--primary);
    color: var(--white);
    font-weight: 850;
}

.footer-grid {
    display: grid;
    gap: 24px;
    padding: 42px 0 28px;
    border-top: 1px solid var(--line);
}

.site-footer {
    background: #F8FAFD;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-brand img {
    width: 34px;
    height: 34px;
    border-radius: 12px;
}

.site-footer h3 {
    margin-bottom: 12px;
    font-size: 16px;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: var(--muted);
    font-size: 14px;
}

.site-footer a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 0 28px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

@media (min-width: 560px) {
    .ability-bar,
    .ecosystem-grid,
    .category-grid,
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .risk-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .floating-card {
        width: calc(50% - 6px);
    }

    .app-visual {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }

    .app-visual .phone-img {
        flex: 1 1 100%;
    }
}

@media (min-width: 760px) {
    .feature-showcase {
        grid-template-columns: repeat(2, 1fr);
    }

    .table-row {
        grid-template-columns: 180px 1fr;
        align-items: center;
    }
}

@media (min-width: 940px) {
    .nav-toggle {
        display: none;
    }

    .site-nav {
        position: static;
        display: flex !important;
        flex-direction: row;
        align-items: center;
        width: auto;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .site-nav a {
        padding: 8px 10px;
        font-size: 13px;
    }

    .app-hero {
        padding: 82px 0 48px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
        gap: 46px;
    }

    .app-visual {
        min-height: 560px;
        padding: 28px;
        display: block;
    }

    .app-visual .phone-img {
        width: min(72%, 390px);
        margin: 34px auto;
    }

    .floating-card {
        position: absolute;
        width: 190px;
        margin: 0;
    }

    .card-asset { left: 18px; top: 68px; }
    .card-cold { right: 22px; top: 108px; }
    .card-swap { left: 26px; bottom: 96px; }
    .card-dapp { right: 32px; bottom: 56px; }

    .ability-bar {
        grid-template-columns: repeat(5, 1fr);
    }

    .product-section,
    .cold-wallet-panel,
    .swap-panel,
    .dapp-panel {
        grid-template-columns: minmax(0, 1fr) minmax(360px, .88fr);
        padding: 36px;
    }

    .cold-wallet-panel .product-media,
    .dapp-panel .product-media {
        order: -1;
    }

    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .risk-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ecosystem-grid,
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .article-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .footer-grid {
        grid-template-columns: 1.4fr repeat(3, 1fr);
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 380px) {
    .container {
        width: min(100% - 24px, 1120px);
    }

    .download-btn {
        width: 100%;
    }

    .hero-actions {
        width: 100%;
    }

    .feature-card,
    .article-card,
    .product-section,
    .cold-wallet-panel,
    .swap-panel,
    .dapp-panel {
        padding: 20px;
        border-radius: 24px;
    }
}
