/* ============================================================
   轻投下载页样式
   换品牌色只需改 --brand / --brand-2（想做成截图那种微信绿：
   --brand:#07c160; --brand-2:#0aa855;）
   ============================================================ */
:root {
  --brand: #1a73e8;
  --brand-2: #0b57d0;
  --ink: #1f2329;
  --muted: #6b7280;
  --line: #e8eaed;
  --bg: #f6f7f9;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; }

/* ---------------- 顶部导航 ---------------- */
.nav {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  color: #fff;
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px 20px;
  display: flex; align-items: center; gap: 22px;
}
.nav__brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; }
.nav__links { display: flex; gap: 20px; margin-left: auto; font-size: 14px; opacity: .92; }
.nav__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav__lang { display: flex; gap: 14px; font-size: 13px; opacity: .85; }
.nav__lang-on { font-weight: 600; opacity: 1; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  padding: 96px 20px 140px;
  overflow: hidden;
}
.hero::after { /* 柔和光晕，避免纯色发闷 */
  content: ""; position: absolute; left: 50%; top: -180px;
  width: 900px; height: 520px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255,255,255,.20), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 760px; margin: 0 auto; text-align: center; z-index: 1; }
.hero__logo img { margin: 0 auto 14px; width: 72px; height: 72px; }
.hero__logo h1 { margin: 0; font-size: 40px; line-height: 1.2; letter-spacing: .5px; }
.hero__slogan { margin: 10px 0 34px; font-size: 14px; opacity: .9; }

/* 更新日志（简版，像截图那样"标题 …… 日期"） */
.news { list-style: none; margin: 0 auto 34px; padding: 0; max-width: 470px; text-align: left; }
.news li { display: flex; align-items: baseline; gap: 12px; padding: 5px 0; font-size: 14px; }
.news li a { flex: 1; opacity: .95; }
.news li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.news li .date { opacity: .8; font-variant-numeric: tabular-nums; }
.news__more { justify-content: center; }
.news__more a { flex: 0 0 auto; font-size: 14px; opacity: .95; }

/* 平台圆形入口 */
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.platforms a {
  width: 92px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 13px; color: #fff;
}
.platforms .ring {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  transition: transform .18s ease, background .18s ease;
}
.platforms a:hover .ring { transform: translateY(-3px); background: rgba(255, 255, 255, .26); }
.platforms .ring svg { width: 30px; height: 30px; fill: #fff; }
.platforms .off { opacity: .55; }
.platforms .off .ring { cursor: not-allowed; }

/* 次要入口小卡片 */
.mini { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.mini a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; font-size: 13px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
}
.mini a:hover { background: rgba(255, 255, 255, .24); }

/* 波浪底 */
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 120px; }
.hero__wave path { fill: var(--bg); }

/* ---------------- 通用区块 ---------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 8px 20px 40px; }
.section { padding: 40px 0 8px; }
.section__title { margin: 0 0 6px; font-size: 22px; }
.section__sub { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.tip { color: var(--muted); font-size: 13px; margin-top: 18px; }

/* ---------------- 下载卡片 ---------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
}
.card__head { display: flex; align-items: center; gap: 12px; }
.card__icon {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 10%, #fff);
}
.card__icon svg { width: 22px; height: 22px; fill: var(--brand); }
.card__name { font-size: 16px; font-weight: 600; }
.card__meta { color: var(--muted); font-size: 12.5px; }
.card__note { color: var(--muted); font-size: 13px; min-height: 20px; }
.card__actions { display: flex; gap: 8px; margin-top: auto; }

.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit;
  padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600;
  background: var(--brand); color: #fff; text-align: center; flex: 1;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--brand-2); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: #f1f3f5; color: var(--ink); font-weight: 500; flex: 0 0 auto; }
.btn--ghost:hover { background: #e6e9ee; }
.btn[aria-disabled="true"] { background: #e9ecf1; color: #9aa3af; cursor: not-allowed; }

.sha { font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted); word-break: break-all; }
.sha summary { cursor: pointer; }

/* ---------------- 更新日志 ---------------- */
.releases { list-style: none; margin: 0; padding: 0; }
.releases li {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.releases .ver { font-weight: 600; font-size: 15px; }
.releases .date { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.releases .body { grid-column: 1 / -1; color: var(--muted); font-size: 13.5px; }
.releases .body li { border: 0; padding: 2px 0; display: list-item; }

/* ---------------- FAQ ---------------- */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
}
.faq summary { cursor: pointer; font-weight: 600; font-size: 14.5px; }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: 13.5px; }

/* ---------------- 页脚 ---------------- */
.foot { border-top: 1px solid var(--line); background: #fff; margin-top: 32px; }
.foot__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 22px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  color: var(--muted); font-size: 13px;
}
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot__dot { opacity: .5; }

/* ---------------- 悬浮二维码 ---------------- */
.qr {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px; box-shadow: var(--shadow); text-align: center;
}
.qr img { width: 108px; height: 108px; }
.qr span { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }

/* ---------------- 移动端 ---------------- */
@media (max-width: 720px) {
  .nav__links { display: none; }
  .hero { padding: 84px 18px 118px; }
  .hero__logo h1 { font-size: 32px; }
  .platforms { gap: 10px; }
  .platforms a { width: 76px; font-size: 12px; }
  .platforms .ring { width: 56px; height: 56px; }
  .qr { display: none; }
  .section { padding: 30px 0 6px; }
}
