/* ============================================
   古方沐小童 · 新中式精品风设计系统
   色板：宣纸米白 / 深橙 / 墨黑 / 朱砂
   ============================================ */

:root {
  --paper: #FAF6EF;
  --paper-deep: #F1E9D9;
  --paper-card: #FFFFFF;
  --ink: #1F1A14;
  --ink-soft: #5C5348;
  --ink-faint: #8A8072;
  --brand: #C8501E;
  --brand-deep: #9E3D14;
  --brand-wash: #F4E3D6;
  --cinnabar: #B33A2A;
  --line: #E2D8C3;
  --line-strong: #C9B998;

  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;

  --container: 1200px;
  --gutter: 24px;
}

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

img, svg, video { max-width: 100%; }
html, body { max-width: 100%; }
.grid-3, .grid-2, .dual-entry, .product-grid, .store-list, .stats, .footer-grid, .form-row { min-width: 0; }
.feature, .product-card, .store-card, .entry-card { min-width: 0; overflow: hidden; }
p, h1, h2, h3, h4 { overflow-wrap: break-word; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
  overflow-x: hidden;
}

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============ 顶部导航 ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}
.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.brand-sub {
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.2em;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 15px;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 200ms ease;
}
.nav-links a:hover { color: var(--brand); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brand);
}
.nav-cta {
  background: var(--brand);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background 200ms ease, transform 200ms ease;
}
.nav-cta:hover { background: var(--brand-deep); transform: translateY(-1px); }

.nav-burger {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--ink);
}

/* ============ 品牌故事视频 ============ */
.brand-video {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #fff;
  border-radius: 12px;
  display: block;
}

/* ============ 首屏 ============ */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  background: var(--paper);
}
.hero-video { display: none; }
.hero-overlay { display: none; }
.hero { background: var(--paper); }
.hero::before { display: none; }
.hero::after { display: none; }
.hero-inner { position: relative; z-index: 2; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(200, 80, 30, 0.06), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(179, 58, 42, 0.04), transparent 40%);
  pointer-events: none;
}
.hero-inner { position: relative; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--line-strong);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: normal;
  color: var(--brand);
  position: relative;
}
.hero-sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.8;
}

/* 双入口卡片 */
.dual-entry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.entry-card {
  position: relative;
  padding: 40px 36px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}
.entry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(31, 26, 20, 0.18);
  border-color: var(--line-strong);
}
.entry-card .tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--brand);
  margin-bottom: 16px;
}
.entry-card h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
}
.entry-card p {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 24px;
  line-height: 1.7;
}
.entry-card .arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.entry-card .arrow::after {
  content: "→";
  transition: transform 200ms ease;
}
.entry-card:hover .arrow::after { transform: translateX(4px); }
.entry-card.franchise {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.entry-card.franchise h3 { color: var(--paper); }
.entry-card.franchise p { color: rgba(250, 246, 239, 0.7); }
.entry-card.franchise .arrow { color: var(--paper); }
.entry-card.franchise .tag { color: #E8A06A; }

/* ============ 通用区块 ============ */
section.block {
  padding: 100px 0;
}
section.block.tinted { background: var(--paper-deep); }

.block-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.block-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.block-label {
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--brand);
  margin-bottom: 16px;
}
.block-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 20px;
}
.block-desc {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.8;
}

/* 三列特性 */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.feature {
  padding: 36px 28px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: transform 250ms ease, box-shadow 250ms ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -20px rgba(31, 26, 20, 0.2);
}
.feature .num {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--brand);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}
.feature h4 {
  font-family: var(--serif);
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 700;
}
.feature p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.75;
}

/* 图片框 */
.figure {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-card);
}
.figure img { width: 100%; height: 100%; object-fit: cover; }

/* 大引言 */
.pullquote {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.5;
  color: var(--ink);
  border-left: 3px solid var(--brand);
  padding-left: 28px;
  margin: 48px 0;
}
.pullquote small {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-faint);
  margin-top: 16px;
  letter-spacing: 0.1em;
}

