/* 时约云官网样式
   品牌取值与 docs/brand/shiyueyun-brand-guideline.md 一致：
   ink #171A21 / 纸白 #F7F8FA / 暗房红 #B94F3A / 次要字 #667178 */

:root {
  --ink: #171a21;
  --ink-soft: #2b3038;
  --muted: #667178;
  --line: #e4e7eb;
  --paper: #f7f8fa;
  --white: #ffffff;
  --red: #b94f3a;
  --red-dark: #9e3f2c;
  --radius: 12px;
  --wrap: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- 页头 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(8px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { display: block; height: 40px; width: auto; }

.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }

.site-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
}

.site-nav a:hover { background: var(--paper); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--red); background: #fdf3f0; }

/* ---------- 通用区块 ---------- */

.section { padding: 72px 0; }
.section--paper { background: var(--paper); }
.section--tight { padding: 48px 0; }

.section-title { margin: 0 0 10px; font-size: 30px; line-height: 1.35; letter-spacing: -.01em; }
.section-lead { margin: 0 0 40px; max-width: 760px; color: var(--muted); font-size: 16px; }

/* ---------- 首屏 ---------- */

.hero { padding: 84px 0 72px; background: linear-gradient(180deg, var(--paper) 0%, #fff 100%); }

.hero h1 { margin: 0 0 18px; font-size: 42px; line-height: 1.28; letter-spacing: -.02em; }

.hero p { margin: 0 0 32px; max-width: 720px; color: var(--muted); font-size: 18px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); text-decoration: none; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--paper); text-decoration: none; }

/* ---------- 卡片 ---------- */

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.card h3 { margin: 0 0 10px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.card li { margin-bottom: 4px; }

.card--flat { background: var(--paper); border-color: transparent; }

/* ---------- 正文排版 ---------- */

.prose { max-width: 820px; }
.prose h2 { margin: 40px 0 12px; font-size: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 10px; font-size: 18px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }

/* ---------- 表格 ---------- */

.facts { width: 100%; border-collapse: collapse; font-size: 15px; }
.facts th, .facts td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.facts th { width: 190px; color: var(--muted); font-weight: 500; background: var(--paper); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts-table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

/* ---------- 流程 ---------- */

.steps { counter-reset: step; display: grid; gap: 16px; }
.step { position: relative; padding: 22px 24px 22px 68px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 22px; top: 22px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-size: 15px; font-weight: 700; line-height: 30px; text-align: center;
}
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- 页脚 ---------- */

.site-footer { background: var(--ink); color: #c9ced6; padding: 56px 0 28px; font-size: 14px; }
.site-footer a { color: #e7eaee; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { margin: 0 0 12px; color: #fff; font-size: 15px; }
.footer-grid p { margin: 0 0 8px; line-height: 1.8; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center;
  color: #8f979f; font-size: 13px;
}
.footer-bottom a { color: #8f979f; }

/* ---------- 窄屏 ---------- */

@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 34px; }
}

@media (max-width: 640px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
  .site-nav { width: 100%; }
  .site-nav a { padding: 6px 10px; font-size: 14px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 28px; }
  .section-title { font-size: 24px; }
  .facts th { width: auto; }
  .facts th, .facts td { display: block; padding: 8px 14px; border-bottom: 0; }
  .facts td { padding-top: 0; }
}
