/* Mobile-first responsive Web3 platform style */
:root {
  --primary: #2980FE;
  --primary-dark: #1465d7;
  --primary-soft: #eef6ff;
  --bg: #ffffff;
  --bg-soft: #f6f9fd;
  --bg-blue: #f2f7ff;
  --text: #1f2937;
  --muted: #607086;
  --line: #e5edf7;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(31, 64, 112, 0.08);
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 16px;
  --container: 1180px;
}
* { 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 46%, #ffffff 100%);
  line-height: 1.75;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(100% - 32px, var(--container)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); border-bottom: 1px solid rgba(229, 237, 247, 0.9); backdrop-filter: blur(14px); }
.header-inner { 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: #172033; letter-spacing: 0.02em; }
.logo, .footer-brand img { width: 38px; height: 38px; object-fit: contain; }
.nav-toggle { width: 44px; height: 44px; border: 1px solid var(--line); background: var(--card); border-radius: 14px; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; padding: 0 11px; cursor: pointer; }
.nav-toggle span { height: 2px; background: var(--text); border-radius: 99px; }
.site-nav { position: absolute; left: 16px; right: 16px; top: 76px; display: none; flex-direction: column; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.site-nav.is-open { display: flex; }
.site-nav a { padding: 11px 12px; border-radius: 12px; color: #344054; font-size: 15px; }
.site-nav a:hover { background: var(--primary-soft); color: var(--primary); }
main { min-height: 70vh; }
.section { padding: 64px 0; }
.section-soft { background: linear-gradient(180deg, var(--bg-soft), #ffffff); }
.kicker, .category-badge { display: inline-flex; align-items: center; gap: 8px; width: fit-content; color: var(--primary); background: var(--primary-soft); border: 1px solid rgba(41, 128, 254, 0.16); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px; letter-spacing: 0.02em; }
.section-title { margin: 12px 0 14px; font-size: clamp(28px, 5vw, 44px); line-height: 1.18; letter-spacing: -0.03em; }
.section-lead, .page-summary, .hero-copy p { color: var(--muted); font-size: 17px; }
.download-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 800; box-shadow: 0 12px 28px rgba(41, 128, 254, 0.28); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.download-btn:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(41, 128, 254, 0.32); }
.web3-hero { position: relative; padding: 54px 0 36px; overflow: hidden; }
.web3-hero:before { content: ""; position: absolute; inset: -160px -120px auto auto; width: 420px; height: 420px; border-radius: 999px; background: radial-gradient(circle, rgba(41, 128, 254, 0.18), rgba(41, 128, 254, 0)); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: center; }
.hero-copy h1 { font-size: clamp(38px, 11vw, 72px); line-height: 1.05; letter-spacing: -0.06em; margin: 14px 0 18px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 28px 0 24px; }
.trust-tags, .float-tags, .tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-tags span, .float-tags span, .tag-list span { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.82); color: #344054; padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.hero-visual { position: relative; min-height: 360px; display: grid; place-items: center; padding: 20px; border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(41, 128, 254, 0.10), rgba(255,255,255,0.65)), radial-gradient(circle at 30% 20%, rgba(41,128,254,0.18), transparent 34%), #f8fbff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.product-frame { width: min(330px, 82vw); padding: 18px; background: rgba(255, 255, 255, 0.74); border: 1px solid rgba(255,255,255,0.9); border-radius: 34px; box-shadow: 0 20px 60px rgba(37, 82, 143, 0.12); }
.float-tags span { position: static; background: #fff; border-color: rgba(41, 128, 254, 0.18); }
.float-tags { margin-top: 16px; justify-content: center; }
.ecosystem-nav { padding: 36px 0 64px; }
.ecosystem-grid, .category-grid, .risk-grid, .faq-grid, .info-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.ecosystem-card, .info-card, .risk-card, .faq-item, .step-card, .feature-card, .note-card, .side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; box-shadow: 0 12px 28px rgba(31, 64, 112, 0.05); }
.ecosystem-card { min-height: 180px; display: flex; flex-direction: column; gap: 12px; }
.ecosystem-card .pill { width: fit-content; color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 800; }
.ecosystem-card h3, .info-card h3, .risk-card h3, .step-card h3, .feature-card h3 { margin: 0; line-height: 1.35; }
.ecosystem-card p, .info-card p, .risk-card p, .step-card p, .feature-card p, .note-card p, .side-card p { margin: 0; color: var(--muted); }
.text-link { margin-top: auto; color: var(--primary); font-weight: 800; }
.split-section { padding: 72px 0; }
.split-card { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.split-card.reverse .media-box { order: -1; }
.web3-section .split-card { background: linear-gradient(135deg, #ffffff, #f7fbff 72%), #fff; }
.hardware-wallet-section { background: linear-gradient(180deg, #f7fbff, #ffffff); }
.digital-assets-section .split-card { background: linear-gradient(135deg, #ffffff, #f4f8ff); }
.swap-section { background: linear-gradient(180deg, #ffffff, #f6f9fd); }
.media-box { border-radius: 28px; background: var(--bg-blue); border: 1px solid var(--line); padding: 18px; overflow: hidden; }
.media-box img { margin: 0 auto; border-radius: 22px; }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; color: #3a4656; }
.check-list li:before { content: ""; position: absolute; left: 0; top: 0.6em; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 5px rgba(41, 128, 254, 0.12); }
.privacy-section, .submit-chain-section, .developer-center-section, .process-section, .risk-section, .faq-section, .cta-section { padding: 72px 0; }
.privacy-panel, .submit-panel, .developer-panel, .cta-panel { border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(135deg, #ffffff, #f4f8ff); padding: 28px; box-shadow: var(--shadow); }
.privacy-layout, .submit-layout, .developer-layout { display: grid; grid-template-columns: 1fr; gap: 22px; }
.safety-panel { display: grid; gap: 14px; }
.safety-panel .note-card { border-left: 4px solid var(--primary); }
.code-panel { background: #172033; color: #dbeafe; border-radius: 24px; padding: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,0.10); }
.code-line { font-family: "SFMono-Regular", Consolas, Menlo, monospace; font-size: 13px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.code-line:last-child { border-bottom: none; }
.code-line span { color: #8ec2ff; }
.process-steps { counter-reset: step; display: grid; grid-template-columns: 1fr; gap: 16px; }
.step-card { position: relative; padding-top: 58px; }
.step-card:before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 20px; left: 22px; color: var(--primary); font-weight: 900; font-size: 22px; }
.risk-card { border-top: 4px solid var(--primary); }
.risk-card strong { display: block; color: #172033; margin-top: 12px; }
.faq-item h3 { margin: 0 0 8px; font-size: 18px; }
.faq-item p { margin: 0; color: var(--muted); }
.cta-panel { text-align: center; background: radial-gradient(circle at 30% 10%, rgba(41,128,254,.15), transparent 32%), linear-gradient(135deg, #ffffff, #f2f7ff); }
.cta-panel p { color: var(--muted); max-width: 720px; margin: 0 auto 24px; }
.page-main { padding-bottom: 56px; }
.page-hero { padding: 56px 0 34px; background: radial-gradient(circle at 80% -10%, rgba(41,128,254,0.15), transparent 32%), linear-gradient(180deg, #ffffff, #f7fbff); }
.compact-hero .container { max-width: 960px; }
.page-hero h1 { margin: 14px 0 14px; font-size: clamp(34px, 8vw, 58px); line-height: 1.12; letter-spacing: -0.05em; }
.article-layout { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start; padding-top: 36px; }
.article-content { display: grid; gap: 20px; }
.article-block { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 12px 28px rgba(31, 64, 112, 0.05); }
.article-block h2 { margin-top: 0; font-size: 24px; }
.article-block p { color: var(--muted); margin: 0 0 14px; }
.article-block p:last-child { margin-bottom: 0; }
.sidebar { display: grid; gap: 16px; }
.side-card h3, .note-card h3 { margin: 0 0 10px; }
.table-list { display: grid; gap: 12px; }
.table-row { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-soft); }
.table-row span { color: var(--muted); }
.download-page .download-steps { counter-reset: downloadStep; display: grid; gap: 14px; margin-top: 20px; }
.download-page .download-steps li { list-style: none; counter-increment: downloadStep; padding: 18px 18px 18px 58px; border: 1px solid var(--line); border-radius: 18px; background: #fff; position: relative; }
.download-page .download-steps li:before { content: counter(downloadStep); position: absolute; left: 18px; top: 18px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--primary); font-weight: 800; }
.faq-list { display: grid; gap: 14px; }
.full-width-note { border-radius: var(--radius-lg); background: linear-gradient(135deg, #f2f7ff, #ffffff); border: 1px solid var(--line); padding: 26px; }
@media (min-width: 680px) { .ecosystem-grid, .category-grid, .risk-grid, .faq-grid, .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .table-row { grid-template-columns: 180px 1fr; } }
@media (min-width: 960px) { .nav-toggle { display: none; } .site-nav { position: static; display: flex !important; flex-direction: row; align-items: center; gap: 4px; padding: 0; border: 0; box-shadow: none; background: transparent; } .site-nav a { font-size: 14px; padding: 8px 10px; } .web3-hero { padding: 82px 0 52px; } .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(380px, .98fr); gap: 54px; } .hero-visual { min-height: 520px; } .float-tags span { position: absolute; } .float-tags span:nth-child(1) { left: 20px; top: 58px; } .float-tags span:nth-child(2) { right: 24px; top: 98px; } .float-tags span:nth-child(3) { left: 32px; bottom: 98px; } .float-tags span:nth-child(4) { right: 36px; bottom: 58px; } .ecosystem-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ecosystem-grid .wide { grid-column: span 2; } .split-card, .privacy-layout, .submit-layout, .developer-layout, .article-layout { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr); } .split-card.reverse .media-box { order: 0; } .split-card.reverse { grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1fr); } .process-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } .risk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.site-footer { padding: 54px 0 28px; background: #f6f9fd; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 22px; }
.site-footer p, .site-footer a, .footer-bottom { color: var(--muted); }
.site-footer h3 { margin: 0 0 10px; font-size: 16px; }
.site-footer a { display: block; margin: 7px 0; }
.site-footer a:hover { color: var(--primary); }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
@media (max-width: 360px) { .container { width: min(100% - 24px, var(--container)); } .download-btn { width: 100%; } .hero-actions { align-items: stretch; } }
