/* MaxStudio 下载页样式 — 自洽,不依赖主站。骨架借鉴 MaxTerm web/style.css,配色用 MaxStudio 品牌紫蓝。 */

:root {
  --violet: #6d5bd6;
  --blue: #2563eb;
  --deep: #14132b;
  --accent: #7c5cfc;
  --bg: #fbfbfd;
  --bg-soft: #f4f4fb;
  --card: #ffffff;
  --text: #14132b;
  --text-2: #4a4d68;
  --dim: #8a8da3;
  --line: #e6e6f0;
  --line-soft: #eeeef6;
  --ok: #22a06b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Helvetica, sans-serif;
  line-height: 1.65; -webkit-font-smoothing: antialiased;
}
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: "SF Mono", Menlo, Consolas, monospace; }
svg.ic {
  width: 16px; height: 16px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ============ HERO ============ */
.hero {
  background:
    radial-gradient(ellipse at top, rgba(124,92,252,0.28), transparent 60%),
    linear-gradient(135deg, #14132b 0%, #3a2f8f 55%, #2563eb 100%);
  color: #fff; padding: 5rem 1.5rem 5.5rem; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    /* 点阵(在上) */
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06) 1px, transparent 1px),
    radial-gradient(circle at 60% 70%, rgba(255,255,255,0.04) 1px, transparent 1px),
    /* 淡网格(在下) */
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 30px 30px, 50px 50px, 44px 44px, 44px 44px;
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none; display: block;
}
.hero-inner { position: relative; z-index: 2; }
/* 一行横向 logo lockup:小 mark + MaxStudio 字标并排 */
.hero-lockup {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  margin: 0; font-weight: 800; line-height: 1;
}
.hero-lockup .lockup-mark {
  width: 54px; height: 54px; border-radius: 14px; display: block;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.hero-lockup .lockup-word {
  font-size: clamp(34px, 5vw, 44px); letter-spacing: -0.5px; color: #fff;
}
.hero-lockup .lockup-word span { color: #c9b8ff; }
.hero-headline {
  font-size: clamp(26px, 4vw, 40px); line-height: 1.18; font-weight: 800;
  letter-spacing: -0.5px; margin: 0.7rem auto 0; max-width: 16em;
}
.hero-headline .hl { color: #c9b8ff; }
.hero .tagline {
  font-size: 16px; opacity: 0.86; margin: 0.8rem auto 0; font-weight: 300;
  max-width: 40em; line-height: 1.7;
}
.hero .tagline strong { font-weight: 600; opacity: 1; }
.hero .tagline strong.em-green {
  color: #4ade80;
  font-weight: 800;
  text-shadow: 0 1px 14px rgba(74,222,128,0.35);
}

/* 五不卖点 chips */
.chips {
  margin-top: 1.4rem; display: flex; gap: 0.5rem; flex-wrap: wrap;
  justify-content: center;
}
.chips .chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px; padding: 0.32rem 0.85rem; font-size: 13px; font-weight: 600;
  white-space: nowrap;
}
.chips .chip svg.ic { width: 14px; height: 14px; opacity: 0.85; }
/* 新功能高亮 chip */
.chips .chip.chip-new {
  background: linear-gradient(135deg, rgba(74,222,128,0.24), rgba(34,197,107,0.18));
  border-color: rgba(74,222,128,0.55); color: #eafff3;
}
.chips .chip.chip-new svg.ic { opacity: 1; }

/* 下载 CTA */
.dl-cta { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; }
.download-btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.15rem;
  min-width: 256px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 16px;
  padding: 0.85rem 2.2rem; border-radius: 12px;
  box-shadow: 0 8px 30px rgba(124,92,252,0.5);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.download-btn .bt-sub { font-size: 11px; font-weight: 500; opacity: 0.8; }
.download-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(124,92,252,0.6); text-decoration: none; }
.download-btn.alt { background: rgba(255,255,255,0.1); box-shadow: none; border: 1px solid rgba(255,255,255,0.28); }
.download-btn.alt:hover { background: rgba(255,255,255,0.18); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
/* 芯片检测:推荐按钮高亮 + 徽标(app.js 注入 .recommended / .rec-badge） */
.download-btn.recommended {
  outline: 2px solid #fff; outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(124,92,252,0.45), 0 10px 34px rgba(124,92,252,0.55);
}
.download-btn.alt.recommended { background: rgba(255,255,255,0.2); }
.download-btn .rec-badge {
  margin-top: 0.4rem; background: #fff; color: var(--accent);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.3px;
  padding: 0.14rem 0.6rem; border-radius: 999px;
}

/* hero 文档按钮(重点引导,学 MaxTerm help-link） */
.docs-cta { margin-top: 1.4rem; display: flex; justify-content: center; }
.docs-cta a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: #fff; font-weight: 600; font-size: 14px;
  padding: 0.62rem 1.4rem; border-radius: 10px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.docs-cta a:hover {
  background: rgba(255,255,255,0.2); transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.22); text-decoration: none;
}

.download-count {
  margin-top: 1rem; font-size: 12.5px; opacity: 0.75;
  display: flex; justify-content: center; align-items: center; gap: 0.4rem;
}
.download-count strong { color: #c9b8ff; font-weight: 700; opacity: 1; font-size: 14px; }
.download-sub { margin-top: 0.8rem; font-size: 12.5px; opacity: 0.7; line-height: 1.7; }
.download-sub a { color: #fff; border-bottom: 1px dotted rgba(255,255,255,0.5); }
.download-sub a:hover { border-bottom-style: solid; text-decoration: none; }

/* ============ SECTIONS ============ */
section { max-width: 980px; margin: 0 auto; padding: 4.5rem 1.5rem 1rem; }
section:last-of-type { padding-bottom: 4rem; }
.sec-head { margin-bottom: 2rem; }
.sec-head .eyebrow {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  color: var(--violet); text-transform: uppercase; margin-bottom: 0.3rem;
}
.sec-head h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.5px; }
.sec-head p { color: var(--text-2); font-size: 15px; margin-top: 0.4rem; }

/* ============ 核心价值 ============ */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0.9rem; }
.value {
  padding: 1.4rem; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.value:hover { transform: translateY(-2px); border-color: var(--violet); box-shadow: 0 8px 24px rgba(109,91,214,0.1); }
.value .ic-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--violet), var(--blue)); color: #fff;
  margin-bottom: 0.8rem;
}
.value .ic-wrap svg { width: 21px; height: 21px; stroke: #fff; }
.value h3 { font-size: 16px; font-weight: 700; margin-bottom: 0.35rem; }
.value p { font-size: 13.5px; color: var(--text-2); line-height: 1.65; }
.value.value-free { border-color: rgba(124,92,252,0.5); background: linear-gradient(135deg, rgba(124,92,252,0.06), rgba(37,99,235,0.05)); }

/* ============ STEPS（安装 / 系统要求复用） ============ */
.steps { display: flex; flex-direction: column; gap: 0.8rem; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.1rem 1.3rem; display: flex; gap: 1.1rem; align-items: flex-start;
  transition: border-color 0.15s;
}
.step:hover { border-color: var(--violet); }
.step .step-num {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--violet); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.step-body { flex: 1; min-width: 0; }
.step-title { font-weight: 600; margin-bottom: 0.2rem; }
.step-desc { color: var(--text-2); font-size: 14px; }
.good {
  background: #effaf4; border-left: 4px solid var(--ok); padding: 0.9rem 1rem;
  border-radius: 6px; font-size: 13.5px; color: #14653f; margin-top: 0.8rem;
  display: flex; gap: 0.6rem;
}
.good svg { stroke: var(--ok); margin-top: 2px; flex-shrink: 0; }

/* ============ FEATURES ============ */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.9rem; }
.feat-cat {
  margin: 2.4rem 0 1rem; display: flex; align-items: center; gap: 0.8rem;
  font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px; color: var(--violet);
}
.feat-cat::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sec-head + .feat-cat { margin-top: 0.4rem; }
.feature {
  padding: 1.3rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.feature:hover { transform: translateY(-2px); border-color: var(--violet); box-shadow: 0 8px 24px rgba(109,91,214,0.1); }
.feature .ic-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 9px;
  background: linear-gradient(135deg, rgba(124,92,252,0.14), rgba(37,99,235,0.14));
  color: var(--violet); margin-bottom: 0.7rem;
}
.feature .ic-wrap svg { width: 20px; height: 20px; }
.feature h3 { font-size: 15px; font-weight: 600; margin-bottom: 0.3rem; }
.feature p { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.feat-doc {
  display: inline-block; margin-top: 0.6rem; font-size: 12.5px; font-weight: 600;
  color: var(--violet);
}
.feat-doc:hover { text-decoration: none; transform: translateX(2px); }
.feat-doc { transition: transform 0.12s; }

/* ============ CHANGELOG TIMELINE ============ */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(180deg, var(--accent) 0%, var(--blue) 100%); border-radius: 1px;
}
.release {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 1.4rem 1.6rem; margin-bottom: 1.2rem;
}
.release::before {
  content: ""; position: absolute; left: -28px; top: 24px; width: 18px; height: 18px;
  background: #fff; border: 3px solid var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px var(--bg);
}
.release-head {
  display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap;
  margin-bottom: 0.8rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--line-soft);
}
.release-head .ver { font-size: 22px; font-weight: 700; color: var(--violet); letter-spacing: -0.5px; }
.release-head .date { font-size: 12.5px; color: var(--dim); }
.release-head .badge {
  font-size: 10.5px; padding: 0.18rem 0.6rem; border-radius: 999px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; margin-left: auto; background: var(--accent); color: #fff;
}
.major-list { display: flex; flex-direction: column; gap: 0.6rem; }
.major {
  display: flex; gap: 0.9rem; align-items: flex-start; padding: 0.85rem 1rem;
  background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 9px;
}
.major-ic {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(124,92,252,0.2), rgba(37,99,235,0.2)); color: var(--violet);
}
.major-ic svg.ic { width: 18px; height: 18px; }
.major-body h4 { font-size: 14.5px; font-weight: 600; margin-bottom: 0.2rem; }
.major-body h4 .tag-new,
.feature h3 .tag-new {
  display: inline-block; background: linear-gradient(135deg, var(--violet), var(--blue));
  color: #fff; font-size: 10.5px; font-weight: 600; letter-spacing: 0.3px;
  padding: 1px 8px; border-radius: 999px; margin-left: 0.5rem; vertical-align: 1px;
}
.major-body p { font-size: 13px; color: var(--text-2); line-height: 1.55; }

