* {
    box-sizing: border-box;
}

:root {
    --primary: #2980FE;
    --primary-dark: #1265dc;
    --primary-soft: #eef6ff;
    --primary-mist: #f5f9ff;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e5eaf2;
    --gray-300: #d8dee9;
    --gray-600: #5f6b7a;
    --gray-800: #253041;
    --gray-900: #111827;
    --shadow: 0 18px 45px rgba(38, 83, 150, 0.10);
    --soft-shadow: 0 12px 28px rgba(41, 128, 254, 0.08);
    --radius: 26px;
    --radius-lg: 32px;
}

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

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 234, 242, 0.9);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

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

.nav-toggle {
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-900);
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 22px;
    line-height: 1;
}

.main-nav {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--gray-200);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.main-nav.is-open {
    display: grid;
}

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

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

.section,
.page-hero,
.web3-hero,
.cta-section {
    padding: 54px 0;
}

.web3-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 16%, rgba(41, 128, 254, 0.17), transparent 31%),
        linear-gradient(135deg, #ffffff 0%, #f2f7ff 100%);
}

.web3-hero::before {
    content: "";
    position: absolute;
    inset: 64px -90px auto auto;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    border: 1px solid rgba(41, 128, 254, 0.22);
    background: linear-gradient(135deg, rgba(41, 128, 254, 0.10), rgba(255,255,255,0));
}

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

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

h1,
h2,
h3 {
    color: var(--gray-900);
    line-height: 1.18;
    letter-spacing: -0.035em;
}

h1 {
    margin: 18px 0 16px;
    font-size: clamp(36px, 10vw, 70px);
}

h2 {
    margin: 0 0 14px;
    font-size: clamp(28px, 6vw, 44px);
}

h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.lead {
    color: var(--gray-600);
    font-size: 18px;
    max-width: 680px;
}

.hero-actions,
.page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 26px 0 18px;
}

.download-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    min-width: 152px;
    padding: 13px 22px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary) 0%, #5aa2ff 100%);
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 14px 26px rgba(41, 128, 254, 0.26);
    transition: transform .2s ease, box-shadow .2s ease;
}

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

.security-tags,
.floating-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.security-tags span,
.floating-tags span,
.tag-row span,
.small-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 700;
}

.hero-visual {
    position: relative;
    min-height: 360px;
    display: grid;
    place-items: center;
}

.product-orbit {
    position: relative;
    width: min(420px, 100%);
    padding: 18px;
    border-radius: 38px;
    background: rgba(255,255,255,0.76);
    border: 1px solid rgba(229,234,242,0.9);
    box-shadow: var(--shadow);
}

.product-orbit img {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
}

.floating-tags span {
    position: absolute;
    background: rgba(255,255,255,0.94);
    box-shadow: var(--soft-shadow);
}

.floating-tags span:nth-child(1) { top: 18px; left: 6px; }
.floating-tags span:nth-child(2) { top: 76px; right: 0; }
.floating-tags span:nth-child(3) { bottom: 76px; left: 0; }
.floating-tags span:nth-child(4) { bottom: 20px; right: 24px; }

.ecosystem-nav {
    padding: 28px 0 56px;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 22px;
}

.section-heading p {
    margin: 0;
    color: var(--gray-600);
    max-width: 740px;
}

.ecosystem-grid,
.category-grid,
.risk-grid,
.faq-grid,
.card-grid,
.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.ecosystem-card,
.info-card,
.risk-card,
.faq-item,
.related-card,
.step-card,
.article-card,
.notice-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--soft-shadow);
}

.ecosystem-card {
    position: relative;
    min-height: 178px;
    transition: transform .2s ease, border-color .2s ease;
}

.ecosystem-card:hover {
    transform: translateY(-4px);
    border-color: rgba(41,128,254,0.35);
}

.card-index {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 12px;
    font-weight: 800;
    margin-bottom: 14px;
}

.card-link,
.text-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 800;
    margin-top: 10px;
}

.split-section,
.feature-section {
    padding: 62px 0;
}

.split-card,
.feature-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
    padding: 26px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.web3-section .split-card {
    background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
}

.hardware-wallet-section,
.privacy-section {
    background: var(--gray-50);
}

.hardware-wallet-section .split-card {
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

.digital-assets-section .split-card {
    background: linear-gradient(135deg, #ffffff 0%, #f7fbff 55%, #eef6ff 100%);
}

.swap-section .split-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fbff 100%);
}

