/* ============================================================
   公义郭师卤味 · 官网样式
   设计基调：川西小镇卤味老店的夜晚——卤汤深棕为底，
   辣椒红做精神气，糖色金做点缀，油纸色衬菜品。
   ============================================================ */

:root {
  /* 色板 */
  --ink-deep: #1f0f05;      /* 卤汤深棕：页面底色 */
  --lu-brown: #341a09;      /* 深棕卡片 */
  --lu-brown-2: #46240e;    /* 卡片悬浮 */
  --tang-red: #c2372a;      /* 辣椒红：印章、按钮 */
  --tang-red-deep: #8f231a;
  --pi-gold: #e3a83f;       /* 糖色金：点缀、标题 */
  --paper: #f4e8d0;         /* 油纸色：亮部段落 */
  --paper-line: #dcc9a2;
  --ink-on-paper: #38220f;  /* 油纸上的深棕字 */
  --text: #f0e2c8;          /* 深底上的浅色字 */
  --text-dim: #b99f7c;      /* 次级文字 */

  /* 字体（含日韩回退） */
  --font-display: "Kaiti SC", "STKaiti", "KaiTi", "DFKai-SB", "TW-Kai", "Noto Serif SC", "Hiragino Mincho ProN", "Yu Mincho", "Nanum Myeongjo", serif;
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Microsoft YaHei", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Malgun Gothic", "Noto Sans KR", sans-serif;

  --radius: 14px;
  --maxw: 1080px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

body {
  font-family: var(--font-body);
  background: var(--ink-deep);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(31, 15, 5, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(227, 168, 63, 0.25);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--tang-red);
  color: #fdf3e0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px rgba(253, 243, 224, 0.55);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--text);
}

.topbar-tel {
  color: var(--ink-deep);
  background: var(--pi-gold);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
}

.topbar-tels { display: flex; gap: 8px; }

/* ---------- 语言切换 ---------- */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-switch { display: flex; gap: 4px; }

.lang-switch a {
  padding: 4px 9px;
  font-size: 12px;
  letter-spacing: 0.5px;
  border-radius: 999px;
  color: var(--text-dim);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(240, 226, 200, 0.3);
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switch a.lang-on {
  background: var(--pi-gold);
  color: var(--ink-deep);
  font-weight: 700;
  box-shadow: none;
}

/* 窄屏：切换器独立成行、居中，避免和电话按钮挤在一起错位 */
@media (max-width: 719px) {
  .topbar { flex-wrap: wrap; row-gap: 6px; }
  .topbar-right { display: contents; }
  .brand { order: 1; }
  .topbar-tels { order: 2; margin-left: auto; }
  .lang-switch { order: 3; flex-basis: 100%; justify-content: center; }
}

/* 超窄屏：电话按钮只留图标，保证第一行放得下 */
@media (max-width: 479px) {
  .tel-txt { display: none; }
  .topbar-tel { padding: 8px 12px; }
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  padding: 72px 20px 40px;
  text-align: center;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(194, 55, 42, 0.16) 0%, rgba(194, 55, 42, 0) 55%),
    radial-gradient(90% 60% at 50% 110%, rgba(227, 168, 63, 0.10) 0%, rgba(227, 168, 63, 0) 60%),
    var(--ink-deep);
  overflow: hidden;
}

.hero-inner { position: relative; }

/* 红印章：本页签名元素 */
.seal {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  margin-bottom: 18px;
  background: var(--tang-red);
  border-radius: 10px;
  transform: rotate(-6deg);
  box-shadow: inset 0 0 0 3px rgba(253, 243, 224, 0.7), inset 0 0 0 6px var(--tang-red), inset 0 0 0 7px rgba(253, 243, 224, 0.45);
  animation: seal-in 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.seal span {
  font-family: var(--font-display);
  color: #fdf3e0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 2px;
}

@keyframes seal-in {
  from { opacity: 0; transform: rotate(-20deg) scale(1.6); }
  to   { opacity: 1; transform: rotate(-6deg) scale(1); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 12vw, 92px);
  font-weight: 700;
  letter-spacing: 10px;
  text-indent: 10px; /* 抵消末字字距 */
  color: var(--text);
  text-shadow: 0 4px 24px rgba(227, 168, 63, 0.25);
}

.hero-sub {
  margin-top: 10px;
  font-size: 15px;
  color: var(--pi-gold);
  letter-spacing: 1px;
}

.hero-tagline {
  margin: 22px auto 0;
  max-width: 420px;
  font-family: var(--font-display);
  font-size: clamp(19px, 4.6vw, 24px);
  line-height: 1.7;
  color: var(--text-dim);
}

.hero-cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active { transform: scale(0.97); }

.btn-red {
  background: var(--tang-red);
  color: #fdf3e0;
  box-shadow: 0 6px 18px rgba(194, 55, 42, 0.35);
}

.btn-red:hover { background: #d64436; }

.btn-gold {
  background: var(--pi-gold);
  color: var(--ink-deep);
  box-shadow: 0 6px 18px rgba(227, 168, 63, 0.28);
}

.btn-gold:hover { background: #f0b955; }

.btn-outline {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px rgba(240, 226, 200, 0.5);
}

.btn-outline:hover { background: rgba(240, 226, 200, 0.08); }

/* ---------- LED 走马灯招牌 ---------- */
.led {
  margin-top: 48px;
  border-top: 1px solid rgba(227, 168, 63, 0.4);
  border-bottom: 1px solid rgba(227, 168, 63, 0.4);
  background: var(--tang-red-deep);
  overflow: hidden;
}

.led-track {
  display: inline-flex;
  white-space: nowrap;
  padding: 9px 0;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 2px;
  color: #ffe9b0;
  animation: led-scroll 28s linear infinite;
}

@keyframes led-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- 段落骨架 ---------- */
.sec { padding: 72px 0; }

.sec-dark  { background: var(--ink-deep); color: var(--text); }
.sec-brown { background: #2a1406; color: var(--text); }
.sec-paper { background: var(--paper); color: var(--ink-on-paper); }

.sec-eyebrow {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 6px;
  color: var(--tang-red);
}

.sec-paper .sec-eyebrow { color: var(--tang-red); }
.sec-dark .sec-eyebrow, .sec-brown .sec-eyebrow { color: var(--pi-gold); }

.sec-title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 700;
  letter-spacing: 3px;
  position: relative;
  display: inline-block;
}

.sec-title::after {
  content: "";
  display: block;
  margin-top: 10px;
  width: 64px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--tang-red), var(--pi-gold));
}

.sec-note {
  margin-top: 18px;
  max-width: 640px;
  font-size: 15px;
  color: inherit;
  opacity: 0.82;
}

.sec-note-small { font-size: 13px; opacity: 0.6; margin-top: 26px; }

/* ---------- 招牌菜 ---------- */
.zhaopai-grid {
  margin-top: 36px;
  display: grid;
  gap: 28px;
}

.zhaopai-card {
  background: var(--lu-brown);
  border: 1px solid rgba(227, 168, 63, 0.22);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.zhaopai-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.dish-fig img,
.dish-card img,
.mendian-photo,
.wx-qrcode { width: 100%; height: auto; }

.zhaopai-txt { padding: 22px 24px 28px; }

.zhaopai-txt h3 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 4px;
  color: var(--pi-gold);
}

.zhaopai-txt p { margin-top: 12px; font-size: 15px; color: var(--text); opacity: 0.9; }
.zhaopai-txt strong { color: #ffd98a; }

/* ---------- 菜品网格（九宫格实拍墙） ---------- */
.caipin-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.dish-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fffaf0;
  box-shadow: 0 4px 14px rgba(56, 34, 15, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dish-card img {
  aspect-ratio: 1;
  object-fit: cover;
}

.dish-card:hover {
  transform: translateY(-3px) rotate(-0.4deg);
  box-shadow: 0 12px 24px rgba(56, 34, 15, 0.22);
}

/* 待替换占位标记：真实照片换好后删掉 HTML 里的 to-replace 即可 */
.to-replace { position: relative; }

.to-replace::after {
  content: "示意图 · 待换真照片";
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 9px;
  font-size: 11px;
  font-family: var(--font-body);
  letter-spacing: 1px;
  color: #fff;
  background: rgba(31, 15, 5, 0.72);
  border-radius: 999px;
  pointer-events: none;
}

/* ---------- 为啥选我们 ---------- */
.youshi-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.youshi-item {
  background: var(--lu-brown);
  border: 1px solid rgba(227, 168, 63, 0.18);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  transition: background 0.2s ease;
}

.youshi-item:hover { background: var(--lu-brown-2); }

.youshi-icon {
  grid-row: 1 / 3;
  font-size: 28px;
  line-height: 1;
  padding-top: 4px;
}

.youshi-item h3 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--pi-gold);
}

.youshi-item p { margin-top: 6px; font-size: 14.5px; opacity: 0.88; }

/* ---------- 店铺位置 ---------- */
.weizhi-grid {
  margin-top: 34px;
  display: grid;
  gap: 30px;
}

.addr { font-size: 19px; line-height: 1.6; }

.hours {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(227, 168, 63, 0.1);
  border-left: 4px solid var(--pi-gold);
  border-radius: 0 10px 10px 0;
  font-size: 15px;
}

.nav-btns {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-copy {
  margin-top: 14px;
  padding: 9px 16px;
  font-size: 14px;
  color: var(--text);
  background: transparent;
  border: 1.5px dashed rgba(240, 226, 200, 0.45);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-copy:hover { background: rgba(240, 226, 200, 0.08); }
.btn-copy.copied { border-style: solid; border-color: var(--pi-gold); color: var(--pi-gold); }

.weizhi-tip {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-dim);
}

.weizhi-map { display: grid; gap: 14px; }

.mendian-photo { border-radius: var(--radius) var(--radius) 0 0; }

.mendian-fig {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--lu-brown);
  border: 1px solid rgba(227, 168, 63, 0.22);
}

.mendian-fig figcaption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
  background: rgba(244, 232, 208, 0.06);
}

.map-img {
  width: 100%;
  border-radius: var(--radius);
  background: var(--paper);
}

.map-note { font-size: 12px; color: var(--text-dim); text-align: right; }

/* ---------- 周边景点 ---------- */
.group-title {
  margin: 34px 0 14px;
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 3px;
  color: var(--tang-red);
  display: flex;
  align-items: center;
  gap: 12px;
}

.group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--paper-line);
}

