/* =========================================================
 * 本地字体（自托管，避免 Google Fonts 国内连接超时）
 * ========================================================= */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-var.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-var-italic.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/fraunces-var.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/fraunces-var-italic.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/caveat-var.woff2') format('woff2-variations');
}

/* =========================================================
 * 海姿特 HYZE AT · v2 Editorial Beauty
 *
 * 设计哲学（huashu-design 选型）：
 *   流派：实验先锋派 × 时尚编辑
 *   参考：Acne Studios / Aēsop / The Gentlewoman 杂志 / 小红书高端医美
 *
 * 设计 token（v2）：
 *   Bone    #F8F4EF  米白底 · 页面主 bg
 *   Blush   #EED8D4  粉雾 · 次 bg / 高光
 *   Clay    #D9C4B0  奶咖 · 分隔块
 *   Oxblood #7A2323  酒红 · 主 CTA
 *   Ink     #1A1A1A  墨黑 · 正文强色
 *   Mute    #8B7D71  灰调 · 次要文本
 *
 * 字型：
 *   Display: Fraunces（粗衬线，杂志封面感）
 *   Body:    Inter（保持简洁）
 *   Accent:  Caveat（手写点缀）
 * ========================================================= */

:root {
  --bone:         #F8F4EF;
  --bone-soft:    #B2ECE5;
  --blush:        #EED8D4;
  --blush-deep:   #E4BFB9;
  --clay:         #D9C4B0;
  --oxblood:      #1B3A38;
  --oxblood-dark: #0F2826;
  --ink:          #1A1A1A;
  --ink-soft:     #3A3A3A;
  --mute:         #8B7D71;
  --hair:         #E2D6CC;

  /* 为了兼容旧 class，保留映射别名 */
  --cream:  var(--bone);
  --milk:   var(--bone-soft);
  --peach:  var(--blush);
  --latte:  var(--clay);
  --berry:  var(--oxblood);
  --forest: var(--ink);
}

/* Tailwind 扩展兼容 */
.bg-cream { background-color: var(--bone); }
.bg-milk  { background-color: var(--bone-soft); }
.bg-peach { background-color: var(--blush); }
.bg-latte { background-color: var(--clay); }
.bg-berry { background-color: var(--oxblood); }
.bg-forest{ background-color: var(--ink); }
.text-cream { color: var(--bone); }
.text-peach { color: var(--blush); }
.text-berry { color: var(--oxblood); }
.text-forest{ color: var(--ink); }
.text-ink   { color: var(--ink-soft); }
.border-peach { border-color: var(--blush); }
.border-forest{ border-color: var(--ink); }
.shadow-soft { box-shadow: 0 8px 32px rgba(26, 26, 26, 0.06); }

/* ============ 字体 ============ */
body {
  font-family: 'Inter', 'PingFang SC', 'Source Han Sans CN', 'Microsoft YaHei', sans-serif;
  color: var(--ink-soft);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  font-weight: 400;
}
.font-serif  { font-family: 'Fraunces', 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', serif; font-weight: 500; }
.font-caveat { font-family: 'Caveat', cursive; }

/* ============ 杂志编号/期号标签（Editorial） ============ */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}
.chapter-num {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-style: italic;
  font-size: 72px;
  color: var(--oxblood);
  line-height: 1;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  .chapter-num { font-size: 120px; }
}
.rule-line {
  flex: 1;
  height: 1px;
  background: var(--ink);
  opacity: 0.25;
}

/* ============ 顶部导航 ============ */
#header {
  background: transparent;
  transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}
#header.scrolled {
  background: rgba(248, 244, 239, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(26, 26, 26, 0.06);
}
#mobileMenu {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 60;
  background-color: #F8F4EF !important;
  background-color: var(--bone) !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility 0s linear .25s;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
#mobileMenu.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .25s ease, visibility 0s linear 0s;
}
@media (min-width: 768px) {
  #mobileMenu,
  #mobileMenu.show { display: none !important; }
}

.nav-link-inline {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  transition: color .2s;
}
.nav-link-inline::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--oxblood);
  transition: width .3s ease;
}
.nav-link-inline:hover { color: var(--oxblood); }
.nav-link-inline:hover::after { width: 100%; }

