:root {
    --primary: #2980FE;
    --primary-soft: #EAF3FF;
    --primary-pale: #F3F8FF;
    --text: #172033;
    --muted: #64748B;
    --line: #E5EAF2;
    --panel: #FFFFFF;
    --soft: #F6F8FB;
    --soft-blue: #F4F8FE;
    --deep: #263246;
    --radius: 24px;
    --shadow: 0 18px 45px rgba(24, 48, 88, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #FFFFFF 0%, #F7FAFF 38%, #FFFFFF 100%);
    line-height: 1.72;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-shell {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand, .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--deep);
    letter-spacing: .02em;
}
.logo, .footer-brand img { width: 38px; height: 38px; object-fit: contain; border-radius: 10px; }
.nav-toggle { display: none; }
.nav-toggle-label {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    display: grid;
    place-content: center;
    gap: 5px;
    background: #fff;
}
.nav-toggle-label span { width: 20px; height: 2px; background: var(--deep); display: block; border-radius: 999px; }
.main-nav {
    position: absolute;
    top: 72px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}
.main-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 650;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: var(--primary-soft); }
.nav-toggle:checked ~ .main-nav { display: flex; }
main { min-height: 64vh; }
.section { padding: 58px 0; }
.section-tight { padding: 38px 0; }
.section-title { margin-bottom: 24px; }
.eyebrow, .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid rgba(41,128,254,.16);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}
.eyebrow::before, .category-badge::before { content: ''; width: 7px; height: 7px; border-radius: 999px; background: var(--primary); }
h1, h2, h3 { color: var(--deep); line-height: 1.18; margin: 0 0 14px; }
h1 { font-size: clamp(34px, 8vw, 64px); letter-spacing: -0.045em; }
h2 { font-size: clamp(26px, 5vw, 42px); letter-spacing: -0.035em; }
h3 { font-size: 20px; }
p { margin: 0 0 14px; color: var(--muted); }
.lead { font-size: 18px; color: #45546B; }
.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 12px 26px rgba(41,128,254,.22);
    transition: transform .2s ease, box-shadow .2s ease;
}
.download-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(41,128,254,.28); }
.link-more { display: inline-flex; color: var(--primary); font-weight: 800; margin-top: 10px; }
.web3-dashboard-hero {
    padding: 56px 0 34px;
    position: relative;
    overflow: hidden;
}
.web3-dashboard-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 20%, rgba(41,128,254,.16), transparent 34%), radial-gradient(circle at 90% 12%, rgba(41,128,254,.10), transparent 34%);
    pointer-events: none;
}
.hero-grid {
    position: relative;
    display: grid;
    gap: 28px;
    align-items: center;
}
.hero-copy { max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 24px 0; }
.security-tags, .mini-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.security-tags span, .mini-tags span {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.82);
    color: #526174;
    font-size: 13px;
    font-weight: 700;
}
.hero-console {
    position: relative;
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(226,232,240,.92);
    border-radius: 30px;
    padding: 18px;
    box-shadow: var(--shadow);
}
.product-frame {
    min-height: 320px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #F7FBFF, #EEF6FF);
    border-radius: 24px;
    border: 1px solid var(--line);
    overflow: hidden;
}
.product-frame img { max-height: 380px; object-fit: contain; }
.status-grid { display: grid; gap: 12px; margin-top: 14px; }
.status-card {
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
}
.status-card strong { display: block; color: var(--deep); }
.status-card span { color: var(--muted); font-size: 13px; }
.service-index { padding: 30px 0 56px; }
.service-index-grid, .category-grid {
    display: grid;
    gap: 16px;
}
.service-card, .category-card, .risk-card, .faq-item, .content-card, .step-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 12px 28px rgba(22,38,64,.04);
}
.service-card .tag, .content-card .tag { color: var(--primary); font-size: 13px; font-weight: 850; }
.service-card h3, .category-card h3 { margin-top: 8px; }
.feature-split, .digital-assets-hub, .web3-ecosystem-section, .hardware-wallet-section, .swap-service-section, .developer-center-section {
    display: grid;
    gap: 24px;
    align-items: center;
}
.digital-assets-hub, .web3-ecosystem-section, .hardware-wallet-section, .swap-service-section, .privacy-boundary-section, .submit-chain-section, .developer-center-section {
    border-radius: 30px;
    padding: 26px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
}
.web3-ecosystem-section, .swap-service-section { background: linear-gradient(145deg, #FFFFFF, #F5F9FF); }
.hardware-wallet-section { background: linear-gradient(145deg, #F7FAFC, #EFF6FF); }
.privacy-boundary-section, .submit-chain-section { background: var(--soft-blue); }
.image-panel {
    border-radius: 28px;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, #F8FBFF, #FFFFFF);
    min-height: 260px;
    padding: 18px;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.image-panel img { max-height: 340px; object-fit: contain; }
.bullet-list, .check-list, .plain-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.bullet-list li, .check-list li, .plain-list li {
    padding-left: 28px;
    position: relative;
    color: #526174;
}
.bullet-list li::before, .check-list li::before, .plain-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .72em;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 0 0 5px var(--primary-soft);
}
.info-panels { display: grid; gap: 16px; margin-top: 20px; }
.info-panel {
    padding: 18px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
}
.code-panel {
    background: #F8FBFF;
    border: 1px solid #DCEBFF;
    border-radius: 24px;
    padding: 20px;
    color: #35506E;
    font-family: "SFMono-Regular", Consolas, monospace;
    overflow-x: auto;
}
.code-panel span { color: var(--primary); }
.process-steps { display: grid; gap: 16px; }
.step-card .number {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    font-weight: 900;
    margin-bottom: 12px;
}
.risk-grid { display: grid; gap: 16px; }
.risk-card { border-left: 4px solid var(--primary); }
.risk-card strong { display: block; color: var(--deep); margin-bottom: 6px; }
.faq-grid { display: grid; gap: 14px; }
.faq-item h3 { font-size: 18px; }
.cta-section {
    text-align: center;
    border-radius: 30px;
    padding: 42px 24px;
    background: linear-gradient(145deg, #EEF6FF, #FFFFFF);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.page-hero {
    padding: 54px 0 22px;
}
.page-hero-card {
    border-radius: 32px;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, #FFFFFF, #F5F9FF);
    padding: 28px;
    box-shadow: var(--shadow);
}
.article-layout { display: grid; gap: 22px; align-items: start; }
.article-main { display: grid; gap: 18px; }
.article-main .content-card p:last-child { margin-bottom: 0; }
.side-panel {
    position: relative;
    display: grid;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 20px;
    box-shadow: 0 12px 28px rgba(22,38,64,.04);
}
.side-panel a { color: var(--primary); font-weight: 800; }
.notice-box {
    border-radius: 24px;
    border: 1px solid #DCEBFF;
    background: var(--primary-pale);
    padding: 20px;
}
.download-inline { margin-top: 18px; }
.download-card { text-align: center; }
.download-card .download-btn { margin-top: 10px; }
.install-steps { counter-reset: install; display: grid; gap: 14px; margin-top: 22px; }
.install-steps li {
    list-style: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    color: #526174;
}
.install-steps li::before {
    counter-increment: install;
    content: counter(install);
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 900;
}
.site-footer {
    margin-top: 60px;
    background: #F6F8FB;
    border-top: 1px solid var(--line);
    color: var(--muted);
}
.footer-grid { display: grid; gap: 24px; padding: 38px 0; }
.footer-grid h2 { font-size: 16px; margin-bottom: 10px; }
.footer-grid a:not(.footer-brand) { display: block; color: var(--muted); padding: 4px 0; }
.footer-grid a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--line); text-align: center; padding: 16px; font-size: 13px; }
@media (min-width: 680px) {
    .service-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-grid, .risk-grid, .process-steps, .status-grid, .info-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
@media (min-width: 920px) {
    .nav-toggle-label { display: none; }
    .main-nav {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0;
        box-shadow: none;
        border: 0;
        background: transparent;
        gap: 2px;
    }
    .main-nav a { font-size: 14px; padding: 8px 10px; }
    .hero-grid { grid-template-columns: 1.02fr .98fr; gap: 44px; }
    .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-index-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .service-index-grid .service-card:first-child { grid-column: span 2; }
    .digital-assets-hub, .web3-ecosystem-section, .hardware-wallet-section, .swap-service-section, .developer-center-section, .feature-split { grid-template-columns: 1fr 1fr; }
    .hardware-wallet-section .image-panel, .swap-service-section .image-panel { order: -1; }
    .privacy-boundary-section, .submit-chain-section { padding: 34px; }
    .article-layout { grid-template-columns: minmax(0, 1fr) 320px; }
    .process-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .risk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1180px) {
    .web3-dashboard-hero { padding-top: 76px; }
}
@media (max-width: 430px) {
    .container { width: min(100% - 24px, 1120px); }
    .page-hero-card, .digital-assets-hub, .web3-ecosystem-section, .hardware-wallet-section, .swap-service-section, .privacy-boundary-section, .submit-chain-section, .developer-center-section, .cta-section { border-radius: 24px; padding: 22px; }
    .download-btn { width: 100%; }
    .hero-actions { align-items: stretch; }
}