.jingdian-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.jingdian-card {
  background: #fffaf0;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jingdian-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(56, 34, 15, 0.14);
}

.jingdian-card h4 {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 2px;
  color: var(--ink-on-paper);
}

.jd-dist {
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tang-red);
}

.jingdian-card p:last-child { margin-top: 8px; font-size: 14.5px; opacity: 0.85; }

/* ---------- 顺路来买 ---------- */
.route-list {
  margin-top: 36px;
  list-style: none;
  display: grid;
  gap: 16px;
}

.route-item {
  background: var(--lu-brown);
  border: 1px solid rgba(227, 168, 63, 0.18);
  border-radius: var(--radius);
  padding: 20px 22px;
  position: relative;
  counter-increment: route;
}

.route-list { counter-reset: route; }

.route-item::before {
  content: counter(route);
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: Georgia, serif;
  font-size: 30px;
  font-style: italic;
  color: rgba(227, 168, 63, 0.28);
}

.route-tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--ink-deep);
  background: var(--pi-gold);
  border-radius: 999px;
  font-weight: 700;
}

.route-item h3 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 2px;
  color: var(--text);
}

.route-item p { margin-top: 8px; font-size: 14.5px; opacity: 0.88; }
.route-item strong { color: #ffd98a; }

/* ---------- 吃住耍攻略 ---------- */
.gonglue-grid {
  margin-top: 34px;
  display: grid;
  gap: 16px;
}

.gonglue-card {
  background: var(--lu-brown);
  border: 1px solid rgba(227, 168, 63, 0.18);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.gonglue-card h3 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--text);
}

