:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --orange: #FF7A2E;
  --orange-dark: #e8661c;
  --navy: #1B3A6B;
  --text: #1f2733;
  --muted: #6b7280;
  --border: #e5e8ee;
  --line: #eef1f5;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* 顶部导航 */
.nav {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.nav-logo img { height: 30px; display: block; }
.nav-links { display: flex; gap: 20px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-size: 14px; text-decoration: none; }
.nav-links a:hover { color: var(--orange); }
.nav-link { color: var(--muted); font-size: 14px; text-decoration: none; }
.brand { font-weight: 700; color: var(--navy); font-size: 17px; }
.brand span { color: var(--orange); }

/* Hero */
.hero {
  background: linear-gradient(135deg, #ffffff 0%, #f2f6fc 100%);
  padding: 56px 0 44px;
}
.hero-tag {
  display: inline-block; background: #fff1e8; color: var(--orange-dark);
  font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: 32px; line-height: 1.35; color: var(--navy); margin-bottom: 14px; }
.hero h1 .hl { color: var(--orange); }
.hero p { color: var(--muted); font-size: 16px; max-width: 660px; }
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.hero-tags .tag { font-size: 13px; padding: 5px 12px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; }
.hero-stat { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px; text-align: center; }
.hero-stat .num { font-size: 26px; font-weight: 700; color: var(--navy); }
.hero-stat .label { font-size: 13px; color: var(--muted); margin-top: 4px; }
.platforms { margin-top: 18px; font-size: 13px; color: var(--muted); }
.platforms b { color: var(--text); font-weight: 600; }

/* 通用区块 */
.section { padding: 44px 0; }
.section-tag { color: var(--orange); font-size: 13px; font-weight: 600; letter-spacing: .05em; margin-bottom: 8px; }
.section-title { font-size: 24px; color: var(--navy); margin-bottom: 10px; }
.section-sub { color: var(--muted); font-size: 15px; max-width: 680px; margin-bottom: 24px; }

/* 卡片网格 */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.info-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px; box-shadow: 0 6px 24px rgba(27, 58, 107, 0.06);
}
.info-card .card-title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.info-card .card-desc { font-size: 14px; color: var(--muted); }
.info-card .card-no { font-size: 13px; color: var(--orange); font-weight: 700; margin-bottom: 6px; }

/* 痛点 */
.pain-card .card-title { display: flex; align-items: center; gap: 8px; }

/* GEO 对比 */
.compare-card.hl { border-color: var(--orange); background: #fffaf6; }
.compare-label { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.compare-card.hl .compare-label { color: var(--orange-dark); font-weight: 600; }
.compare-points { list-style: none; margin-top: 12px; }
.compare-points li { font-size: 14px; color: var(--muted); padding-left: 18px; position: relative; margin-bottom: 8px; }
.compare-points li::before { content: "·"; position: absolute; left: 4px; color: var(--muted); }
.compare-card.hl .compare-points li { color: var(--text); }
.compare-card.hl .compare-points li::before { color: var(--orange); }

/* 场景卡片 */
.scene-card .scene-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.scene-no { font-size: 13px; color: var(--orange); font-weight: 700; }
.scene-name { font-size: 16px; font-weight: 700; color: var(--navy); }
.scene-alias { font-size: 13px; color: var(--orange-dark); margin-bottom: 8px; }
.scene-desc { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.scene-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.scene-q { font-size: 13px; color: var(--text); margin-bottom: 4px; }
.scene-note { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* 流程步骤 */
.flow-card { position: relative; }
.step-no { font-size: 13px; color: var(--orange); font-weight: 700; letter-spacing: .05em; margin-bottom: 8px; }
.flow-deliver { margin-top: 10px; font-size: 13px; color: var(--navy); background: #f1f4f8; border-radius: 8px; padding: 8px 10px; }
.flow-loop { margin-top: 22px; text-align: center; color: var(--muted); font-size: 14px; }

/* 原则底线 */
.prin-bottom {
  margin-top: 20px; background: #f8fafc; border-left: 3px solid var(--orange);
  border-radius: 10px; padding: 16px 18px; font-size: 14px; color: var(--text);
}
.prin-bottom b { color: var(--navy); }

/* FAQ */
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%; background: none; border: none; text-align: left; padding: 18px 20px;
  font-size: 15px; font-weight: 600; color: var(--navy); cursor: pointer; display: flex;
  justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q .arrow { color: var(--orange); transition: transform .2s; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 20px 18px; font-size: 14px; color: var(--muted); }
.faq-item.open .faq-a { display: block; }

/* CTA */
.cta-section { text-align: center; padding: 56px 0; }
.cta-section h2 { font-size: 26px; color: var(--navy); margin-bottom: 12px; }
.cta-section p { color: var(--muted); margin-bottom: 22px; }
.cta-small { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* 表单 */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--text); font-weight: 600; }
.field label .req { color: var(--orange); }
.field input, .field textarea {
  height: 44px; padding: 0 14px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 15px; background: #fbfcfe; color: var(--text);
}
.field input:focus { outline: none; border-color: var(--orange); background: #fff; }

/* 语句列表 */
.sentence-row { display: flex; gap: 10px; margin-bottom: 12px; }
.sentence-row input { flex: 1; }
.btn-remove {
  width: 44px; border: 1px solid var(--border); background: #fff; border-radius: 10px;
  color: var(--muted); cursor: pointer; font-size: 18px;
}
.btn-remove:hover { color: var(--orange); border-color: var(--orange); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 24px; border: none; border-radius: 10px;
  font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-primary:disabled { background: #f3b98f; cursor: not-allowed; }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-add { background: #fff7f1; color: var(--orange); border: 1px dashed var(--orange); }
.form-actions { margin-top: 22px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.tip { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* 统计卡（结果页） */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.stat {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 22px; text-align: center;
}
.stat .num { font-size: 30px; font-weight: 700; color: var(--navy); }
.stat .label { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* 结果卡片 */
.result-item {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; margin-bottom: 16px;
}
.result-item .q { font-weight: 600; margin-bottom: 10px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.tag {
  font-size: 12px; padding: 3px 10px; border-radius: 999px; background: #f1f4f8; color: var(--muted);
}
.tag.on { background: #fff1e8; color: var(--orange-dark); }
.tag.good { background: #ecf7ef; color: #2f9e57; }
.tag.bad { background: #fdecec; color: #d64545; }
.answer {
  margin-top: 10px; padding: 14px; background: #f8fafc; border-radius: 10px;
  font-size: 14px; color: var(--text); white-space: pre-wrap; display: none;
}
.answer.open { display: block; }
.toggle { background: none; border: none; color: var(--navy); font-size: 13px; cursor: pointer; padding: 0; }
.toggle:hover { color: var(--orange); }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(20, 30, 45, 0.45);
  display: none; align-items: center; justify-content: center; z-index: 50;
}
.modal-mask.open { display: flex; }
.modal {
  background: #fff; border-radius: 16px; padding: 28px; width: 360px; max-width: calc(100vw - 40px);
}
.modal h3 { font-size: 17px; margin-bottom: 6px; color: var(--navy); }
.modal p { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.modal .field { margin-bottom: 16px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; }

/* 页脚 */
.footer {
  margin-top: 48px; padding: 28px 0; border-top: 1px solid var(--line);
  text-align: center; color: var(--muted); font-size: 14px;
}
.footer-logo { height: 32px; margin-bottom: 10px; }
.footer .contact { color: var(--navy); font-weight: 600; margin-bottom: 6px; }
.footer .contact a { color: var(--orange); text-decoration: none; }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }

@media (max-width: 860px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .hero h1 { font-size: 24px; }
  .section-title { font-size: 20px; }
  .card, .info-card { padding: 20px; }
}
