/* 宋老二现灌香肠 — GEO/SEO 静态站样式
   设计原则：文字优先、真表格、真语义标签、关掉 CSS 仍是一篇完整文章。
   无任何外部字体 / 图片 / JS 请求，保证 AI 爬虫抓到的是纯文本 HTML。 */

:root {
  --bg: #faf7f2;
  --surface: #fffdf9;
  --soft: #f3ebe0;
  --ink: #241e1a;
  --muted: #6b5f55;
  --brand: #8c2b22;
  --brand-dark: #6b2019;
  --gold: #c08a3e;
  --line: #e7ddd0;
  --warn-bg: #fdf4e3;
  --warn-line: #e2b96b;
  --ok: #4b6b45;
  --radius: 10px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- 导航 ---------- */
.site-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.head-inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 66px; flex-wrap: wrap;
}
.brandmark { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brandmark strong {
  font-size: 20px; letter-spacing: .04em; color: var(--brand-dark);
}
.brandmark span { font-size: 12px; color: var(--muted); letter-spacing: .12em; }
.site-nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-size: 15px;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--brand); border-bottom-color: var(--brand);
}
.head-tel {
  font-size: 15px; font-weight: 700; color: var(--brand);
  text-decoration: none; white-space: nowrap;
}

/* ---------- 首屏 ---------- */
.hero { padding: 64px 0 52px; border-bottom: 1px solid var(--line); }
.hero.sub { padding: 46px 0 38px; }
.eyebrow {
  display: block; font-size: 13px; letter-spacing: .18em;
  color: var(--brand); font-weight: 700; margin: 0 0 16px;
}
h1 {
  font-size: clamp(30px, 4.4vw, 46px); line-height: 1.3;
  letter-spacing: -.01em; margin: 0 0 22px; font-weight: 800;
}
.lead {
  font-size: 19px; line-height: 1.9; max-width: 820px;
  margin: 0 0 26px; color: #3a312b;
}
.lead strong { color: var(--brand-dark); }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 30px; }
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 6px;
  text-decoration: none; font-size: 15px; font-weight: 700;
  border: 1px solid var(--brand);
}
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--soft); }

