/* ===== 投石官网 style.css · A 调性设计系统 ===== */

:root {
  --bg: #F5F0E8;
  --bg-card: #FFFFFF;
  --text: #2D2926;
  --muted: #8A8580;
  --accent: #2A7F7F;
  --warm: #C97B63;
  --border: #DDD5C8;
  --title-size: clamp(1.5rem, 5vw, 2.2rem);
  --body-size: 14px;
  --small-size: 12px;
  --content-gap: clamp(0.75rem, 2vw, 1.25rem);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: var(--body-size);
}

h1, h2, h3 { font-family: 'Noto Serif SC', serif; line-height: 1.3; font-weight: 700; }

a { color: var(--accent); text-decoration: none; }

.container { max-width: 960px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }

/* ===== 导航 ===== */
.site-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px clamp(1rem, 4vw, 2rem);
  background: var(--bg); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.site-nav .logo { font-family: 'Noto Serif SC', serif; font-weight: 700; font-size: 18px; }
.site-nav .logo small { color: var(--muted); font-weight: 400; font-size: 11px; margin-left: 6px; }
.site-nav ul { display: flex; gap: 22px; list-style: none; font-size: 13px; }
.site-nav ul a { color: var(--text); }
.site-nav ul a:hover { color: var(--accent); }

/* ===== Section 通用 ===== */
.section { padding: clamp(2rem, 6vw, 3.5rem) 0; border-bottom: 1px dashed var(--border); }
.section-h { font-size: var(--title-size); margin-bottom: 6px; }
.lead { font-size: 14px; color: var(--muted); margin-bottom: var(--content-gap); line-height: 1.7; }

/* ===== 按钮 ===== */
.btn { display: inline-block; padding: 11px 22px; border-radius: 4px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: opacity .2s; }
.btn:hover { opacity: .88; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-ghost small { color: var(--muted); font-weight: 400; margin-left: 4px; font-size: 10px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== 卡片 ===== */
.card { background: var(--bg-card); border-radius: 6px; padding: 16px; }
.card-accent { border-left: 3px solid var(--accent); }
.card-warm { border-left: 3px solid var(--warm); }

/* ===== 三指标 / 能力卡 网格 ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.metric-v { font-size: 18px; font-weight: 700; color: var(--accent); font-family: 'Noto Serif SC', serif; margin-bottom: 4px; }
.metric-l { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ===== L0-L8 时间轴 ===== */
.lifeline-wrap { background: var(--bg-card); border-radius: 8px; padding: 16px 12px; border: 1px solid var(--border); margin-bottom: 18px; }
.lifeline-wrap .ll-title { font-size: 11px; color: var(--accent); font-weight: 600; margin-bottom: 10px; letter-spacing: 1px; }
.lifeline { display: flex; align-items: flex-start; justify-content: space-between; }
.ll-node { display: flex; flex-direction: column; align-items: center; flex: 1; }
.ll-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.ll-node.hot .ll-dot { border-color: var(--accent); background: var(--accent); color: #fff; width: 28px; height: 28px; box-shadow: 0 0 0 4px rgba(42,127,127,.12); }
.ll-node.warm .ll-dot { border-color: var(--warm); color: var(--warm); }
.ll-label { font-size: 9px; color: var(--muted); text-align: center; }
.ll-node.hot .ll-label { color: var(--accent); font-weight: 600; }

/* ===== 案例截图占位 ===== */
.shot { height: 90px; border: 1.5px dashed var(--border); border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg,#faf7f1,#faf7f1 6px,#f5f0e8 6px,#f5f0e8 12px); color: var(--muted); font-size: 10px; gap: 4px; margin-top: 10px; }

/* ===== Footer ===== */
.site-footer { background: #2D2926; color: #999; padding: 28px 0; font-size: 11px; text-align: center; line-height: 2; }
.site-footer a { color: #777; }
.site-footer a:hover { color: #aaa; }

/* ===== 响应式 ===== */
@media (max-width: 700px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .lifeline { flex-wrap: wrap; gap: 10px; }
  .site-nav ul { gap: 14px; font-size: 12px; }
}
