/* =========================================================
   九九豆腐脑 · 网站样式
   设计方向：简约 · 突出川味地方美食 · 强调招商加盟
   响应式：桌面 / 平板 / 手机 自适应
   ========================================================= */

:root {
  /* 色彩系统 —— 米白底 + 墨色字 + 豆酱棕主色 + 辣椒红强调 */
  --bg: #FBF8F3;
  --bg-alt: #F3ECE2;
  --surface: #FFFFFF;
  --ink: #2B2620;
  --ink-soft: #6E655B;
  --muted: #9A9086;
  --line: #E7DECF;
  --soy: #6B3F2B;          /* 主品牌色（豆酱棕） */
  --soy-deep: #4E2C1D;
  --chili: #D2442E;        /* 强调色（辣椒红，用于招商/CTA） */
  --chili-deep: #B23622;
  --gold: #C9A24B;         /* 辅助暖金（标签/徽章） */

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 30px rgba(43, 38, 32, .08);
  --shadow-sm: 0 3px 14px rgba(43, 38, 32, .06);
  --maxw: 1180px;
  --nav-h: 68px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 .6em;
  font-weight: 700;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

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

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 243, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Noto Serif SC", serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--soy-deep);
}
.brand .logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 38%, var(--soy) 39% 70%, var(--soy-deep) 71%);
  display: grid; place-items: center;
  color: #fff; font-size: 15px; font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.brand .en { font-size: 11px; letter-spacing: 2px; color: var(--muted); font-family: "Noto Sans SC", sans-serif; font-weight: 400; display: block; margin-top: -2px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--ink-soft);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--soy); background: var(--bg-alt); }
.nav-links a.active { color: var(--soy-deep); font-weight: 600; }

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
  font-family: inherit;
}
.btn-primary { background: var(--chili); color: #fff; box-shadow: 0 6px 18px rgba(210, 68, 46, .28); }
.btn-primary:hover { background: var(--chili-deep); transform: translateY(-1px); }
.btn-soy { background: var(--soy); color: #fff; }
.btn-soy:hover { background: var(--soy-deep); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--soy); color: var(--soy); }
.btn-lg { padding: 14px 30px; font-size: 16px; }

.nav-cta { margin-left: 8px; }
.nav-cta .btn { color: var(--chili) !important; background: #fff; border-color: var(--line); box-shadow: none; }
.nav-cta .btn:hover { color: #fff !important; background: var(--chili); border-color: var(--chili); }

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute; left: 11px;
  width: 20px; height: 2px; background: var(--ink);
  transition: transform .25s, opacity .2s;
}
.menu-toggle span { top: 20px; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle.open span { background: transparent; }
.menu-toggle.open span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 通用区块 ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px; letter-spacing: 3px;
  color: var(--chili); font-weight: 600;
  text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 { font-size: 34px; }
.section-head p { font-size: 16px; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 84px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: 52px;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--chili); }
.hero .lead { font-size: 18px; max-width: 520px; }
.hero .tagline {
  font-family: "Noto Serif SC", serif;
  font-size: 17px; color: var(--soy-deep);
  border-left: 3px solid var(--gold);
  padding-left: 16px; margin: 26px 0 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.4;
  background: var(--bg-alt);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(43, 38, 32, .82); color: #fff;
  padding: 10px 16px; border-radius: 12px;
  font-size: 14px; backdrop-filter: blur(4px);
}
.hero-badge b { color: var(--gold); }

/* 数据条 */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-top: 56px;
  border-top: 1px solid var(--line); padding-top: 36px;
}
.stat .num { font-family: "Noto Serif SC", serif; font-size: 34px; color: var(--soy); font-weight: 700; }
.stat .lbl { font-size: 14px; color: var(--muted); }

/* ---------- 卡片网格 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-alt); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 22px 22px 26px; }
.card .body h3 { font-size: 20px; margin-bottom: 8px; }
.card .body p { font-size: 14.5px; margin: 0; }

/* 特色美食 */
.food-card .price { color: var(--chili); font-weight: 700; font-family: "Noto Serif SC", serif; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag {
  font-size: 12.5px; color: var(--soy);
  background: #F4ECE4; border: 1px solid #EAD9C9;
  padding: 3px 10px; border-radius: 999px;
}

/* 优势列表 */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature {
  display: flex; gap: 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.feature .ic {
  flex: 0 0 46px; height: 46px; border-radius: 12px;
  background: #F4ECE4; color: var(--soy);
  display: grid; place-items: center; font-size: 22px;
}
.feature h4 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; font-size: 14.5px; }

/* 招商加盟突出区 */
.franchise-cta {
  background: linear-gradient(135deg, var(--soy-deep), var(--soy));
  color: #fff; border-radius: var(--radius);
  padding: 56px; text-align: center; position: relative; overflow: hidden;
}
.franchise-cta::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(210,68,46,.5), transparent 70%);
}
.franchise-cta h2 { color: #fff; font-size: 32px; position: relative; }
.franchise-cta p { color: rgba(255,255,255,.85); position: relative; }
.franchise-cta .btn { position: relative; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--ink); font-weight: 600; }
.field .req { color: var(--chili); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--soy);
  box-shadow: 0 0 0 3px rgba(107, 63, 43, .12);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.form-msg {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm);
  font-size: 14.5px; display: none;
}
.form-msg.ok { display: block; background: #EAF5EC; color: #2E7D45; border: 1px solid #BFE3C8; }
.form-msg.err { display: block; background: #FCEAE7; color: var(--chili-deep); border: 1px solid #F2C7BD; }

/* 两栏页面布局 */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.prose h3 { font-size: 22px; margin-top: 28px; }
.prose p { font-size: 16px; }
.contact-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm);
}
.contact-card h3 { margin-top: 0; }
.contact-row { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-row .k { flex: 0 0 84px; color: var(--muted); font-size: 14px; }
.contact-row .v { color: var(--ink); font-size: 15px; }

/* 面包屑/页头 */
.page-hero {
  background: var(--bg-alt);
  padding: 64px 0 52px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: 40px; margin-bottom: 10px; }
.page-hero p { max-width: 680px; font-size: 16px; margin: 0; }

/* 时间线（发展历程） */
.timeline { border-left: 2px solid var(--line); padding-left: 28px; margin-top: 12px; }
.timeline li { position: relative; list-style: none; margin-bottom: 22px; }
.timeline li::before {
  content: ""; position: absolute; left: -35px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--soy); border: 3px solid var(--bg-alt);
}
.timeline .yr { font-family: "Noto Serif SC", serif; font-weight: 700; color: var(--soy); }