body.menu-open { overflow: hidden; touch-action: none; }
.menu-link {
  color: var(--ink);
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-style: italic;
  transition: color .2s;
}
.menu-link:hover { color: var(--oxblood); }

/* ============ Section 基础 ============ */
.section-wrap {
  padding: 80px 20px;
}
@media (min-width: 768px) {
  .section-wrap { padding: 140px 60px; }
}
.section-inner { max-width: 1160px; margin: 0 auto; }

.section-title {
  font-family: 'Fraunces', 'Noto Serif SC', serif;
  color: var(--ink);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
@media (min-width: 768px) {
  .section-title { font-size: 72px; }
}
.section-subtitle {
  color: var(--mute);
  margin-top: 16px;
  font-size: 14px;
}
@media (min-width: 768px) {
  .section-subtitle { font-size: 15px; }
}

/* Chapter header：编号 + 标签 + 标题 */
.chapter-head {
  margin-bottom: 48px;
}
@media (min-width: 768px) {
  .chapter-head { margin-bottom: 80px; }
}
.chapter-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

/* ============ Reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Hero 箭头 ============ */
@keyframes bounceSoft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}
.animate-bounce-soft { animation: bounceSoft 2.4s infinite ease-in-out; }

/* ============ 服务 · Editorial Cards ============ */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 640px) {
  .service-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (min-width: 1024px) {
  .service-grid { grid-template-columns: 1fr 1fr 1fr; gap: 48px 40px; }
}

.service-card {
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .4s ease;
}
.service-card:hover { transform: translateY(-4px); }

.service-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bone-soft);
  border-radius: 2px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.service-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .6s ease;
}
.service-card:hover .service-img img { transform: scale(1.05); }

.service-index {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--bone);
  letter-spacing: 0.15em;
  mix-blend-mode: difference;
}

.service-card h3 {
  font-family: 'Fraunces', 'Noto Serif SC', serif;
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
}
.service-card p {
  font-size: 13px;
  color: var(--mute);
  line-height: 1.6;
}
@media (min-width: 768px) {
  .service-card h3 { font-size: 26px; }
  .service-card p  { font-size: 14px; }
}

/* ============ 价格表图（替换 Tab） ============ */
.price-image-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(27, 58, 56, 0.08);
  cursor: zoom-in;
  position: relative;
}
.price-image {
  width: 100%;
  height: auto;
  display: block;
}
.price-image-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(27, 58, 56, 0.85);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.05em;
  border-radius: 999px;
  pointer-events: none;
  backdrop-filter: blur(6px);
}

/* ============ Lightbox 图片放大 ============ */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 20, 20, 0.96);
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  padding: 60px 20px 40px;
  -webkit-overflow-scrolling: touch;
}
#lightbox.show {
  display: flex;
  animation: fadeIn .25s ease;
}
#lightbox img {
  max-width: 100%;
  height: auto;
  margin: auto;
  border-radius: 4px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}
.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--bone);
  border: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 101;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform .2s, background .2s;
  padding: 0;
}
.lightbox-close:hover { background: #fff; transform: scale(1.05); }
.lightbox-close:active { transform: scale(0.95); }
.lightbox-close svg { width: 16px; height: 16px; stroke-width: 2.2; }

/* ============ 价格表 Tab · Editorial Menu ============ */
.price-tab {
  flex-shrink: 0;
  padding: 8px 0;
  margin-right: 32px;
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  color: var(--mute);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all .25s;
  cursor: pointer;
}
.price-tab:hover { color: var(--ink); }
.price-tab.active {
  color: var(--oxblood);
  border-bottom-color: var(--oxblood);
}
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

.price-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: fadeIn .4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Menu 风格价格行：点线 leader */
.price-row {
  background: transparent;
  border: none;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  border-bottom: 1px solid var(--hair);
  position: relative;
}
.price-row:last-child { border-bottom: none; }
.price-row > div:first-child { flex: 1; min-width: 0; }

.price-row h4 {
  font-family: 'Fraunces', 'Noto Serif SC', serif;
  font-weight: 500;
  font-size: 19px;
  color: var(--ink);
  margin-top: 6px;
  letter-spacing: -0.005em;
}
@media (min-width: 768px) {
  .price-row h4 { font-size: 22px; }
}
.price-row p {
  font-size: 12px;
  color: var(--mute);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.price-badge {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: transparent;
  color: var(--oxblood);
  border: 1px solid var(--oxblood);
  padding: 3px 8px 2px;
  border-radius: 0;
  font-weight: 500;
}
.price-right {
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.price-origin {
  display: block;
  font-size: 12px;
  color: var(--mute);
  text-decoration: line-through;
  font-family: 'Fraunces', serif;
  font-style: italic;
}
.price-now {
  display: block;
  font-size: 24px;
  font-weight: 500;
  color: var(--oxblood);
  font-family: 'Fraunces', serif;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-top: 2px;
}
@media (min-width: 768px) {
  .price-now { font-size: 28px; }
}

/* ============ Chip ============ */
.chip {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--oxblood);
  color: var(--oxblood);
  font-weight: 500;
}

/* ============ 画廊 · Editorial Strip ============ */
.gallery-item {
  flex-shrink: 0;
  width: 78%;
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  overflow: hidden;
  scroll-snap-align: center;
  background: var(--bone-soft);
}
@media (min-width: 768px) {
  .gallery-item { width: 38%; aspect-ratio: 3 / 4; }
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--bone);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hair);
  cursor: pointer;
  z-index: 2;
  transition: all .2s;
}
.gallery-arrow.left-0  { left: -20px; }
.gallery-arrow.right-0 { right: -20px; }
.gallery-arrow:hover { background: var(--oxblood); color: var(--bone); border-color: var(--oxblood); }

