:root {
    --primary: #2980FE;
    --primary-soft: #EAF3FF;
    --primary-light: #F4F8FF;
    --bg: #F6F8FB;
    --surface: #FFFFFF;
    --surface-soft: #F8FAFD;
    --border: #E5EAF2;
    --text: #263247;
    --muted: #687385;
    --muted-2: #8A96A8;
    --shadow: 0 18px 45px rgba(41, 128, 254, .10);
    --card-shadow: 0 12px 30px rgba(36, 48, 72, .07);
    --radius: 24px;
    --radius-lg: 30px;
    --max: 1160px;
}

* {
    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%, #F6F8FB 42%, #FFFFFF 100%);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

.header-inner {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    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,
.brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.brand-text {
    font-size: 20px;
    color: var(--text);
}

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

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

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

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

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

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

.section,
.page-section {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
}

.web3-dashboard-hero {
    position: relative;
    overflow: hidden;
    width: min(1240px, calc(100% - 28px));
    margin: 26px auto 0;
    padding: 34px 20px;
    border: 1px solid var(--border);
    border-radius: 32px;
    background:
        radial-gradient(circle at 16% 10%, rgba(41, 128, 254, .18), transparent 32%),
        linear-gradient(135deg, #FFFFFF 0%, #F4F8FF 58%, #EEF5FF 100%);
    box-shadow: var(--shadow);
}

.web3-dashboard-hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -180px;
    top: -180px;
    background: radial-gradient(circle, rgba(41, 128, 254, .16), transparent 70%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 28px;
    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, .16);
    font-weight: 700;
    font-size: 13px;
}

h1,
h2,
h3 {
    line-height: 1.22;
    color: var(--text);
    margin: 0;
}

h1 {
    font-size: clamp(32px, 7vw, 62px);
    letter-spacing: -0.05em;
    margin-top: 16px;
    max-width: 760px;
}

h2 {
    font-size: clamp(26px, 4vw, 42px);
    letter-spacing: -0.035em;
}

h3 {
    font-size: 20px;
}

.hero-copy p,
.section-intro,
.lead,
.page-summary {
    color: var(--muted);
    font-size: 17px;
    margin: 16px 0 0;
}

.hero-copy p {
    max-width: 650px;
}

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

.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 30px rgba(41, 128, 254, .26);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    cursor: pointer;
    border: 0;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(41, 128, 254, .30);
    background: #1F74EF;
}

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

.security-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    padding: 8px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,.76);
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

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

.phone-frame {
    width: min(330px, 82vw);
    padding: 15px;
    border-radius: 34px;
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(229, 234, 242, .9);
    box-shadow: 0 28px 70px rgba(41, 128, 254, .18);
}

.phone-frame img {
    border-radius: 24px;
    width: 100%;
    object-fit: cover;
}

.status-card {
    position: relative;
    width: 100%;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(229, 234, 242, .95);
    box-shadow: var(--card-shadow);
    margin-top: 12px;
}

.status-card strong {
    display: block;
    color: var(--text);
}

.status-card span {
    color: var(--muted);
    font-size: 13px;
}

.status-card::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    background: var(--primary);
    border-radius: 50%;
    margin-right: 8px;
}

.service-index {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.service-card,
.feature-card,
.risk-card,
.step-card,
.info-card,
.faq-item,
.page-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
}

.service-card {
    padding: 20px;
    position: relative;
    min-height: 160px;
}

.service-card .mini-label {
    display: inline-flex;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
    background: var(--primary-soft);
    padding: 5px 9px;
    margin-bottom: 14px;
}

.service-card p,
.feature-card p,
.info-card p,
.risk-card p,
.step-card p,
.page-card p,
.faq-item p {
    color: var(--muted);
    margin: 8px 0 0;
}

.text-link {
    display: inline-flex;
    color: var(--primary);
    font-weight: 800;
    margin-top: 12px;
}

.text-link::after {
    content: "›";
    padding-left: 6px;
}

.product-section,
.digital-assets-hub,
.web3-ecosystem-section,
.hardware-wallet-section,
.swap-service-section,
.privacy-boundary-section,
.submit-chain-section,
.developer-center-section {
    border-radius: 30px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--card-shadow);
    padding: 24px;
    margin-top: 18px;
}