/* 数据条 */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.stat {
  background: var(--paper-card);
  padding: 36px 24px;
  text-align: center;
}
.stat .num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 10px;
}
.stat .label {
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}

/* CTA 区 */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 44px);
  margin-bottom: 16px;
  font-weight: 700;
}
.cta-band p {
  color: rgba(250, 246, 239, 0.7);
  margin-bottom: 36px;
  font-size: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: all 200ms ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(250, 246, 239, 0.4);
}
.btn-ghost:hover { border-color: var(--paper); }
.btn-dark {
  background: var(--ink);
  color: var(--paper);
}
.btn-dark:hover { background: #000; }

/* 页脚 */
footer {
  background: #171310;
  color: rgba(250, 246, 239, 0.6);
  padding: 64px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-grid h5 {
  color: var(--paper);
  font-size: 14px;
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--paper); }
.footer-bottom {
  border-top: 1px solid rgba(250, 246, 239, 0.1);
  padding-top: 24px;
  font-size: 12px;
  color: rgba(250, 246, 239, 0.4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============ 内页头 ============ */
.page-hero {
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--line);
}
.page-hero .crumbs {
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
}
.page-hero p {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 640px;
  line-height: 1.8;
}

/* ============ 产品页 ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 250ms ease, box-shadow 250ms ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(31, 26, 20, 0.2);
}
.product-card .thumb {
  aspect-ratio: 1 / 1;
  background: var(--paper-deep);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.product-card .thumb svg { width: 60%; height: 60%; }
.product-card .body { padding: 20px; }
.product-card .cat {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--brand);
  margin-bottom: 8px;
}
.product-card h4 {
  font-family: var(--serif);
  font-size: 18px;
  margin-bottom: 8px;
}
.product-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ============ 门店页 ============ */
.store-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.store-card {
  padding: 28px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.store-card .city {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.store-card .name {
  font-size: 14px;
  color: var(--brand);
  font-weight: 500;
}
.store-card .addr {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.store-card .phone {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 8px;
}

/* ============ 表单 ============ */
.form-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 40px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-field label {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  font-size: 15px;
  font-family: var(--sans);
  color: var(--ink);
  transition: border-color 150ms ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
}
.form-field.full { grid-column: 1 / -1; }

/* ============ 竖排装饰（记忆点） ============ */
.vertical-seal {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.5em;
  color: var(--line-strong);
  user-select: none;
}

/* ============ 滚动入场 ============ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============ 品牌动效：经络光点 ============ */
.meridian-flow {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  height: 600px;
  pointer-events: none;
  opacity: 0.5;
}
.meridian-flow path {
  stroke: var(--line-strong);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 4 6;
}
.meridian-flow .dot {
  fill: var(--brand);
  offset-path: path("M280 40 C 200 120, 320 220, 220 320 C 140 400, 260 480, 180 560");
  offset-distance: 0%;
  animation: flowDot 12s linear infinite;
}
@keyframes flowDot {
  0% { offset-distance: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}
@keyframes breathe {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.05); }
}
.hero::after {
  content: "";
  position: absolute;
  left: 50%; top: 30%;
  width: 600px; height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(200,80,30,0.08), transparent 60%);
  animation: breathe 8s ease-in-out infinite;
  pointer-events: none;
}
.figure img { transition: transform 600ms ease; }
.figure:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .hero-video { display: none; }
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .nav-links { display: none !important; }
  .nav-cta { display: none !important; }
  .nav-burger { display: block !important; background:none; border:none; font-size:26px; cursor:pointer; color:var(--ink); line-height:1; }
  .nav-links.open {
    display: flex !important;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 20px var(--gutter);
    gap: 16px;
    border-bottom: 1px solid var(--line);
    z-index: 100;
  }
  .dual-entry, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .store-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .vertical-seal { display: none; }
  section.block { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .page-hero { padding: 64px 0 40px; }
  .hero-sub { font-size: 16px; }
  .entry-card { padding: 28px 24px; }
  .container { padding: 0 20px; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