/* ============ 地址 · Editorial Card ============ */
.info-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--bone-soft);
  border-radius: 2px;
  padding: 36px 28px;
  border: 1px solid var(--hair);
}
@media (min-width: 768px) {
  .info-card { padding: 56px 56px; }
}
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hair);
}
.info-row:first-child { padding-top: 0; }
.info-row:last-of-type { border-bottom: none; }

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--oxblood);
  color: var(--oxblood);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-icon svg {
  width: 20px;
  height: 20px;
}
.info-text { flex: 1; min-width: 0; }
.info-label {
  font-size: 10px;
  color: var(--mute);
  margin-bottom: 6px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
}
.info-value {
  color: var(--ink);
  font-weight: 400;
  line-height: 1.65;
  font-size: 14px;
  font-family: 'Fraunces', 'Noto Serif SC', serif;
}
@media (min-width: 768px) {
  .info-value { font-size: 16px; }
}
.info-sub {
  display: inline-block;
  font-size: 12px;
  color: var(--mute);
  opacity: 1;
  font-weight: 400;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
}
.info-action {
  text-align: center;
  padding-top: 26px;
  margin-top: 10px;
  border-top: 1px solid var(--hair);
}

/* ============ 按钮 ============ */
.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 0;
  background: var(--oxblood);
  color: var(--bone);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: background .25s, transform .2s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover { background: var(--oxblood-dark); transform: translateY(-1px); }
.btn-outline {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: all .25s;
  cursor: pointer;
}
.btn-outline:hover { background: var(--ink); color: var(--bone); }

/* ============ 浮动 CTA ============ */
#fabMenu.show { display: flex; animation: fadeIn .3s ease; }
#fabToggle.active { transform: rotate(45deg); }
#fabToggle {
  background: var(--oxblood) !important;
  color: var(--bone) !important;
  box-shadow: 0 10px 30px rgba(122, 35, 35, 0.3);
}
.fab-item {
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bone);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.2);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
}
.fab-item:hover { background: var(--oxblood); }

/* ============ 联系弹窗 ============ */
#contactModal.show { display: flex; animation: fadeIn .25s ease; }
.contact-tab {
  padding: 9px 14px;
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--hair);
  color: var(--mute);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
}
.contact-tab.active {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}
.contact-panel { animation: fadeIn .25s ease; }
.qr-img {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--bone);
}
.qr-img.qr-square { max-width: 220px; }

/* ============ 底部 CTA ============ */
.footer-cta {
  padding: 16px 40px;
  border-radius: 0;
  background: var(--bone);
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all .2s;
}
.footer-cta:hover {
  background: var(--blush);
  transform: translateY(-2px);
}

/* ============ 全局细节 ============ */
html { scroll-behavior: smooth; }
a { text-decoration: none; color: inherit; }
img { display: block; }
button, a { -webkit-tap-highlight-color: transparent; }

/* 选中高亮 */
::selection { background: var(--oxblood); color: var(--bone); }
