/* SoftwareReleaseStation — 简洁大方风格 */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1a1d24;
  --text-2: #5c6370;
  --text-3: #9aa1ad;
  --accent: #3b6ef6;
  --accent-dark: #2f57cc;
  --accent-soft: #eef3fe;
  --border: #e6e9ef;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 24, 34, .04), 0 8px 24px rgba(20, 24, 34, .06);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }

.container { width: min(960px, 92%); margin: 0 auto; }

/* ---- 导航 ---- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #7a5cf0);
  color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 800;
}
.nav-links { display: flex; gap: 22px; font-size: 14px; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); font-weight: 600; }

/* ---- Hero ---- */
.hero { text-align: center; padding: 84px 0 48px; }
.hero h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -.02em; }
.hero p { margin-top: 14px; font-size: 17px; color: var(--text-2); max-width: 560px; margin-inline: auto; }
.hero-badge {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
}

/* ---- 产品卡片 ---- */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; padding: 24px 0 72px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20,24,34,.05), 0 14px 34px rgba(20,24,34,.10); }
.card-icon {
  width: 52px; height: 52px; border-radius: 13px; font-size: 26px;
  background: var(--accent-soft); display: grid; place-items: center;
}
.card h3 { font-size: 20px; font-weight: 700; }
.card .tagline { color: var(--text-2); font-size: 14px; }
.card .meta { font-size: 13px; color: var(--text-3); margin-top: auto; }
.card-actions { display: flex; gap: 12px; margin-top: 6px; }

/* ---- 按钮 ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text-2); }
.btn-ghost:hover { border-color: var(--text-3); color: var(--text); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }

/* ---- 详情页 ---- */
.product-head { display: flex; align-items: flex-start; gap: 22px; padding: 64px 0 32px; }
.product-head .card-icon { width: 72px; height: 72px; font-size: 36px; border-radius: 18px; }
.product-head h1 { font-size: 32px; font-weight: 800; letter-spacing: -.01em; }
.product-head .tagline { color: var(--text-2); font-size: 16px; margin-top: 4px; }
.product-desc { color: var(--text-2); max-width: 720px; padding-bottom: 12px; }

.latest-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 24px; margin: 20px 0 40px;
}
.latest-banner .ver { font-family: var(--mono); font-size: 18px; font-weight: 700; }
.latest-banner .sub { font-size: 13px; color: var(--text-3); }
.latest-banner .grow { flex: 1; }

.section-title { font-size: 15px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }

.channel-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.chip {
  padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer;
}
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.release {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 14px;
}
.release-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.release-ver { font-family: var(--mono); font-weight: 700; font-size: 16px; }
.release-date { font-size: 13px; color: var(--text-3); }
.release-dl { font-size: 12px; color: var(--text-3); margin-left: auto; }
.changelog { margin-top: 10px; color: var(--text-2); font-size: 14px; white-space: pre-line; }
.release-file { margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--text-3); }

.badge {
  font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; letter-spacing: .02em;
}
.badge-stable { background: #e5f6ec; color: #1a7f4b; }
.badge-beta { background: #fff3e0; color: #b26a00; }
.badge-alpha { background: #f3e8ff; color: #7a3ce8; }

/* ---- 管理页 ---- */
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 32px; margin: 48px auto; max-width: 640px;
}
.panel h1 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.panel .hint { font-size: 14px; color: var(--text-2); margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 14px; font-family: inherit; background: var(--bg); color: var(--text);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.msg { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 18px; display: none; }
.msg-ok { background: #e5f6ec; color: #1a7f4b; }
.msg-err { background: #fdecec; color: #c0392b; }

/* ---- 页脚 / 状态 ---- */
.footer { margin-top: auto; border-top: 1px solid var(--border); padding: 28px 0; text-align: center; font-size: 13px; color: var(--text-3); }
.state { text-align: center; padding: 80px 0; color: var(--text-3); font-size: 15px; }
.state .btn { margin-top: 16px; }

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .product-head { flex-direction: column; padding-top: 40px; }
}
