:root {
  --bg: #f5f7fb;
  --bg-soft: #eef2fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e2e8f0;
  --brand: #2b5cff;
  --brand-strong: #1738d8;
  --brand-deep: #0a1b4d;
  --cyan: #06b6d4;
  --accent: #ff7d33;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --shadow-s: 0 4px 14px rgba(15, 23, 42, .06);
  --shadow: 0 14px 40px rgba(15, 23, 42, .08);
  --shadow-l: 0 30px 80px rgba(11, 18, 32, .18);
  --container: 1200px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: 15px; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 12px; }
p { margin: 0 0 14px; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-s); }
.nav-wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: .5px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  color: #fff; box-shadow: 0 6px 16px rgba(43, 92, 255, .35);
}
.logo small { display: block; font-size: 11px; font-weight: 500; color: var(--muted-2); letter-spacing: 2px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a.nav-link {
  padding: 8px 14px; border-radius: 999px; color: var(--text); font-weight: 600; font-size: 14.5px;
  transition: background .2s ease, color .2s ease;
}
.nav a.nav-link:hover { background: var(--bg-soft); color: var(--brand); }
.nav a.nav-link.is-active { color: var(--brand); background: rgba(43, 92, 255, .1); }
.nav-toggle { display: none; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 3px auto; background: var(--text); border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 14.5px; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
/* 图标是 flex 子项，空间紧张时默认会被压扁成 1px 宽（按钮变空圈），禁止压缩 */
.btn svg { flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-strong)); color: #fff; box-shadow: 0 10px 24px rgba(43, 92, 255, .32); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(43, 92, 255, .42); }
.btn-outline { border-color: var(--line); background: #fff; color: var(--text); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .24); }
.btn-accent { background: linear-gradient(135deg, var(--accent), #ff5a1f); color: #fff; box-shadow: 0 10px 24px rgba(255, 125, 51, .3); }
.btn-dark { background: var(--brand-deep); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); color: #fff; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 15% -10%, #2440c8 0%, transparent 60%), linear-gradient(135deg, #0b1f52 0%, #10265e 45%, #0a1740 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: linear-gradient(180deg, rgba(0, 0, 0, .6), transparent 80%);
}
.hero .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; }
.hero .blob-a { width: 420px; height: 420px; background: #2b5cff; top: -120px; right: 8%; }
.hero .blob-b { width: 320px; height: 320px; background: #06b6d4; bottom: -140px; left: -60px; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: 84px 0 92px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); font-size: 13px; font-weight: 600;
}
.hero-badge i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .25); }
.hero h1 { font-size: 46px; line-height: 1.2; margin: 18px 0 16px; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, #7dd3fc, #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 16.5px; color: rgba(255, 255, 255, .76); max-width: 560px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero-stats b { display: block; font-size: 26px; line-height: 1.2; }
.hero-stats span { font-size: 13px; color: rgba(255, 255, 255, .6); }

/* ---------- Hero QR card ---------- */
.hero-card {
  position: relative; border-radius: var(--radius-l); padding: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .18); box-shadow: var(--shadow-l);
  backdrop-filter: blur(10px);
}
.hero-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.hero-card-head .app-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, #ffffff, #dbeafe); color: var(--brand); font-weight: 800; }
.hero-card-head h3 { margin: 0; font-size: 17px; }
.hero-card-head p { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .62); }
.qr-panel { display: flex; gap: 18px; align-items: center; padding: 16px; border-radius: 18px; background: #fff; color: var(--text); }
.qr-panel .qr-img { border-radius: 8px; width: 132px; height: 132px; }
.qr-panel .qr-txt h4 { margin: 0 0 4px; font-size: 15px; }
.qr-panel .qr-txt p { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); }
.qr-note { margin: 14px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .6); text-align: center; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-head h2 { font-size: 30px; letter-spacing: -.4px; margin: 0; }
.section-head p { margin: 8px 0 0; color: var(--muted); }
.section-kicker { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--brand); text-transform: uppercase; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-s); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cdd7e6; }
.card-body { padding: 20px; }
.card-title { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.card-text { color: var(--muted); font-size: 14px; }
.card-cover { position: relative; aspect-ratio: 16 / 10; background: var(--bg-soft); overflow: hidden; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-cover img { transform: scale(1.05); }
.card-meta { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted-2); }

/* ---------- Product / release ---------- */
.product-card { display: flex; flex-direction: column; }
.product-top { display: flex; gap: 14px; align-items: center; padding: 18px 20px 14px; }
.app-badge {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--brand), var(--cyan)); color: #fff; font-size: 18px; font-weight: 800;
}
.product-top h3 { margin: 0; font-size: 17px; }
.product-top p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg-soft); color: var(--muted); }
.chip-brand { background: rgba(43, 92, 255, .1); color: var(--brand); }
.chip-ok { background: rgba(22, 163, 74, .12); color: var(--success); }
.chip-warn { background: rgba(245, 158, 11, .16); color: #b45309; }
.chip-dark { background: rgba(15, 23, 42, .08); color: var(--text); }
.chip-android { background: rgba(61, 220, 132, .16); color: #12864e; }
.chip-windows { background: rgba(0, 120, 212, .14); color: #0369a1; }

.version-list { border-top: 1px solid var(--line); }
.version-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.version-item:last-child { border-bottom: 0; }
.version-item .v-num { font-weight: 700; color: var(--text); }
.version-item .v-size { color: var(--muted-2); font-size: 12.5px; }
.version-item .btn { margin-left: auto; }
.version-item.is-latest { background: linear-gradient(90deg, rgba(43, 92, 255, .06), transparent); }

/* ---------- Download detail ---------- */
.dl-hero { padding: 46px 0 34px; background: linear-gradient(135deg, #0b1f52, #10265e 60%, #0a1740); color: #fff; }
.dl-hero .crumbs { font-size: 13px; color: rgba(255, 255, 255, .55); margin-bottom: 14px; }
.dl-hero .crumbs a:hover { color: #fff; }
.dl-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 26px; align-items: start; }
.dl-main { display: flex; gap: 20px; }
.dl-main .app-badge { width: 74px; height: 74px; border-radius: 20px; font-size: 24px; }
.dl-main h1 { margin: 0 0 6px; font-size: 30px; }
.dl-side { background: #fff; color: var(--text); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-l); text-align: center; }
.dl-side .qr-img { margin: 0 auto 12px; }
.dl-side h4 { margin: 0 0 2px; font-size: 15px; }
.dl-side p { margin: 0 0 14px; font-size: 12.5px; color: var(--muted); }
.dl-side .btn { width: 100%; margin-bottom: 8px; }
.sha-line { font-size: 11.5px; color: var(--muted-2); word-break: break-all; background: var(--surface-2); border-radius: 8px; padding: 8px 10px; margin-top: 10px; }

.download-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.download-table th, .download-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
.download-table th { font-size: 12.5px; color: var(--muted-2); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.download-table tr:last-child td { border-bottom: 0; }
.download-table tbody tr:hover { background: var(--surface-2); }

/* ---------- News ---------- */
.news-list { display: grid; gap: 18px; }
.news-item { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-s); transition: transform .2s ease, box-shadow .2s ease; }
.news-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-item .thumb { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-soft); }
.news-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item h3 { margin: 0 0 8px; font-size: 18px; }
.news-item .summary { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 40px; box-shadow: var(--shadow-s); }
.article h1 { font-size: 30px; margin-bottom: 10px; }
.article-meta { color: var(--muted-2); font-size: 13px; display: flex; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.article-body { font-size: 16px; line-height: 1.95; color: #24304a; }
.article-body h2 { font-size: 21px; margin: 28px 0 12px; }
.article-body h3 { font-size: 18px; margin: 22px 0 10px; }
.article-body img { border-radius: 12px; margin: 16px 0; }
.article-body blockquote { margin: 18px 0; padding: 12px 18px; background: var(--surface-2); border-left: 3px solid var(--brand); color: var(--muted); border-radius: 0 10px 10px 0; }
.article-body pre { background: #0f172a; color: #e2e8f0; padding: 16px 18px; border-radius: 12px; overflow-x: auto; }
.article-body code { background: var(--bg-soft); padding: 2px 6px; border-radius: 5px; font-size: 14px; }
.article-body pre code { background: none; padding: 0; color: inherit; }
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 12px; }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filter-btn { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); }
.filter-btn.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.masonry { columns: 3; gap: 18px; }
.masonry .tile { break-inside: avoid; margin-bottom: 18px; position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-s); }
.tile video, .tile img { width: 100%; display: block; }
.tile .tile-body { padding: 12px 14px; }
.tile .tile-body h4 { margin: 0 0 4px; font-size: 14.5px; }
.tile .tile-body p { margin: 0; font-size: 12.5px; color: var(--muted-2); }

/* ---------- Features / about ---------- */
.feature-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-s); }
.feature-box .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; background: rgba(43, 92, 255, .1); color: var(--brand); }
.feature-box h4 { margin: 0 0 8px; font-size: 16.5px; }
.feature-box p { margin: 0; color: var(--muted); font-size: 14px; }

.contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.contact-card { text-align: center; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.contact-card b { display: block; font-size: 15px; margin-bottom: 4px; }
.contact-card span { color: var(--muted); font-size: 13.5px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.page-btn { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-weight: 600; font-size: 14px; }
.page-btn:hover { border-color: var(--brand); color: var(--brand); }
.page-btn.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Empty / alerts ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); background: #fff; }
.empty-state h4 { margin: 0 0 6px; color: var(--text); }

.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; font-size: 14px; border: 1px solid transparent; }
.alert-success { background: rgba(22, 163, 74, .1); border-color: rgba(22, 163, 74, .25); color: #15803d; }
.alert-warning { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .3); color: #b45309; }
.alert-danger { background: rgba(220, 38, 38, .1); border-color: rgba(220, 38, 38, .25); color: #b91c1c; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-deep); color: rgba(255, 255, 255, .72); margin-top: 40px; padding: 54px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 34px; }
.footer-grid h5 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.footer-grid li { margin-bottom: 8px; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-logo { color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0 22px; font-size: 13px; color: rgba(255, 255, 255, .5); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Page head (inner) ---------- */
.page-head { padding: 42px 0 26px; background: linear-gradient(120deg, #f2f6ff, #eaf1ff); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 30px; margin: 0 0 6px; }
.page-head p { margin: 0; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; padding: 60px 0 70px; }
  .hero h1 { font-size: 36px; }
  .hero-card { max-width: 460px; }
  .dl-grid, .footer-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masonry { columns: 2; }
}
@media (max-width: 720px) {
  .container { width: calc(100% - 32px); }
  .nav {
    position: fixed; inset: 68px 0 auto; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 18px;
    box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .2s ease;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a.nav-link { padding: 12px; border-radius: 10px; }
  .nav-toggle { display: block; }
  .nav .btn { justify-content: center; margin-top: 8px; }
  .grid-2, .grid-3, .grid-4, .dl-grid, .footer-grid, .contact-grid { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .news-item { grid-template-columns: 1fr; }
  .article { padding: 24px 18px; }
  .hero { padding-bottom: 20px; }
  .hero-stats { flex-wrap: wrap; gap: 20px 26px; }
  .dl-main { flex-direction: column; }
  .qr-panel { flex-direction: column; text-align: center; }
}

/* ---------- 合作伙伴（友链） ---------- */
.partner-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.partner-card {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-s); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.partner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand); }
.partner-ico {
  flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(43, 92, 255, .1); color: var(--brand); font-size: 17px;
}
.partner-name { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.partner-host { margin-left: auto; font-size: 12px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }

@media (max-width: 960px) { .partner-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .partner-grid { grid-template-columns: 1fr; } }
