/* =========================================================
   语信电脑管家 · 官网样式
   主色与客户端一致：品牌蓝 #2f6feb
   ========================================================= */

:root {
  --accent: #2f6feb;
  --accent-dark: #1f56c4;
  --accent-soft: rgba(47, 111, 235, 0.1);
  --bg: #f5f7fb;
  --text: #16202e;
  --text-2: #64748b;
  --border: rgba(15, 23, 42, 0.08);
  --card-bg: #ffffff;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px -14px rgba(15, 23, 42, 0.18);
  --radius: 14px;
  --radius-lg: 20px;
  --font: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(47, 111, 235, 0.6);
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); }
.btn-lg { padding: 13px 26px; font-size: 16px; border-radius: 14px; }

/* ---------- 导航 ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.brand-logo { width: 32px; height: 32px; border-radius: 9px; }
.brand-name { font-size: 17px; }
.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
  color: var(--text-2);
}
.nav-links a:hover { color: var(--accent); }
.nav-cta { margin-left: 8px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #16315e 0%, #2456a8 55%, #2f6feb 100%);
  color: #fff;
  overflow: hidden;
}
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.badge {
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.hero-title {
  font-size: 42px;
  line-height: 1.2;
  margin: 0 0 18px;
  letter-spacing: 0.5px;
}
.hero-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
  margin: 0 0 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-visual { display: flex; justify-content: center; }
.hero-logo {
  width: 220px;
  height: 220px;
  border-radius: 48px;
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.5);
}

/* ---------- 通用区块 ---------- */
.section { max-width: 1120px; margin: 0 auto; padding: 64px 24px; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-title { font-size: 28px; margin: 0 0 10px; }
.section-title.left { text-align: left; }
.section-sub { color: var(--text-2); margin: 0; }

.grid { display: grid; gap: 22px; }
.features-grid { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ---------- 功能卡 ---------- */
.feature-card { padding: 26px 24px; }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--text-2); font-size: 15px; }

/* ---------- 下载卡 ---------- */
.section-download { padding-top: 8px; }
.download-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  padding: 34px 32px;
  align-items: center;
}
.download-meta { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.download-meta li { display: flex; gap: 14px; font-size: 15px; }
.meta-label { width: 88px; color: var(--text-2); }
.meta-value { font-weight: 600; }
.download-action { text-align: center; }
.download-note { color: var(--text-2); font-size: 13px; margin: 14px 0 0; }

/* ---------- 更新日志 ---------- */
.changelog { display: grid; gap: 18px; max-width: 820px; margin: 0 auto; }
.log-entry {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.log-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; }
.log-version { font-weight: 700; color: var(--accent); font-size: 16px; }
.log-date { color: var(--text-2); font-size: 14px; }
.log-list { margin: 0; padding-left: 20px; color: var(--text-2); }
.log-list li { margin: 6px 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  list-style: none;
  position: relative;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--accent);
}
.faq-item[open] summary::after { content: "−"; }
.faq-body { padding: 0 22px 18px; color: var(--text-2); }
.faq-body p { margin: 0; }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 40px;
  background: #111826;
  color: #c6d0de;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 24px;
  text-align: center;
}
.footer-brand { justify-content: center; margin-bottom: 14px; color: #fff; }
.footer-copy { margin: 0 0 6px; font-size: 14px; }
.footer-note { margin: 0; font-size: 13px; color: #8a97a8; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; padding: 52px 24px; }
  .hero-visual { order: -1; }
  .hero-logo { width: 150px; height: 150px; }
  .download-card { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 32px; }
  .section { padding: 44px 20px; }
  .btn-lg { width: 100%; }
}
