:root {
  --primary: #2980FE;
  --primary-dark: #1264d8;
  --text: #263342;
  --muted: #667385;
  --soft: #f4f7fb;
  --soft-blue: #eef6ff;
  --line: #e3eaf3;
  --white: #ffffff;
  --deep: #1b2430;
  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow: 0 18px 50px rgba(41, 128, 254, 0.10);
}
* { 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%, #f7fbff 42%, #ffffff 100%);
  line-height: 1.72;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(100% - 32px, 1180px); margin: 0 auto; }
.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(227,234,243,0.9);
}
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--deep); letter-spacing: .02em; }
.logo img { width: 36px; height: 36px; border-radius: 12px; object-fit: contain; }
.site-nav { display: none; position: absolute; left: 16px; right: 16px; top: 70px; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.site-nav.is-open { display: grid; gap: 4px; }
.site-nav a { padding: 11px 12px; color: var(--muted); font-size: 15px; border-radius: 14px; }
.site-nav a.active, .site-nav a:hover { color: var(--primary); background: var(--soft-blue); }
.nav-toggle { width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white); border-radius: 14px; display: grid; place-items: center; gap: 0; padding: 10px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--deep); display: block; margin: 2px 0; border-radius: 99px; }
.page-section { padding: 48px 0; }
.section-title { max-width: 780px; margin-bottom: 24px; }
.section-title .eyebrow, .eyebrow, .category-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); background: var(--soft-blue); border: 1px solid rgba(41,128,254,.14); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px; }
h1, h2, h3 { color: var(--deep); line-height: 1.18; margin: 0 0 14px; }
h1 { font-size: clamp(34px, 8vw, 64px); letter-spacing: -0.04em; }
h2 { font-size: clamp(26px, 5vw, 42px); letter-spacing: -0.03em; }
h3 { font-size: 20px; }
p { margin: 0 0 14px; color: var(--muted); }
.lead { font-size: 18px; color: #526073; max-width: 720px; }
.download-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; background: var(--primary); color: var(--white);
  font-weight: 800; box-shadow: 0 14px 32px rgba(41,128,254,.24);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  border: 0; cursor: pointer;
}
.download-btn:hover { transform: translateY(-2px); background: var(--primary-dark); box-shadow: 0 18px 38px rgba(41,128,254,.30); }
.text-link { color: var(--primary); font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.text-link::after { content: "→"; }
.web3-dashboard-hero {
  padding: 44px 0 32px;
  background:
    radial-gradient(circle at 80% 10%, rgba(41,128,254,.16), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-copy { background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.hero-actions { margin: 22px 0 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.security-tags, .tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.security-tags span, .tag-row span { display: inline-flex; padding: 8px 12px; border-radius: 999px; background: var(--soft); color: #526073; font-weight: 700; font-size: 13px; border: 1px solid var(--line); }
.hero-console { position: relative; border-radius: 32px; padding: 18px; background: linear-gradient(145deg, #ffffff, #edf6ff); border: 1px solid var(--line); box-shadow: var(--shadow); }
.product-frame { display: grid; place-items: center; background: #ffffff; border: 1px solid var(--line); border-radius: 28px; min-height: 300px; overflow: hidden; }
.product-frame img { max-height: 430px; object-fit: contain; }
.status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.status-card { background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 18px; padding: 12px; }
.status-card b { display: block; color: var(--deep); font-size: 14px; }
.status-card span { color: var(--muted); font-size: 12px; }
.service-index { padding: 38px 0; }
.service-grid, .category-grid { display: grid; gap: 14px; }
.service-card, .content-card, .faq-item, .risk-card, .step-card, .panel-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; box-shadow: 0 10px 34px rgba(22,42,70,.05);
}
.service-card { min-height: 176px; display: flex; flex-direction: column; justify-content: space-between; }
.service-card .num { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--soft-blue); color: var(--primary); font-weight: 900; margin-bottom: 14px; }
.feature-section { padding: 46px 0; }
.feature-panel { display: grid; gap: 24px; align-items: center; border: 1px solid var(--line); border-radius: 32px; padding: 24px; background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.digital-assets-hub .feature-panel { background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%); }
.web3-ecosystem-section .feature-panel { background: #ffffff; }
.hardware-wallet-section { background: linear-gradient(180deg, var(--soft-blue), #ffffff); }
.hardware-wallet-section .feature-panel { background: linear-gradient(135deg, #f8fbff 0%, #ffffff 60%); }
.swap-service-section .feature-panel { background: linear-gradient(135deg, #ffffff 0%, #f4f7fb 100%); }
.feature-image { border-radius: 28px; background: var(--soft-blue); border: 1px solid var(--line); min-height: 260px; display: grid; place-items: center; overflow: hidden; }
.feature-image img { max-height: 420px; object-fit: contain; }
.check-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; color: #526073; }
.check-list li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); position: absolute; left: 2px; top: .7em; box-shadow: 0 0 0 5px rgba(41,128,254,.10); }
.privacy-boundary-section, .developer-center-section { padding: 48px 0; }
.boundary-panel { display: grid; gap: 16px; padding: 24px; border-radius: 30px; background: linear-gradient(135deg, #f7fbff, #ffffff); border: 1px solid var(--line); }
.boundary-items { display: grid; gap: 12px; }
.boundary-item { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.submit-chain-section { padding: 48px 0; }
.submit-panel { display: grid; gap: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 30px; padding: 24px; box-shadow: var(--shadow); }
.doc-panel { background: #172132; color: #dbe8ff; border-radius: 26px; padding: 22px; overflow: hidden; }
.doc-panel code, .code-line { display: block; color: #dbe8ff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.doc-panel .code-key { color: #8ec1ff; }
.process-steps { display: grid; gap: 14px; counter-reset: step; }
.step-card { position: relative; padding-left: 62px; }
.step-card::before { counter-increment: step; content: counter(step); position: absolute; left: 18px; top: 20px; width: 30px; height: 30px; border-radius: 12px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 900; }
.risk-grid { display: grid; gap: 14px; }
.risk-card { border-left: 4px solid var(--primary); }
.risk-card small { display: block; color: var(--primary); font-weight: 800; margin-top: 10px; }
.faq-list { display: grid; gap: 12px; }
.faq-item h3 { margin-bottom: 6px; }
.cta-section { padding: 54px 0; }
.cta-box { text-align: center; border-radius: 34px; padding: 32px 20px; background: radial-gradient(circle at top right, rgba(41,128,254,.18), transparent 36%), linear-gradient(135deg, #f4f9ff, #ffffff); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cta-box p { max-width: 680px; margin-left: auto; margin-right: auto; }
.page-hero { padding: 48px 0 28px; }
.page-hero-card { border-radius: 32px; background: linear-gradient(135deg, #ffffff, #eef6ff); border: 1px solid var(--line); padding: 26px; box-shadow: var(--shadow); }
.content-layout { display: grid; gap: 22px; align-items: start; padding: 22px 0 54px; }
.article-body { display: grid; gap: 16px; }
.article-body p { font-size: 16px; }
.aside-panel { display: grid; gap: 14px; }
.note-box, .safe-box { border-radius: 22px; padding: 18px; background: var(--soft-blue); border: 1px solid rgba(41,128,254,.16); }
.info-grid { display: grid; gap: 14px; }
.table-like { display: grid; gap: 10px; }
.table-like div { display: grid; gap: 6px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.install-steps { display: grid; gap: 14px; }
.site-footer { background: #f6f8fb; border-top: 1px solid var(--line); padding-top: 36px; }
.footer-grid { display: grid; gap: 22px; }
.footer-brand { font-weight: 900; font-size: 20px; margin-bottom: 10px; color: var(--deep); }
.site-footer h3 { font-size: 16px; margin-bottom: 10px; }
.site-footer a { display: block; color: var(--muted); padding: 3px 0; }
.site-footer a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 28px; padding: 18px 0; color: var(--muted); font-size: 14px; }
@media (min-width: 700px) {
  .container { width: min(100% - 48px, 1180px); }
  .service-grid, .category-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)); }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
@media (min-width: 980px) {
  .header-inner { min-height: 76px; }
  .nav-toggle { display: none; }
  .site-nav { position: static; display: flex; align-items: center; gap: 4px; padding: 0; background: transparent; border: 0; box-shadow: none; border-radius: 0; }
  .site-nav a { font-size: 14px; }
  .web3-dashboard-hero { padding: 72px 0 46px; }
  .hero-grid { grid-template-columns: 1.02fr .98fr; gap: 34px; }
  .hero-copy { padding: 36px; }
  .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .service-card:nth-child(1), .service-card:nth-child(7) { grid-column: span 2; }
  .feature-panel { grid-template-columns: 1fr .92fr; padding: 34px; }
  .web3-ecosystem-section .feature-panel, .swap-service-section .feature-panel { grid-template-columns: .92fr 1fr; }
  .web3-ecosystem-section .feature-image, .swap-service-section .feature-image { order: -1; }
  .boundary-panel { grid-template-columns: .95fr 1.05fr; padding: 34px; }
  .submit-panel { grid-template-columns: 1fr 1fr; padding: 34px; }
  .developer-center-section .feature-panel { grid-template-columns: 1.05fr .95fr; }
  .process-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .risk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .content-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
  .page-hero-card { padding: 38px; }
}
@media (max-width: 420px) {
  .container { width: min(100% - 24px, 1180px); }
  .hero-copy, .feature-panel, .page-hero-card { padding: 20px; border-radius: 24px; }
  .status-grid { grid-template-columns: 1fr; }
  .download-btn { width: 100%; }
  .product-frame, .feature-image { min-height: 220px; }
}
