/* ============================================================
   天青·宋宴 —— 宋代美学设计系统
   色：宣纸米白 / 墨 / 天青 / 赭石 / 暖黄 / 印章朱砂
   字：宋体系（SimSun / Noto Serif SC）
   ============================================================ */
:root {
  --paper: #f7f2e6;
  --paper-2: #efe7d4;
  --paper-3: #e6dcc3;
  --ink: #33291f;
  --ink-2: #6b5c48;
  --ink-3: #97876c;
  --celadon: #7f9b96;
  --celadon-deep: #5f7f7a;
  --ochre: #9c6b4a;
  --lamp: #c9a35b;
  --seal: #a83c2d;
  --line: #d9cdb4;
  --white: #fffdf7;
  --ok: #4d7c5f;
  --bad: #b04a38;
  --shadow: 0 2px 10px rgba(70, 55, 30, 0.10);
  --radius: 6px;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", "STSong", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--serif);
  background: #efe9db;
  color: var(--ink);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
input, textarea, select { font-family: inherit; font-size: 15px; }

/* 页面容器：手机优先，桌面居中 */
.page {
  max-width: 520px;
  margin: 0 auto;
  background: var(--paper);
  min-height: 100vh;
  position: relative;
  padding-bottom: 88px;
  box-shadow: 0 0 30px rgba(70, 55, 30, 0.10);
}
.page--no-pad { padding-bottom: 0; }

/* 宣纸纹理（轻） */
.paper-bg {
  background-color: var(--paper);
  background-image:
    radial-gradient(1200px 400px at 20% -10%, rgba(201, 163, 91, 0.06), transparent 60%),
    radial-gradient(900px 300px at 90% 30%, rgba(127, 155, 150, 0.05), transparent 55%);
}

/* ============ 印章 ============ */
.seal {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  background: linear-gradient(145deg, #b34a35 0%, #a83c2d 45%, #8e3226 100%);
  color: #f7f2e6;
  font-size: 12px; letter-spacing: 1px;
  border-radius: 6px 8px 5px 9px / 7px 5px 8px 6px;
  font-family: "STKaiti", "KaiTi", var(--serif);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 253, 247, 0.5),
    inset 0 -4px 6px rgba(70, 20, 8, 0.35),
    inset 0 3px 5px rgba(255, 240, 225, 0.18),
    0 2px 5px rgba(168, 60, 45, 0.28);
  text-shadow: 0 1px 1px rgba(70, 20, 8, 0.45);
  transform: rotate(-3deg);
}
/* 印章刻痕 */
.seal::after {
  content: ""; position: absolute; left: 10%; right: 12%; top: 45%; height: 1.5px;
  background: rgba(255, 253, 247, 0.22);
  transform: rotate(-1.5deg);
}
.seal-sm { width: 22px; height: 22px; font-size: 9px; }

/* ============ 竖排小字 ============ */
.v-text {
  writing-mode: vertical-rl;
  font-size: 12px; letter-spacing: 4px; color: var(--ink-3);
}

/* ============ 祥云分隔 ============ */
.cloud-divider {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-3); font-size: 12px; letter-spacing: 6px;
  margin: 18px 0;
}
.cloud-divider::before, .cloud-divider::after {
  content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line));
}
.cloud-divider::after { background: linear-gradient(90deg, var(--line), transparent); }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 15px; letter-spacing: 2px;
  padding: 10px 18px;
  border-radius: 999px;
  transition: filter .15s, transform .05s;
  user-select: none;
}
.btn:active { transform: translateY(1px); filter: brightness(.96); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(180deg, #ad7e58 0%, #9c6b4a 55%, #8a5a3c 100%);
  border-color: #8a5a3c; color: #fdf8ee;
  box-shadow: 0 2px 6px rgba(140, 95, 63, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:active { box-shadow: inset 0 2px 6px rgba(60, 35, 15, 0.4); }
.btn-ink {
  background: linear-gradient(180deg, #463a2b 0%, #33291f 55%, #2a2118 100%);
  border-color: #2a2118; color: #f7f2e6;
  box-shadow: 0 2px 6px rgba(43, 33, 21, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-ink:active { box-shadow: inset 0 2px 6px rgba(10, 6, 2, 0.45); }
.btn-celadon { background: var(--celadon-deep); border-color: var(--celadon-deep); color: #fdfaf2; }
.btn-seal { background: linear-gradient(180deg, #b34a35, #a83c2d 60%, #8e3226); border-color: #8e3226; color: #fdf6ec; }
.btn-ghost { background: transparent; }
/* 取消预订按钮（线框次要） */
.btn-line {
  background: transparent;
  border: 1px solid #c9b89a;
  color: #8a7355;
}
.btn-line:hover { border-color: #b04a38; color: #b04a38; }

.btn-block { width: 100%; }
.btn-lg { padding: 13px 20px; font-size: 16px; }

/* ============ 卡片 ============ */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-pad { padding: 16px; }

/* ============ 顶部标题条 ============ */
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 242, 230, 0.96);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(4px);
}
.topbar .back {
  width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--white); font-size: 16px;
}
.topbar h1 { font-size: 18px; font-weight: 600; letter-spacing: 3px; flex: 1; }
.topbar .seal { margin-left: auto; }

/* ============ 区块标题 ============ */
.section { padding: 22px 16px 6px; }
.section-title {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 20px; font-weight: 700; letter-spacing: 4px;
  color: var(--ink);
}
.section-title .en {
  font-size: 11px; letter-spacing: 3px; color: var(--ink-3);
  font-family: var(--sans);
}
.section-sub { font-size: 12px; color: var(--ink-2); letter-spacing: 1px; margin-top: 4px; text-align: center; }

/* ============ 首页 Hero ============ */
.hero { position: relative; height: 420px; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,22,10,0) 30%, rgba(30,22,10,0.55) 100%);
}
.hero-text {
  position: absolute; left: 22px; right: 22px; bottom: 26px; z-index: 2;
  color: #f6efe0;
}
.hero-brand { font-size: 30px; letter-spacing: 8px; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.hero-slogan { margin-top: 6px; font-size: 13px; letter-spacing: 4px; opacity: .92; }
.hero-line {
  display: flex; align-items: center; gap: 6px;
  margin-top: 7px; font-size: 12.5px; color: rgba(255, 250, 240, 0.92);
  letter-spacing: 0.5px; text-shadow: 0 1px 3px rgba(43, 33, 21, 0.45);
}
.hero-hours {
  margin-top: 10px; display: inline-block;
  font-size: 12px; letter-spacing: 1px;
  border: 1px solid rgba(246, 239, 224, 0.5);
  padding: 3px 10px; border-radius: 999px;
  background: rgba(30, 22, 10, 0.25);
}

/* ============ 餐厅信息 ============ */
.info-card {
  margin: -38px 16px 0; position: relative; z-index: 3;
  padding: 14px 16px;
}
.info-row { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; font-size: 13.5px; color: var(--ink-2); }
.info-row .k { color: var(--ochre); letter-spacing: 1px; white-space: nowrap; font-size: 12px; }
.info-row .v { flex: 1; }

/* ============ 招牌菜横滑 ============ */
.dish-scroll {
  display: flex; gap: 12px; overflow-x: auto;
  padding: 14px 16px 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.dish-scroll::-webkit-scrollbar { display: none; }
.dish-card {
  flex: 0 0 148px; scroll-snap-align: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.dish-card img { width: 148px; height: 148px; object-fit: cover; }
.dish-card .nm { padding: 8px 10px 2px; font-size: 14px; font-weight: 600; letter-spacing: 2px; }
.dish-card .ds { padding: 0 10px 10px; font-size: 11.5px; color: var(--ink-3); }

/* ============ 包间列表 ============ */
.room-list { padding: 6px 16px 0; display: flex; flex-direction: column; gap: 14px; }
.room-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.room-card.selected { border-color: var(--celadon); box-shadow: 0 0 0 2px rgba(127,155,150,.45); }
.room-media { position: relative; }
.room-media img { width: 100%; height: 180px; object-fit: cover; }
.room-capacity {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(51, 41, 31, 0.72); color: #f6efe0;
  font-size: 11px; padding: 2px 9px; border-radius: 999px; letter-spacing: 1px;
}
.room-body { padding: 12px 14px 14px; }
.room-name { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; letter-spacing: 3px; }
.room-name .price { margin-left: auto; font-size: 12px; color: var(--seal); font-weight: 600; }
.room-desc { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }
.room-actions { display: flex; gap: 10px; margin-top: 12px; }
.room-actions .btn { flex: 1; font-size: 13px; padding: 8px 0; }

/* ============ 底部通栏（首页） ============ */
.bottom-bar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 100%; max-width: 520px;
  display: flex; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(247, 242, 230, 0.97);
  border-top: 1px solid var(--line);
  z-index: 30;
  backdrop-filter: blur(6px);
}
.bottom-bar .btn { flex: 1; padding: 12px 0; font-size: 16px; }

/* ============ 表单 ============ */
.field { margin-bottom: 18px; }
.field-label { font-size: 14px; letter-spacing: 2px; color: var(--ink); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.field-label .req { color: var(--seal); }
.field-label .tip { margin-left: auto; font-size: 11px; color: var(--ink-3); font-family: var(--sans); }
.field input[type="text"], .field input[type="tel"], .field input[type="date"],
.field input[type="password"], .field input[type="number"], .field input[type="search"],
.field textarea, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 12px; background: var(--white); color: var(--ink); outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--celadon); }
.field-label.sub { font-size: 12.5px; color: var(--ink-2); letter-spacing: 1px; margin-bottom: 6px; }
.field textarea { min-height: 64px; resize: vertical; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  border: 1px solid var(--line); background: var(--white); color: var(--ink-2);
  font-size: 13.5px; padding: 7px 14px; border-radius: 999px; letter-spacing: 1px;
  transition: all .15s;
}
.chip.active { background: var(--ink); border-color: var(--ink); color: #f7f2e6; }

/* 人数步进 */
.stepper { display: inline-flex; align-items: center; gap: 18px; }
.stepper button {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white);
  font-size: 20px; color: var(--ink);
}
.stepper .num { font-size: 22px; min-width: 44px; text-align: center; font-weight: 600; }
.stepper .cap { font-size: 12px; color: var(--ink-3); }

/* 性别 */
.gender-group { display: flex; gap: 12px; }
.gender-group label {
  flex: 1; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 0; background: var(--white); font-size: 14px; color: var(--ink-2);
  cursor: pointer;
}
.gender-group input { display: none; }
.gender-group input:checked + span { color: #fdf6ec; }
.gender-group label:has(input:checked) { background: var(--ochre); border-color: var(--ochre); }

/* 微信获取手机号 */
.phone-row { display: flex; gap: 10px; }
.phone-row input { flex: 1; }
.phone-row .btn { white-space: nowrap; font-size: 13px; padding: 0 14px; }
.phone-note { margin-top: 6px; font-size: 11.5px; color: var(--ink-3); }

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(12px);
  bottom: 110px; z-index: 90;
  background: rgba(51, 41, 31, 0.94); color: #f6efe0;
  font-size: 13.5px; letter-spacing: 1px;
  padding: 10px 20px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: all .25s;
  max-width: 88vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ 成功弹层 ============ */
.overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 80;
  background: rgba(40, 30, 18, 0.55);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.overlay.show { display: flex; }
.success-box {
  width: 100%; max-width: 400px;
  background: var(--paper); border-radius: 10px;
  padding: 30px 24px; text-align: center;
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.success-box .seal { margin: 0 auto 12px; width: 44px; height: 44px; font-size: 15px; }
.success-box h3 { font-size: 20px; letter-spacing: 4px; }
.success-box .code { margin: 14px 0 6px; font-size: 15px; letter-spacing: 2px; }
.success-box .code b { font-size: 22px; color: var(--seal); letter-spacing: 1px; }
.success-box .tip { font-size: 12.5px; color: var(--ink-2); margin: 8px 0 18px; }
.success-box .btns { display: flex; flex-direction: column; gap: 10px; }

/* ============ 邀请函 ============ */
.invite-hero { text-align: center; padding: 34px 16px 10px; }
.invite-hero .seal { width: 52px; height: 52px; font-size: 16px; margin: 0 auto 14px; }
.invite-hero h2 { font-size: 26px; letter-spacing: 8px; font-weight: 700; }
.invite-hero .sub { font-size: 12px; color: var(--ink-3); letter-spacing: 4px; margin-top: 6px; }

.status-banner { margin: 12px 16px 0; padding: 12px 16px; border-radius: var(--radius); font-size: 13.5px; display: flex; align-items: center; gap: 10px; }
.status-banner .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.status-pending { background: #f4ead3; color: #8a6d2f; }
.status-pending .dot { background: var(--lamp); }
.status-confirmed { background: #e4eee7; color: var(--ok); }
.status-confirmed .dot { background: var(--ok); }
.status-rejected { background: #f3e2dc; color: var(--bad); }
.status-rejected .dot { background: var(--bad); }

.invite-card {
  margin: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  position: relative;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.invite-card::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid rgba(201, 163, 91, 0.35);
  border-radius: 5px; pointer-events: none;
}
.invite-head {
  text-align: center; padding: 26px 20px 14px;
  background: linear-gradient(180deg, #f3ecdb, var(--white));
  border-bottom: 1px dashed var(--line);
}
.invite-head .rname { font-size: 22px; letter-spacing: 6px; font-weight: 700; }
.invite-head .rname + .seal { position: absolute; top: 20px; right: 24px; }
.invite-head .greet { margin-top: 8px; font-size: 13px; color: var(--ink-2); letter-spacing: 1px; }
.invite-head .guest { margin-top: 12px; font-size: 18px; color: var(--ochre); letter-spacing: 3px; font-weight: 600; }
.invite-body { padding: 18px 24px 10px; }
.invite-line { display: flex; padding: 8px 0; border-bottom: 1px dotted var(--line); font-size: 14px; }
.invite-line:last-child { border-bottom: none; }
.invite-line .k { color: var(--ink-3); width: 74px; flex: none; letter-spacing: 2px; font-size: 12.5px; padding-top: 1px; }
.invite-line .v { flex: 1; color: var(--ink); }
.invite-line .v b { color: var(--seal); letter-spacing: 1px; }
.invite-foot { padding: 16px 20px 20px; text-align: center; }
.invite-foot .copy { font-size: 11.5px; color: var(--ink-3); letter-spacing: 2px; }
.invite-actions { display: flex; flex-direction: column; gap: 12px; padding: 6px 16px 10px; }
.invite-actions .btn { padding: 13px 0; font-size: 15px; }

/* 浮动预订按钮 */
.fab {
  position: fixed; right: max(18px, calc(50% - 260px + 18px)); bottom: 24px;
  z-index: 40;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--seal); color: #fdf6ec;
  border: none; border-radius: 999px;
  padding: 13px 22px; font-size: 15px; letter-spacing: 3px;
  box-shadow: 0 6px 18px rgba(168, 60, 45, 0.45);
}
.fab:active { transform: translateY(1px); }

/* ============ 管理后台（桌面优先） ============ */
.admin-body { background: #ece5d5; }
.admin-wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px 60px; }
.admin-top {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 0 14px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(236, 229, 213, 0.96); z-index: 30;
}
.admin-top h1 { font-size: 19px; letter-spacing: 4px; }
.admin-top .who { font-size: 12px; color: var(--ink-3); }
.admin-top .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.admin-tabs { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.admin-tabs .tab {
  border: 1px solid var(--line); background: var(--white);
  padding: 7px 16px; border-radius: 999px; font-size: 13px; color: var(--ink-2); letter-spacing: 1px;
}
.admin-tabs .tab.active { background: var(--ink); color: #f7f2e6; border-color: var(--ink); }
.admin-tabs .tab .n { font-size: 11px; opacity: .7; margin-left: 4px; }

.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.admin-card { display: flex; flex-direction: column; }
.admin-card .head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.admin-card .head .code { font-size: 14px; font-weight: 600; letter-spacing: 1px; }
.admin-card .head .state { margin-left: auto; font-size: 11px; padding: 2px 10px; border-radius: 999px; letter-spacing: 1px; }
.state-pending { background: #f4ead3; color: #8a6d2f; }
.state-confirmed { background: #e4eee7; color: var(--ok); }
.state-rejected { background: #f3e2dc; color: var(--bad); }
.state-cancelled { background: #e9e4d8; color: var(--ink-3); }
.admin-card .body { padding: 10px 14px; font-size: 13px; }
.admin-card .row { display: flex; padding: 4px 0; }
.admin-card .row .k { width: 84px; color: var(--ink-3); flex: none; }
.admin-card .row .v { flex: 1; }
.admin-card .actions { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); margin-top: auto; }
.admin-card .actions .btn { flex: 1; font-size: 12.5px; padding: 8px 0; }

.admin-toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.admin-toolbar input {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  background: var(--white); width: 260px; max-width: 100%;
}

/* 设置表单 */
.setting-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.setting-card h3 { font-size: 15px; letter-spacing: 2px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.setting-card h3 .en { font-size: 11px; color: var(--ink-3); font-family: var(--sans); letter-spacing: 1px; }

/* 表格 */
.sms-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sms-table th, .sms-table td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.sms-table th { background: var(--paper-2); letter-spacing: 1px; }

/* 模态框 */
.modal-mask {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(40, 30, 18, 0.55); z-index: 70;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
  width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 22px; box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.modal h3 { font-size: 17px; letter-spacing: 2px; margin-bottom: 16px; }
.modal .btns { display: flex; gap: 10px; margin-top: 18px; }
.modal .btns .btn { flex: 1; }

.empty { text-align: center; color: var(--ink-3); font-size: 13px; padding: 40px 0; letter-spacing: 2px; }

/* 页脚 */
.footer { text-align: center; padding: 26px 16px 18px; color: var(--ink-3); font-size: 12px; letter-spacing: 2px; }
.footer .v { margin: 0 auto 8px; }

/* 微响应：桌面更宽松 */
@media (min-width: 700px) {
  .page { max-width: 520px; }
  .fab { right: calc(50% - 260px + 18px); }
}

/* ============ 包间详情页 ============ */
.room-hero { position: relative; height: 400px; overflow: hidden; }
.room-hero img { width: 100%; height: 100%; object-fit: cover; }
.room-hero-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,22,10,0) 35%, rgba(30,22,10,0.6) 100%); }
.room-hero-text { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 2; color: #f6efe0; }
.rh-name { font-size: 30px; letter-spacing: 8px; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.rh-tags { margin-top: 8px; display: inline-block; font-size: 12px; letter-spacing: 2px; border: 1px solid rgba(246,239,224,.5); padding: 3px 12px; border-radius: 999px; background: rgba(30,22,10,.25); }
.room-detail-card { margin: 14px 16px 0; padding: 12px 16px; }
.rd-line { display: flex; padding: 7px 0; font-size: 14px; border-bottom: 1px dotted var(--line); }
.rd-line:last-child { border-bottom: none; }
.rd-line .k { width: 76px; flex: none; color: var(--ochre); font-size: 12.5px; letter-spacing: 2px; }
.rd-line .v { flex: 1; color: var(--ink-2); }
.input-select {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 12px; background: var(--white); color: var(--ink); font-size: 15px; outline: none;
}

/* ============ 邀请函（图文并茂） ============ */
.invite-banner { position: relative; height: 210px; overflow: hidden; }
.invite-banner img { width: 100%; height: 100%; object-fit: cover; }
.invite-banner-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,22,10,.15), rgba(30,22,10,.6)); }
.invite-banner-text { position: absolute; left: 24px; bottom: 18px; color: #f6efe0; z-index: 2; }
.ib-name { font-size: 26px; letter-spacing: 8px; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.ib-slogan { margin-top: 4px; font-size: 12px; letter-spacing: 5px; opacity: .92; }

.invite-scroll { padding: 18px 16px 6px; }
.invite-paper {
  position: relative;
  background:
    url("/static/images/hill.svg") repeat-x bottom / auto 30px,
    url("/static/images/paper.webp") repeat,
    radial-gradient(ellipse at 18% 0%, rgba(255,250,235,.92), rgba(255,253,247,0) 55%),
    radial-gradient(ellipse at 85% 100%, rgba(201,163,91,.10), rgba(255,253,247,0) 45%),
    #fffdf7;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(70,55,30,.08), 0 10px 30px rgba(70,55,30,.14);
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}
.invite-paper .k, .invite-paper .v, .invite-paper .ip-greet {
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}
.invite-paper::before {
  content: ""; position: absolute; inset: 9px;
  border: 1px solid rgba(201, 163, 91, 0.4);
  border-radius: 6px; pointer-events: none; z-index: 1;
}
.ip-top { position: relative; z-index: 1; text-align: center; padding: 32px 20px 18px; border-bottom: 1px dashed var(--line); background: linear-gradient(180deg, #f6f0e0, rgba(255,253,247,.65)); }
.ip-top .seal { margin: 0 auto 10px; width: 40px; height: 40px; font-size: 14px; }
.invite-paper .ip-greet {
  font-size: 14px; color: var(--ink-2); letter-spacing: 5px;
  font-family: "STKaiti", "KaiTi", "FangSong", "Songti SC", var(--serif);
}
.invite-paper .ip-guest {
  margin-top: 14px; font-size: 21px; color: var(--ochre);
  letter-spacing: 5px; font-weight: 600;
  font-family: "STKaiti", "KaiTi", "FangSong", "Songti SC", var(--serif);
}
.ip-media { position: relative; margin: 14px 14px 0; border-radius: 8px; overflow: hidden; }
.ip-media img { width: 100%; height: 210px; object-fit: cover; }
.ip-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(30,22,10,.45)); }
.ip-media-tag {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  color: #f6efe0; font-size: 15px; letter-spacing: 3px; font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.ip-body { position: relative; z-index: 1; padding: 18px 24px 10px; }
.ip-line {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; font-size: 14.5px;
  border-bottom: none;
}
.ip-line:last-child { border-bottom: none; }
.ip-line + .ip-line { border-top: 1px solid rgba(201,163,91,.16); }
.ip-ico { width: 16px; height: 16px; color: var(--celadon-deep); flex: none; }
.ip-line .k {
  color: var(--ink-3); width: auto; flex: none; letter-spacing: 3px; font-size: 12px;
  background: rgba(201,163,91,.13); border-radius: 4px; padding: 2px 9px;
}
.ip-line .v { flex: 1; color: var(--ink); letter-spacing: 1px; }
.ip-line .v b { color: var(--seal); letter-spacing: 1px; }
.ip-line .v .code { color: var(--seal); letter-spacing: 2px; font-size: 15px; }
.ip-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 16px 24px 26px; }
.ip-vtext { color: var(--ink-3); }
.ip-seal { display: flex; align-items: center; gap: 8px; }
.ip-seal .seal { transform: rotate(-2deg); }
.ip-seal-txt { font-size: 11px; color: var(--ink-3); letter-spacing: 2px; }

/* ============ 管理后台：登录页 ============ */
.admin-login {
  max-width: 420px; margin: 10vh auto 0; padding: 0 20px;
}
.login-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 8px 30px rgba(70, 55, 30, 0.14);
  padding: 36px 32px 32px;
  text-align: center;
}
.login-card .seal { width: 58px; height: 58px; font-size: 18px; margin: 0 auto 16px; }
.login-card h2 { font-size: 22px; letter-spacing: 8px; }
.login-card .sub { color: var(--ink-3); font-size: 12.5px; letter-spacing: 3px; margin: 8px 0 26px; }
.login-field { text-align: left; margin-bottom: 18px; }
.login-field label { display: block; font-size: 13px; letter-spacing: 2px; color: var(--ink-2); margin-bottom: 8px; }
.login-field input {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 12px; background: var(--white); color: var(--ink); outline: none; font-family: inherit;
}
.login-field input:focus { border-color: var(--celadon); }
.login-pwd { position: relative; display: flex; align-items: center; }
.login-pwd input { flex: 1; padding-right: 46px; }
.pwd-row { position: relative; display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.pwd-row input { width: 100%; }
.pwd-toggle {
  position: absolute; right: 10px; border: none; background: transparent;
  color: var(--ink-3); font-size: 12px; letter-spacing: 1px; padding: 4px 6px;
}
.login-tip { margin-top: 16px; font-size: 11.5px; color: var(--ink-3); letter-spacing: 1px; }
.login-tip b { color: var(--ochre); }

/* ============ 管理后台：包间管理 ============ */
.room-mgr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.room-mgr-card { overflow: hidden; }
.room-mgr-card img.rmg-img { width: 100%; height: 170px; object-fit: cover; }
.room-mgr-card .rmg-body { padding: 12px 14px 14px; }
.room-mgr-card .rmg-name { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; letter-spacing: 2px; }
.room-mgr-card .rmg-meta { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.7; }
.room-mgr-card .rmg-actions { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.room-mgr-card .rmg-actions .btn { flex: 1; font-size: 12.5px; padding: 8px 0; }
.upload-preview {
  display: flex; align-items: center; gap: 12px; margin-top: 10px;
}
.upload-preview img { width: 88px; height: 66px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.upload-preview .up-info { font-size: 12px; color: var(--ink-3); }/* ============ 管理后台：多图画廊 ============ */
.gallery-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.g-item { position: relative; width: 86px; height: 66px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-del { position: absolute; top: 0; right: 0; border: none; background: rgba(168,60,45,.88); color: #fff; width: 20px; height: 20px; line-height: 20px; font-size: 14px; cursor: pointer; border-radius: 0 0 0 6px; }/* ============ 首页包间余位 ============ */
.room-left {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(51,41,31,.72); color: #f6efe0;
  font-size: 11px; padding: 3px 10px; border-radius: 999px; letter-spacing: 1px;
}
.room-left.left-ok { background: rgba(95,127,122,.92); }
.room-left.left-full { background: rgba(168,60,45,.9); }

/* ============ 包间详情页轮播 ============ */
.room-swiper { position: absolute; inset: 0; }
.room-swiper .swiper-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.room-swiper .swiper-slide.on { opacity: 1; }
.room-swiper .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.swiper-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(30,22,10,.4); color: #f6efe0;
  border: none; font-size: 18px; line-height: 34px; cursor: pointer;
}
.swiper-prev { left: 12px; }
.swiper-next { right: 12px; }
.swiper-dots {
  position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 3;
}
.swiper-dots .dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(246,239,224,.5); cursor: pointer; }
.swiper-dots .dot.on { background: #f6efe0; }/* ============ 数据看板 ============ */
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.dash-kpi { background: #fffdf7; border: 1px solid #e3d8c0; border-radius: 12px; padding: 18px 20px; }
.dk-label { font-size: 12px; letter-spacing: 3px; color: #9c6b4a; }
.dk-num { font-size: 34px; font-weight: 700; color: #33291f; margin: 8px 0 4px; letter-spacing: 1px; }
.dk-num.ok { color: #5f7f7a; }
.dk-num.warn { color: #a83c2d; }
.dk-num.accent { color: #9c6b4a; }
.dk-sub { font-size: 12px; color: #97876c; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dash-card { padding: 14px 16px; }
.dash-title { font-size: 13px; letter-spacing: 3px; color: #33291f; margin-bottom: 6px; }
.dash-title .en { color: #b9a48a; font-size: 10px; letter-spacing: 2px; margin-left: 6px; }
.dash-chart { width: 100%; height: 300px; }
.dash-note { margin-top: 14px; font-size: 12px; color: #97876c; letter-spacing: 1px; }
@media (max-width: 900px) { .dash-kpis { grid-template-columns: repeat(2, 1fr); } .dash-grid { grid-template-columns: 1fr; } }
/* 邀请函：地址导航 / 电话拨打链接 */
.invite-paper .ip-line .v a {
  color: #5f7f7a; text-decoration: none;
  border-bottom: 1px dashed #b9cbc7; padding-bottom: 1px;
}
.invite-paper .ip-line .v a:active { color: #a83c2d; }

/* 后台招牌菜编辑器 */
.dish-row { display: flex; gap: 10px; padding: 10px; margin-bottom: 10px; border: 1px dashed #d9cdb4; border-radius: 8px; background: #fdfaf2; }
.dish-row-img { width: 92px; flex-shrink: 0; }
.dish-row-img img { width: 92px; height: 92px; object-fit: cover; border-radius: 6px; display: block; }
.dish-row-ops { display: flex; gap: 6px; margin-top: 6px; }
.mini-btn { font-size: 11px; padding: 3px 8px; border: 1px solid #b9a48a; border-radius: 4px; background: #f7f2e6; color: #5a4a35; cursor: pointer; }
.mini-btn:hover { background: #efe9db; }
.mini-del { border-color: #c98a6b; color: #a83c2d; }
.dish-row-fields { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.dish-row-fields input, .dish-row-fields textarea { width: 100%; border: 1px solid #d9cdb4; border-radius: 6px; padding: 8px 10px; font-size: 13px; background: #fff; color: #33291f; box-sizing: border-box; }
/* 首页招牌菜详情弹层 */
.dish-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(43,33,21,0.55); }
.dish-modal.show { display: flex; }
.dish-modal-card { width: 320px; max-width: 88vw; background: #fdfaf2; border-radius: 12px; overflow: hidden; border: 1px solid #d9cdb4; box-shadow: 0 12px 40px rgba(43,33,21,0.35); }
.dish-modal-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.dish-modal-body { padding: 16px 18px 18px; }
.dish-modal-body h3 { font-size: 18px; letter-spacing: 3px; margin: 0 0 10px; color: #33291f; }
.dish-modal-body .dm-seal { display: inline-block; margin-bottom: 10px; }
.dish-modal-body p { font-size: 13.5px; line-height: 1.8; color: #6b5c48; margin: 0 0 14px; }
.dish-modal-close { width: 100%; }

/* LOGO 印章图片（替代原“宋宴”文字印章） */
.seal-logo {
  display: inline-block; width: 30px; height: 30px; object-fit: cover;
  border-radius: 3px; background: #fffdf7;
  box-shadow: 0 1px 4px rgba(43, 33, 21, 0.16);
  transform: rotate(-2deg); vertical-align: middle; flex-shrink: 0;
}
.seal-logo.sm { width: 22px; height: 22px; }
.seal-logo.lg { width: 34px; height: 34px; }

/* 看板日期筛选 */
.dash-filter {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: rgba(255, 253, 247, 0.75); border: 1px solid #e4dcc8;
  border-radius: 8px; padding: 10px 14px; margin-bottom: 14px;
}
.dash-filter .df-label { font-size: 13px; color: #6f6248; letter-spacing: 1px; }
.dash-select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fffdf7; color: var(--ink-2); font-size: 13px; }
.dash-filter input[type="date"] {
  padding: 6px 8px; font-size: 13px; color: #33291f; border: 1px solid #cfc4a8;
  border-radius: 4px; background: #fffdf7; font-family: inherit;
}
.dash-filter .df-sep { color: #9a8b6f; font-size: 13px; }
.dash-filter .btn { padding: 6px 12px; font-size: 12.5px; }

/* 上传行：按钮 + 地址双通道 */
.up-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.up-btn { cursor: pointer; margin: 0; }
.up-row input[type="text"] { flex: 1; min-width: 160px; padding: 8px 10px; font-size: 13px; color: #33291f; border: 1px solid #cfc4a8; border-radius: 4px; background: #fffdf7; font-family: inherit; }
.dish-url-row { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.dish-url { flex: 1; min-width: 0; padding: 5px 8px; font-size: 12px; color: #33291f; border: 1px solid #cfc4a8; border-radius: 4px; background: #fffdf7; font-family: inherit; }

.up-mini { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; margin: 0; user-select: none; }

/* 邀请函顶部微信分享图标 */
.top-wx {
  margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: none; background: transparent; color: #5f7f7a;
  cursor: pointer; border-radius: 50%; transition: background 0.2s;
}
.top-wx:hover { background: rgba(95, 127, 122, 0.12); }

/* 首页大图轮播 */
.hero { position: relative; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-dots {
  position: absolute; left: 0; right: 0; bottom: 14px;
  display: flex; justify-content: center; gap: 8px; z-index: 3;
}
.hero-dots .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(246, 239, 224, 0.55); cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}
.hero-dots .dot.active { background: #f6efe0; transform: scale(1.3); }

/* 删除预订（红色警示按钮） */
.btn-danger {
  background: #a83c2d; color: #fdf6e9; border: 1px solid #a83c2d;
}
.btn-danger:hover { background: #8f2f22; border-color: #8f2f22; }

/* 邀请函底部固定操作栏 */
.invite-sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(247,242,230,0) 0%, rgba(247,242,230,0.94) 32%);
  backdrop-filter: blur(4px);
}
.invite-sticky-bar .btn { flex: 1; padding: 13px 0; font-size: 15px; }

/* 包间卡片 hover 上浮 */
.room-card { transition: transform .25s ease, box-shadow .25s ease; }
.room-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(70, 55, 30, .12); }

/* 预订成功印章弹入动画 */
@keyframes sealPop {
  0% { transform: scale(.7); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.seal.big { animation: sealPop .5s ease-out; }

/* ========== 管理后台：左右框架 ========== */
.admin-wrap { max-width: none; padding: 0; }
.admin-shell { display: flex; min-height: 100vh; }

/* 左侧导航 */
.admin-side {
  width: 236px; flex: none;
  background: linear-gradient(180deg, #2b2215, #241c11);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  border-right: 1px solid rgba(201, 163, 91, .28);
}
.side-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(201, 163, 91, .22);
}
.side-brand .seal-logo { width: 40px; height: 40px; }
.side-brand-t { color: #f6efe0; font-size: 17px; font-weight: 700; letter-spacing: 5px; }
.side-brand-s { color: #a8977a; font-size: 11px; letter-spacing: 2px; margin-top: 3px; }
.side-nav { flex: 1; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  width: 100%; padding: 12px 16px;
  background: transparent; border: none; border-radius: 8px;
  color: #cdbb9d; font-size: 14.5px; letter-spacing: 3px; text-align: left;
  cursor: pointer; font-family: inherit;
  transition: background .2s, color .2s;
}
.nav-item:hover { background: rgba(246, 239, 224, .07); color: #f6efe0; }
.nav-item.active { background: rgba(246, 239, 224, .10); color: #fdf6e9; box-shadow: inset 3px 0 0 #a83c2d; }
.side-foot {
  padding: 16px 20px; color: #7d6e55; font-size: 12px;
  letter-spacing: 3px; text-align: center;
  border-top: 1px solid rgba(201, 163, 91, .22);
}

/* 右侧主区 */
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(252, 248, 238, .94);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--line);
  padding: 0 24px; height: 60px;
}
.admin-content { padding: 22px 26px 48px; max-width: 1240px; width: 100%; }

/* 汉堡按钮（移动端显示） */
.hamburger {
  display: none; width: 40px; height: 40px; margin-right: 6px;
  background: transparent; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer;
}
.admin-mask { display: none; }

/* ========== 移动端适配 ========== */
@media (max-width: 900px) {
  .admin-side {
    position: fixed; left: 0; top: 0; z-index: 70;
    transform: translateX(-100%); transition: transform .26s ease;
    box-shadow: 6px 0 30px rgba(43, 33, 21, .35);
  }
  .admin-side.open { transform: translateX(0); }
  .admin-mask {
    display: none; position: fixed; inset: 0; z-index: 60;
    background: rgba(43, 33, 21, .48);
  }
  .hamburger { display: inline-flex; align-items: center; justify-content: center; }
  .admin-top { padding: 0 14px; height: 54px; }
  .admin-top h1 { font-size: 16px; letter-spacing: 2px; }
  .admin-content { padding: 14px 12px 40px; }
  .admin-toolbar input { flex: 1; min-width: 120px; }
}

@media (max-width: 640px) {
  .admin-toolbar { flex-direction: column; align-items: stretch; }
  .admin-toolbar input { width: 100%; }
  .admin-toolbar .btn { justify-content: center; }
  .admin-top .who { display: none; }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dash-kpi { padding: 14px 12px; }
  .dash-filter { gap: 6px; }
  .dash-filter input[type="date"] { flex: 1; min-width: 0; }
  .setting-grid, .admin-grid, .room-mgr-grid { grid-template-columns: 1fr; }
  .modal { width: 92vw; max-height: 88vh; }
}

/* 系统设置：分组页签 */
.settings-subtabs { display: flex; gap: 8px; margin: 0 0 16px; flex-wrap: wrap; }
.settings-subtabs .stab {
  padding: 7px 20px; border: 1px solid var(--line); border-radius: 999px;
  background: #fffdf7; color: var(--ink-2); font-size: 13.5px; letter-spacing: 2px;
  cursor: pointer; font-family: inherit; transition: background .2s, color .2s;
}
.settings-subtabs .stab:hover { border-color: var(--ochre); color: var(--ochre); }
.settings-subtabs .stab.active { background: var(--ink); color: #f7f2e6; border-color: var(--ink); }
@media (max-width: 640px) {
  .settings-subtabs .stab { flex: 1; padding: 8px 6px; font-size: 12.5px; letter-spacing: 1px; text-align: center; }
}

/* 后台 LOGO 上传区 */
.logo-edit { display: flex; align-items: center; gap: 18px; margin-top: 4px; }
.logo-preview {
  width: 88px; height: 88px; object-fit: contain;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fffdf7; padding: 6px; box-sizing: border-box;
}
.logo-ctrl { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 640px) {
  .logo-edit { flex-direction: column; align-items: flex-start; }
}

/* 首页简介 */
.intro-section { margin-top: 8px; }
.intro-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.intro-arrow { width: 32px; height: 32px; border: 1px solid #d8a58c; border-radius: 50%; background: #fdf9ef; color: #a83c2d; font-size: 18px; line-height: 1; cursor: pointer; transition: all .2s; }
.intro-arrow:hover { background: #fbeae4; }
.intro-cards { display: flex; gap: 16px; margin-top: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.intro-cards::-webkit-scrollbar { display: none; }
.intro-card { flex: 0 0 100%; box-sizing: border-box; scroll-snap-align: center; border: 1px solid var(--line); border-radius: 14px; padding: 26px 26px 20px; background: linear-gradient(180deg, #fdf9ef, #f8f1e2); box-shadow: 0 10px 30px rgba(120,80,30,.08); }
.intro-card .intro-media { flex: none; max-width: none; width: 100%; margin-bottom: 14px; }
.intro-card .intro-content { flex: none; width: 100%; line-height: 2; color: #463a2b; font-size: 14.5px; }
.ic-top { text-align: center; margin-bottom: 16px; }
.ic-title { font-size: 21px; letter-spacing: 5px; color: #5f7f7a; font-weight: 600; }
.ic-sub { font-size: 13px; color: #9a8b6f; letter-spacing: 3px; margin-top: 7px; }
.intro-wrap { display: flex; gap: 26px; align-items: flex-start; margin-top: 16px; }
.intro-media { flex: 0 0 38%; max-width: 420px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.intro-media img { display: block; width: 100%; height: auto; }
.intro-content { flex: 1; min-width: 0; line-height: 2; color: #463a2b; font-size: 15px; }
.intro-content h3 { color: #9c6b4a; letter-spacing: 4px; margin: 6px 0 12px; font-size: 18px; }
.intro-content img { max-width: 100%; border-radius: 8px; margin: 8px 0; }
.intro-content blockquote { border-left: 3px solid #c9b89a; padding: 2px 14px; color: #6b5c48; margin: 10px 0; }
.intro-content ul { padding-left: 22px; margin: 8px 0; }
@media (max-width: 720px) {
  .intro-wrap { flex-direction: column; gap: 16px; }
  .intro-media { flex: none; max-width: none; width: 100%; }
}

/* 后台首页简介编辑器 */
.intro-img-row { display: flex; gap: 18px; align-items: center; margin-top: 4px; }
.intro-img-row img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: #efe9db; }
.intro-img-ops { display: flex; flex-direction: column; gap: 8px; }
.rte-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
@media (max-width: 640px) {
  .intro-img-row { flex-direction: column; align-items: flex-start; }
}


/* ============ 质感动效 ============ */
@keyframes paperIn {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.invite-paper { animation: paperIn .6s ease-out both; }

@keyframes stampIn {
  0%   { opacity: 0; transform: rotate(-6deg) scale(1.7); }
  55%  { opacity: 1; transform: rotate(-3deg) scale(.9); }
  80%  { transform: rotate(-3.5deg) scale(1.04); }
  100% { opacity: 1; transform: rotate(-3deg) scale(1); }
}
.ip-top .seal { animation: stampIn .72s .28s ease-out both; }

@keyframes fadeImg {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.ip-media img { animation: fadeImg .9s .5s ease-out both; }

/* 区块淡入（滚动进入） */
.fade-up { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.fade-up.in { opacity: 1; transform: none; }

/* 全站图片统一调性：暖调 + 画框 */
.room-media img, .dish-card img, .ip-media img, .intro-media img,
.dish-modal-card img, .room-hero img, .invite-banner img, .ip-banner img {
  filter: sepia(.14) saturate(.88) contrast(1.03) brightness(.99);
}
.room-media, .dish-card, .intro-media { box-shadow: 0 3px 14px rgba(70,55,30,.14); }
.ip-media { box-shadow: 0 4px 16px rgba(70,55,30,.18); }

/* 云纹分隔升级：山形印章 */
.cd-hill { display: inline-flex; align-items: center; }
.cd-hill svg { width: 96px; height: 20px; }
.cd-hill.flip svg { transform: scaleX(-1); }
.cd-word { color: var(--ink-2); font-size: 12px; letter-spacing: 6px; padding: 0 4px; }

/* 邀请函顶部远山水纹 */
.ip-hill { position: relative; z-index: 1; padding: 18px 22px 0; }
.ip-hill svg { display: block; width: 100%; height: 30px; }


/* ================= 后台 v2（重构） ================= */

/* ---- 侧栏：深墨 + 分组 ---- */
.admin-side {
  background: linear-gradient(180deg, #2b2118 0%, #241b13 100%);
}
.side-brand { padding: 22px 18px 16px; }
.side-brand-t { font-size: 17px; letter-spacing: 3px; }
.side-brand-s { font-size: 10.5px; opacity: .55; letter-spacing: 2px; }
.side-nav { padding: 4px 12px 12px; display: flex; flex-direction: column; gap: 3px; }
.nav-group {
  padding: 16px 10px 6px; font-size: 10.5px; letter-spacing: 4px;
  color: rgba(247,242,230,.35); border-top: 1px solid rgba(247,242,230,.08);
  margin-top: 6px;
}
.nav-group:first-child { border-top: none; margin-top: 0; padding-top: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  width: 100%; text-align: left;
  padding: 10px 11px; border-radius: 8px;
  color: rgba(247,242,230,.72); background: transparent; border: none;
  font-size: 13.5px; letter-spacing: 2px;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: rgba(247,242,230,.07); color: #f7f2e6; }
.nav-item.active {
  background: linear-gradient(180deg, #a83c2d, #8e3226);
  color: #fdf6ec; box-shadow: 0 2px 8px rgba(142,50,38,.35), inset 0 1px 0 rgba(255,255,255,.14);
}
.nav-item svg { flex: none; opacity: .85; }
.nav-item .ni-t { flex: 1; }
.side-foot { padding: 14px 18px; font-size: 10.5px; letter-spacing: 2px; opacity: .45; }

/* ---- 顶栏 ---- */
.admin-top {
  background: rgba(255,253,247,.92); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.top-left { display: flex; align-items: center; gap: 12px; }
.top-titles h1 { font-size: 18px; letter-spacing: 3px; margin: 0; color: var(--ink); }
.top-titles .who { font-size: 11.5px; color: var(--ink-3); letter-spacing: 1px; margin-top: 2px; }
.admin-top .right { display: flex; gap: 8px; }
.top-btn { padding: 7px 16px !important; font-size: 12.5px !important; }

/* ---- 统计卡 tabs ---- */
.admin-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.admin-tabs .tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: #fffdf7; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 8px 10px;
  cursor: pointer; transition: all .16s;
}
.admin-tabs .tab .t-num { font-size: 24px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.admin-tabs .tab .t-label { font-size: 12px; color: var(--ink-3); letter-spacing: 3px; }
.admin-tabs .tab:hover { border-color: #c9b89a; transform: translateY(-1px); box-shadow: 0 3px 10px rgba(70,55,30,.08); }
.admin-tabs .tab.active { border-color: var(--seal); box-shadow: 0 0 0 1px var(--seal) inset, 0 3px 10px rgba(168,60,45,.14); }
.admin-tabs .tab.active .t-num { color: var(--seal); }
.admin-tabs .tab.active .t-label { color: var(--seal); }

/* ---- 工具栏 ---- */
.admin-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.tb-search {
  flex: 1; min-width: 220px;
  display: flex; align-items: center; gap: 8px;
  background: #fffdf7; border: 1px solid var(--line); border-radius: 999px;
  padding: 0 14px; color: var(--ink-3);
}
.tb-search input {
  flex: 1; border: none; outline: none; background: transparent;
  padding: 9px 0; font-size: 13.5px; color: var(--ink);
}
.tb-actions { display: flex; gap: 8px; }
.tb-actions .btn { padding: 9px 20px !important; font-size: 13.5px !important; }

/* ---- 预订表格 ---- */
.table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--line); background: #fffdf7; }
.booking-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 13.5px; }
.booking-table th {
  background: #f4eedf; color: var(--ink-3); font-weight: 600;
  text-align: left; padding: 11px 14px; letter-spacing: 1px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.booking-table td { padding: 12px 14px; border-bottom: 1px solid #eee5d0; vertical-align: top; }
.booking-table tbody tr:last-child td { border-bottom: none; }
.booking-table tbody tr:hover { background: #faf6ec; }
.booking-table .c-code { font-weight: 700; color: var(--seal); letter-spacing: 1px; white-space: nowrap; }
.booking-table .c-sub { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 3px; letter-spacing: .5px; }
.booking-table .c-need { display: block; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.booking-table .c-ops { white-space: nowrap; }
.booking-table .state { font-size: 11.5px; }
.tbtn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fffdf7; color: var(--ink-2);
  font-size: 12px; letter-spacing: 1px; padding: 4px 10px; border-radius: 6px;
  cursor: pointer; transition: all .13s; margin: 2px 3px 2px 0;
}
.tbtn:hover { border-color: #b9a48a; background: #faf6ec; }
.tbtn.seal { background: var(--seal); border-color: var(--seal); color: #fdf6ec; }
.tbtn.danger { color: #b04a38; border-color: #dfb9ad; }
.tbtn.danger:hover { background: #fdf1ee; border-color: #b04a38; }
.tbtn.ink { background: var(--ink); border-color: var(--ink); color: #f7f2e6; }

/* ---- 系统设置：分栏卡片 ---- */
.stab-panel[data-panel="basic"] { display: block; }
.setting-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.setting-col { display: flex; flex-direction: column; gap: 16px; }
.setting-card { border-radius: 12px; }
.setting-card h3 {
  font-size: 14.5px; letter-spacing: 3px; color: var(--ink);
  margin: 0 0 14px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(201,163,91,.25);
  display: flex; align-items: center; gap: 8px;
}
.setting-card h3::before {
  content: ""; width: 4px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, #a83c2d, #8e3226);
}

/* ---- 浮动保存条 ---- */
.save-bar {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 60; display: flex; align-items: center; gap: 16px;
  background: #fffdf7; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px 10px 22px;
  box-shadow: 0 6px 26px rgba(70,55,30,.22);
}
.save-bar .sb-tip { font-size: 12.5px; color: var(--ink-3); letter-spacing: 1px; }
.save-bar .btn { padding: 9px 24px !important; font-size: 13.5px !important; }

/* ---- 短信 / 数据备份 / 看板统一 ---- */
.table-card { padding: 16px 18px; }
.table-card .dash-title { font-size: 14.5px; letter-spacing: 2px; margin-bottom: 10px; }
.dash-filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fffdf7; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.dash-kpi { background: #fffdf7; border: 1px solid var(--line); border-radius: 12px; }
.dash-card { border-radius: 12px; }

/* ---- 移动端 ---- */
@media (max-width: 900px) {
  .setting-cols { grid-template-columns: 1fr; }
  .admin-tabs { gap: 8px; }
  .admin-tabs .tab { padding: 10px 4px 8px; }
  .admin-tabs .tab .t-num { font-size: 19px; }
  .save-bar { width: calc(100% - 28px); left: 14px; transform: none; justify-content: space-between; }
  .admin-toolbar .tb-search { min-width: 100%; }
}

/* ===== 邀请函 · 方案2 山水沉浸（青瓷系） ===== */
.s2-hero { position: relative; height: 320px; overflow: hidden; }
.s2-hero img { width: 100%; height: 100%; object-fit: cover; display: block; filter: sepia(.14) saturate(.8); }
.s2-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,58,53,.30) 0%, rgba(43,58,53,0) 40%, rgba(43,58,53,.85) 100%); }
.s2-status { position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; font-size: 12px; letter-spacing: 2px; color: #f4faf7; background: rgba(95,127,122,.9); }
.s2-status .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.s2-status.status-pending { background: rgba(196,164,95,.92); }
.s2-status.status-confirmed { background: rgba(95,127,122,.92); }
.s2-status.status-rejected { background: rgba(176,74,56,.92); }
.s2-status.status-cancelled { background: rgba(120,120,120,.85); }
.s2-hero-txt { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 2; color: #fbf5e8; }
.s2-name { font-size: 24px; letter-spacing: 8px; font-weight: 700; text-shadow: 0 1px 10px rgba(0,0,0,.25); }
.s2-slogan { font-size: 12px; letter-spacing: 4px; margin-top: 6px; opacity: .88; text-shadow: 0 1px 8px rgba(0,0,0,.2); }
.s2-body { padding: 22px 20px 6px; max-width: 640px; margin: 0 auto; }
.s2-guest { text-align: center; font-size: 17px; letter-spacing: 3px; color: #3c514d; }
.s2-guest #invGuest { color: #a83c2d; font-weight: 700; }
.s2-guest-sub { text-align: center; font-size: 12px; color: #7f9b96; letter-spacing: 3px; margin-top: 8px; }
.s2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.s2-cell { background: rgba(255,255,255,.75); border: 1px solid #cfe0da; border-radius: 12px; padding: 14px 16px; }
.s2-cell .ck { font-size: 11px; color: #7f9b96; letter-spacing: 4px; }
.s2-cell .cv { font-size: 15px; margin-top: 7px; font-weight: 600; color: #3c514d; letter-spacing: 1px; line-height: 1.5; }
.s2-cell .cv b { color: #a83c2d; font-weight: 700; }
.s2-addr { margin-top: 14px; padding: 14px 16px; background: rgba(255,255,255,.75); border: 1px solid #cfe0da; border-radius: 12px; display: flex; align-items: center; gap: 12px; }
.s2-addr .ak { font-size: 11px; color: #7f9b96; letter-spacing: 3px; flex: none; }
.s2-addr .av { flex: 1; font-size: 13px; color: #3c514d; line-height: 1.6; }
.s2-addr .av a { color: #3c514d; text-decoration: none; border-bottom: 1px dotted rgba(95,127,122,.6); }
.s2-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(127,160,154,.25); }
.s2-fl { display: flex; align-items: center; gap: 8px; }
.s2-fl .fl-img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.s2-fl .fl-txt { font-size: 12px; color: #7f9b96; letter-spacing: 2px; }
.s2-phone { font-size: 12px; color: #5f7f7a; }
.s2-phone a { color: #5f7f7a; text-decoration: none; border-bottom: 1px dotted rgba(95,127,122,.6); }
@media (min-width: 640px) { .s2-hero { height: 400px; } }

.s2-booker { text-align: center; font-size: 12px; color: #5f7f7a; letter-spacing: 2px; margin-top: 10px; }
.s2-booker .bk-name { color: #3c514d; font-weight: 600; }
.s2-booker a { color: #3c514d; text-decoration: none; border-bottom: 1px dotted rgba(95,127,122,.6); }


/* ===== 后台 · 酒店介绍 ===== */
.about-admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.about-admin-grid .setting-card { grid-column: span 1; }
.about-admin-grid .setting-card:first-child { grid-column: span 2; }
.about-cover { position: relative; border-radius: 10px; overflow: hidden; background: #f1e9d8; border: 1px solid #e0d3b6; }
.about-cover img { width: 100%; height: 200px; object-fit: cover; display: block; }
.about-cover-btns { position: absolute; right: 12px; bottom: 12px; }
.wysi { border: 1px solid #d8cdb5; border-radius: 10px; overflow: hidden; background: #fffdf8; }
.wysi-tb { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 10px; background: #f4edde; border-bottom: 1px solid #e0d3b6; }
.wysi-tb button, .wysi-imgbtn { border: 1px solid #d8cdb5; background: #fffdf8; color: #5d4630; font-size: 12px; line-height: 1; padding: 6px 9px; border-radius: 6px; cursor: pointer; font-family: "Songti SC","SimSun",serif; }
.wysi-tb button:hover, .wysi-imgbtn:hover { background: #efe3cd; border-color: #c9a35b; }
.wysi-tb button b, .wysi-tb button i, .wysi-tb button u { font-size: 12px; }
.wysi-ed { min-height: 150px; padding: 12px 14px; font-size: 14px; line-height: 1.9; color: #463a2b; outline: none; font-family: "Songti SC","SimSun",serif; }
.wysi-ed:focus { box-shadow: inset 0 0 0 1px #c9a35b; }
.wysi-ed img { max-width: 100%; border-radius: 8px; }
.wysi-ed h2 { font-size: 17px; color: #5d3a12; margin: 8px 0; }
.wysi-ed h3 { font-size: 15px; color: #6b4a22; margin: 6px 0; }
.wysi-ed blockquote { border-left: 3px solid #c9a35b; padding-left: 12px; color: #6b5c48; margin: 6px 0; }
.row-fac, .row-attr, .row-rtype { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.row-fac select { padding: 8px 10px; border: 1px solid #d8cdb5; border-radius: 8px; background: #fff; color: #33291f; font-size: 13px; }
.row-fac input { flex: 1; min-width: 140px; padding: 8px 10px; border: 1px solid #d8cdb5; border-radius: 8px; background: #fff; color: #33291f; font-size: 13px; }
.row-attr input { padding: 8px 10px; border: 1px solid #d8cdb5; border-radius: 8px; background: #fff; color: #33291f; font-size: 13px; }
.row-attr .a-name { flex: 1; min-width: 120px; }
.row-attr .a-level { width: 70px; }
.row-attr .a-dist { flex: 1; min-width: 110px; }
.btn-del { background: #fff; border: 1px solid #d8a58c; color: #b04a38; border-radius: 6px; padding: 7px 12px; font-size: 12px; cursor: pointer; }
.btn-del:hover { background: #fbeae4; }
.rtype-preview { width: 120px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid #e0d3b6; background: #f1e9d8; }
.rtype-name { flex: 1; min-width: 110px; padding: 8px 10px; border: 1px solid #d8cdb5; border-radius: 8px; font-size: 13px; color: #33291f; background: #fff; }
.rtype-desc { flex: 1; min-width: 150px; padding: 8px 10px; border: 1px solid #d8cdb5; border-radius: 8px; font-size: 13px; color: #33291f; background: #fff; }
.rtype-filebtn { border: 1px solid #c9a35b; background: #fffdf8; color: #8a6a2f; border-radius: 6px; padding: 7px 12px; font-size: 12px; cursor: pointer; }
@media (max-width: 900px) { .about-admin-grid { grid-template-columns: 1fr; } .about-admin-grid .setting-card:first-child { grid-column: span 1; } }

/* H5 首页简介 · 全文入口 */
.intro-more { display: inline-block; margin-top: 18px; font-size: 13px; color: #a83c2d; letter-spacing: 3px; text-decoration: none; border: 1px solid #d8a58c; border-radius: 20px; padding: 7px 20px; transition: all .2s; }
.intro-more:hover { background: #fbeae4; }
