/* ============================================
   滨淮镇景点预约 · 样式表 v2
   主题：水韵乡野 · 生态滨淮（现代乡村文旅风）
   用户端与管理端共用
   ============================================ */

/* ---------- 基础 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --green-950: #0a2b1f;
  --green-900: #103a2a;
  --green-800: #14532d;
  --green-700: #176a38;
  --green-600: #178a4b;
  --green-500: #2aa45c;
  --green-100: #e2f5e9;
  --teal-600: #0e9f8f;
  --teal-100: #d7f4ef;
  --amber-500: #e8a13d;
  --amber-100: #fdeed3;
  --red-600: #d9363f;
  --red-100: #fdeaea;
  --gold: #f2c14e;
  --cream: #f5f3ea;
  --card: #ffffff;
  --ink: #1b2a24;
  --muted: #6a7a70;
  --line: #e5e8de;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(14, 46, 32, .06), 0 4px 12px rgba(14, 46, 32, .05);
  --shadow: 0 12px 32px rgba(14, 46, 32, .10);
  --shadow-lg: 0 28px 64px rgba(14, 46, 32, .16);
  --grad-brand: linear-gradient(135deg, #1d9c56 0%, #0e9f8f 100%);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 620px at 88% -12%, rgba(42, 164, 92, .07), transparent 60%),
    radial-gradient(900px 520px at -8% 18%, rgba(14, 159, 143, .06), transparent 55%),
    var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(42, 164, 92, .22); }
:focus-visible { outline: 3px solid rgba(42, 164, 92, .45); outline-offset: 2px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c6d2c8; border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #a9b8ac; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 42px; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 2px; color: var(--green-600);
  background: var(--green-100); padding: 5px 16px; border-radius: 999px; margin-bottom: 14px; font-weight: 600;
}
.section-head .eyebrow::before, .section-head .eyebrow::after {
  content: ""; width: 18px; height: 1.5px; border-radius: 2px; background: currentColor; opacity: .45;
}
.section-head h2 { font-size: clamp(24px, 3.2vw, 34px); color: var(--green-950); letter-spacing: .5px; }
.section-head p { color: var(--muted); margin-top: 8px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(14, 46, 32, .05);
}
.site-header::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, #1d9c56, #0e9f8f 42%, #f2c14e 78%, #e8a13d);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 13px; flex: none;
  background: var(--grad-brand);
  color: #fff; font-size: 21px; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(29, 156, 86, .32), inset 0 1px 0 rgba(255, 255, 255, .35);
  position: relative; overflow: hidden;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, .35), transparent 45%);
  pointer-events: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 17.5px; color: var(--green-950); letter-spacing: .5px; }
.brand-text em { font-style: normal; font-size: 11px; color: var(--muted); letter-spacing: 1.5px; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
  position: relative; padding: 9px 15px; border-radius: 12px; font-size: 15px; color: #374151; font-weight: 500;
  transition: all .2s;
}
.nav-link:hover { color: var(--green-700); background: var(--green-100); }
.nav-link.active {
  color: var(--green-700); background: var(--green-100); font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(23, 106, 56, .10);
}
.badge {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--red-600); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700;
  vertical-align: 2px; margin-left: 2px; box-shadow: 0 2px 6px rgba(217, 54, 63, .35);
}
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 22px; color: var(--green-950); }
.mobile-menu {
  display: none; flex-direction: column; gap: 4px; padding: 12px 4% 16px;
  border-top: 1px solid var(--line); background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(10px);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 10px 8px; border-radius: 10px; font-size: 15px; }
.mobile-menu a:hover, .mobile-menu a.active { background: var(--green-100); color: var(--green-800); }

/* ---------- 按钮与标签 ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 12px 22px; font-size: 15px; font-weight: 600;
  transition: all .22s; line-height: 1; overflow: hidden; white-space: nowrap;
}
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 20px rgba(29, 156, 86, .32); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 55%; left: -85%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-18deg); transition: left .5s ease; pointer-events: none;
}
.btn-primary:hover::after { left: 135%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(29, 156, 86, .4); }
.btn-primary:active { transform: translateY(0); }
.btn-outline { background: #fff; color: var(--green-700); border: 1.5px solid #9bd6af; }
.btn-outline:hover { background: var(--green-100); border-color: var(--green-600); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .26); transform: translateY(-1px); }
.btn-danger { background: #fff; color: var(--red-600); border: 1.5px solid #f0b9bd; }
.btn-danger:hover { background: var(--red-100); border-color: var(--red-600); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

.tag {
  display: inline-block; font-size: 12px; padding: 3px 11px; border-radius: 999px;
  background: #f1f4f1; color: #4b5563; font-weight: 500; white-space: nowrap; border: 1px solid transparent;
}
.tag-price { background: var(--amber-100); color: #9a6b1c; border-color: #f4ddb0; font-weight: 600; }
.tag-free { background: var(--teal-100); color: var(--teal-600); border-color: #bfeae3; font-weight: 600; }
.tag-hot { background: var(--red-100); color: var(--red-600); border-color: #f7cfcf; font-weight: 600; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, #0a2b1f 0%, #14532d 45%, #0d6e4f 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(820px 460px at 78% -18%, rgba(242, 193, 78, .20), transparent 60%),
    radial-gradient(640px 380px at 8% 110%, rgba(14, 159, 143, .30), transparent 60%);
}
.hero-svg { position: absolute; inset: 0; z-index: 0; opacity: .92; }
.hero-svg .scenic-svg { width: 100%; height: 100%; }
.hero-svg ellipse { animation: drift 24s ease-in-out infinite alternate; }
.hero-svg ellipse:nth-of-type(2) { animation-duration: 30s; animation-delay: -7s; }
.hero-svg ellipse:nth-of-type(3) { animation-duration: 36s; animation-delay: -14s; }
@keyframes drift { from { transform: translateX(-14px); } to { transform: translateX(16px); } }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(6, 32, 22, .28) 0%, rgba(6, 32, 22, .04) 52%, rgba(6, 32, 22, .48) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 96px 0 122px; max-width: 760px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; letter-spacing: 1px;
  background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .32);
  padding: 6px 15px; border-radius: 999px; margin-bottom: 20px; backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(6, 32, 22, .18);
}
.hero-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(242, 193, 78, .25); }
.hero h1 { font-size: clamp(34px, 6vw, 58px); font-weight: 800; letter-spacing: 2px; line-height: 1.15; text-shadow: 0 2px 18px rgba(0, 0, 0, .28); }
.hero h1 .accent { background: linear-gradient(90deg, #f6c453, #f2a54e); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.hero-sub { margin-top: 16px; font-size: clamp(15px, 2vw, 18px); color: rgba(255, 255, 255, .92); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-search {
  margin-top: 40px; display: flex; gap: 8px; max-width: 560px;
  background: rgba(255, 255, 255, .93); padding: 8px; border-radius: 18px;
  box-shadow: 0 18px 44px rgba(6, 32, 22, .30); border: 1px solid rgba(255, 255, 255, .55);
  backdrop-filter: blur(8px);
}
.hero-search:focus-within { box-shadow: 0 0 0 4px rgba(255, 255, 255, .18), 0 18px 44px rgba(6, 32, 22, .30); }
.hero-search select, .hero-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; font-family: inherit; font-size: 15px; color: var(--ink);
  background: transparent; padding: 10px 12px;
}
.hero-search select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%236a7a70' d='M4 6l4 4 4-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
.hero-search .btn { flex: none; border-radius: 13px; }

.hero-stats { margin-top: 56px; display: flex; gap: 12px; flex-wrap: wrap; }
.stat-pill {
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .24);
  backdrop-filter: blur(8px); border-radius: 16px; padding: 14px 22px; min-width: 140px;
  box-shadow: 0 8px 22px rgba(6, 32, 22, .18);
}
.stat-pill b { display: block; font-size: 25px; color: #f6c453; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-pill span { font-size: 12.5px; color: rgba(255, 255, 255, .88); letter-spacing: 1px; }

.wave { display: block; width: 100%; margin-top: -1px; }

/* ---------- 首页：热门景点 ---------- */
.spot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.spot-card {
  display: flex; flex-direction: column; background: var(--card); border-radius: 18px;
  overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.spot-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.spot-cover { position: relative; height: 190px; overflow: hidden; }
.spot-cover .scenic-svg { width: 100%; height: 100%; transition: transform .6s ease; }
.spot-card:hover .scenic-svg { transform: scale(1.06); }
.spot-cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 32, 22, .45));
}
.spot-icon {
  position: absolute; left: 16px; bottom: 12px; font-size: 30px; line-height: 1;
  background: rgba(255, 255, 255, .92); padding: 7px 10px; border-radius: 12px;
  box-shadow: 0 6px 16px rgba(6, 32, 22, .28);
}
.spot-rating {
  position: absolute; right: 12px; top: 12px; background: rgba(6, 32, 22, .5); color: #f6c453;
  font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px;
  backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .18);
}
.spot-body { padding: 18px 20px 8px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.spot-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.spot-name { font-size: 18.5px; color: var(--green-950); line-height: 1.35; }
.spot-short { color: var(--muted); font-size: 13.5px; }
.spot-meta { display: flex; flex-direction: column; gap: 3px; color: #9ca3af; font-size: 12.5px; margin-top: 6px; }
.spot-foot {
  display: flex; justify-content: space-between; align-items: center; padding: 12px 20px;
  border-top: 1px dashed var(--line); color: var(--green-600); font-size: 14px; font-weight: 600;
}
.spot-foot .arrow {
  width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700); font-size: 14px; transition: all .2s;
}
.spot-card:hover .spot-foot .arrow { transform: translateX(3px); background: var(--grad-brand); color: #fff; }

/* ---------- 预约流程 ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.step {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 22px; text-align: center; transition: transform .25s, box-shadow .25s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -24px; width: 26px; height: 2px; z-index: 1;
  background: linear-gradient(90deg, #b9e3c6, transparent);
}
.step-num {
  position: relative; width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--grad-brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 19px;
  box-shadow: 0 10px 22px rgba(29, 156, 86, .3), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.step-num::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1.5px dashed rgba(23, 106, 56, .28);
}
.step h3 { font-size: 16px; color: var(--green-950); margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--muted); }

/* ---------- 公告/须知 ---------- */
.notice-panel {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px;
  background: linear-gradient(135deg, #ffffff, #f0faf4); border: 1px solid var(--green-100);
  border-radius: 22px; padding: 36px; box-shadow: var(--shadow-sm);
}
.notice-panel h3 { color: var(--green-900); font-size: 20px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.notice-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.notice-list li { display: flex; gap: 10px; font-size: 14.5px; color: #374151; }
.notice-list li::before {
  content: "✔"; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  background: var(--green-100); color: var(--green-700); font-size: 11px; font-weight: 800;
  display: grid; place-items: center;
}
.tips-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.tips-list li { display: flex; gap: 10px; font-size: 14.5px; color: #374151; }
.tips-list li::before { content: "⏱"; flex: none; }

/* ---------- 内页 Hero ---------- */
.page-hero {
  position: relative; color: #fff; padding: 56px 0 72px; overflow: hidden;
  background: linear-gradient(160deg, #0a2b1f, #14532d 55%, #0d6e4f);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 340px at 88% -40%, rgba(242, 193, 78, .22), transparent 60%),
    radial-gradient(520px 320px at 6% 120%, rgba(14, 159, 143, .35), transparent 60%);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(26px, 4vw, 38px); letter-spacing: 1px; text-shadow: 0 2px 14px rgba(0, 0, 0, .25); }
.page-hero p { color: rgba(255, 255, 255, .9); margin-top: 8px; max-width: 640px; }
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin: -38px 0 34px; position: relative; z-index: 5;
  background: #fff; border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.chip {
  border: 1.5px solid var(--line); background: #fff; color: #55655c; font-size: 14px;
  padding: 8px 17px; border-radius: 999px; font-weight: 500; transition: all .2s;
  box-shadow: 0 1px 2px rgba(14, 46, 32, .04);
}
.chip:hover { border-color: var(--green-500); color: var(--green-700); transform: translateY(-1px); }
.chip.active {
  background: var(--grad-brand); border-color: transparent; color: #fff;
  box-shadow: 0 6px 14px rgba(29, 156, 86, .30);
}
.search-input {
  flex: 1; min-width: 200px; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 10px 18px 10px 40px; font-size: 14px; font-family: inherit; outline: 0;
  background: #f8faf8 url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236a7a70' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") 13px center / 18px no-repeat;
  transition: all .2s;
}
.search-input:focus { border-color: var(--green-500); background-color: #fff; box-shadow: 0 0 0 4px rgba(42, 164, 92, .12); }
.empty-tip { text-align: center; color: var(--muted); padding: 60px 0; font-size: 15px; }
.result-count { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.result-count b { color: var(--green-700); }


/* ---------- 详情页 ---------- */
.detail-hero { position: relative; height: 320px; overflow: hidden; }
.detail-hero .scenic-svg { width: 100%; height: 100%; }
.detail-hero-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 40, 26, .05), rgba(8, 40, 26, .58)); }
.detail-crumb { position: absolute; top: 18px; left: 4%; z-index: 3; color: rgba(255, 255, 255, .92); font-size: 13px; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.detail-crumb a:hover { text-decoration: underline; }
.detail-title-box { position: absolute; left: 4%; bottom: 22px; z-index: 3; color: #fff; max-width: 720px; }
.detail-title-box h1 { font-size: clamp(24px, 3.6vw, 34px); letter-spacing: .5px; text-shadow: 0 2px 14px rgba(0, 0, 0, .4); }
.detail-title-box p { margin-top: 6px; color: rgba(255, 255, 255, .94); font-size: 14.5px; }

.detail-main {
  display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start;
  margin-top: -54px; position: relative; z-index: 5;
}
.detail-content { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.detail-tabs { display: flex; gap: 4px; padding: 16px 16px 0; border-bottom: 1px solid var(--line); }
.tab-btn {
  border: 0; background: none; font-size: 15px; font-weight: 600; color: var(--muted);
  padding: 12px 18px; border-bottom: 3px solid transparent; transition: all .2s; border-radius: 12px 12px 0 0;
}
.tab-btn:hover { color: var(--green-700); }
.tab-btn.active { color: var(--green-700); border-color: var(--green-600); background: linear-gradient(180deg, var(--green-100), #fff); }
.tab-pane { display: none; padding: 26px; }
.tab-pane.active { display: block; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tab-pane h3 { color: var(--green-950); font-size: 17px; margin: 18px 0 10px; }
.tab-pane h3:first-child { margin-top: 0; }
.tab-pane p { color: #4b5563; font-size: 14.5px; margin-bottom: 10px; line-height: 1.75; }
.tab-pane ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tab-pane ul li { padding-left: 22px; position: relative; font-size: 14.5px; color: #4b5563; }
.tab-pane ul li::before { content: "·"; position: absolute; left: 8px; color: var(--green-600); font-weight: 900; }

.book-panel {
  position: relative; background: var(--card); border-radius: 18px; box-shadow: var(--shadow);
  padding: 26px; position: sticky; top: 88px; overflow: hidden; border: 1px solid var(--line);
}
.book-panel::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad-brand); }
.book-panel .price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.book-panel .price { font-size: 32px; font-weight: 800; color: var(--amber-500); line-height: 1.2; }
.book-panel .price-note { font-size: 12.5px; color: var(--muted); }
.book-panel .sub { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: #374151; margin-bottom: 8px; }
.field select, .field input[type="date"], .field input[type="text"], .field input[type="tel"], .field input[type="number"], .field textarea {
  width: 100%; min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px;
  font-size: 14.5px; font-family: inherit; color: var(--ink); background: #fff; outline: 0;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field select:hover, .field input:hover, .field textarea:hover { border-color: #c6d4ca; }
.field select:focus, .field input:focus, .field textarea:focus {
  border-color: var(--green-500); background: #fff;
  box-shadow: 0 0 0 4px rgba(42, 164, 92, .13);
}
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23178a4b' d='M4 6l4 4 4-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 38px; cursor: pointer;
}
.field input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .5; }
.field textarea { min-height: 92px; resize: vertical; line-height: 1.6; }
.field .hint { font-size: 12px; color: #9ca3af; margin-top: 6px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red-600); background: #fef6f6; box-shadow: 0 0 0 3px rgba(217, 54, 63, .10); }

.slot-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot-option {
  position: relative; text-align: center; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 12px 6px 10px; cursor: pointer; transition: all .2s; background: #fff;
}
.slot-option:hover { border-color: var(--green-500); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(14, 46, 32, .08); }
.slot-option.selected {
  border-color: var(--green-600); background: linear-gradient(180deg, var(--green-100), #f0faf4);
  box-shadow: 0 6px 16px rgba(29, 156, 86, .18);
}
.slot-option.selected::after {
  content: "✓"; position: absolute; top: 6px; right: 8px; width: 17px; height: 17px;
  border-radius: 50%; background: var(--green-600); color: #fff; font-size: 10px; line-height: 17px;
  font-weight: 800; text-align: center;
}
.slot-option b { display: block; font-size: 13.5px; color: var(--green-900); }
.slot-option span { font-size: 11px; color: var(--muted); }
.slot-option .slot-left { display: block; margin-top: 5px; font-size: 11.5px; color: var(--green-700); font-weight: 600; }
.slot-option.sold-out { opacity: .55; pointer-events: none; filter: grayscale(.4); }
.slot-option.sold-out .slot-left { color: var(--red-600); }
.slot-option input { display: none; }

.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button {
  width: 38px; height: 38px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fff; font-size: 19px; color: var(--green-800); line-height: 1;
  transition: all .2s; box-shadow: 0 1px 2px rgba(14, 46, 32, .05);
}
.stepper button:hover { border-color: var(--green-500); color: var(--green-700); background: var(--green-100); }
.stepper .num { min-width: 44px; text-align: center; font-weight: 800; font-size: 19px; color: var(--green-900); font-variant-numeric: tabular-nums; }

.book-summary {
  background: linear-gradient(135deg, #f0faf4, #eefbf7); border: 1px solid var(--green-100);
  border-radius: 14px; padding: 16px 18px; font-size: 13.5px; color: #4b5563;
  display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px;
}
.book-summary b { color: var(--green-800); }

/* ---------- 预约表单页 ---------- */
.reserve-grid { display: grid; grid-template-columns: 380px 1fr; gap: 30px; align-items: start; }
.reserve-form-card {
  background: var(--card); border-radius: 20px; box-shadow: var(--shadow-sm);
  padding: 30px; border: 1px solid var(--line);
}
.reserve-form-card h2 {
  font-size: 20px; color: var(--green-950); margin-bottom: 24px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line); position: relative;
}
.reserve-form-card h2::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 46px; height: 3px;
  border-radius: 3px; background: var(--grad-brand);
}
.spot-mini {
  display: flex; gap: 14px; align-items: center;
  background: linear-gradient(135deg, var(--green-100), #eaf9f4); border: 1px solid #cfe9d6;
  border-radius: 16px; padding: 12px 14px;
}
.spot-mini .icon { font-size: 30px; }
.spot-mini .name { font-weight: 700; color: var(--green-900); font-size: 15px; }
.spot-mini .meta { font-size: 12px; color: var(--muted); }
.form-actions { display: flex; gap: 12px; margin-top: 8px; }
.agree-row { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 4px 0 18px; }
.agree-row input { margin-top: 3px; accent-color: var(--green-600); width: 16px; height: 16px; }
.agree-row a { color: var(--green-700); font-weight: 600; }
.reserve-side { display: flex; flex-direction: column; gap: 18px; }
.side-card { background: var(--card); border-radius: 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); padding: 22px; }
.side-card h3 { font-size: 15px; color: var(--green-950); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.side-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.side-card li { font-size: 13.5px; color: #4b5563; padding-left: 20px; position: relative; }
.side-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green-600); font-weight: 700; }

/* ---------- 我的预约 ---------- */
.bookings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
.booking-card {
  background: var(--card); border-radius: 18px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.booking-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.booking-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px;
  background: linear-gradient(135deg, #eafaf0, #e9f9f6); border-bottom: 1px solid var(--green-100);
}
.booking-head .spot { font-weight: 700; color: var(--green-900); font-size: 15px; }
.status {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.confirmed { background: var(--green-100); color: var(--green-700); }
.status.used { background: var(--amber-100); color: #9a6b1c; }
.status.cancelled { background: #f1f4f1; color: #6b7280; }
.status.expired { background: var(--red-100); color: var(--red-600); }
.booking-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: #4b5563; }
.booking-body .row { display: flex; justify-content: space-between; gap: 12px; }
.booking-body .row span:first-child { color: #9ca3af; flex: none; }
.booking-body .row span:last-child { text-align: right; }
.booking-code {
  position: relative; margin: 14px -18px 0; padding: 14px 18px; text-align: center;
  background: linear-gradient(135deg, #f6faf7, #f0faf4);
  border-top: 1px dashed #bfd8c8; border-bottom: 1px dashed #bfd8c8;
}
.booking-code::before, .booking-code::after {
  content: ""; position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  background: var(--cream); border: 1px solid var(--line); border-radius: 50%;
}
.booking-code::before { left: -12px; }
.booking-code::after { right: -12px; }
.booking-code small { display: block; color: #9ca3af; font-size: 11.5px; margin-bottom: 5px; letter-spacing: 2px; }
.booking-code b { font-size: 23px; letter-spacing: 3px; color: var(--green-900); font-family: "Courier New", monospace; }
.booking-qr { display: flex; justify-content: center; margin: 14px 0 4px; }
.booking-qr img {
  width: 128px; height: 128px; border-radius: 10px; background: #fff; padding: 6px;
  box-shadow: 0 4px 14px rgba(14, 46, 32, .12);
}
.booking-actions { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); background: #fcfdfb; }
.booking-actions .btn { flex: 1; }
.empty-bookings {
  text-align: center; padding: 70px 20px; color: var(--muted);
  background: var(--card); border: 1.5px dashed var(--line); border-radius: 20px;
}
.empty-bookings .big { font-size: 44px; margin-bottom: 12px; }
.empty-bookings h3 { color: var(--green-950); margin-bottom: 8px; }
.empty-bookings .btn { margin-top: 8px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 20px;
  background: rgba(8, 28, 18, .52); backdrop-filter: blur(6px);
}
.modal-mask.show { display: grid; animation: fadeIn .25s ease; }
.modal {
  width: min(460px, 100%); background: #fff; border-radius: 22px; padding: 36px 32px; text-align: center;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.modal .modal-icon { font-size: 54px; margin-bottom: 12px; }
.modal h3 { font-size: 22px; color: var(--green-950); margin-bottom: 8px; }
.modal p { color: var(--muted); font-size: 14px; }
.modal .modal-sub { margin: 4px 0 18px; }
.modal .field { text-align: left; margin-top: 14px; }
.modal .slot-group { margin-top: 8px; }
.modal .code-display {
  margin: 18px auto; width: min(320px, 100%); background: #f6faf7; border: 2px dashed var(--green-500);
  border-radius: 14px; padding: 16px; font-size: 26px; font-weight: 800; letter-spacing: 4px; color: var(--green-800);
  font-family: "Courier New", monospace; box-shadow: inset 0 2px 8px rgba(14, 46, 32, .06);
}
.modal .modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal .modal-actions .btn { flex: 1; }

/* ---------- Toast ---------- */
.toast-box { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: #111827; color: #fff; font-size: 13.5px; padding: 11px 20px; border-radius: 999px;
  opacity: 0; transform: translateY(-10px) scale(.97); transition: all .3s;
  box-shadow: var(--shadow); max-width: 90vw;
}
.toast.show { opacity: 1; transform: none; }
.toast-success { background: linear-gradient(135deg, var(--green-700), var(--teal-600)); }
.toast-error { background: linear-gradient(135deg, #c22b33, var(--red-600)); }

/* ---------- 页脚 ---------- */
.site-footer { background: linear-gradient(180deg, #0a2b1f, #071f16); color: rgba(255, 255, 255, .8); margin-top: 40px; position: relative; }
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #1d9c56, #0e9f8f 42%, #f2c14e 78%, #e8a13d);
}
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding: 48px 0 36px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; letter-spacing: .5px; }
.site-footer p, .site-footer li { font-size: 13.5px; color: rgba(255, 255, 255, .72); }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px 0; text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, .5); }

/* ---------- 导航登录态 ---------- */
.nav-user { display: flex; align-items: center; gap: 8px; margin-left: 4px; }
.nav-login {
  font-size: 14px; font-weight: 600; color: var(--green-700); background: var(--green-100);
  padding: 7px 16px; border-radius: 999px; white-space: nowrap; transition: all .2s;
  box-shadow: inset 0 0 0 1px rgba(23, 106, 56, .10);
}
.nav-login:hover { background: var(--grad-brand); color: #fff; box-shadow: 0 6px 14px rgba(29, 156, 86, .30); }
.nav-logout { font-size: 13px; color: var(--muted); }
.nav-logout:hover { color: var(--red-600); text-decoration: underline; }
.mob-user {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 8px; border-radius: 10px; background: var(--green-100); color: var(--green-900); font-size: 14px;
}
.mob-user a { color: var(--green-700); font-weight: 600; }
.mob-login { padding: 10px 8px; border-radius: 10px; font-size: 14px; color: var(--green-700); font-weight: 600; }
.mob-login:hover { background: var(--green-100); }

/* ---------- 登录页 ---------- */
.auth-wrap { display: grid; place-items: center; padding: 48px 0 72px; position: relative; }
.auth-wrap::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(620px 300px at 50% 0%, rgba(42, 164, 92, .09), transparent 70%);
}
.auth-card {
  position: relative; width: min(440px, 100%); background: var(--card); border-radius: 22px;
  box-shadow: var(--shadow); padding: 38px 34px; border: 1px solid var(--line); overflow: hidden;
}
.auth-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad-brand); }
.auth-card .auth-logo { text-align: center; margin-bottom: 20px; }
.auth-card .auth-logo .brand-mark {
  width: 56px; height: 56px; font-size: 27px; margin: 0 auto 10px; border-radius: 18px;
  box-shadow: 0 10px 22px rgba(29, 156, 86, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.auth-card h2 { text-align: center; color: var(--green-950); font-size: 22px; letter-spacing: .5px; }
.auth-card .auth-sub { text-align: center; color: var(--muted); font-size: 13px; margin: 6px 0 24px; }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; min-width: 0; }
.code-row .btn { flex: none; white-space: nowrap; }
.sms-demo {
  margin: 14px 0 4px; background: var(--amber-100); border: 1px dashed #e8a13d; color: #8a5a12;
  border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.7;
}
.sms-demo b { font-size: 20px; letter-spacing: 3px; color: #9a6b1c; font-family: "Courier New", monospace; }
.form-tip { font-size: 12.5px; color: #9ca3af; margin: 4px 0 0; }
.auth-back { display: block; text-align: center; margin-top: 16px; font-size: 13px; color: var(--muted); }
.auth-back a { color: var(--green-700); font-weight: 600; }
.auth-agree { font-size: 12px; color: var(--muted); text-align: center; margin-top: 14px; }

/* ---------- 登录门槛（我的预约） ---------- */
.gate-panel {
  background: var(--card); border: 1.5px dashed var(--green-500); border-radius: 22px;
  padding: 56px 24px; text-align: center; box-shadow: var(--shadow-sm);
}
.gate-panel .big { font-size: 46px; margin-bottom: 12px; }
.gate-panel h3 { color: var(--green-950); font-size: 20px; margin-bottom: 8px; }
.gate-panel p { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

/* ---------- 管理后台 ---------- */
.admin-login-card { width: min(420px, 100%); margin: 0 auto; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px 18px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 4px;
  overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.stat-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--green-500); }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card .num { font-size: 30px; font-weight: 800; color: var(--green-800); line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-card .label { font-size: 13px; color: var(--muted); }
.stat-card.accent { background: linear-gradient(135deg, var(--green-700), var(--teal-600)); border: 0; }
.stat-card.accent::before { background: rgba(255, 255, 255, .55); }
.stat-card.accent .num, .stat-card.accent .label { color: #fff; }
.stat-card:nth-child(3)::before { background: var(--teal-600); }
.stat-card:nth-child(4)::before { background: #94a3b8; }
.stat-card:nth-child(5)::before { background: var(--red-600); }
.stat-card:nth-child(6)::before { background: var(--green-950); }
.admin-card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); overflow: hidden; }
.admin-card .card-head {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fcfdfb, #f8faf8);
}
.admin-card .card-head h3 { font-size: 16px; color: var(--green-950); }
.admin-table-wrap { overflow-x: auto; max-height: 74vh; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 980px; }
.admin-table thead th { position: sticky; top: 0; z-index: 2; }
.admin-table th {
  text-align: left; background: #f2f6f1; color: #5b6b62; font-weight: 600; font-size: 12.5px;
  padding: 13px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; letter-spacing: .3px;
}
.admin-table td { padding: 12px 14px; border-bottom: 1px solid #f1f4f0; vertical-align: middle; }
.admin-table tbody tr { transition: background .15s; }
.admin-table tbody tr:hover td { background: #f6fbf7; }
.admin-table tbody tr:nth-child(even) td { background: #fcfdfb; }
.admin-table tbody tr:nth-child(even):hover td { background: #f6fbf7; }
.admin-table .code-cell { font-family: "Courier New", monospace; font-weight: 700; color: var(--green-800); letter-spacing: .5px; white-space: nowrap; }
.admin-table td small { color: #9ca3af; }
.admin-table .ops { white-space: nowrap; }
.admin-table .ops .btn { margin-right: 6px; }
.admin-table .muted-cell { color: #9ca3af; font-size: 12.5px; }
.admin-table .empty-row td { text-align: center; color: var(--muted); padding: 40px 0; }
.admin-hint { font-size: 12.5px; color: #9ca3af; margin-top: 8px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .nav-user { display: none; }
  .detail-main { grid-template-columns: 1fr; }
  .book-panel { position: static; }
  .reserve-grid { grid-template-columns: 1fr; }
  .notice-panel { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .step:not(:last-child)::after { display: none; }
}
@media (max-width: 720px) {
  .site-nav, .nav-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .section { padding: 48px 0; }
  .hero-content { padding: 64px 0 88px; }
  .hero-search { flex-direction: column; }
  .hero-search .btn { width: 100%; padding: 13px; }
  .hero-stats { gap: 8px; }
  .stat-pill { flex: 1; min-width: 130px; padding: 12px 14px; }
  .stat-pill b { font-size: 20px; }
  .filter-bar { margin-top: -26px; }
  .slot-group { grid-template-columns: 1fr; }
  .detail-hero { height: 240px; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; }
  .modal { padding: 28px 20px; }
  .auth-card { padding: 30px 22px; }
  .code-row { flex-direction: column; }
  .booking-actions { flex-wrap: wrap; }
}
