/* ============================================================
   Full House 甜品店 · 全站共享样式（设计令牌 / 重置 / 导航 / 页脚）
   ============================================================ */
:root {
  --ink: #2b2a30;
  --ink-soft: #6f6a63;
  --paper: #faf6f0;
  --cream: #f6efe3;
  --pink: #f3b8c4;
  --pink-deep: #e58fa5;
  --gold: #e6c48a;
  --gold-deep: #c9a06a;
  --green: #8bbf5a;
  --blue: #4a9bb5;
  --rose: #cd6a75;
  --orange: #e8a33d;
  --yellow: #f4d03f;
  --sky: #19b5fe;
  --navy: #262b3d;
  --charcoal: #26262c;
  --shadow: 0 18px 44px rgba(66, 44, 40, 0.16);
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", Georgia, serif;
}

/* ---------- 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; }

::selection { background: var(--pink); color: #fff; }

/* ---------- 通用布局 ---------- */
.container {
  width: min(92%, 1160px);
  margin-inline: auto;
}

.section { padding: clamp(64px, 9vw, 120px) 0; }

.sec-head { margin-bottom: clamp(32px, 5vw, 56px); }

.sec-head .sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.35em;
  color: var(--gold-deep);
  text-transform: uppercase;
}

.sec-head .sec-tag::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.sec-head h2 {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.3;
  margin-top: 10px;
}

.sec-head .sec-sub {
  color: var(--ink-soft);
  margin-top: 10px;
  max-width: 620px;
}

.center { text-align: center; }
.center .sec-head .sec-sub { margin-inline: auto; }

/* ---------- 滚动显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   顶部导航（三页共用结构，视觉由页面级样式覆盖）
   ============================================================ */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: transform 0.4s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.nav-hidden { transform: translateY(-110%); }

.nav-inner {
  width: min(94%, 1280px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand svg { width: 34px; height: 34px; flex: none; }

.brand .brand-cn { display: block; line-height: 1.2; }
.brand .brand-en { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.28em; opacity: 0.72; line-height: 1.2; }

/* 桌面菜单 */
.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-list > li { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  position: relative;
  transition: color 0.25s ease;
}

.nav-link .caret { width: 9px; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); opacity: 0.6; transition: transform 0.25s; }

.sub-toggle { display: none; }

/* 下拉面板 */
.sub {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  min-width: 168px;
  padding: 10px 0;
  background: #f7f4ef;
  color: var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.sub::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  translate: -50% 0;
  border: 7px solid transparent;
  border-bottom-color: #f7f4ef;
  border-top: 0;
}

.sub a {
  display: block;
  padding: 9px 22px;
  font-size: 14px;
  letter-spacing: 0.05em;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.sub a:hover { background: #efe7db; padding-left: 28px; }

.nav-list > li:hover .sub,
.nav-list > li:focus-within .sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-list > li:hover .nav-link .caret { transform: rotate(225deg) translateY(-2px); }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  position: relative;
  z-index: 120;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.25s ease, top 0.35s ease;
}

.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 29px; }

body.nav-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- 移动端抽屉 ---------- */
@media (max-width: 919px) {
  .nav-toggle { display: block; }

  .nav-panel {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(20, 16, 18, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
  }

  body.nav-open .nav-panel { opacity: 1; visibility: visible; }

  .nav-list {
    position: absolute;
    top: 0;
    right: 0;
    width: min(84%, 360px);
    height: 100dvh;
    padding: 86px 22px 40px;
    overflow-y: auto;
    display: block;
    background: var(--paper);
    box-shadow: -18px 0 44px rgba(0, 0, 0, 0.18);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  body.nav-open .nav-list { transform: none; }

  .nav-list > li { border-bottom: 1px dashed rgba(43, 42, 48, 0.14); }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 15px 4px;
    font-size: 16px;
  }

  .nav-link .caret { display: none; }

  .sub-toggle {
    display: grid;
    place-items: center;
    position: absolute;
    top: 8px;
    right: 0;
    width: 40px;
    height: 40px;
  }

  .sub-toggle::before {
    content: "";
    width: 9px;
    height: 9px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0.5;
    transition: transform 0.3s ease;
  }

  .nav-list > li.open .sub-toggle::before { transform: rotate(225deg); }

  .sub {
    position: static;
    translate: none;
    min-width: 0;
    padding: 0 0 6px 14px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .sub::before { display: none; }

  .nav-list > li.open .sub { display: block; }

  .sub a { padding: 9px 8px; color: var(--ink-soft); }
  .sub a:hover { background: transparent; color: var(--pink-deep); padding-left: 14px; }
}

@media (min-width: 920px) {
  .nav-panel { display: block; }
}

/* ============================================================
   页脚（三页共用结构）
   ============================================================ */
.site-footer {
  background: var(--charcoal);
  color: #cfc9c2;
  font-size: 14px;
}

.foot-grid {
  display: grid;
  gap: 40px 32px;
  padding: clamp(48px, 7vw, 76px) 0 40px;
  grid-template-columns: 1fr;
}

.foot-brand .brand { color: #fff; margin-bottom: 14px; }
.foot-brand p { color: #a09a92; max-width: 300px; }

.foot-cat {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.foot-cat svg { width: 30px; height: 30px; transition: transform 0.3s ease; }
.foot-cat:hover svg { transform: translateY(-4px) rotate(-6deg); }

.foot-col h3 {
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 12px;
}

.foot-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 2px;
  background: var(--gold);
}

.foot-col li { margin: 8px 0; }
.foot-col a, .foot-col span { color: #a09a92; transition: color 0.2s ease; }
.foot-col a:hover { color: var(--gold); }

.foot-col .foot-kv { display: flex; gap: 8px; }
.foot-col .foot-kv b { color: #cfc9c2; font-weight: 600; flex: none; }

.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  color: #7d7770;
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.foot-bottom .icp { color: #7d7770; }
.foot-bottom a:hover { color: var(--gold); }

@media (min-width: 640px) {
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(38, 38, 44, 0.86);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all 0.35s ease;
}

.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  min-height: 46px;
}

.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: linear-gradient(120deg, var(--gold), var(--gold-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(201, 160, 106, 0.4);
}

.btn-ghost {
  border: 1.5px solid currentColor;
  color: inherit;
}

.btn-pink {
  background: linear-gradient(120deg, var(--pink-deep), var(--rose));
  color: #fff;
  box-shadow: 0 10px 24px rgba(229, 143, 165, 0.42);
}

.btn-blue {
  background: linear-gradient(120deg, #2f97c9, #19b5fe);
  color: #fff;
  box-shadow: 0 10px 24px rgba(25, 181, 254, 0.38);
}