.alt-bg,
.hardware-wallet-section,
.privacy-boundary-section {
    background: linear-gradient(135deg, #F8FAFD 0%, #EEF5FF 100%);
}

.section-grid {
    display: grid;
    gap: 24px;
    align-items: center;
}

.visual-card {
    border-radius: 28px;
    background: linear-gradient(135deg, #FFFFFF, #F1F6FF);
    border: 1px solid var(--border);
    padding: 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.visual-card img {
    width: 100%;
    border-radius: 22px;
    object-fit: cover;
}

.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: 12px 12px 12px 38px;
    background: rgba(255,255,255,.72);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--muted);
}

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

.feature-showcase,
.category-grid,
.ecosystem-grid,
.risk-grid,
.process-steps,
.faq-grid,
.info-grid {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.feature-card {
    padding: 20px;
    overflow: hidden;
}

.feature-card img {
    margin-top: 18px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: var(--primary-light);
}

.process-steps {
    counter-reset: step;
}

.step-card {
    padding: 20px;
    position: relative;
}

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

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

.cta-section {
    text-align: center;
    padding: 42px 20px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 50% 0%, rgba(41,128,254,.18), transparent 42%),
        linear-gradient(135deg, #F8FBFF 0%, #EEF5FF 100%);
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    margin-bottom: 44px;
}

.cta-section p {
    max-width: 640px;
    color: var(--muted);
    margin: 14px auto 22px;
}

.page-hero {
    width: min(var(--max), calc(100% - 32px));
    margin: 26px auto 0;
    padding: 34px 22px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background:
        radial-gradient(circle at 8% 8%, rgba(41,128,254,.16), transparent 30%),
        linear-gradient(135deg, #FFFFFF, #F4F8FF);
    box-shadow: var(--shadow);
}

.page-layout {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 54px;
    display: grid;
    gap: 20px;
}

.article-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--card-shadow);
}

.article-panel p {
    color: var(--muted);
    margin: 0 0 16px;
}

.article-panel p:last-child {
    margin-bottom: 0;
}

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

.info-card,
.page-card {
    padding: 18px;
}

.notice-panel,
.safety-panel {
    margin-top: 20px;
    padding: 20px;
    border-radius: 24px;
    background: var(--primary-light);
    border: 1px solid rgba(41,128,254,.18);
}

.code-panel {
    margin-top: 18px;
    border-radius: 22px;
    background: #F7FAFF;
    border: 1px solid var(--border);
    overflow: hidden;
}

.code-line {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    color: var(--muted);
}

.code-line:last-child {
    border-bottom: 0;
}

.code-line span:first-child {
    color: var(--primary);
    font-weight: 800;
}

.faq-item {
    padding: 20px;
}

.faq-item h3 {
    font-size: 18px;
}

.download-card {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.footer-inner {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    display: grid;
    gap: 22px;
    border-top: 1px solid var(--border);
}

.footer-brand {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.footer-brand img {
    width: 42px;
    height: 42px;
}

.footer-brand p {
    color: var(--muted);
    margin: 6px 0 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.footer-links a {
    color: var(--muted);
}

.footer-bottom {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: var(--muted-2);
    font-size: 13px;
    display: grid;
    gap: 8px;
}

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

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

    .web3-dashboard-hero {
        padding: 44px 32px;
    }
}

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

    .site-nav {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 2px;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        overflow-x: auto;
        max-width: 900px;
    }

    .site-nav a {
        font-size: 14px;
        white-space: nowrap;
        padding: 8px 9px;
    }

    .hero-grid,
    .section-grid,
    .page-layout {
        grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    }

    .page-layout {
        align-items: start;
    }

    .service-index {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .service-card {
        min-height: 188px;
    }

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

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

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

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

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

    .dashboard-visual .status-card {
        position: absolute;
        width: 210px;
        margin-top: 0;
    }

    .dashboard-visual .status-card:nth-of-type(1) { left: 0; top: 38px; }
    .dashboard-visual .status-card:nth-of-type(2) { right: 0; top: 88px; }
    .dashboard-visual .status-card:nth-of-type(3) { left: 6px; bottom: 84px; }
    .dashboard-visual .status-card:nth-of-type(4) { right: 10px; bottom: 40px; }
    .dashboard-visual .status-card:nth-of-type(5) { left: 50%; transform: translateX(-50%); bottom: 0; }

    .product-section,
    .digital-assets-hub,
    .web3-ecosystem-section,
    .hardware-wallet-section,
    .swap-service-section,
    .privacy-boundary-section,
    .submit-chain-section,
    .developer-center-section {
        padding: 36px;
    }

    .reverse .section-grid > .visual-card {
        order: -1;
    }

    .footer-inner {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .footer-bottom {
        grid-template-columns: 1fr auto;
    }
}

@media (min-width: 1120px) {
    .site-nav a {
        padding: 8px 10px;
    }

    .web3-dashboard-hero {
        padding: 58px;
    }
}
