/* =========================================================
 * 移动端首页样式（m/）— 移动优先、App 化、奢华风
 * 内容由 ../js/config.js + ../js/script.js 渲染，与 PC 端完全同步
 * ========================================================= */
:root {
  --gold: #c2a36b;
  --gold-deep: #a8884e;
  --gold-soft: #e8dcc2;
  --ink: #1c1a17;
  --ink-soft: #2b2620;
  --cream: #faf6ef;
  --cream-2: #f3ece0;
  --muted: #8a8175;
  --line: rgba(194, 163, 107, 0.28);
  --serif: "Noto Serif SC", "Playfair Display", serif;
  --serif-en: "Cormorant Garamond", "Playfair Display", serif;
  --sans: "Noto Sans SC", "Montserrat", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 54px;
  --mbar-h: 60px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--cream); }
body {
  font-family: var(--sans); font-weight: 300; color: var(--ink);
  background: var(--cream); line-height: 1.8;
  padding-bottom: calc(var(--mbar-h) + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* 锚点跳转为固定栏留白 */
section[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }

/* ============ 顶栏 ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 1.1rem;
  background: rgba(28, 26, 23, 0.55);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.4s var(--ease);
}
.nav.is-scrolled { background: rgba(250, 246, 239, 0.92); border-bottom-color: var(--line); }
.nav__brand { display: flex; flex-direction: column; line-height: 1; }
.nav__brand-cn { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; letter-spacing: 0.06em; color: #fff; transition: color 0.4s var(--ease); }
.nav__brand-en { font-family: var(--serif-en); font-style: italic; font-weight: 400; font-size: 0.7rem; letter-spacing: 0.28em; color: var(--gold); margin-top: 0.28rem; }
.nav.is-scrolled .nav__brand-cn { color: var(--ink); }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: calc(var(--nav-h) + 2rem) 1.4rem 3rem;
}
.hero__bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; background: #1a1714; }
.hero__slide { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.08); transition: opacity 1.5s ease; animation: heroZoom 16s ease-out forwards; }
.hero__slide.is-active { opacity: 1; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, rgba(20,18,15,0.5) 0%, rgba(20,18,15,0.35) 45%, rgba(20,18,15,0.66) 100%); }
.hero__content { position: relative; z-index: 2; max-width: 560px; }
.hero__eyebrow { font-family: var(--serif-en); letter-spacing: 0.34em; text-transform: uppercase; font-size: 0.72rem; color: var(--gold-soft); margin-bottom: 1.4rem; }
.hero__title { font-family: var(--serif); font-weight: 600; color: #fff; font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1.3; letter-spacing: 0.03em; text-shadow: 0 2px 24px rgba(0,0,0,0.4); }
.hero__sub { color: rgba(255,255,255,0.85); font-size: 0.98rem; margin: 1.3rem auto 2rem; max-width: 420px; }
.hero__actions { display: flex; flex-direction: column; gap: 0.8rem; }
.hero__scroll { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.hero__scroll-line { width: 1px; height: 42px; background: linear-gradient(var(--gold), transparent); animation: scrollPulse 2.2s infinite; }
.hero__scroll-text { font-family: var(--serif-en); letter-spacing: 0.3em; font-size: 0.56rem; color: var(--gold-soft); writing-mode: vertical-rl; }
@keyframes scrollPulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ============ 通用按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 1.8rem; font-family: var(--sans); font-size: 0.95rem; letter-spacing: 0.08em;
  border-radius: 3px; cursor: pointer; transition: all 0.4s var(--ease); min-height: 46px;
}
.btn--gold { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%); color: #fff; box-shadow: 0 14px 30px -14px rgba(168,136,78,0.8); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(168,136,78,0.9); }
.btn--ghost { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.5); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255,255,255,0.16); }
.btn--full { width: 100%; }

/* ============ 区块通用 ============ */
.section__eyebrow { font-family: var(--serif-en); letter-spacing: 0.3em; text-transform: uppercase; font-size: 0.72rem; color: var(--gold-deep); margin-bottom: 1rem; }
.section__eyebrow--center { text-align: center; }
.section__title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 6.6vw, 2.1rem); line-height: 1.35; letter-spacing: 0.02em; color: var(--ink); }
.section__title--center { text-align: center; }
.section__intro { color: var(--muted); font-size: 0.96rem; max-width: 480px; margin: 0.9rem auto 0; text-align: center; }

