/* Ming Code 更新服务 · 产品主页（单列布局）
   配色参考 qoder.cn 的设计语言：浅色底（近黑墨色 + 中性灰 + 品牌绿 #2adb5c），
   顶栏与页脚保持近黑通栏；圆角偏大、留白充足。 */

:root {
  --bg: #f6f6f4;              /* 页面底 */
  --surface: #ffffff;         /* 卡片/面板 */
  --surface-2: #f1f1ee;       /* 次级面：表头 / code 底 / note */
  --ink: #171716;             /* 主文字（近黑） */
  --ink-2: #7b7b75;           /* 次文字 */
  --ink-3: #a7a7a0;           /* 更弱 */
  --line: #e5e5e3;            /* 描边 */
  --accent: #2adb5c;          /* 品牌绿 */
  --accent-ink: #10843c;      /* 浅底上可读的绿 */
  --accent-soft: rgba(42, 219, 92, 0.14);
  --bar: #080807;             /* 顶栏 / 页脚 */
  --bar-text: #f5f5f3;
  --bar-dim: #8f8f88;
  --shadow: 0 1px 2px rgba(23, 23, 22, .04), 0 12px 32px rgba(23, 23, 22, .06);
  --radius: 14px;
  --col: 820px;
  --gap-section: 64px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.7 'Segoe UI', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--ink); }
h1, h2, h3 { line-height: 1.3; margin: 0; }
p { margin: 0; }
.spacer { flex: 1; }
.hint { color: var(--ink-2); font-size: 13px; }
.hidden { display: none !important; }

/* ---------- 背景水波 ---------- */
.ripples { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ripple {
  position: absolute; width: var(--r); height: var(--r);
  margin-left: calc(var(--r) / -2); margin-top: calc(var(--r) / -2);
  will-change: transform, opacity;
}
.ripple::before, .ripple::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(42, 219, 92, .5);
  transform: scale(.16); opacity: 0;
  animation: ripple-out var(--dur, 2600ms) cubic-bezier(.22, .61, .36, 1) forwards;
}
.ripple::after { animation-delay: 420ms; border-color: rgba(23, 23, 22, .14); }
@keyframes ripple-out {
  0%   { transform: scale(.16); opacity: .85; }
  65%  { opacity: .30; }
  100% { transform: scale(1.30); opacity: 0; }
}

/* ---------- 顶栏：近黑通栏 ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 12px max(20px, calc((100vw - var(--col)) / 2));
  background: var(--bar);
}
.nav-brand { display: flex; align-items: center; gap: 9px; color: var(--bar-text); font-weight: 600; letter-spacing: .2px; }
.nav-brand:hover { text-decoration: none; color: #fff; }
.nav-brand img { border-radius: 6px; }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.nav-links a { color: var(--bar-dim); }
.nav-links a:hover { color: var(--bar-text); text-decoration: none; }

/* ---------- 状态条 ---------- */
.banner {
  position: relative; z-index: 1;
  padding: 11px 20px; font-size: 13.5px; text-align: center;
  background: #fff7e8; color: #7a5410; border-bottom: 1px solid #f0dcb4;
}

/* ---------- 单列容器（浮在水波之上） ---------- */
.wrap { position: relative; z-index: 1; max-width: var(--col); margin: 0 auto; padding: 0 20px 8px; }

/* ---------- 首屏 ---------- */
.hero { padding: 68px 0 0; }
.pill {
  display: inline-block; font-size: 12.5px; color: var(--accent-ink); font-weight: 600;
  background: var(--accent-soft); border: 1px solid rgba(42, 219, 92, .35);
  border-radius: 999px; padding: 4px 13px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -.6px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 12px 26px; font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { border-color: var(--ink-3); text-decoration: none; }
.btn.primary {
  background: var(--ink); border-color: var(--ink); color: #fff;
  box-shadow: 0 8px 22px rgba(42, 219, 92, .22);
}
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(42, 219, 92, .3); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px; margin: 40px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line);
}
.meta dt { color: var(--ink-2); font-size: 12.5px; }
.meta dd { margin: 3px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); }

/* ---------- 面板 ---------- */
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}

/* ---------- 章节 ---------- */
.section { padding-top: var(--gap-section); scroll-margin-top: 70px; }
.section-head { margin-bottom: 22px; }
.section-head h2 { font-size: 22px; margin-bottom: 8px; letter-spacing: -.2px; }
.section-head h2::after {          /* 标题下的一小段品牌绿：呼应 qoder 的绿 */
  content: ''; display: block; width: 34px; height: 3px; border-radius: 2px;
  background: var(--accent); margin-top: 10px;
}
.section-lead { color: var(--ink-2); font-size: 14px; }
.section-lead strong { color: var(--ink); }

/* ---------- 对比表 ---------- */
table {
  width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
tr:last-child td { border-bottom: none; }
th { background: var(--surface-2); color: var(--ink-2); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
tbody tr:hover { background: #fafaf8; }
table.cmp th:first-child, table.cmp td:first-child {
  width: 132px; color: var(--ink-2); font-size: 13px; white-space: nowrap; font-weight: 600;
}
table.cmp td.dim { color: var(--ink-2); }
table.cmp td b { color: var(--accent-ink); }

/* ---------- 下载块 ---------- */
.dl-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dl-title { font-size: 17px; font-weight: 600; }
.install { color: var(--ink-2); font-size: 14px; margin: 18px 0 0; padding-left: 20px; }
.install li { margin-bottom: 7px; }
.install strong { color: var(--ink); }
.divider { height: 1px; background: var(--line); margin: 22px 0; }
.specs { display: grid; gap: 12px; margin: 0; }
.specs > div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
.specs dt { font-weight: 600; font-size: 14px; }
.specs dd { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.note {
  margin-top: 22px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 16px; color: var(--ink-2); font-size: 13.5px;
}
.note b { color: var(--ink); }

/* ---------- 页脚：近黑通栏，居中 ---------- */
.foot {
  position: relative; z-index: 1;
  margin-top: var(--gap-section);
  background: var(--bar);
  padding: 30px 20px 34px;
  display: grid; gap: 9px; justify-items: center; text-align: center;
}
.copyright {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--bar-text); font-size: 14px; letter-spacing: .3px;
}
.copyright img { border-radius: 5px; opacity: .95; }
.copyright b { font-weight: 700; letter-spacing: .5px; }
.foot-legal { font-size: 12.5px; color: var(--bar-dim); }
.foot-legal a { color: var(--bar-dim); }
.foot-legal a:hover { color: var(--bar-text); }

@media (max-width: 640px) {
  :root { --gap-section: 46px; }
  .nav-links { gap: 14px; }
  .hero { padding-top: 44px; }
  .specs > div { grid-template-columns: 1fr; gap: 2px; }
  table.cmp th:first-child, table.cmp td:first-child { width: 88px; white-space: normal; }
  table.cmp th, table.cmp td { padding: 9px 8px; font-size: 13px; }
}

/* 无动画偏好：静态背景，不生成水波 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ripple::before, .ripple::after { animation: none; }
}