.chips { display: flex; gap: 10px; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.chips li {
  background: var(--soft); border: 1px solid var(--line); border-radius: 100px;
  padding: 5px 14px; font-size: 14px; color: var(--muted);
}

/* ---------- 区块 ---------- */
section { padding: 52px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
h2 {
  font-size: clamp(23px, 2.8vw, 30px); line-height: 1.4;
  margin: 0 0 10px; font-weight: 800; letter-spacing: -.01em;
}
h3 { font-size: 19px; margin: 30px 0 8px; font-weight: 700; }
p { margin: 0 0 16px; }
.section-no {
  display: block; font-size: 13px; color: var(--gold);
  letter-spacing: .14em; font-weight: 700; margin-bottom: 10px;
}

/* 结论前置短答：AI 最容易整段抽走的块 */
.answer {
  background: var(--surface);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px; margin: 0 0 24px;
  font-size: 17px; line-height: 1.85; max-width: 900px;
}
.answer p { margin: 0; }
.answer strong { color: var(--brand-dark); }

.callout {
  background: var(--warn-bg); border: 1px solid var(--warn-line);
  border-radius: var(--radius); padding: 16px 20px; margin: 24px 0;
}
.callout strong { color: #8a5b12; }
.callout p:last-child { margin-bottom: 0; }

/* 网格卡片 */
.grid { display: grid; gap: 16px; margin: 24px 0; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.card .num {
  display: block; font-size: 13px; font-weight: 800;
  color: var(--gold); letter-spacing: .1em; margin-bottom: 8px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* 真表格（不改成卡片，保证可抽取） */
.table-scroll { overflow-x: auto; margin: 20px 0 26px; }
table {
  width: 100%; border-collapse: collapse; background: var(--surface);
  font-size: 15.5px; min-width: 560px;
}
caption {
  text-align: left; font-size: 14px; color: var(--muted);
  padding: 0 0 10px; caption-side: top;
}
th, td {
  border: 1px solid var(--line); padding: 11px 14px;
  text-align: left; vertical-align: top; line-height: 1.7;
}
thead th { background: var(--soft); font-weight: 700; color: var(--brand-dark); }
tbody tr:nth-child(even) { background: #fcf9f4; }
th[scope="row"] { font-weight: 700; white-space: nowrap; background: #fbf6ef; }

/* accordion FAQ：原生 details，无 JS，爬虫可读全文 */
.faq { margin: 22px 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); background: var(--surface); }
.faq summary {
  cursor: pointer; padding: 16px 46px 16px 18px; position: relative;
  font-weight: 700; font-size: 16.5px; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 14px;
  font-size: 22px; color: var(--brand); line-height: 1.2;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { color: var(--brand-dark); }
.faq .faq-body { padding: 0 18px 18px; color: #3a312b; font-size: 16px; }
.faq .faq-body p:last-child { margin-bottom: 0; }

ul.clean, ol.clean { padding-left: 22px; margin: 14px 0 22px; }
ul.clean li, ol.clean li { margin-bottom: 8px; }

.evidence {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; margin: 14px 0;
}
.evidence .tag {
  flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--ok);
  border: 1px solid #b9cfb2; border-radius: 4px; padding: 2px 8px;
  background: #f2f7ef;
}
.evidence p { margin: 0; font-size: 15.5px; }

/* 图片占位：图到位后替换为 img，并把图内信息同步写成正文/表格 */
.img-slot { margin: 26px 0; }
.img-placeholder {
  border: 2px dashed var(--line); border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, #fffdf9, #fffdf9 12px, #f8f2e9 12px, #f8f2e9 24px);
  min-height: 150px; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 14.5px; letter-spacing: .04em; text-align: center;
  padding: 20px;
}
.img-slot figcaption {
  font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.7;
}
.img-slot img { width: 100%; height: auto; border-radius: var(--radius); display: block; }

/* 面包屑 */
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 8px; }

/* 结尾 CTA */
.endcta {
  background: var(--brand-dark); color: #fff; border-radius: var(--radius);
  padding: 32px; margin: 0 0 16px;
}
.endcta h2 { color: #fff; margin: 0 0 10px; font-size: 25px; }
.endcta p { color: #f3ded9; margin: 0 0 20px; }
.endcta .btn { background: #fff; color: var(--brand-dark); border-color: #fff; }
.endcta .btn:hover { background: var(--soft); color: var(--brand-dark); }
.endcta a.tel { color: #ffd9a8; font-weight: 800; }

/* 页脚 */
.site-foot {
  background: #2b211d; color: #d9cdc3; padding: 38px 0 30px; font-size: 14.5px;
}
.site-foot a { color: #f0c89a; }
.site-foot .foot-grid { display: grid; gap: 28px; grid-template-columns: 2fr 1fr 1fr; }
.site-foot h3 { color: #fff; font-size: 15px; margin: 0 0 10px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 6px; }
.site-foot .fine { border-top: 1px solid #4a3b34; margin-top: 28px; padding-top: 18px; color: #a99a90; }

/* ---------- 产品图册：图 + 宣传文案 + 事实短答 ---------- */
.product {
  display: grid; grid-template-columns: 300px 1fr; gap: 26px;
  align-items: start; margin: 30px 0; padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.product figure { margin: 0; }
.product .shot {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.product figcaption {
  font-size: 13px; color: var(--muted); line-height: 1.7; margin-top: 8px;
}
.product h3 { margin: 0 0 10px; font-size: 22px; }
.promo {
  background: var(--soft); border-left: 3px solid var(--gold);
  padding: 14px 18px; border-radius: 0 8px 8px 0;
  margin: 14px 0; font-size: 15.5px; line-height: 1.9;
}
.promo p { margin: 0 0 8px; }
.promo p:last-child { margin-bottom: 0; }
.promo .label {
  display: block; font-size: 12px; letter-spacing: .12em;
  color: var(--gold); font-weight: 700; margin-bottom: 6px;
}

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 22px 0; }
.gallery figure, .single-img {
  margin: 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.gallery img, .single-img img { width: 100%; height: auto; display: block; }
.gallery figcaption, .single-img figcaption {
  padding: 12px 16px; font-size: 14px; color: var(--muted); line-height: 1.75;
}
.single-img { margin: 22px 0; max-width: 760px; }

/* 延伸阅读：放在页面最下面，锚文本 + 完整 URL 均可解析 */
.links { list-style: none; padding: 0; margin: 20px 0; }
.links li {
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); padding: 14px 18px; margin-bottom: 10px;
}
.links a { font-weight: 700; font-size: 16px; }
.links .url { display: block; font-size: 12.5px; color: var(--muted); word-break: break-all; margin-top: 5px; }
.links p { margin: 5px 0 0; font-size: 14.5px; color: var(--muted); }

/* 响应式 */
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .grid.cols-3, .grid.cols-2, .site-foot .foot-grid { grid-template-columns: 1fr; }
  /* 手机端导航保持单行、可横向滑动，不再折成两行挤在一起 */
  .site-nav {
    order: 3; width: 100%; margin-left: 0; gap: 18px;
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding-bottom: 2px;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; flex: 0 0 auto; }
  .meet-grid { grid-template-columns: 1fr; gap: 22px; }
  .meet-photo { max-width: 420px; }
  .head-inner { padding: 12px 0; }
  .head-tel { margin-left: auto; }
  .hero { padding: 40px 0 34px; }
  section { padding: 38px 0; }
  body { font-size: 16px; }
  .endcta { padding: 24px; }
}

@media print {
  .site-head, .site-foot, .cta-row, .endcta { display: none; }
  body { background: #fff; }
  .faq details { break-inside: avoid; }
  .faq .faq-body { display: block; }
  .modal { display: none !important; }
}


/* ---------- 照片待补占位（原件到位后由 tools/restore_photos.py 自动还原） ---------- */
.photo-pending {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; min-height: 190px; padding: 26px 22px; text-align: center;
  background: var(--soft); border-bottom: 1px solid var(--line);
}
.photo-pending-label {
  font-size: 12px; letter-spacing: .12em; color: var(--brand);
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 3px 12px;
}
.photo-pending-desc { font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 34em; }
/* 万一图片加载失败，alt 文字仍清晰可读 */
.gallery img, .single-img img { background: var(--soft); color: var(--muted); }

/* ---------- 联系我们：二维码弹层（纯 CSS :target，无外部 JS 依赖） ---------- */
.modal {
  display: none; position: fixed; inset: 0; z-index: 90;
  align-items: center; justify-content: center; padding: 20px;
}
.modal:target { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(36,30,26,.62); }
.modal-card {
  position: relative; z-index: 1; width: min(380px, 100%);
  max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 26px 24px 22px; text-align: center;
  box-shadow: 0 22px 60px rgba(0,0,0,.3);
}
.modal-close {
  position: absolute; right: 10px; top: 6px; font-size: 28px; line-height: 1;
  color: var(--muted); text-decoration: none; padding: 4px 10px; border-radius: 6px;
}
.modal-close:hover { color: var(--brand); background: var(--soft); }
.modal-kicker { display: block; font-size: 12px; letter-spacing: .14em; color: var(--gold); font-weight: 700; }
.modal-card h2 { font-size: 22px; margin: 8px 0 14px; }
.modal-card img {
  width: 220px; max-width: 100%; height: auto; display: block;
  margin: 0 auto 14px; border: 1px solid var(--line); border-radius: 8px;
}
.modal-wx { font-size: 16px; margin: 0 0 10px; }
.modal-wx strong { color: var(--brand-dark); font-size: 21px; letter-spacing: .05em; }
.modal-hint { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0 0 12px; }
.modal-tel { font-size: 14px; margin: 0; }

/* ---------- 第二屏：认识老宋 ---------- */
.meet-grid {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 32px; align-items: start; margin-top: 24px;
}
.meet-photo {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.meet-photo img { width: 100%; height: auto; display: block; }
.meet-photo figcaption { padding: 12px 16px; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.meet-text p { font-size: 16px; }
.meet-text .answer { margin-bottom: 16px; }
.meet-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 14px; }
.meet-tel { font-size: 15px; }

/* ---------- 页脚联系条 ---------- */
.foot-contact { margin: 18px 0 0; font-size: 14px; }
.foot-contact strong { color: #ffd9a8; letter-spacing: .04em; }

/* ---------- 注册商标 ---------- */
.tm-badge {
  display: flex; align-items: center; gap: 14px; margin: 22px 0 0;
  padding: 12px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.tm-badge img {
  flex: 0 0 auto; width: 76px; height: 76px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.tm-badge p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
.tm-badge strong { color: var(--brand-dark); font-size: 15px; }
.tm-cert { max-width: 520px; }
.tm-logo-inline { display: flex; align-items: center; gap: 14px; margin: 18px 0; }
.tm-logo-inline img { width: 96px; height: 96px; border: 1px solid var(--line); border-radius: 8px; }
.tm-logo-inline figcaption { font-size: 14px; color: var(--muted); }
