/* XHS_Download 官网 —— 浅色卡片风，与桌面应用视觉一致 */
:root {
  --bg: #f5f7fb;
  --bg-alt: #eef2f9;
  --surface: #ffffff;
  --border: #e3e8f0;
  --text: #1c2333;
  --text-muted: #5c6678;
  --primary: #2b5cff;
  --primary-strong: #1f47d6;
  --primary-soft: #eaf0ff;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(28 35 51 / 0.05), 0 8px 24px rgb(28 35 51 / 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 760px;
}

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(255 255 255 / 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
}

.brand-icon {
  width: 26px;
  height: 26px;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-download {
  margin-left: 4px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.1s;
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-small {
  padding: 7px 14px;
  font-size: 14px;
}

.btn-large {
  padding: 13px 26px;
  font-size: 16px;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(60% 90% at 15% 10%, rgb(43 92 255 / 0.1), transparent 60%),
    radial-gradient(50% 80% at 85% 20%, rgb(43 92 255 / 0.08), transparent 55%),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  padding: 88px 24px 72px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 52px);
  line-height: 1.22;
  letter-spacing: -0.5px;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero-desc {
  max-width: 620px;
  margin: 18px auto 30px;
  color: var(--text-muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-alt {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-muted);
}

.hero-alt a {
  color: var(--primary);
  text-decoration: none;
}

.hero-alt a:hover {
  text-decoration: underline;
}

.hero-alt span {
  margin: 0 4px;
}

.hero-points {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  transform: translateY(-50%);
}

/* ---------- 区块通用 ---------- */
.section {
  padding: 76px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  text-align: center;
  font-size: 30px;
  letter-spacing: -0.3px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin: 10px 0 44px;
}

/* ---------- 功能卡片 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 16px;
}

.card-icon svg {
  width: 23px;
  height: 23px;
}

.card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.card p {
  font-size: 14.5px;
  color: var(--text-muted);
}

/* ---------- 下载卡片 ---------- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.download-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.download-head svg {
  width: 34px;
  height: 34px;
  color: var(--primary);
  flex: none;
}

.download-head h3 {
  font-size: 17px;
}

.download-head p {
  font-size: 13px;
  color: var(--text-muted);
}

.download-btn {
  width: 100%;
  padding: 11px 0;
  font-size: 15px;
}

.download-extra {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}

a.download-extra:hover {
  color: var(--primary);
}

.download-check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.download-check svg {
  width: 17px;
  height: 17px;
  color: var(--primary);
}

.download-check a {
  color: var(--primary);
}

/* ---------- 更新日志 ---------- */
.changelog {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.changelog-loading {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.release {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.release-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.release-version {
  font-size: 18px;
  font-weight: 700;
}

.release-tag {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

.release-date {
  font-size: 13px;
  color: var(--text-muted);
}

.release ul {
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 14.5px;
}

.release li + li {
  margin-top: 4px;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 20px;
  font-weight: 500;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.faq-list code {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--bg-alt);
  font-size: 13px;
}

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 34px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.footer p + p {
  margin-top: 6px;
}

.footer-copy {
  color: #9aa3b5;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-download {
    margin-left: auto;
  }

  .hero-inner {
    padding: 60px 24px 52px;
  }

  .section {
    padding: 56px 0;
  }

  .hero-points {
    gap: 12px;
  }
}