.gonglue-card p { margin-top: 8px; font-size: 14.5px; opacity: 0.9; }
.gonglue-card strong { color: #ffd98a; }

.group-dark {
  margin: 30px 0 10px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--pi-gold);
}

.gold-strong { color: #ffd98a; }

/* ---------- 顺路来买 ---------- */
.shunlu-banner {
  margin-top: 30px;
  padding: 22px 24px;
  text-align: center;
  font-size: 17px;
  color: #3d1c08;
  background: linear-gradient(100deg, var(--pi-gold), #f0c268);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(227, 168, 63, 0.3);
}

/* ---------- 常见问题 ---------- */
.faq-list {
  margin-top: 34px;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: #fffaf0;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.faq-item h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--tang-red);
}

.faq-item p { margin-top: 8px; font-size: 15px; opacity: 0.9; }

/* ---------- 联系我们 ---------- */
.lianxi-grid {
  margin-top: 34px;
  display: grid;
  gap: 26px;
  align-items: center;
}

.lianxi-tel { display: grid; justify-items: center; gap: 4px; }

.tel-big {
  font-family: Georgia, "Times New Roman", var(--font-body);
  font-size: clamp(34px, 8vw, 48px);
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--pi-gold);
  text-decoration: none;
  text-shadow: 0 3px 16px rgba(227, 168, 63, 0.3);
}

.tel-small { font-size: clamp(26px, 6vw, 34px); margin-top: 12px; }

.tel-label { font-size: 13px; color: var(--text-dim); letter-spacing: 2px; }

.lianxi-wx {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.wx-qrcode {
  width: min(220px, 60vw);
  border-radius: var(--radius);
  border: 4px solid rgba(240, 226, 200, 0.25);
}

.lianxi-wx p { font-size: 14px; color: var(--text-dim); }

.lianxi-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ---------- 页脚 ---------- */
.footer {
  background: #170a02;
  border-top: 1px solid rgba(227, 168, 63, 0.18);
  padding: 36px 0 44px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-dim);
}

.footer p { margin-top: 8px; }

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 3px;
  color: var(--text);
}

