:root {
    --primary: #2980FE;
    --primary-dark: #0f63dc;
    --text: #1f2937;
    --muted: #667085;
    --line: #e6ebf2;
    --soft: #f6f8fb;
    --soft-blue: #eef6ff;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(18, 50, 94, 0.08);
    --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 48%, #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,0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.nav-wrap {
    width: min(1180px, calc(100% - 24px));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: #172033; letter-spacing: .02em; }
.logo-img { width: 38px; height: 38px; object-fit: contain; border-radius: 12px; }
.nav-toggle {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--text);
    font-size: 22px;
    width: 44px;
    height: 44px;
}
.main-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 72px;
    display: none;
    flex-direction: column;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
}
.main-nav.open { display: flex; }
.main-nav a { padding: 10px 12px; color: #344054; border-radius: 12px; font-size: 15px; }
.main-nav a:hover { color: var(--primary); background: var(--soft-blue); }
.badge, .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    background: var(--soft-blue);
    border: 1px solid rgba(41,128,254,.18);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
}
.hero, .web3-dashboard-hero {
    position: relative;
    padding: 42px 0 28px;
    overflow: hidden;
}
.web3-dashboard-hero::before {
    content: "";
    position: absolute;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    right: -220px;
    top: -260px;
    background: radial-gradient(circle, rgba(41,128,254,.18), rgba(41,128,254,0) 70%);
}
.hero-grid {
    position: relative;
    display: grid;
    gap: 28px;
    align-items: center;
}
h1 { font-size: clamp(34px, 9vw, 64px); line-height: 1.08; margin: 18px 0 16px; letter-spacing: -.04em; color: #111827; }
h2 { font-size: clamp(26px, 6vw, 42px); line-height: 1.18; margin: 0 0 14px; letter-spacing: -.025em; color: #111827; }
h3 { margin: 0 0 8px; font-size: 20px; color: #182230; }
p { margin: 0 0 14px; color: var(--muted); }
.lead { font-size: 18px; color: #475467; max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 24px;
    border-radius: 999px;
    color: #fff;
    background: var(--primary);
    border: 1px solid var(--primary);
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(41,128,254,.22);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.download-btn:hover { transform: translateY(-2px); background: var(--primary-dark); box-shadow: 0 16px 30px rgba(41,128,254,.26); }
.security-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.security-tags span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; color: #344054; font-size: 13px; }
.hero-panel {
    position: relative;
    background: linear-gradient(145deg, #ffffff, #f0f7ff);
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 18px;
    box-shadow: var(--shadow);
}
.product-visual { margin: 0 auto; max-height: 360px; object-fit: contain; }
.status-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.status-card { background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: 18px; padding: 12px; }
.status-card strong { display: block; color: #172033; font-size: 14px; }
.status-card span { color: var(--muted); font-size: 12px; }
.section { padding: 34px 0; }
.section-head { margin-bottom: 20px; }
.section-head p { max-width: 720px; }
.service-index, .category-grid { display: grid; gap: 14px; }
.service-card, .info-card, .risk-card, .faq-item, .step-card, .panel-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(18, 50, 94, 0.04);
}
.service-card { min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; }
.service-card .tag { color: var(--primary); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.text-link { color: var(--primary); font-weight: 800; display: inline-flex; margin-top: 8px; }
.module-panel {
    border-radius: 30px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.module-grid { display: grid; gap: 22px; align-items: center; }
.module-visual { background: var(--soft-blue); border-radius: 24px; padding: 14px; border: 1px solid rgba(41,128,254,.12); }
.module-visual img { margin: 0 auto; max-height: 390px; object-fit: contain; }
.point-list, .check-list { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.point-list li, .check-list li { padding: 12px 14px; border-radius: 16px; background: var(--soft); color: #344054; border: 1px solid #edf1f6; }
.web3-ecosystem-section .module-panel, .hardware-wallet-section .module-panel, .swap-service-section .module-panel { background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%); }
.hardware-wallet-section { background: linear-gradient(180deg, rgba(238,246,255,.55), rgba(255,255,255,0)); }
.privacy-boundary-section .boundary-grid, .submit-chain-section .submit-grid, .developer-center-section .developer-grid { display: grid; gap: 16px; }
.safety-panel {
    background: linear-gradient(135deg, #f4f9ff, #ffffff);
    border: 1px solid rgba(41,128,254,.16);
    border-radius: 28px;
    padding: 22px;
}
.panel-card.code-card { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; background: #f8fafc; color: #344054; }
.code-line { display: block; padding: 8px 0; border-bottom: 1px solid #e8eef5; }
.code-line:last-child { border-bottom: 0; }
.process-steps { display: grid; gap: 14px; }
.step-card { position: relative; padding-left: 74px; min-height: 120px; }
.step-num {
    position: absolute;
    left: 18px;
    top: 20px;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--primary);
    font-weight: 900;
}
.risk-grid { display: grid; gap: 14px; }
.risk-card { border-left: 4px solid var(--primary); }
.risk-card .risk-label { color: var(--primary); font-weight: 800; font-size: 13px; }
.faq-list { display: grid; gap: 12px; }
.faq-item h3 { font-size: 18px; }
.cta-section { text-align: center; padding: 42px 0 58px; }
.cta-box {
    background: linear-gradient(135deg, #eef6ff, #ffffff 72%);
    border: 1px solid rgba(41,128,254,.16);
    border-radius: 30px;
    padding: 34px 20px;
    box-shadow: var(--shadow);
}
.page-hero { padding: 46px 0 20px; }
.page-layout { display: grid; gap: 18px; align-items: start; }
.article-body { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 22px; box-shadow: var(--shadow); }
.article-body p { font-size: 16px; }
.side-panel { display: grid; gap: 14px; }
.notice-box { background: var(--soft-blue); border: 1px solid rgba(41,128,254,.16); border-radius: 22px; padding: 18px; }
.download-spot { margin-top: 22px; }
.install-steps { counter-reset: step; display: grid; gap: 12px; margin-top: 16px; }
.install-steps div { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.download-page-card { background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 26px; box-shadow: var(--shadow); }
.site-footer { background: #f5f7fb; border-top: 1px solid var(--line); padding: 36px 0 0; margin-top: 28px; }
.footer-grid { display: grid; gap: 22px; }
.footer-brand { font-weight: 900; font-size: 20px; margin-bottom: 10px; color: #172033; }
.site-footer h3 { font-size: 16px; }
.site-footer a { display: block; color: #475467; margin: 7px 0; }
.footer-bottom { text-align: center; border-top: 1px solid var(--line); padding: 16px; margin-top: 24px; color: #667085; font-size: 14px; }
@media (min-width: 640px) {
    .service-index, .category-grid { grid-template-columns: repeat(2, 1fr); }
    .risk-grid { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
@media (min-width: 900px) {
    .nav-toggle { display: none; }
    .main-nav { position: static; display: flex; flex-direction: row; align-items: center; gap: 2px; padding: 0; background: transparent; border: 0; box-shadow: none; }
    .main-nav a { font-size: 14px; padding: 8px 9px; }
    .web3-dashboard-hero { padding: 72px 0 44px; }
    .hero-grid, .module-grid { grid-template-columns: 1fr 1fr; }
    .service-index { grid-template-columns: repeat(4, 1fr); }
    .service-card:nth-child(1), .service-card:nth-child(7) { grid-column: span 2; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .privacy-boundary-section .boundary-grid, .submit-chain-section .submit-grid, .developer-center-section .developer-grid { grid-template-columns: 1.1fr .9fr; }
    .page-layout { grid-template-columns: minmax(0, 1fr) 320px; }
    .article-body { padding: 34px; }
    .risk-grid { grid-template-columns: repeat(3, 1fr); }
    .process-steps { grid-template-columns: repeat(3, 1fr); }
    .section { padding: 48px 0; }
}
@media (min-width: 1100px) {
    .main-nav a { padding: 8px 12px; }
    .module-panel { padding: 30px; }
}
