:root {
    --primary: #2980FE;
    --primary-dark: #1767d8;
    --text: #1f2937;
    --muted: #667085;
    --line: #e5eaf2;
    --soft: #f6f9fd;
    --soft-blue: #eef6ff;
    --white: #ffffff;
    --shadow: 0 20px 60px rgba(41, 128, 254, 0.10);
    --radius: 24px;
}

* { 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, #ffffff 0%, #f8fbff 42%, #ffffff 100%);
    line-height: 1.72;
    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; }
.section { padding: 72px 0; }
.section.tight { padding: 42px 0; }
.eyebrow, .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--soft-blue);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.88rem;
    border: 1px solid rgba(41, 128, 254, 0.16);
}
.lead { color: var(--muted); font-size: 1.06rem; max-width: 760px; }
.muted { color: var(--muted); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229,234,242,0.88);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.logo, .footer-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.02em; }
.logo img, .footer-logo img { width: 36px; height: 36px; object-fit: contain; }
.site-nav { display: none; width: 100%; padding: 10px 0 18px; }
.site-nav a { display: block; padding: 10px 0; color: #3d4656; font-weight: 650; border-bottom: 1px solid var(--line); }
.site-nav a.active, .site-nav a:hover { color: var(--primary); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label { width: 42px; height: 42px; display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; cursor: pointer; }
.nav-toggle-label span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; display: block; }
.nav-toggle:checked ~ .site-nav { display: block; position: absolute; left: 0; top: 72px; background: #fff; padding-left: 16px; padding-right: 16px; box-shadow: 0 18px 34px rgba(15,23,42,.08); }

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 22px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    letter-spacing: .02em;
    box-shadow: 0 16px 30px rgba(41,128,254,.22);
    border: 1px solid rgba(255,255,255,.24);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.download-btn:hover { transform: translateY(-2px); background: var(--primary-dark); box-shadow: 0 20px 38px rgba(41,128,254,.26); }
.text-link { color: var(--primary); font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }
.text-link::after { content: "→"; }

.web3-hero {
    position: relative;
    overflow: hidden;
    padding: 58px 0 48px;
    background: radial-gradient(circle at 84% 18%, rgba(41,128,254,.18), transparent 32%), linear-gradient(135deg, #ffffff 0%, #f3f8ff 100%);
}
.web3-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(41,128,254,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(41,128,254,.08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.35), transparent 72%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 38px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.35rem, 8vw, 4.65rem); line-height: 1.08; margin: 18px 0; letter-spacing: -0.055em; }
.hero-copy p { font-size: 1.08rem; color: #4b5565; margin: 0 0 24px; max-width: 650px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.security-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.security-tags span { padding: 8px 12px; border: 1px solid rgba(41,128,254,.18); background: rgba(255,255,255,.75); border-radius: 999px; color: #334155; font-weight: 650; }
.hero-visual { position: relative; min-height: 360px; display: grid; place-items: center; }
.product-shell { position: relative; width: min(420px, 88vw); padding: 24px; border-radius: 32px; background: rgba(255,255,255,.78); box-shadow: var(--shadow); border: 1px solid rgba(41,128,254,.12); }
.product-shell img { margin: auto; max-height: 480px; object-fit: contain; }
.float-tag { position: absolute; z-index: 2; padding: 9px 13px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 12px 24px rgba(15,23,42,.08); color: #2b3545; font-weight: 800; font-size: .9rem; }
.float-tag:nth-child(2) { top: 14px; left: 0; }
.float-tag:nth-child(3) { top: 86px; right: 0; }
.float-tag:nth-child(4) { bottom: 84px; left: 0; }
.float-tag:nth-child(5) { bottom: 22px; right: 10px; }

.ecosystem-nav { padding: 32px 0 70px; background: #fff; }
.section-heading { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.16; letter-spacing: -0.035em; }
.ecosystem-grid, .category-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.ecosystem-card, .info-card, .risk-card, .faq-item, .step-card, .feature-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}
.ecosystem-card { position: relative; overflow: hidden; min-height: 182px; }
.ecosystem-card::before { content: ""; width: 42px; height: 3px; background: var(--primary); position: absolute; left: 22px; top: 0; border-radius: 0 0 6px 6px; }
.ecosystem-card .tag { color: var(--primary); font-weight: 800; font-size: .86rem; }
.ecosystem-card h3, .info-card h3, .feature-card h3 { margin: 12px 0 8px; font-size: 1.22rem; }
.ecosystem-card p, .info-card p, .feature-card p, .risk-card p, .step-card p { color: var(--muted); margin: 0 0 14px; }

.split-section { padding: 70px 0; }
.split-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
    border-radius: 32px;
    padding: 28px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
}
.split-card.alt { background: linear-gradient(135deg, #f6f9fd 0%, #eef6ff 100%); }
.split-card h2 { font-size: clamp(1.78rem, 5vw, 3rem); line-height: 1.16; margin: 14px 0; letter-spacing: -0.035em; }
.split-card p { color: var(--muted); margin: 0 0 16px; }
.visual-card { background: linear-gradient(145deg, #ffffff, #edf6ff); border: 1px solid rgba(41,128,254,.12); border-radius: 30px; padding: 22px; min-height: 300px; display: grid; place-items: center; }
.visual-card img { max-height: 380px; object-fit: contain; }
.check-list { display: grid; gap: 10px; margin: 18px 0; padding: 0; list-style: none; }
.check-list li { padding-left: 28px; position: relative; color: #3f4a5a; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .65em; width: 10px; height: 10px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 0 5px rgba(41,128,254,.11); }

.privacy-section, .submit-chain-section, .developer-center-section { padding: 70px 0; }
.panel-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.safety-panel { border-radius: 32px; background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%); border: 1px solid var(--line); padding: 28px; box-shadow: var(--shadow); }
.safety-panel h2 { margin: 12px 0; font-size: clamp(1.7rem, 4vw, 2.7rem); letter-spacing: -0.03em; line-height: 1.16; }
.safety-panel p { color: var(--muted); }
.micro-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.micro-card { padding: 16px; border-radius: 18px; border: 1px solid rgba(41,128,254,.14); background: #fff; }
.micro-card strong { color: var(--primary); display: block; margin-bottom: 5px; }
.tech-panel {
    border-radius: 28px;
    padding: 24px;
    background: #1f2937;
    color: #f8fafc;
    box-shadow: 0 20px 50px rgba(15,23,42,.18);
}
.tech-panel code { display: block; white-space: pre-wrap; color: #dbeafe; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; line-height: 1.75; }

.process-steps { padding: 70px 0; background: var(--soft); }
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 16px; counter-reset: step; }
.step-card { position: relative; padding-top: 58px; }
.step-number { position: absolute; top: 18px; left: 22px; width: 32px; height: 32px; border-radius: 12px; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 900; }
.risk-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.risk-card { border-left: 4px solid var(--primary); }
.risk-card h3 { margin: 0 0 8px; }
.risk-card .advice { font-weight: 800; color: #344054; }

.faq-list { display: grid; gap: 14px; }
.faq-item h3 { margin: 0 0 8px; font-size: 1.08rem; }
.faq-item p { margin: 0; color: var(--muted); }
.cta-section { padding: 72px 0; }
.cta-box { text-align: center; border-radius: 34px; padding: 42px 22px; background: linear-gradient(135deg, #eef6ff 0%, #ffffff 100%); border: 1px solid rgba(41,128,254,.14); box-shadow: var(--shadow); }
.cta-box h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 5vw, 3.1rem); letter-spacing: -0.04em; }
.cta-box p { color: var(--muted); max-width: 660px; margin: 0 auto 22px; }

.page-hero { padding: 56px 0 34px; background: radial-gradient(circle at 80% 0%, rgba(41,128,254,.16), transparent 34%), linear-gradient(180deg, #fff 0%, #f4f8ff 100%); }
.page-hero h1 { margin: 18px 0 14px; font-size: clamp(2rem, 7vw, 4rem); line-height: 1.12; letter-spacing: -0.045em; }
.page-hero p { color: var(--muted); font-size: 1.08rem; max-width: 780px; }
.content-layout { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 44px 0 72px; }
.article-card { background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 24px; box-shadow: 0 12px 28px rgba(15,23,42,.04); }
.article-card h2 { margin-top: 0; font-size: 1.55rem; }
.article-card p { color: var(--muted); }
.side-panel { display: grid; gap: 16px; align-content: start; }
.notice-box { padding: 20px; border-radius: 22px; border: 1px solid rgba(41,128,254,.16); background: var(--soft-blue); }
.notice-box h3 { margin: 0 0 8px; color: var(--primary); }
.notice-box p, .notice-box li { color: #526071; }
.notice-box ul, .article-card ul, .article-card ol { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.download-row { margin-top: 22px; }

.download-steps { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 22px; }
.download-step { padding: 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.download-step span { display: inline-grid; place-items: center; width: 30px; height: 30px; background: var(--primary); color: #fff; border-radius: 10px; font-weight: 900; margin-bottom: 10px; }

.site-footer { background: #f2f6fb; border-top: 1px solid var(--line); padding: 42px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.footer-grid p { color: var(--muted); margin: 12px 0 0; }
.footer-grid h3 { margin: 0 0 10px; font-size: 1rem; }
.footer-grid a:not(.footer-logo) { display: block; color: #536071; padding: 4px 0; }
.footer-grid a:hover { color: var(--primary); }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); display: flex; flex-direction: column; gap: 8px; }

@media (min-width: 720px) {
    .container { width: min(1120px, calc(100% - 48px)); }
    .ecosystem-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid, .micro-grid, .risk-grid, .steps-grid, .download-steps { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}
@media (min-width: 980px) {
    .header-inner { min-height: 78px; }
    .nav-toggle-label { display: none; }
    .site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 6px; width: auto; padding: 0; }
    .site-nav a { border-bottom: 0; padding: 9px 10px; border-radius: 999px; font-size: .94rem; }
    .site-nav a.active, .site-nav a:hover { background: var(--soft-blue); }
    .hero-grid { grid-template-columns: 1.05fr .95fr; }
    .web3-hero { padding: 92px 0 74px; }
    .hero-copy p { font-size: 1.16rem; }
    .ecosystem-grid { grid-template-columns: repeat(4, 1fr); }
    .ecosystem-card:first-child, .ecosystem-card:nth-child(7) { grid-column: span 2; }
    .split-card { grid-template-columns: 1.05fr .95fr; padding: 44px; }
    .split-card.reverse .visual-card { order: -1; }
    .panel-grid { grid-template-columns: 1.1fr .9fr; align-items: stretch; }
    .steps-grid { grid-template-columns: repeat(3, 1fr); }
    .risk-grid { grid-template-columns: repeat(4, 1fr); }
    .content-layout { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; }
    .article-card { padding: 34px; }
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}
@media (max-width: 420px) {
    .container { width: min(100% - 24px, 1120px); }
    .section, .split-section, .privacy-section, .submit-chain-section, .developer-center-section, .process-steps, .cta-section { padding: 48px 0; }
    .split-card, .safety-panel, .article-card { border-radius: 22px; padding: 20px; }
    .download-btn { width: 100%; }
    .hero-actions { width: 100%; }
    .float-tag { font-size: .78rem; padding: 7px 10px; }
}