/* 规则/列表 */
.rule-list { counter-reset: r; padding: 0; margin: 0; }
.rule-list li {
  list-style: none; position: relative;
  padding: 16px 0 16px 52px; border-bottom: 1px dashed var(--line);
}
.rule-list li::before {
  counter-increment: r; content: counter(r);
  position: absolute; left: 0; top: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: #F4ECE4; color: var(--soy);
  display: grid; place-items: center; font-weight: 700; font-family: "Noto Serif SC", serif;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--soy-deep);
  color: rgba(255,255,255,.8);
  padding: 18px 0;
  margin-top: 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
}
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: var(--gold); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; font-size: 14.5px; }
.footer-brand { font-family: "Noto Serif SC", serif; font-size: 24px; color: #fff; margin-bottom: 12px; }
.footer-bottom {
  border-top: none;
  margin-top: 0; padding-top: 0;
  font-size: 13px; color: rgba(255,255,255,.55);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 42px; }
  .hero-media { max-width: 520px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .feature-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 8px; border-radius: 8px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { display: block; text-align: center; }
  .menu-toggle { display: block; }

  .section { padding: 60px 0; }
  .section-head h2 { font-size: 27px; }
  .hero { padding: 60px 0 48px; }
  .hero h1 { font-size: 33px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .card-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .franchise-cta { padding: 38px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .page-hero h1 { font-size: 30px; }
  .wrap { padding: 0 18px; }
}

/* 可访问性：减少动画 */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* SEO:BREADCRUMB 由 scripts/seo.mjs 生成，请勿手工修改 */
.seo-breadcrumb { background:#faf7f1; border-bottom:1px solid rgba(0,0,0,.06); font-size:13px; color:#7a6a55; }
.seo-breadcrumb .wrap { display:flex; align-items:center; gap:10px; padding-top:12px; padding-bottom:12px; }
.seo-breadcrumb a { color:#8a5a20; text-decoration:none; }
.seo-breadcrumb a:hover { text-decoration:underline; }
.seo-breadcrumb [aria-current="page"] { color:#4a3a28; }

.seo-footer-links { padding:16px 0; margin-bottom:14px; border-bottom:1px solid rgba(255,255,255,.14); }
.seo-footer-links .wrap { display:flex; flex-wrap:wrap; gap:10px 22px; }
.seo-footer-links a { color:rgba(255,255,255,.8); font-size:13px; text-decoration:none; }
.seo-footer-links a:hover, .seo-footer-links a[aria-current="page"] { color:#e5b96b; }