/* ============ 关于 ============ */
.about { padding: 4.2rem 1.4rem 3rem; max-width: 760px; margin: 0 auto; }
.about__title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.9rem, 8vw, 2.4rem); line-height: 1.2; letter-spacing: 0.08em; color: var(--ink); margin-bottom: 0.9rem; }
.about__bar { display: block; width: 70px; height: 4px; border-radius: 4px; margin: 0 0 1rem; background: linear-gradient(90deg, var(--gold-deep) 0%, var(--gold) 42%, #fbeecb 52%, var(--gold) 66%, var(--gold-deep) 100%); box-shadow: 0 0 14px rgba(194,163,107,0.55), inset 0 1px 1px rgba(255,255,255,0.65); position: relative; overflow: hidden; }
.about__bar::after { content: ""; position: absolute; top: 0; left: -50%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent); animation: barShine 3.2s ease-in-out infinite; }
@keyframes barShine { 0% { left: -50%; } 60%, 100% { left: 120%; } }
.about__en { margin-bottom: 0.8rem; }
.about__slogan { font-family: var(--serif); font-weight: 600; font-size: clamp(1.35rem, 5.4vw, 1.8rem); line-height: 1.4; letter-spacing: 0.02em; color: var(--ink-soft); margin: 0 0 1.2rem; }
.about__lead { font-family: var(--serif); font-size: 1.08rem; line-height: 1.9; color: var(--ink-soft); margin: 0 0 1rem; }
.about__desc { color: var(--muted); font-size: 0.96rem; }
.about__stats { display: flex; gap: 1.4rem; margin-top: 2rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-family: var(--serif-en); font-size: 2.1rem; color: var(--gold-deep); line-height: 1; }
.stat__label { font-size: 0.8rem; color: var(--muted); margin-top: 0.4rem; letter-spacing: 0.05em; }
.about__media { position: relative; margin-top: 2rem; }
.about__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; box-shadow: 0 30px 60px -36px rgba(28,26,23,0.55); }
.about__badge { position: absolute; top: -1.1rem; left: -0.6rem; background: var(--gold); color: #fff; font-family: var(--serif-en); letter-spacing: 0.18em; font-size: 0.78rem; padding: 0.8rem 1rem; border-radius: 3px; box-shadow: 0 16px 32px -16px rgba(168,136,78,0.85); }

/* ============ 服务（卡片） ============ */
.services { background: var(--ink); color: #fff; padding: 4.2rem 1.4rem; }
.services__head { margin-bottom: 2.2rem; }
.services__head .section__title { color: #fff; }
.services__grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; max-width: 560px; margin: 0 auto; }
.service { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 1.8rem 1.5rem; transition: all 0.5s var(--ease); }
.service:hover { background: rgba(255,255,255,0.08); transform: translateY(-3px); }
.service__icon { font-size: 1.9rem; color: var(--gold); margin-bottom: 1rem; }
.service__title { font-family: var(--serif); font-size: 1.25rem; color: #fff; margin-bottom: 0.6rem; letter-spacing: 0.04em; }
.service__desc { color: rgba(255,255,255,0.72); font-size: 0.94rem; }

/* ============ 案例 ============ */
.works { padding: 4.2rem 1.4rem; max-width: 760px; margin: 0 auto; }
.works__head { margin-bottom: 2rem; }
.works__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.work { position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 20px 40px -28px rgba(28,26,23,0.6); }
.work img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform 0.6s var(--ease); }
.work--tall img { aspect-ratio: 3/5; }
.work--wide { grid-column: 1 / -1; }
.work--wide img { aspect-ratio: 16/9; }
.work:hover img { transform: scale(1.06); }
.work__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.1rem; background: linear-gradient(0deg, rgba(20,18,15,0.82), transparent); opacity: 1; transform: none; }
.work__tag { font-family: var(--serif-en); letter-spacing: 0.2em; font-size: 0.66rem; color: var(--gold); text-transform: uppercase; }
.work__name { font-family: var(--serif); font-size: 1.05rem; color: #fff; margin-top: 0.3rem; }

/* ============ 流程 ============ */
.process { background: var(--cream-2); padding: 4.2rem 1.4rem; }
.process__head { margin-bottom: 2.2rem; }
.process__steps { display: grid; grid-template-columns: 1fr; gap: 1.1rem; max-width: 560px; margin: 0 auto; }
.step { background: #fff; border-radius: 8px; padding: 1.6rem 1.4rem; box-shadow: 0 18px 36px -28px rgba(28,26,23,0.4); border-left: 3px solid var(--gold); }
.step__num { font-family: var(--serif-en); font-size: 2rem; color: var(--gold); display: block; margin-bottom: 0.6rem; }
.step__title { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); margin-bottom: 0.5rem; }
.step__desc { color: var(--muted); font-size: 0.94rem; }

/* ============ 团队 ============ */
.team { padding: 4.2rem 1.4rem; max-width: 760px; margin: 0 auto; }
.team__head { margin-bottom: 2rem; }
.team__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.member { margin: 0; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 18px 36px -28px rgba(28,26,23,0.5); }
.member img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.member figcaption { padding: 0.9rem 1rem 1.1rem; }
.member__name { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); }
.member__role { font-size: 0.8rem; color: var(--gold-deep); letter-spacing: 0.04em; margin-top: 0.2rem; }

/* ============ 轮播图（图集） ============ */
.carousel { padding: 4.2rem 0; background: var(--ink); color: #fff; }
.carousel__head { padding: 0 1.4rem; margin-bottom: 2rem; }
.carousel__head .section__title { color: #fff; }
.carousel__viewport { position: relative; overflow: hidden; min-height: 300px; }
.carousel__track { display: flex; transition: transform 0.6s var(--ease); }
.carousel__slide { min-width: 100%; position: relative; }
.carousel__slide img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.carousel__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.5rem; background: linear-gradient(0deg, rgba(20,18,15,0.85), transparent); text-align: left; }
.carousel__cap h3 { font-family: var(--serif); font-size: 1.3rem; color: #fff; }
.carousel__cap p { font-size: 0.9rem; color: var(--gold-soft); margin-top: 0.3rem; }
.carousel__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(28,26,23,0.5); color: #fff; font-size: 1.5rem; cursor: pointer; z-index: 3; backdrop-filter: blur(4px); }
.carousel__arrow--prev { left: 0.8rem; }
.carousel__arrow--next { right: 0.8rem; }
.carousel__dots { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.4rem; }
.carousel__dot { width: 7px; height: 7px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.4); padding: 0; cursor: pointer; transition: all 0.4s var(--ease); }
.carousel__dot.is-active { background: var(--gold); width: 22px; border-radius: 6px; }

/* ============ 最新动态 ============ */
.news { padding: 4.2rem 1.4rem; max-width: 760px; margin: 0 auto; }
.news__head { margin-bottom: 2rem; }
.news__grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.news__item { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 40px -30px rgba(28,26,23,0.5); }
.news__media { overflow: hidden; }
.news__media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.news__body { padding: 1.3rem 1.4rem 1.5rem; }
.news__date { font-family: var(--serif-en); letter-spacing: 0.16em; font-size: 0.74rem; color: var(--gold-deep); }
.news__title { font-family: var(--serif); font-size: 1.18rem; margin: 0.5rem 0 0.6rem; color: var(--ink); }
.news__summary { color: var(--muted); font-size: 0.94rem; }

/* ============ 评价 ============ */
.quotes { background: var(--ink); color: #fff; padding: 4.2rem 1.6rem; text-align: center; }
.quotes__mark { font-family: var(--serif-en); font-size: 4rem; color: var(--gold); line-height: 0.4; }
.quotes__text { font-family: var(--serif); font-size: clamp(1.15rem, 5vw, 1.5rem); line-height: 1.9; color: #fff; margin: 1.2rem auto 1.4rem; max-width: 520px; }
.quotes__author { font-family: var(--serif-en); letter-spacing: 0.14em; color: var(--gold-soft); font-size: 0.9rem; }

/* ============ 预约 ============ */
.contact { padding: 4.2rem 1.4rem; max-width: 640px; margin: 0 auto; }
.contact__info { margin-bottom: 2.4rem; }
.contact__desc { color: var(--muted); font-size: 0.98rem; margin: 0.9rem 0 1.4rem; }
.contact__list { list-style: none; }
.contact__list li { padding: 0.8rem 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; color: var(--ink-soft); }
.contact__list li span { display: inline-block; width: 4rem; color: var(--gold-deep); font-size: 0.82rem; letter-spacing: 0.08em; }
.contact__form { background: #fff; border-radius: 12px; padding: 1.6rem 1.4rem; box-shadow: 0 26px 50px -34px rgba(28,26,23,0.5); }
.field { margin-bottom: 0.9rem; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); background: var(--cream); border-radius: 4px; padding: 0.9rem 1rem; font-family: var(--sans); font-size: 0.95rem; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
/* 日期/时间输入：限制在框内，避免窄屏溢出「出格」 */
.field input[type="date"], .field input[type="datetime-local"] {
  min-width: 0; max-width: 100%; box-sizing: border-box;
  font-size: 0.9rem; letter-spacing: 0.01em; font-variant-numeric: tabular-nums;
}
.contact__hint { margin-top: 0.9rem; font-size: 0.84rem; color: var(--muted); text-align: center; }

/* 移动端：宴席时间框 —— 正常全宽尺寸（与上下栏一致），框内显示完整日期格式 */
.field--wedding .field__control { position: relative; display: block; }
.field--wedding input[type="datetime-local"] {
  display: block; width: 100%; min-width: 0; max-width: 100%;
  font-size: 0.92rem; letter-spacing: 0.01em; font-variant-numeric: tabular-nums;
  color: transparent; /* 空值时隐藏原生占位文字，由下方中文格式提示覆盖 */
}
.field--wedding input[type="datetime-local"].is-filled { color: var(--ink); }
.field--wedding input[type="datetime-local"]::-webkit-calendar-picker-indicator { opacity: 0.55; cursor: pointer; margin-left: 0.4rem; }
/* 空值时框内显示完整日期格式提示；有值时由 JS 加 .is-filled 隐藏 */
.field__fmt {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: var(--muted); font-size: 0.9rem;
  letter-spacing: 0.03em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.field--wedding input[type="datetime-local"].is-filled ~ .field__fmt { display: none; }

/* 预约表单：日期/时间字段内的金色光泽标签（与输入同栏，置于上方，不遮挡输入） */
.field--gloss { margin-bottom: 0.9rem; }
.field__gloss {
  display: block; font-family: var(--serif); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.12em;
  text-align: left; margin: 0 0 0.5rem; pointer-events: none;
  background: linear-gradient(100deg, #b8902f 0%, #e7c873 22%, #fff6d4 45%, #f0d28a 58%, #b8902f 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: goldGloss 3.6s linear infinite;
  text-shadow: 0 1px 1px rgba(184,144,47,0.12);
}
@keyframes goldGloss { to { background-position: 220% center; } }

/* ============ 页脚 ============ */
.footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 3rem 1.4rem calc(2rem + env(safe-area-inset-bottom, 0px)); text-align: center; }
.footer__brand { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.2rem; }
.footer__cn { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; color: #fff; letter-spacing: 0.08em; }
.footer__en { font-family: var(--serif-en); font-style: italic; font-weight: 400; letter-spacing: 0.3em; font-size: 0.75rem; color: var(--gold); }
.footer__copy { font-size: 0.78rem; color: rgba(255,255,255,0.5); }
.footer__desktop {
  display: inline-block; margin-top: 1.1rem; font-size: 0.8rem; letter-spacing: 0.06em;
  color: var(--gold); border: 1px solid rgba(201,162,92,0.45); border-radius: 999px;
  padding: 0.45rem 1.1rem; transition: background 0.25s ease, color 0.25s ease;
}
.footer__desktop:active { background: var(--gold); color: var(--ink); }

/* ============ 底部标签栏 ============ */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: calc(var(--mbar-h) + env(safe-area-inset-bottom, 0px));
  display: flex; padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(250, 246, 239, 0.94);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-top: 1px solid var(--line);
}
.mbar__item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; color: var(--muted); transition: color 0.3s var(--ease); }
.mbar__ico { font-size: 1.25rem; line-height: 1; font-family: var(--serif-en); }
.mbar__txt { font-size: 0.66rem; letter-spacing: 0.06em; }
.mbar__item.is-active { color: var(--gold-deep); }
.mbar__item.is-active .mbar__ico { transform: translateY(-1px); }

/* ============ 进场动画 ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* 平板及以上：两列优化 */
@media (min-width: 600px) {
  .services__grid { grid-template-columns: 1fr 1fr; }
  .news__grid { grid-template-columns: 1fr 1fr; }
  .hero__actions { flex-direction: row; justify-content: center; }
}
