/* 八米牛 · 品牌覆盖层（试皮 demo）
 *
 * 只覆盖设计变量与少量组件，不动模板源码（software.css 保持 MOMBO 原样）。
 * 色值取自线上站 cloud/site/index.html 的 :root：
 *   --navy #0c1a33 / --gold #c98a1a / --paper #f4efe4 / --ink #1c1915
 * logo 里那块金色更亮（#f5c542），但正文/按钮上用 #c98a1a 保证对比度。
 */

:root,
[data-bs-theme="light"] {
  /* 主色：金（模板原来是 #ff8600 橙） */
  --bs-primary: #c98a1a;
  --bs-primary-rgb: 201, 138, 26;
  --bs-primary-text-emphasis: #7a5210;
  --bs-primary-bg-subtle: #f7ecd6;
  --bs-primary-border-subtle: #e8d3a6;

  /* 纸与墨 */
  --bs-body-bg: #f4efe4;
  --bs-body-bg-rgb: 244, 239, 228;
  --bs-body-color: #1c1915;
  --bs-body-color-rgb: 28, 25, 21;
  --bs-heading-color: #0c1a33;
  --bs-emphasis-color: #0c1a33;
  --bs-secondary-color: #5c564c;
  --bs-secondary-bg: #fbf8f1;
  --bs-tertiary-bg: #f7f2e7;

  /* 线与灰阶（模板的 gray-* 是冷灰，这里换成暖纸灰） */
  --bs-border-color: rgba(12, 26, 51, 0.12);
  --bs-border-color-translucent: rgba(12, 26, 51, 0.12);
  --bs-gray-200: rgba(12, 26, 51, 0.12);
  --bs-gray-50: #f7f2e7;

  /* 字体：中文系统字 + 宋体系标题（模板含 Google Fonts 外链，已删） */
  --bs-font-sans-serif: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
    "Microsoft YaHei", system-ui, sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-font-alt: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC",
    "SimSun", Georgia, serif;

  /* 圆角收敛：模板偏大，纸感更接近小圆角 */
  --bs-border-radius: 0.35rem;
  --bs-border-radius-sm: 0.25rem;
  --bs-border-radius-lg: 0.6rem;
  --bs-border-radius-xl: 1rem;
}

/* 模板给 html/body 写了 height:100%，body 只剩一屏高，
   position:sticky 的页头会被父容器（body）高度截断 —— 滚过一屏就跟着走了。
   这里把高度还给内容，页头才能在整页范围内吸附。 */
html {
  scroll-behavior: smooth;
  height: auto;
}

body {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  /* 与线上站同一层极淡的点阵底 */
  background-image: radial-gradient(rgba(12, 26, 51, 0.035) 1px, transparent 0);
  background-size: 24px 24px;
}

h1, h2, h3, .display-2, .display-3, .display-5 {
  font-family: var(--bs-font-alt);
  letter-spacing: 0.01em;
}

section[id] {
  scroll-margin-top: 84px;
}

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: #8a7c5f;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

/* ---------- 按钮 ---------- */

.btn {
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: 0.4rem;
}

/* 主 CTA 用藏青：金底白字对比度不够 */
.btn-primary {
  --bs-btn-color: #f4efe4;
  --bs-btn-bg: #0c1a33;
  --bs-btn-border-color: #0c1a33;
  --bs-btn-hover-color: #f4efe4;
  --bs-btn-hover-bg: #16294a;
  --bs-btn-hover-border-color: #16294a;
  --bs-btn-active-color: #f4efe4;
  --bs-btn-active-bg: #0a1529;
  --bs-btn-active-border-color: #0a1529;
  --bs-btn-focus-shadow-rgb: 12, 26, 51;
  --bs-btn-disabled-color: #f4efe4;
  --bs-btn-disabled-bg: #0c1a33;
  --bs-btn-disabled-border-color: #0c1a33;
}