/* ============ 收尾 CTA band ============ */
.cta-band {
  max-width: none; margin: 4.5rem 0 0; padding: 4.5rem 1.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(124,92,252,0.28), transparent 60%),
    linear-gradient(135deg, #14132b 0%, #3a2f8f 55%, #2563eb 100%);
  color: #fff;
}
.cta-band .cta-inner { max-width: 980px; margin: 0 auto; }
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.5px; color: #fff; }
.cta-band p { margin-top: 0.6rem; font-size: 15px; opacity: 0.85; }
.cta-band .dl-cta { margin-top: 1.8rem; }
.cta-band + footer { margin-top: 0; }

/* ============ FOOTER ============ */
footer { background: var(--deep); color: #fff; padding: 3rem 1.5rem 2.5rem; text-align: center; margin-top: 2rem; }
footer .ft-brand { max-width: 130px; margin: 0 auto 1rem; opacity: 0.9; }
footer .ft-row { font-size: 13px; opacity: 0.7; margin-bottom: 0.3rem; }
footer a { color: var(--accent); }
footer .copyright { margin-top: 1rem; opacity: 0.45; font-size: 12px; }

/* ============ 响应式 ============ */
@media (max-width: 640px) {
  .hero { padding: 3.5rem 1rem 4rem; }
  .hero-lockup { gap: 10px; }
  .hero-lockup .lockup-mark { width: 44px; height: 44px; border-radius: 12px; }
  section { padding: 3rem 1rem 0; }
  .sec-head h2 { font-size: 24px; }
  .timeline { padding-left: 22px; }
  .timeline::before { left: 7px; }
  .release::before { left: -22px; top: 22px; width: 14px; height: 14px; }
}

/* 非 Mac 访客提示（app.js 注入） */
.platform-note {
  max-width: 980px; margin: 1.5rem auto -1rem; padding: 0 1.5rem;
  text-align: center; color: #b45309; font-size: 13.5px;
}