.footer-seal { width: 30px; height: 30px; font-size: 18px; border-radius: 7px; }

.footer-icp { opacity: 0.6; }
.footer-copy { opacity: 0.5; }

/* ---------- 滚动浮现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- 20年故事 ---------- */
.story {
  margin-top: 26px;
  padding: 18px 20px;
  border-left: 4px solid var(--tang-red);
  background: rgba(194, 55, 42, 0.08);
  border-radius: 0 12px 12px 0;
  font-family: var(--font-display);
  font-size: 16.5px;
  line-height: 2.1;
}

/* ---------- 实时状态标签 ---------- */
.live-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.live-pill {
  padding: 4px 12px;
  font-size: 13px;
  border-radius: 999px;
  background: rgba(240, 226, 200, 0.1);
  color: var(--text-dim);
}

.live-pill.is-open {
  background: rgba(74, 124, 70, 0.28);
  color: #b8e0b0;
}

/* ---------- 手机底部悬浮操作条 ---------- */
.actionbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(31, 15, 5, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(227, 168, 63, 0.3);
}

.actionbar a {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}

.actionbar .ab-tel { background: var(--tang-red); color: #fdf3e0; }
.actionbar .ab-nav { background: var(--pi-gold); color: var(--ink-deep); }

@media (max-width: 719px) {
  body { padding-bottom: 66px; }
}

@media (min-width: 720px) {
  .actionbar { display: none; }
}

/* ---------- 焦点可见 ---------- */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--pi-gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 桌面端布局 ---------- */
@media (min-width: 720px) {
  .zhaopai-grid { grid-template-columns: 1fr 1fr; }
  .caipin-grid { grid-template-columns: repeat(3, 1fr); }
  .youshi-grid { grid-template-columns: 1fr 1fr; }
  .weizhi-grid { grid-template-columns: 5fr 6fr; }
  .jingdian-grid { grid-template-columns: 1fr 1fr; }
  .gonglue-grid { grid-template-columns: 1fr 1fr; }
  .lianxi-grid { grid-template-columns: 1fr 1fr; }
  .faq-list { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (min-width: 1024px) {
  .youshi-grid { grid-template-columns: repeat(3, 1fr); }
  .sec { padding: 92px 0; }
}

/* ---------- 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* 不走马灯时，横幅改为完整换行显示，保证文字不丢 */
  .led-track {
    animation: none;
    display: block;
    white-space: normal;
  }
  .led-track span { display: none; }
  .led-track span:first-child {
    display: block;
    white-space: normal;
    text-align: center;
    padding: 0 16px;
  }
  .seal { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .zhaopai-card:hover, .dish-card:hover, .jingdian-card:hover { transform: none; }
}