/* 金色按钮：金底 + 深墨字 */
.btn-gold {
  --bs-btn-color: #16233c;
  --bs-btn-bg: #e0a33a;
  --bs-btn-border-color: #e0a33a;
  --bs-btn-hover-color: #16233c;
  --bs-btn-hover-bg: #d19a34;
  --bs-btn-hover-border-color: #d19a34;
  --bs-btn-active-color: #16233c;
  --bs-btn-active-bg: #c08d2e;
  --bs-btn-active-border-color: #c08d2e;
  --bs-btn-focus-shadow-rgb: 224, 163, 58;
}

.btn-outline-ink {
  --bs-btn-color: #0c1a33;
  --bs-btn-border-color: rgba(12, 26, 51, 0.35);
  --bs-btn-hover-color: #f4efe4;
  --bs-btn-hover-bg: #0c1a33;
  --bs-btn-hover-border-color: #0c1a33;
  --bs-btn-active-color: #f4efe4;
  --bs-btn-active-bg: #0c1a33;
  --bs-btn-active-border-color: #0c1a33;
  --bs-btn-focus-shadow-rgb: 12, 26, 51;
}

/* ---------- 页头 ---------- */

.header-main {
  background-color: rgba(244, 239, 228, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.brand-word {
  font-family: var(--bs-font-alt);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: #0c1a33;
}

.brand-mark {
  border-radius: 50%;
}

.header-main .nav-link {
  color: #3f3a31;
  font-weight: 500;
}

.header-main .nav-link:hover,
.header-main .nav-link:focus {
  color: #a06f12;
}

/* ---------- 首屏 ---------- */

.section-hero {
  padding-top: 3.25rem;
  padding-bottom: 3.75rem;
}

@media (min-width: 992px) {
  .section-hero {
    padding-top: 4.5rem;
    padding-bottom: 5.5rem;
  }
}

.hero-chips {
  margin: 0;
}

.hero-chips li {
  border: 1px solid var(--bs-border-color);
  background: rgba(251, 248, 241, 0.85);
  border-radius: 999px;
  padding: 0.32rem 0.8rem;
  font-size: 0.86rem;
  color: #3f3a31;
}

.hero-note {
  font-size: 0.85rem;
  color: #6b6252;
}

/* 首屏右侧：用 HTML 拼一张「点餐页 + 后厨票」，不依赖 stock 图 */
.demo-stage {
  position: relative;
  max-width: 520px;
  margin-inline: auto;
  padding: 0.5rem 0 3.5rem;
}

.demo-screen {
  background: #fbf8f1;
  border: 1px solid var(--bs-border-color);
  border-radius: 16px;
  box-shadow: 0 22px 44px -22px rgba(12, 26, 51, 0.45);
  overflow: hidden;
}

.demo-screen-top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--bs-border-color);
  background: #f2ecdf;
}

.demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d8cdb6;
}

.demo-screen-title {
  margin-left: 0.45rem;
  font-size: 0.78rem;
  color: #6b6252;
}

.demo-menu {
  padding: 0.55rem 0.9rem 0.2rem;
}

.demo-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.42rem 0;
  border-bottom: 1px dashed rgba(12, 26, 51, 0.14);
  font-size: 0.82rem;
  color: #3f3a31;
}

.demo-item:last-child {
  border-bottom: 0;
}

.demo-item > span:last-child {
  color: #a06f12;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.demo-item em {
  font-style: normal;
  color: #8a7c5f;
  font-size: 0.74rem;
  margin-left: 0.4rem;
}

.demo-screen-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--bs-border-color);
  font-size: 0.85rem;
  color: #3f3a31;
}

.demo-btn {
  background: #0c1a33;
  color: #f4efe4;
  border-radius: 6px;
  padding: 0.28rem 0.8rem;
  font-size: 0.76rem;
}

.demo-ticket {
  position: absolute;
  right: -16px;
  bottom: -2px;
  z-index: 2;
  width: 196px;
  padding: 0.6rem 0.75rem;
  background: #fff;
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
  box-shadow: 0 16px 32px -16px rgba(12, 26, 51, 0.45);
  transform: rotate(-2deg);
}

.demo-ticket-h {
  margin: 0 0 0.3rem;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a7c5f;
}

.demo-ticket pre {
  margin: 0;
  font-family: var(--bs-font-monospace);
  font-size: 0.66rem;
  line-height: 1.5;
  color: #2c2a24;
  white-space: pre-wrap;
}

