/* ============================================================
   MyApp 官方下载页 · 样式表（浅色主题）
   ============================================================ */
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-soft: #eef2f9;
  --border: #e4eaf4;
  --text: #15203a;
  --text-2: #5a6a85;
  --text-3: #94a2ba;
  --primary: #2563eb;
  --primary-deep: #1d4ed8;
  --header-h: 64px;
  --radius: 16px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
body { scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(37, 99, 235, .05) 1px, transparent 1px);
  background-size: 24px 24px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul { list-style: none; }

/* ---------- 顶部固定导航 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(21, 32, 58, .07);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 4px 12px rgba(37, 99, 235, .35);
}
.brand-icon svg { width: 18px; height: 18px; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: .4px; }

.header-nav { display: flex; gap: 4px; margin-left: 8px; }
.header-nav a {
  font-size: 14px;
  color: var(--text-2);
  padding: 7px 13px;
  border-radius: 9px;
  transition: color .2s, background .2s;
}
.header-nav a:hover { color: var(--primary); background: var(--primary-soft, #e8effd); }

/* 下载按钮 */
.btn-download {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: none; border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .30);
  transition: transform .15s ease, box-shadow .2s, filter .2s;
}
.btn-download svg { width: 17px; height: 17px; }
.btn-download:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(37, 99, 235, .40); }
.btn-download:active { transform: translateY(0); }

.btn-header {
  margin-left: auto;
  height: 38px; padding: 0 20px;
  font-size: 14px; border-radius: 999px;
}

.btn-hero {
  height: 50px; padding: 0 34px;
  font-size: 16px; border-radius: 14px;
}

.btn-ghost {
  display: inline-flex; align-items: center;
  height: 50px; padding: 0 26px;
  font-size: 15px; font-weight: 500;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all .2s;
}
.btn-ghost:hover { color: var(--primary); border-color: rgba(37, 99, 235, .45); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 64px) 24px 72px;
  text-align: center;
  background:
    radial-gradient(680px 300px at 50% -60px, rgba(37, 99, 235, .12), transparent 65%),
    var(--bg);
}
.hero-deco {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  top: -160px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(59, 130, 246, .18), transparent 62%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }

.hero-icon {
  width: 76px; height: 76px;
  margin: 0 auto 22px;
  display: grid; place-items: center;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 14px 34px rgba(37, 99, 235, .38);
  animation: floaty 4s ease-in-out infinite;
}
.hero-icon svg { width: 36px; height: 36px; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.hero-title {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: .5px;
  animation: fadeUp .6s ease both;
}
.hero-title .accent {
  font-size: 26px;
  font-weight: 600;
  color: var(--primary);
  vertical-align: middle;
  margin-left: 6px;
}
.hero-slogan {
  margin-top: 14px;
  font-size: 17px;
  color: var(--text-2);
  animation: fadeUp .6s .08s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-actions {
  margin-top: 32px;
  display: flex; justify-content: center; gap: 14px;
  animation: fadeUp .6s .16s ease both;
}

.hero-meta {
  margin-top: 30px;
  display: flex; justify-content: center; align-items: center; gap: 12px;
  font-size: 13px;
  color: var(--text-3);
  animation: fadeUp .6s .24s ease both;
}
.meta-dot { width: 4px; height: 4px; border-radius: 50%; background: #c7d1e4; }

.hero-plats {
  margin-top: 18px;
  display: flex; justify-content: center; gap: 8px;
  animation: fadeUp .6s .3s ease both;
}
.plat {
  font-size: 12px; font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 12px;
}

/* ---------- 通用区块 ---------- */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 24px;
}
.section-alt {
  max-width: none;
  background: rgba(255, 255, 255, .72);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-alt .section-head,
.section-alt .shot-grid,
.section-alt .changelog {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.section-alt .section-head { padding-bottom: 32px; }
.section-alt .shot-grid,
.section-alt .changelog { padding-bottom: 0; }
.section-alt .shot-note { max-width: 1120px; margin: 18px auto 0; padding: 0 24px; }

.section-head { text-align: center; padding-bottom: 38px; }
.section-head h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .5px;
}
.section-head p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-3);
}

/* ---------- 功能介绍 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, .35);
  box-shadow: 0 14px 34px rgba(37, 99, 235, .12);
}
.feature-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 13px;
  color: var(--ic);
  background: color-mix(in srgb, var(--ic) 12%, #fff);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { margin-top: 16px; font-size: 17px; font-weight: 700; }
.feature-card p { margin-top: 6px; font-size: 13.5px; color: var(--text-2); }

/* ---------- 截图展示 ---------- */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.shot { text-align: center; }
.shot-frame {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(21, 32, 58, .08);
  transition: transform .22s ease, box-shadow .22s ease;
}
.shot:hover .shot-frame { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(37, 99, 235, .16); }
.frame-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border);
}
.frame-bar span { width: 9px; height: 9px; border-radius: 50%; background: #c9d3e5; }
.frame-body {
  height: 210px;
  padding: 18px;
  display: flex; gap: 14px;
  background: linear-gradient(135deg, #f6f9ff, #eaf0fb);
}
/* 模拟 UI 元素 */
.mock-side { width: 34px; border-radius: 8px; background: #dbe6f7; }
.mock-panel { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.mock-line { height: 9px; border-radius: 6px; background: #d3dded; }
.mock-line.w60 { width: 60%; }
.mock-line.w85 { width: 85%; }
.mock-line.w70 { width: 70%; }
.mock-block { flex: 1; border-radius: 9px; background: linear-gradient(135deg, #cfe0fa, #b9d1f7); }
.mock-block.short { flex: .55; }
.mock-settings { flex-direction: column; gap: 10px; }
.mock-card-row { flex: 1; border-radius: 9px; background: #fff; box-shadow: 0 2px 6px rgba(21, 32, 58, .06); }
.mock-stats { gap: 14px; }
.mock-stat { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: #fff; border-radius: 10px; }
.mock-donut { width: 74px; height: 74px; border-radius: 50%; background: conic-gradient(#3b82f6 0 62%, #dbe6f7 62% 100%); }
.mock-bars { width: 74px; height: 74px; display: flex; align-items: flex-end; gap: 7px; }
.mock-bars::before { content: ""; flex: 1; height: 55%; border-radius: 4px 4px 0 0; background: #60a5fa; }
.mock-bars::after { content: ""; flex: 1; height: 85%; border-radius: 4px 4px 0 0; background: #3b82f6; }

.shot figcaption { margin-top: 12px; font-size: 13px; color: var(--text-2); }
.shot-note { font-size: 12.5px; color: var(--text-3); text-align: center; }

/* ---------- 系统要求 ---------- */
.req-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 820px;
  margin: 0 auto;
}
.req-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 26px 16px;
}
.req-card h3 {
  font-size: 16px; font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.req-card ul { margin-top: 6px; }
.req-card li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13.5px;
}
.req-card li:last-child { border-bottom: none; }
.req-card b {
  flex-shrink: 0;
  width: 76px;
  font-weight: 600;
  color: var(--text);
}
.req-card span { color: var(--text-2); }

/* ---------- 更新日志 ---------- */
.changelog {
  max-width: 640px;
  margin: 0 auto;
}
.log-item {
  position: relative;
  display: flex; gap: 22px;
  padding-bottom: 30px;
}
.log-item::before {
  content: "";
  position: absolute;
  left: 62px; top: 44px; bottom: 0;
  width: 2px;
  background: var(--border);
}
.log-item:last-child::before { display: none; }
.log-ver {
  flex-shrink: 0;
  width: 64px;
  padding: 8px 0;
  text-align: center;
  font-size: 13px; font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft, #e8effd);
  border: 1px solid rgba(37, 99, 235, .25);
  border-radius: 10px;
  position: relative;
  z-index: 1;
}
.log-ver em {
  display: block;
  font-style: normal;
  font-size: 11px; font-weight: 500;
  color: var(--text-3);
}
.log-body { padding-top: 6px; }
.log-date { font-size: 12px; color: var(--text-3); }
.log-body ul { margin-top: 8px; }
.log-body li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 5px;
}
.log-body li::before {
  content: "";
  position: absolute;
  left: 2px; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--primary);
  opacity: .55;
}

/* ---------- 底部 CTA ---------- */
.cta {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 24px 84px;
  text-align: center;
}
.cta h2 { font-size: 26px; font-weight: 800; }
.cta p { margin: 10px 0 26px; font-size: 14px; color: var(--text-3); }

/* ---------- 页脚 ---------- */
.site-footer {
  text-align: center;
  padding: 26px 20px 34px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, .7);
  color: var(--text-2);
  font-size: 13px;
}
.footer-sub { margin-top: 4px; font-size: 12px; color: var(--text-3); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 40px;
  transform: translate(-50%, 20px);
  padding: 11px 22px;
  font-size: 14px;
  color: #fff;
  background: #15203a;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(21, 32, 58, .3);
  opacity: 0; visibility: hidden;
  transition: all .3s ease;
  z-index: 200;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .shot-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .header-nav { display: none; }
  .req-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 34px; }
  .hero-title .accent { font-size: 22px; }
}
@media (max-width: 560px) {
  :root { --header-h: 58px; }
  .header-inner { padding: 0 16px; }
  .brand-name { font-size: 16px; }
  .btn-header { padding: 0 14px; }
  .hero { padding: calc(var(--header-h) + 44px) 16px 52px; }
  .hero-title { font-size: 30px; }
  .hero-slogan { font-size: 15px; }
  .br-md { display: none; }
  .hero-meta { flex-wrap: wrap; }
  .feature-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 18px; }
  .log-item { gap: 14px; }
  .log-ver { width: 56px; }
  .log-item::before { left: 55px; }
  .cta { padding: 48px 18px 64px; }
}
