:root {
  --brand: #2f7de8;
  --brand-soft: #eaf2ff;
  --brand-deep: #1b5fc4;
  --ink: #1c2530;
  --ink-soft: #55637a;
  --ink-faint: #8a97aa;
  --line: #e5eaf2;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 8px 30px rgba(31, 64, 112, 0.07);
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--maxw), calc(100% - 48px)); margin: 0 auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: .5px; }
.brand em { font-style: normal; font-size: 12px; color: var(--ink-faint); letter-spacing: 1.5px; margin-left: 4px; font-weight: 400; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--brand); position: relative; display: inline-block; overflow: hidden; flex: none; }
.brand-mark::after { content: ""; position: absolute; top: -4px; right: 4px; width: 5px; height: 30px; background: #fff; transform: rotate(28deg); opacity: .92; }
.brand-mark.small { width: 16px; height: 16px; border-radius: 4px; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-size: 14px; color: var(--ink-soft); padding: 6px 0; position: relative; }
.main-nav a:hover, .main-nav a.active { color: var(--brand); }
.main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--brand); border-radius: 2px; }
.nav-toggle { display: none; border: none; background: transparent; width: 40px; height: 40px; cursor: pointer; padding: 9px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { padding: 88px 0 92px; background: linear-gradient(180deg, #fbfcff 0%, #ffffff 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 12px; letter-spacing: 2.4px; color: var(--brand); font-weight: 600; margin-bottom: 16px; text-transform: uppercase; }
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.25; letter-spacing: -.5px; font-weight: 700; }
.hero h1 span { color: var(--brand); }
.hero-lead { color: var(--ink-soft); font-size: 16px; margin-top: 22px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 10px; font-size: 14px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-text { color: var(--brand); padding: 9px 10px; font-size: 13px; }
.btn-text:hover { text-decoration: underline; }
.hero-note { margin-top: 26px; font-size: 12px; color: var(--ink-faint); letter-spacing: .3px; }

.hero-art { display: flex; justify-content: center; }
.gap-frame { width: min(380px, 100%); aspect-ratio: 1; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.beam { position: absolute; background: var(--brand-soft); transform: rotate(24deg); }
.b1 { width: 70px; height: 150%; left: 12%; top: -20%; opacity: .55; }
.b2 { width: 34px; height: 150%; left: 34%; top: -20%; background: #d6e6ff; opacity: .8; }
.b3 { width: 12px; height: 150%; left: 52%; top: -20%; background: var(--brand); opacity: .75; }
.gap-line { position: absolute; left: 58%; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, transparent, var(--brand), transparent); opacity: .5; }
.art-label { position: absolute; right: 26px; bottom: 26px; text-align: right; font-size: 22px; letter-spacing: 6px; font-weight: 700; color: var(--ink); }
.art-label small { display: block; font-size: 10px; letter-spacing: 3px; color: var(--ink-faint); font-weight: 400; margin-top: 4px; }

/* Sections */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: 30px; font-weight: 700; letter-spacing: -.3px; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-desc { color: var(--ink-soft); font-size: 14px; max-width: 440px; }

/* App cards */
.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.app-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s, border-color .18s; }
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe0f8; }
.app-card-soon { background: linear-gradient(180deg, #fafcff, #fff); }
.app-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.app-icon { width: 52px; height: 52px; border-radius: 15px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.app-icon-muted { background: #f1f4f9; color: var(--ink-faint); font-weight: 400; }
.status { font-size: 12px; padding: 4px 11px; border-radius: 999px; }
.status-online { background: #e9f7ef; color: #1d8a4e; }
.status-soon { background: #f1f4f9; color: var(--ink-faint); }
.app-card h3 { font-size: 20px; font-weight: 700; }
.app-tagline { color: var(--brand); font-size: 14px; margin-top: 8px; font-weight: 600; }
.app-detail { color: var(--ink-soft); font-size: 13.5px; margin-top: 14px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags span { font-size: 11.5px; color: var(--ink-soft); background: var(--bg-alt); border: 1px solid var(--line); padding: 3px 10px; border-radius: 6px; }
.app-actions { display: flex; align-items: center; gap: 8px; margin-top: 22px; flex-wrap: wrap; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.feature-num { font-size: 12px; color: var(--brand); letter-spacing: 2px; font-weight: 600; }
.feature h3 { font-size: 17px; margin-top: 14px; }
.feature p { color: var(--ink-soft); font-size: 13.5px; margin-top: 10px; }

/* Author */
.author-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; max-width: 820px; }
.author-card p { color: var(--ink-soft); font-size: 15px; margin-bottom: 14px; }
.author-card p:last-child { margin-bottom: 0; }
.author-meta { font-size: 12.5px !important; color: var(--ink-faint) !important; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 20px !important; }

/* Detail page */
.detail-hero { padding: 56px 0 48px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.crumb { font-size: 13px; color: var(--ink-faint); margin-bottom: 18px; }
.crumb a { color: var(--brand); }
.crumb a:hover { text-decoration: underline; }
.detail-hero h1 { font-size: 36px; font-weight: 700; }
.detail-hero .app-tagline { font-size: 16px; margin-top: 12px; }
.detail-hero .hero-actions { margin-top: 24px; }
.detail-body { padding: 56px 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 260px; gap: 48px; align-items: start; }
.prose h2 { font-size: 21px; margin: 36px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); font-size: 15px; margin-bottom: 14px; }
.prose ul { margin: 0 0 16px 20px; color: var(--ink-soft); font-size: 15px; }
.prose li { margin-bottom: 8px; }
.prose .callout { background: var(--brand-soft); border-left: 3px solid var(--brand); border-radius: 0 10px 10px 0; padding: 16px 20px; color: var(--ink); font-size: 14px; margin: 18px 0; }
.table-wrap { overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-alt); color: var(--ink); font-weight: 600; }
td { color: var(--ink-soft); }
tr:last-child td { border-bottom: none; }
.side-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 90px; }
.side-card h3 { font-size: 15px; margin-bottom: 12px; }
.side-card p { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.side-card .btn { width: 100%; margin-top: 6px; }

/* Footer */
.site-footer { background: #111925; color: #c3ccda; padding: 46px 0 34px; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 14px; }
.footer-meta { max-width: 640px; }
.footer-meta p { margin-bottom: 8px; line-height: 1.7; }
.beian-line a { color: #9fc4ff; text-decoration: underline; text-underline-offset: 3px; }
.beian-line a:hover { color: #fff; }
.copyright { color: #7e8a9c; font-size: 12px; margin-top: 12px !important; }

.back-to-top { position: fixed; right: 22px; bottom: 24px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--brand); font-size: 18px; cursor: pointer; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; z-index: 40; }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--brand); color: #fff; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; }
  .gap-frame { width: min(300px, 80%); }
  .feature-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; gap: 30px; }
  .side-card { position: static; }
}
@media (max-width: 768px) {
  .container { width: min(100% - 32px, var(--maxw)); }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 66px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 14px; display: none; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 6px; border-bottom: 1px solid var(--line); }
  .main-nav a.active::after { display: none; }
  .hero { padding: 56px 0 60px; }
  .section { padding: 60px 0; }
  .app-grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 28px; }
  .section-head h2 { font-size: 26px; }
  .footer-inner { flex-direction: column; gap: 24px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 30px; }
  .hero-lead { font-size: 15px; }
  .app-card { padding: 22px; }
  .detail-hero h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