.demo-net {
  position: absolute;
  left: 0;
  bottom: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.24rem 0.7rem;
  font-size: 0.72rem;
  color: #5c564c;
  background: rgba(251, 248, 241, 0.92);
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
}

.demo-net-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c98a1a;
  box-shadow: 0 0 0 3px rgba(201, 138, 26, 0.18);
}

.demo-caption {
  margin: 0.9rem 0 0;
  font-size: 0.74rem;
  color: #8a7c5f;
  text-align: center;
}

@media (max-width: 479.98px) {
  .demo-ticket {
    position: static;
    width: auto;
    margin-top: 0.75rem;
    transform: none;
  }
  .demo-net {
    position: static;
    display: inline-flex;
    margin-top: 0.75rem;
  }
  .demo-stage {
    padding-bottom: 0;
  }
}

/* ---------- 价值三卡 ---------- */

.value-card {
  height: 100%;
  background: #fbf8f1;
}

.value-card .value-num {
  display: block;
  font-family: var(--bs-font-alt);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: #b08a3e;
  margin-bottom: 0.6rem;
}

.value-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #5c564c;
}

/* ---------- 店里的一天 ---------- */

.day-line {
  border-top: 1px solid var(--bs-border-color);
  padding-top: 1.75rem;
}

.day-step .day-time {
  display: block;
  font-family: var(--bs-font-alt);
  font-size: 1.5rem;
  color: #0c1a33;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.day-step b {
  display: block;
  margin-bottom: 0.25rem;
  color: #1c1915;
}

.day-step p {
  margin: 0;
  font-size: 0.9rem;
  color: #5c564c;
}

/* ---------- 数据自持 ---------- */

.data-list li {
  display: flex;
  gap: 0.9rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--bs-border-color);
}

.data-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.data-list b {
  flex: 0 0 6.2rem;
  color: #0c1a33;
}

.data-list span {
  color: #5c564c;
  font-size: 0.92rem;
}

/* ---------- 案例占位 ---------- */

.placeholder-card {
  border: 1px dashed rgba(12, 26, 51, 0.28);
  border-radius: 0.6rem;
  background: rgba(251, 248, 241, 0.7);
  padding: 1.4rem 1.3rem;
}

.placeholder-tag {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(201, 138, 26, 0.14);
  color: #8a5f10;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.placeholder-card p {
  margin: 0;
  font-size: 0.88rem;
  color: #5c564c;
}

/* ---------- 报价 ---------- */

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--bs-border-color);
}

.price-row:first-of-type {
  border-top: 0;
}

.price-row b {
  color: #0c1a33;
  font-size: 1.02rem;
}

.price-row span {
  color: #5c564c;
  font-size: 0.9rem;
}

.price-row .price-val {
  font-family: var(--bs-font-alt);
  color: #a06f12;
  font-size: 0.95rem;
}

/* ---------- 故事 ---------- */

.story-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
}

.story-list li {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  padding: 0.75rem 0;
  border-top: 1px solid var(--bs-border-color);
}

.story-list time {
  flex: 0 0 6.2rem;
  font-variant-numeric: tabular-nums;
  color: #8a7c5f;
  font-size: 0.86rem;
}

.story-list a {
  color: #0c1a33;
  text-decoration: none;
}

.story-list a:hover {
  color: #a06f12;
}

.story-empty {
  color: #6b6252;
  font-size: 0.92rem;
}

/* ---------- 日记 ---------- */

.qr-card {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  background: #fbf8f1;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.75rem;
  padding: 1.1rem;
}

.qr-card img {
  width: 132px;
  height: 132px;
  border-radius: 0.5rem;
  flex: 0 0 auto;
}

.qr-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #5c564c;
}

@media (max-width: 479.98px) {
  .qr-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 收口 ---------- */

.cta-final {
  background: #0c1a33;
  color: rgba(244, 239, 228, 0.82);
}

.cta-final h2 {
  color: #f4efe4;
}

.cta-final .kicker {
  color: rgba(244, 239, 228, 0.6);
}

.footer a {
  color: #0c1a33;
  text-decoration: none;
}

.footer a:hover {
  color: #a06f12;
}

/* ---------- 产品页（terminal.html） ---------- */

.check-list li,
.limit-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-size: 0.96rem;
  color: #3f3a31;
  border-top: 1px solid var(--bs-border-color);
}

