:root {
    --primary: #2980FE;
    --primary-dark: #1667d9;
    --bg: #ffffff;
    --soft: #f5f8fc;
    --soft-blue: #eef6ff;
    --line: #dce5f0;
    --text: #263445;
    --muted: #66758a;
    --deep: #182536;
    --card: #ffffff;
    --shadow: 0 18px 48px rgba(41, 128, 254, 0.10);
    --radius: 24px;
    --radius-lg: 32px;
    --container: 1180px;
}
* { 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%, #f7fbff 38%, #ffffff 100%);
    line-height: 1.72;
    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,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(220,229,240,0.8);
}
.header-shell,
.footer-shell,
.section-shell,
.page-shell {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
}
.header-shell {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--deep); }
.brand img { width: 34px; height: 34px; border-radius: 10px; object-fit: contain; }
.desktop-nav { display: none; align-items: center; gap: 6px; }
.desktop-nav a, .mobile-nav a {
    color: var(--muted);
    font-weight: 650;
    font-size: 14px;
    border-radius: 999px;
    transition: .2s ease;
}
.desktop-nav a { padding: 9px 12px; }
.desktop-nav a:hover, .desktop-nav a.active,
.mobile-nav a:hover, .mobile-nav a.active { color: var(--primary); background: var(--soft-blue); }
.mobile-nav-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    display: inline-grid;
    place-items: center;
    gap: 4px;
    padding: 10px;
}
.mobile-nav-toggle span { width: 20px; height: 2px; background: var(--deep); border-radius: 3px; }
.mobile-nav {
    display: none;
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto 14px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
}
.mobile-nav.open { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.mobile-nav a { padding: 10px 12px; background: var(--soft); }
.web3-hero {
    position: relative;
    padding: 56px 0 34px;
    background:
        radial-gradient(circle at 78% 18%, rgba(41,128,254,0.16), transparent 34%),
        linear-gradient(180deg, #ffffff, #f7fbff);
    overflow: hidden;
}
.web3-hero::before {
    content: "";
    position: absolute;
    inset: 26px 18px auto auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 1px solid rgba(41,128,254,0.18);
    background: linear-gradient(135deg, rgba(41,128,254,0.08), transparent);
}
.hero-grid { display: grid; gap: 30px; align-items: center; position: relative; }
.eyebrow,
.category-badge,
.tiny-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: var(--primary);
    background: var(--soft-blue);
    border: 1px solid rgba(41,128,254,0.18);
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 800;
    font-size: 13px;
}
.hero-copy h1,
.page-hero h1 {
    margin: 16px 0 16px;
    color: var(--deep);
    font-size: clamp(34px, 8vw, 64px);
    line-height: 1.08;
    letter-spacing: -1.5px;
}
.hero-copy p,
.page-hero p { color: var(--muted); font-size: 17px; margin: 0 0 22px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 24px 0; }
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #59a1ff);
    border: 0;
    border-radius: 999px;
    font-weight: 850;
    letter-spacing: .02em;
    box-shadow: 0 14px 28px rgba(41,128,254,0.24);
    transition: transform .2s ease, box-shadow .2s ease;
}
.download-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(41,128,254,0.28); }
.text-link { color: var(--primary); font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.text-link::after { content: "›"; font-size: 18px; }
.security-tags,
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.security-tags span,
.tag-row span {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--deep);
    background: #fff;
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 700;
}
.hero-visual {
    position: relative;
    min-height: 360px;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, #eef6ff, #ffffff 70%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: grid;
    place-items: center;
    padding: 28px;
    overflow: hidden;
}
.hero-visual::after,
.visual-card::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 160px;
    background: repeating-linear-gradient(90deg, rgba(41,128,254,.16) 0 1px, transparent 1px 56px);
    transform: rotate(-22deg);
    opacity: .45;
}
.hero-visual img { max-height: 330px; object-fit: contain; z-index: 2; filter: drop-shadow(0 24px 40px rgba(31,64,111,.16)); }
.float-label {
    position: absolute;
    z-index: 3;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: var(--deep);
    border: 1px solid rgba(220,229,240,.9);
    box-shadow: 0 12px 28px rgba(32,50,78,.09);
    font-weight: 800;
    font-size: 13px;
}
.float-label.one { top: 24px; left: 18px; }
.float-label.two { top: 82px; right: 16px; }
.float-label.three { bottom: 78px; left: 16px; }
.float-label.four { bottom: 22px; right: 22px; }
.section { padding: 54px 0; }
.section-alt { background: var(--soft); }
.section-title { margin-bottom: 24px; }
.section-title h2 { margin: 0 0 10px; color: var(--deep); font-size: clamp(26px, 5vw, 42px); line-height: 1.18; }
.section-title p { margin: 0; color: var(--muted); max-width: 720px; }
.ecosystem-nav,
.category-grid,
.risk-grid,
.faq-grid,
.card-grid { display: grid; gap: 16px; }
.ecosystem-card,
.info-card,
.risk-card,
.faq-item,
.category-card,
.related-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(24,37,54,.04);
}
.ecosystem-card { min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; }
.ecosystem-card h3,
.info-card h3,
.risk-card h3,
.faq-item h3,
.category-card h3 { margin: 10px 0 8px; color: var(--deep); }
.ecosystem-card p,
.info-card p,
.risk-card p,
.faq-item p,
.category-card p { margin: 0 0 14px; color: var(--muted); }
.module-grid,
.split-grid,
.developer-grid,
.submit-grid,
.privacy-grid,
.page-layout { display: grid; gap: 24px; align-items: center; }
.module-card,
.visual-card,
.code-panel,
.safety-panel,
.cta-section,
.page-hero,
.content-panel {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
}
.module-card { padding: 26px; }
.module-card h2 { color: var(--deep); margin: 12px 0; font-size: clamp(26px, 5vw, 40px); line-height: 1.18; }
.module-card p { color: var(--muted); margin: 0 0 16px; }
.bullet-list, .check-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.bullet-list li, .check-list li {
    position: relative;
    padding-left: 28px;
    color: var(--text);
}
.bullet-list li::before, .check-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,.10);
}
.visual-card {
    position: relative;
    min-height: 280px;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow: hidden;
    background: linear-gradient(145deg, #f8fbff, #eef6ff);
}
.visual-card img { max-height: 300px; object-fit: contain; z-index: 1; filter: drop-shadow(0 24px 38px rgba(24,37,54,.14)); }
.hardware-wallet-section { background: linear-gradient(180deg, #f5f8fc, #ffffff); }
.privacy-section .info-card { border-left: 4px solid var(--primary); }
.submit-chain-section .submit-grid,
.developer-center-section .developer-grid { align-items: stretch; }
.code-panel { padding: 22px; background: linear-gradient(145deg, #182536, #24364d); color: #dceaff; overflow: hidden; }
.code-panel pre { margin: 0; white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.7; }
.code-panel .code-key { color: #7db5ff; }
.code-panel .code-val { color: #d9ecff; }
.process-steps { display: grid; gap: 14px; counter-reset: steps; }
.step-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 20px 20px 20px 72px;
}
.step-number {
    position: absolute;
    left: 18px;
    top: 20px;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--primary);
    font-weight: 900;
}
.step-card h3 { margin: 0 0 6px; color: var(--deep); }
.step-card p { margin: 0 0 10px; color: var(--muted); }
.risk-card { border-top: 4px solid var(--primary); }
.risk-card strong { display: block; color: var(--deep); margin-bottom: 6px; }
.faq-item { box-shadow: none; }
.faq-item h2, .faq-item h3 { font-size: 18px; margin: 0 0 8px; color: var(--deep); }
.cta-section { text-align: center; padding: 34px 22px; background: linear-gradient(135deg, #eef6ff, #ffffff); }
.cta-section h2 { margin: 0 0 10px; color: var(--deep); }
.cta-section p { margin: 0 auto 20px; color: var(--muted); max-width: 680px; }
.page-hero { margin: 34px auto 24px; padding: 34px 22px; background: linear-gradient(145deg, #ffffff, #eef6ff); }
.page-content { padding: 18px 0 60px; }
.content-panel { padding: 24px; }
.content-panel h2 { color: var(--deep); margin: 4px 0 12px; }
.content-panel p { color: var(--muted); }
.side-panel { align-self: start; display: grid; gap: 14px; }
.related-card h3 { margin: 0 0 10px; color: var(--deep); }
.related-card a { display: block; padding: 9px 0; color: var(--primary); font-weight: 800; border-top: 1px solid var(--line); }
.related-card a:first-of-type { border-top: 0; }
.notice-box {
    margin: 18px 0;
    padding: 18px;
    border-radius: 20px;
    background: var(--soft-blue);
    border: 1px solid rgba(41,128,254,.2);
    color: var(--deep);
}
.download-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.site-footer { background: #f4f7fb; border-top: 1px solid var(--line); padding: 30px 0 18px; }
.footer-shell { display: grid; gap: 18px; }
.footer-brand { display: flex; align-items: flex-start; gap: 12px; }
.footer-brand img { width: 42px; height: 42px; border-radius: 12px; object-fit: contain; }
.footer-brand p { margin: 4px 0 0; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-links a { color: var(--muted); font-weight: 750; background: #fff; border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px; }
.footer-bottom { width: min(calc(100% - 32px), var(--container)); margin: 16px auto 0; color: var(--muted); font-size: 13px; }
@media (min-width: 700px) {
    .ecosystem-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-grid, .card-grid, .faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .risk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
    .desktop-nav { display: flex; }
    .mobile-nav-toggle, .mobile-nav { display: none !important; }
    .web3-hero { padding: 78px 0 52px; }
    .hero-grid,
    .module-grid,
    .split-grid,
    .developer-grid,
    .submit-grid,
    .privacy-grid,
    .page-layout { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); }
    .ecosystem-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ecosystem-card:nth-child(1), .ecosystem-card:nth-child(7) { grid-column: span 2; }
    .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .risk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .process-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-shell { grid-template-columns: 1fr auto; align-items: center; }
    .section { padding: 74px 0; }
    .module-card { padding: 34px; }
    .page-hero { padding: 48px; }
    .content-panel { padding: 34px; }
}
@media (max-width: 420px) {
    .header-shell, .footer-shell, .section-shell, .page-shell { width: min(calc(100% - 24px), var(--container)); }
    .hero-visual { min-height: 300px; padding: 18px; }
    .float-label { font-size: 12px; padding: 6px 9px; }
    .download-btn { width: 100%; }
    .download-panel { align-items: stretch; }
}
