/* ============================================================================
 * one-tools-desktop 落地页样式
 * 品牌色参考 docs/brand/README.md：
 *   Shell #0D1720 / Text #111827 / Muted #475569
 *   Teal #28D7C4 / Amber #F7C75A / Blue #4AA8FF / Coral #FF6B7C / Violet #A78BFA
 * 每张应用卡片通过 --accent 变量注入各自品牌色。
 * ========================================================================== */

:root {
  --shell: #0d1720;
  --text: #111827;
  --text-secondary: #334155;
  --muted: #475569;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.06), 0 8px 24px -12px rgb(15 23 42 / 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── 顶部导航 ─────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(248 250 252 / 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; }
.brand-word { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 20px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 72px 24px 56px;
  text-align: center;
  background:
    radial-gradient(900px 320px at 50% -40px, rgb(40 215 196 / 0.14), transparent 60%),
    radial-gradient(900px 320px at 85% 0%, rgb(74 168 255 / 0.12), transparent 60%),
    var(--bg);
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero-logo { width: min(480px, 100%); height: auto; }
.hero-sub { margin-top: 20px; font-size: 17px; font-weight: 600; color: var(--text-secondary); }
.hero-desc { margin: 12px auto 0; max-width: 620px; font-size: 15px; color: var(--muted); }
.hero-cta { margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hero-hint { font-size: 13px; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-primary { background: var(--shell); color: #fff; box-shadow: 0 6px 16px -6px rgb(13 23 32 / 0.4); }
.btn-primary:hover { transform: translateY(-1px); }

/* ── 应用卡片 ─────────────────────────────────────────────── */
.apps {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 24px 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 900px) {
  .apps { grid-template-columns: 1fr 1fr; }
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
}
.app-card-head { display: flex; gap: 16px; align-items: center; }
.app-icon { width: 72px; height: 72px; flex-shrink: 0; border-radius: 14px; box-shadow: var(--shadow); }
.app-head-text h2 { margin: 0; font-size: 20px; }
.tagline { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

.features { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.features li { position: relative; padding-left: 20px; font-size: 14px; color: var(--text-secondary); }
.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.85;
}

.app-actions { margin-top: 20px; }
.download-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--accent);
  color: #0d1720;
  font-weight: 700;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.download-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.download-btn .btn-label { font-size: 16px; }
.download-btn .btn-sub { font-size: 12px; font-weight: 500; opacity: 0.75; }
.download-hint { margin: 8px 0 0; text-align: center; font-size: 12px; color: var(--muted); }

/* ── changelog ────────────────────────────────────────────── */
.changelog { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 14px; }
.changelog-title { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.changelog-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.changelog-item summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  list-style: none;
  user-select: none;
}
.changelog-item summary::-webkit-details-marker { display: none; }
.changelog-item summary::before {
  content: "▸";
  color: var(--muted);
  transition: transform 0.15s ease;
  font-size: 12px;
}
.changelog-item[open] summary::before { transform: rotate(90deg); }
.changelog-item .ver { font-weight: 700; }
.changelog-item .date { color: var(--muted); font-size: 12px; margin-left: auto; }
.badge-latest {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 1px 8px;
}
.changelog-body { padding: 0 12px 10px; font-size: 13px; color: var(--text-secondary); }
.changelog-body ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.changelog-body .empty { margin: 0; color: var(--muted); }
.changelog-body .h1, .changelog-body .h2, .changelog-body .h3, .changelog-body .h4 { font-weight: 700; color: var(--text); list-style: none; margin-top: 4px; }

/* ── 历史版本折叠区（避免一长串版本列表撑高卡片） ─────────── */
.changelog-history summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  border: 1px dashed var(--border);
  border-radius: 10px;
  transition: color 0.15s ease, border-color 0.15s ease;
  list-style: none;
}
.changelog-history summary::-webkit-details-marker { display: none; }
.changelog-history summary::before {
  content: "▸";
  transition: transform 0.15s ease;
  font-size: 12px;
}
.changelog-history[open] summary::before { transform: rotate(90deg); }
.changelog-history summary:hover { color: var(--text); border-color: var(--accent); }
.changelog-history-list { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }

.notice { text-align: center; color: var(--muted); padding: 40px 20px; }
.notice-sub { font-size: 13px; }

/* ── 关于 ─────────────────────────────────────────────────── */
.about { background: var(--surface); border-top: 1px solid var(--border); padding: 56px 24px; }
.about-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.about h2 { margin: 0 0 12px; font-size: 24px; }
.about p { color: var(--muted); font-size: 15px; }
.about strong { color: var(--text); }
.about .about-note { margin-top: 16px; font-size: 13px; }

/* ── 意见反馈 ─────────────────────────────────────────────── */
.feedback { background: var(--surface); border-top: 1px solid var(--border); padding: 56px 24px; }
.feedback-inner { max-width: 640px; margin: 0 auto; }
.feedback h2 { margin: 0 0 6px; font-size: 24px; text-align: center; }
.feedback-sub { margin: 0 0 24px; text-align: center; color: var(--muted); font-size: 14px; }
.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent, #4AA8FF);
  border-radius: var(--radius);
  padding: 22px;
}
.feedback-field { display: flex; flex-direction: column; gap: 6px; }
.feedback-field label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.feedback-field select,
.feedback-field textarea,
.feedback-field input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}
.feedback-field select:focus,
.feedback-field textarea:focus,
.feedback-field input:focus {
  outline: none;
  border-color: var(--accent, #4AA8FF);
  box-shadow: 0 0 0 3px rgb(74 168 255 / 0.15);
}
.feedback-form .btn { align-self: flex-start; }
.feedback-result { margin: 0; font-size: 14px; font-weight: 600; color: #16a34a; }

/* ── 页脚 ─────────────────────────────────────────────────── */
.footer { background: var(--shell); color: #cbd5e1; padding: 40px 24px; text-align: center; }
.footer-inner { max-width: 640px; margin: 0 auto; }
.footer-mark { width: 48px; height: 48px; opacity: 0.9; }
.footer p { margin: 10px 0 0; font-size: 14px; }
.footer .footer-meta { color: #64748b; font-size: 13px; }