.feature-media,
.visual-panel {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--primary-soft), #ffffff);
    border: 1px solid var(--gray-200);
    min-height: 260px;
    display: grid;
    place-items: center;
    padding: 22px;
}

.feature-media img,
.visual-panel img {
    max-height: 420px;
    object-fit: contain;
}

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

.check-list li,
.clean-list li {
    position: relative;
    padding-left: 28px;
    color: var(--gray-600);
}

.check-list li::before,
.clean-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 5px rgba(41,128,254,0.10);
}

.privacy-panel,
.submit-panel,
.developer-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.privacy-card {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--gray-200);
}

.submit-chain-section .submit-panel,
.developer-center-section .developer-panel {
    padding: 26px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #f4f8ff, #ffffff);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
}

.code-panel {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    padding: 22px;
    border-radius: 24px;
    background: #f7fbff;
    border: 1px solid #dbeafe;
    color: #24405f;
    overflow: auto;
}

.code-line {
    display: block;
    padding: 5px 0;
    white-space: nowrap;
}

.code-line strong {
    color: var(--primary);
}

.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    counter-reset: steps;
}

.step-card {
    position: relative;
    overflow: hidden;
}

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

.risk-card {
    border-left: 4px solid var(--primary);
}

.risk-card p,
.info-card p,
.faq-item p,
.article-card p,
.related-card p,
.ecosystem-card p,
.step-card p {
    margin: 0;
    color: var(--gray-600);
}

.faq-item h3,
.risk-card h3,
.info-card h3,
.article-card h3,
.related-card h3,
.step-card h3 {
    font-size: 18px;
}

.cta-section {
    text-align: center;
    background: linear-gradient(135deg, #f5f9ff 0%, #ffffff 100%);
}

.cta-box {
    padding: 34px 22px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
}

.page-hero {
    background: radial-gradient(circle at 80% 10%, rgba(41,128,254,.14), transparent 28%), linear-gradient(135deg, #ffffff 0%, #f6f9ff 100%);
}

.page-hero-inner {
    display: grid;
    gap: 20px;
    max-width: 860px;
}

.page-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 52px 0;
}

.article-body {
    display: grid;
    gap: 18px;
}

.article-body p {
    margin: 0;
    color: var(--gray-600);
}

.aside-panel {
    display: grid;
    gap: 14px;
    align-content: start;
}

.notice-card {
    background: linear-gradient(135deg, #ffffff, #f6faff);
}

.download-steps {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
    margin-top: 24px;
}

.download-step {
    padding: 20px;
    border-radius: 22px;
    background: var(--white);
    border: 1px solid var(--gray-200);
}

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

.site-footer {
    padding: 48px 0 24px;
    background: #f7fafc;
    border-top: 1px solid var(--gray-200);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.footer-brand {
    font-size: 22px;
    color: var(--gray-900);
    font-weight: 850;
    margin-bottom: 10px;
}

.site-footer p {
    color: var(--gray-600);
    margin: 0;
}

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

.site-footer a {
    display: block;
    color: var(--gray-600);
    margin: 8px 0;
}

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

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 32px;
    padding-top: 18px;
    color: var(--gray-600);
    border-top: 1px solid var(--gray-200);
    font-size: 14px;
}

@media (min-width: 640px) {
    .ecosystem-grid,
    .category-grid,
    .risk-grid,
    .faq-grid,
    .card-grid,
    .related-grid,
    .download-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .main-nav {
        position: static;
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        gap: 4px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

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

    .hero-grid,
    .split-card,
    .feature-card,
    .submit-panel,
    .developer-panel,
    .privacy-panel,
    .page-layout {
        grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    }

    .hardware-wallet-section .split-card,
    .swap-section .split-card {
        grid-template-columns: minmax(360px, .92fr) minmax(0, 1.08fr);
    }

    .hardware-wallet-section .feature-media,
    .swap-section .feature-media {
        order: -1;
    }

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

    .ecosystem-card:nth-child(1),
    .ecosystem-card:nth-child(7) {
        grid-column: span 2;
    }

    .category-grid,
    .risk-grid,
    .faq-grid,
    .related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .card-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

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

    .section,
    .page-hero,
    .web3-hero,
    .cta-section {
        padding: 76px 0;
    }

    .split-card,
    .feature-card,
    .submit-chain-section .submit-panel,
    .developer-center-section .developer-panel {
        padding: 42px;
    }
}

@media (min-width: 1120px) {
    .main-nav a {
        font-size: 14px;
        padding: 9px 12px;
    }
}
