:root {
    --primary: #2980FE;
    --primary-soft: #EAF3FF;
    --primary-pale: #F4F8FF;
    --white: #FFFFFF;
    --text: #1F2937;
    --muted: #667085;
    --soft: #F5F7FA;
    --line: #E5EAF2;
    --deep: #172033;
    --shadow: 0 18px 50px rgba(41, 128, 254, .11);
    --radius: 24px;
    --radius-lg: 32px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #F8FBFF 0%, #FFFFFF 24%, #F7FAFF 100%);
    line-height: 1.7;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.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 { min-height: 70px; 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); }
.logo, .footer-brand img { width: 36px; height: 36px; object-fit: contain; }
.brand-text { letter-spacing: .02em; }
.menu-toggle {
    width: 44px; height: 44px; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    border: 1px solid var(--line); border-radius: 14px; background: var(--white);
}
.menu-toggle span { width: 18px; height: 2px; background: var(--deep); margin: 0 auto; border-radius: 999px; }
.site-nav {
    position: absolute; top: 70px; left: 16px; right: 16px; display: none; flex-direction: column; gap: 6px; padding: 12px;
    background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
}
.site-nav.open { display: flex; }
.site-nav a { padding: 11px 12px; border-radius: 12px; color: var(--muted); font-size: 15px; font-weight: 700; }
.site-nav a:hover, .site-nav a.active { color: var(--primary); background: var(--primary-soft); }
.section { padding: 64px 0; }
.section-header { max-width: 760px; margin: 0 auto 26px; text-align: center; }
.eyebrow, .category-badge {
    display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 5px 12px; border-radius: 999px;
    background: var(--primary-soft); color: var(--primary); border: 1px solid rgba(41,128,254,.16); font-weight: 800; font-size: 14px;
}
h1, h2, h3 { color: var(--deep); line-height: 1.18; margin: 0 0 14px; }
h1 { font-size: clamp(34px, 9vw, 64px); letter-spacing: -.04em; }
h2 { font-size: clamp(28px, 6vw, 44px); letter-spacing: -.03em; }
h3 { font-size: 21px; }
p { margin: 0 0 16px; color: var(--muted); }
.lead { font-size: clamp(17px, 4vw, 20px); color: #465468; }
.download-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px;
    background: var(--primary); color: var(--white); font-weight: 850; box-shadow: 0 14px 34px rgba(41,128,254,.26);
    transition: transform .2s ease, box-shadow .2s ease; border: 0; white-space: nowrap;
}
.download-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(41,128,254,.3); }
.link-arrow { color: var(--primary); font-weight: 850; }
.web3-hero { position: relative; padding: 54px 0 34px; overflow: hidden; }
.web3-hero::before {
    content: ""; position: absolute; width: 540px; height: 540px; border-radius: 50%;
    background: radial-gradient(circle, rgba(41,128,254,.22), rgba(41,128,254,0) 70%); top: -180px; right: -160px; pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 34px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero-copy .download-btn { margin-top: 8px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.tag {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line);
    background: rgba(255,255,255,.8); color: #344054; font-size: 14px; font-weight: 750;
}
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.hero-visual { position: relative; min-height: 360px; display: grid; place-items: center; }
.product-frame {
    position: relative; width: min(410px, 94%); padding: 22px; border-radius: 34px; background: linear-gradient(145deg, #FFFFFF, #ECF5FF);
    border: 1px solid rgba(41,128,254,.16); box-shadow: var(--shadow);
}
.product-frame img { margin: 0 auto; max-height: 430px; object-fit: contain; }
.floating-label {
    position: absolute; padding: 9px 13px; border-radius: 16px; background: rgba(255,255,255,.94); border: 1px solid var(--line);
    color: var(--deep); font-weight: 850; box-shadow: 0 10px 30px rgba(16,24,40,.08); font-size: 14px;
}
.floating-label.one { left: 0; top: 22px; }
.floating-label.two { right: 0; top: 86px; }
.floating-label.three { left: 8px; bottom: 68px; }
.floating-label.four { right: 18px; bottom: 18px; }
.ecosystem-nav { padding-top: 32px; }
.ecosystem-grid, .category-grid { display: grid; gap: 16px; }
.ecosystem-card, .card, .faq-item, .risk-card, .step-card, .info-box {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 34px rgba(16,24,40,.05);
}
.ecosystem-card { padding: 20px; min-height: 190px; }
.ecosystem-card span { color: var(--primary); font-weight: 900; font-size: 13px; }
.ecosystem-card p { font-size: 15px; }
.feature-split {
    display: grid; gap: 24px; align-items: center; padding: 24px; border-radius: var(--radius-lg);
    background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.feature-split.reverse { background: linear-gradient(135deg, #F4F8FF, #FFFFFF); }
.feature-media {
    border-radius: 28px; min-height: 270px; display: grid; place-items: center; background: linear-gradient(135deg, #F4F8FF, #FFFFFF);
    border: 1px solid rgba(41,128,254,.12); padding: 20px; overflow: hidden;
}
.feature-media img { max-height: 330px; object-fit: contain; }
.feature-list, .check-list { display: grid; gap: 10px; margin: 18px 0; padding: 0; list-style: none; }
.feature-list li, .check-list li { position: relative; padding-left: 26px; color: #3C495A; }
.feature-list li::before, .check-list li::before {
    content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 10px; border-radius: 50%;
    background: var(--primary); box-shadow: 0 0 0 5px var(--primary-soft);
}
.privacy-section .privacy-panel, .submit-chain-section .submit-panel, .developer-center-section .developer-panel, .safety-panel {
    padding: 26px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #FFFFFF, #F3F8FF);
    border: 1px solid rgba(41,128,254,.16); box-shadow: var(--shadow);
}
.panel-grid { display: grid; gap: 16px; margin-top: 20px; }
.panel-item { padding: 18px; border-radius: 20px; background: rgba(255,255,255,.75); border: 1px solid var(--line); }
.code-panel { padding: 22px; border-radius: 24px; background: #172033; color: #EAF3FF; overflow: hidden; }
.code-panel pre { margin: 0; white-space: pre-wrap; font-size: 14px; line-height: 1.8; color: #D8E8FF; }
.code-panel strong { color: #FFFFFF; }
.process-steps { display: grid; gap: 16px; }
.step-card { padding: 20px; position: relative; }
.step-number { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--primary); color: var(--white); font-weight: 900; margin-bottom: 16px; }
.risk-grid { display: grid; gap: 16px; }
.risk-card { padding: 20px; border-left: 4px solid var(--primary); }
.risk-card b { color: var(--deep); display: block; margin-bottom: 8px; }
.faq-list { display: grid; gap: 14px; }
.faq-item { padding: 20px; }
.faq-item h3 { font-size: 18px; }
.cta-section { padding: 70px 0; }
.cta-card {
    text-align: center; padding: 34px 22px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #EEF6FF, #FFFFFF 58%, #F7FAFF);
    border: 1px solid rgba(41,128,254,.14); box-shadow: var(--shadow);
}
.page-hero { padding: 56px 0 30px; }
.page-hero-card {
    padding: 28px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #FFFFFF, #F1F7FF);
    border: 1px solid rgba(41,128,254,.15); box-shadow: var(--shadow);
}
.page-layout { display: grid; gap: 22px; align-items: start; }
.content-card {
    padding: 24px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: 0 12px 34px rgba(16,24,40,.05);
}
.article-section { padding: 46px 0 68px; }
.article-body h2 { font-size: 28px; margin-top: 28px; }
.side-panel { display: grid; gap: 14px; }
.side-panel .info-box { padding: 20px; }
.kv-grid { display: grid; gap: 14px; margin: 20px 0; }
.kv-card { padding: 18px; border-radius: 20px; background: var(--primary-pale); border: 1px solid rgba(41,128,254,.12); }
.table-like { display: grid; gap: 12px; }
.table-row { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.download-strip {
    display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 24px; padding: 20px; border-radius: 22px;
    background: var(--primary-pale); border: 1px solid rgba(41,128,254,.14);
}
.site-footer { background: #F3F6FA; border-top: 1px solid var(--line); padding: 44px 0 22px; }
.footer-grid { display: grid; gap: 24px; }
.footer-grid h3 { font-size: 16px; margin-bottom: 12px; }
.footer-grid a:not(.footer-brand) { display: block; color: var(--muted); margin: 7px 0; font-size: 15px; }
.footer-grid a:hover { color: var(--primary); }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-bottom p { font-size: 14px; }
@media (min-width: 640px) {
    .ecosystem-grid, .category-grid, .panel-grid, .risk-grid, .kv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
    .menu-toggle { display: none; }
    .site-nav { position: static; display: flex !important; flex-direction: row; align-items: center; gap: 2px; padding: 0; border: 0; box-shadow: none; background: transparent; }
    .site-nav a { font-size: 14px; padding: 9px 10px; }
    .hero-grid { grid-template-columns: 1.04fr .96fr; gap: 44px; }
    .web3-hero { padding: 88px 0 46px; }
    .feature-split { grid-template-columns: 1fr 1fr; padding: 34px; }
    .feature-split.reverse .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; }
    .risk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .panel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .process-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .page-layout { grid-template-columns: minmax(0, 1fr) 320px; }
    .footer-grid { grid-template-columns: 1.3fr repeat(3, 1fr); }
    .download-strip { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 1120px) { .site-nav a { padding: 9px 12px; } }