.check-list li:first-child,
.limit-list li:first-child {
  border-top: 0;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #a06f12;
  font-weight: 700;
}

.limit-list li::before {
  content: "×";
  position: absolute;
  left: 0.15rem;
  color: #9a9284;
  font-weight: 700;
}

.spec-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--bs-border-color);
}

.spec-row:first-of-type {
  border-top: 0;
}

.spec-row b {
  color: #0c1a33;
  flex: 0 0 auto;
}

.spec-row span {
  color: #5c564c;
  font-size: 0.92rem;
}

.status {
  display: inline-block;
  min-width: 3.6rem;
  text-align: center;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.status-ok {
  background: rgba(201, 138, 26, 0.14);
  color: #8a5f10;
}

.status-wait {
  background: rgba(12, 26, 51, 0.07);
  color: #5c564c;
}

.price-note {
  font-size: 0.84rem;
  color: #6b6252;
}

/* 价卡（首页 #terminal） */
.price-card {
  background: #fbf8f1;
}

.price-big {
  font-family: var(--bs-font-alt);
  font-size: 3rem;
  line-height: 1.05;
  color: #0c1a33;
  margin: 0.15rem 0 0.25rem;
}

.price-sub {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: #8a7c5f;
  margin: 0;
}

.price-points {
  margin: 1.1rem 0 1.3rem;
}

.price-points li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.1rem;
  font-size: 0.94rem;
  color: #3f3a31;
  border-top: 1px solid var(--bs-border-color);
}

.price-points li:first-child {
  border-top: 0;
}

.price-points li::before {
  content: "·";
  position: absolute;
  left: 0.15rem;
  color: #a06f12;
  font-weight: 700;
}

/* 1,970 里有什么（首页 #quote） */
.incl-row {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.4rem 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--bs-border-color);
}

.incl-row:first-of-type {
  border-top: 0;
}

.incl-row b {
  color: #0c1a33;
  font-weight: 650;
}

.incl-row span {
  color: #5c564c;
  font-size: 0.94rem;
}

@media (max-width: 575.98px) {
  .price-big {
    font-size: 2.4rem;
  }
  .incl-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* 手机：小标题不必撑到 display 尺寸，规格行改成上下堆叠 */
@media (max-width: 575.98px) {
  .display-3 {
    font-size: 2.6rem;
    line-height: 1.18;
  }
  .display-5 {
    font-size: 1.95rem;
  }
  .spec-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
  .spec-row .status {
    align-self: flex-start;
    margin-top: 0.15rem;
  }
}

/* 微信留言：右下角，弹出服务号二维码 */
.wx-dock {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1030;
}

.wx-float {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #0c1a33;
  color: #f4efe4;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.8rem 1.05rem;
  box-shadow: 0 8px 24px rgba(12, 26, 51, 0.28);
  cursor: pointer;
}

.wx-float:hover,
.wx-float:focus-visible {
  background: #16294a;
  color: #f4efe4;
}

.wx-panel {
  border: 1px solid rgba(12, 26, 51, 0.12);
  border-radius: 0.75rem;
  background: #fbf8f1;
  padding: 1.15rem 1.25rem 1.2rem;
  max-width: min(20rem, calc(100vw - 2rem));
  text-align: center;
}

.wx-panel::backdrop {
  background: rgba(12, 26, 51, 0.45);
}

.wx-panel img {
  width: 200px;
  height: 200px;
  border-radius: 0.5rem;
}

.wx-panel p {
  margin: 0.85rem 0 0;
  color: #0c1a33;
  font-size: 1rem;
}

.wx-panel-x {
  display: block;
  margin: 0 0 0.4rem auto;
  border: 0;
  background: transparent;
  color: #6b6252;
  font-size: 0.86rem;
  line-height: 1;
  padding: 0.15rem 0;
  cursor: pointer;
}
