/* ==========================================================================
   旅游景区“黄码甲”扫码评价平台
   设计基准：Carbon 式直角网格 + 政务蓝 + 黄马甲黄
   纯本地资源，无任何 CDN 依赖
   ========================================================================== */

:root {
  /* 色彩 */
  --primary: #1f5c4d;
  --primary-hover: #17493d;
  --primary-press: #103a30;
  --navy: #123f35;
  --yellow: #f5b301;
  --yellow-dark: #8a6200;
  --yellow-soft: #fff8e1;

  --canvas: #ffffff;
  --surface: #f4f4f4;
  --surface-2: #e8e8e8;
  --hairline: #e0e0e0;
  --hairline-strong: #c6c6c6;

  --ink: #161616;
  --ink-muted: #525252;
  --ink-subtle: #8d8d8d;
  --inverse: #161616;
  --inverse-ink: #f4f4f4;

  --good: #0e7a5f;
  --bad: #b3261e;

  /* 圆角：Carbon 直角体系 */
  --radius: 0px;
  --radius-sm: 2px;

  /* 间距 4px 网格 */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;

  /* 动效 token */
  --duration-micro: 80ms;
  --duration-quick: 150ms;
  --duration-fast: 250ms;
  --duration-slow: 400ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.36, 0.64, 1);

  --font: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--canvas);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: #d0e2ff; }

.wrap { width: 100%; max-width: 1104px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 800px; }

/* 通用按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 0;
  font-size: 15px; font-weight: 500; letter-spacing: .02em;
  transition: background var(--duration-quick) var(--ease-out),
              border-color var(--duration-quick) var(--ease-out),
              color var(--duration-quick) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { background: var(--primary-press); }
.btn-yellow { background: var(--yellow); color: #2b1f00; }
.btn-yellow:hover { background: #ffc21f; }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn-outline:hover { background: #edf5ff; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* 顶部条 */
.utility {
  background: var(--surface); border-bottom: 1px solid var(--hairline);
  font-size: 12px; color: var(--ink-muted); letter-spacing: .04em;
}
.utility .wrap { display: flex; align-items: center; justify-content: space-between; height: 34px; gap: 16px; }
.utility .l, .utility .r { display: flex; align-items: center; gap: 18px; white-space: nowrap; overflow: hidden; }
.utility strong { color: var(--ink); font-weight: 600; }

/* 导航 */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: #fff; border-bottom: 1px solid var(--hairline);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none;
  background: var(--yellow); color: #2b1f00;
  font-size: 10px; font-weight: 700; line-height: 1.15; text-align: center; letter-spacing: .04em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.brand-text strong { font-size: 15.5px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { font-size: 11.5px; color: var(--ink-subtle); letter-spacing: .06em; }
.brand-text .brand-mini { display: none; }

.top-nav { display: flex; align-items: center; height: 100%; flex: none; }
.top-nav a {
  display: inline-flex; align-items: center; height: 100%; padding: 0 16px;
  font-size: 14px; color: var(--ink-muted);
  border-bottom: 2px solid transparent;
  transition: color var(--duration-quick) var(--ease-out), border-color var(--duration-quick) var(--ease-out);
}
.top-nav a:hover { color: var(--ink); background: var(--surface); }
.top-nav a.is-active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--primary);
  color: #fff;
  padding: 64px 0 56px;
  border-bottom: 4px solid var(--yellow);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.9), transparent 78%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.9), transparent 78%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -120px;
  width: 420px; height: 420px; border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%; pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 560px; }
.hero-board {
  position: absolute; left: 54%; right: auto; top: 50%; transform: translateY(-50%);
  width: 268px; background: #fff; color: var(--ink); padding: 20px;
  border-top: 4px solid var(--yellow); z-index: 3;
}
.hb-top { display: flex; align-items: center; justify-content: space-between; }
.hb-tag { font-size: 10.5px; letter-spacing: .14em; color: var(--ink-subtle); }
.hb-dot { width: 6px; height: 6px; background: var(--good); border-radius: 50%; box-shadow: 0 0 0 3px rgba(14,122,95,.12); }
.hb-rate { margin-top: 12px; display: flex; align-items: baseline; gap: 2px; }
.hb-rate .n { font-size: 44px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.hb-rate .p { font-size: 16px; font-weight: 500; color: var(--ink-muted); }
.hb-rate .l { font-size: 11.5px; color: var(--ink-muted); margin-left: 8px; }
.hb-rows { margin-top: 16px; border-top: 1px solid var(--hairline); }
.hb-rows .row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--hairline); font-size: 12.5px; color: var(--ink-muted); }
.hb-rows .row:last-child { border-bottom: 0; }
.hb-rows b { color: var(--ink); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hb-foot { margin-top: 12px; font-size: 10px; color: var(--ink-subtle); letter-spacing: .02em; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .14em; font-weight: 500;
  color: #ffe08a; margin-bottom: 24px;
}
.hero-kicker::before { content: ""; width: 24px; height: 2px; background: var(--yellow); }
.hero h1 {
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.2; font-weight: 600; letter-spacing: -.01em;
}
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p.lead {
  margin-top: 18px; font-size: 15.5px; line-height: 1.8;
  color: rgba(255, 255, 255, .82); max-width: 620px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* 数据带 */
.stat-band { background: var(--canvas); border-bottom: 1px solid var(--hairline); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item {
  padding: 24px 24px 22px;
  border-right: 1px solid var(--hairline);
}
.stat-item:last-child { border-right: 0; }
.stat-value {
  font-size: 32px; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.1;
}
.stat-value small { font-size: 13px; font-weight: 500; color: var(--ink-muted); margin-left: 3px; }
.stat-label { font-size: 12.5px; color: var(--ink-muted); margin-top: 6px; letter-spacing: .04em; }

/* 区块 */
.section { padding: 56px 0 8px; }
.section-head { margin-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.eyebrow {
  font-size: 12px; color: var(--primary); letter-spacing: .12em;
  font-weight: 500; margin-bottom: 8px; display: flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 16px; height: 2px; background: var(--primary); }
.section-title { font-size: 28px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; line-height: 1.25; }
.section-desc { font-size: 14px; color: var(--ink-muted); margin-top: 8px; }

/* 景区卡片 */
.park-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: #fff; border: 1px solid var(--hairline); }
.park-card {
  display: flex; flex-direction: column; position: relative;
  background: var(--canvas); padding: 24px;
  box-shadow: inset -1px -1px 0 var(--hairline);
  transition: background var(--duration-fast) var(--ease-out);
}
.park-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--primary); transform: scaleY(0); transform-origin: top;
  transition: transform var(--duration-fast) var(--ease-out);
}
.park-card:hover { background: #fafcff; }
.park-card:hover::before { transform: scaleY(1); }
.park-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.park-name { font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.level-tag {
  flex: none; font-size: 10.5px; font-weight: 600; color: var(--primary);
  border: 1px solid #a8c8ff; padding: 2px 6px; letter-spacing: .08em; background: #edf5ff;
}
.park-meta { margin-top: 14px; font-size: 12.5px; color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.park-foot {
  margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: space-between; font-size: 12.5px;
}
.park-foot .score { color: var(--ink-muted); }
.park-foot .score b { color: var(--primary); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.park-foot .go { color: var(--primary); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.park-card:hover .go svg { transform: translateX(3px); }
.park-foot .go svg { transition: transform var(--duration-quick) var(--ease-out); }

/* 三步 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--hairline); }
.step { padding: 24px; border-right: 1px solid var(--hairline); background: #fff; }
.step:last-child { border-right: 0; }
.step-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.step-no {
  width: 28px; height: 28px; flex: none;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 15px; font-weight: 600; }
.step p { font-size: 13px; color: var(--ink-muted); line-height: 1.75; }

/* 提示条 */
.notice-bar {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--yellow-soft); border-left: 4px solid var(--yellow);
  padding: 16px 20px; font-size: 13px; color: #5c4708; line-height: 1.7;
}
.notice-bar .t { font-weight: 600; color: #3d2f04; white-space: nowrap; }

/* 页脚 */
.site-footer { margin-top: 64px; background: var(--inverse); color: #a8a8a8; padding: 40px 0 32px; font-size: 12.5px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: flex-start; }
.footer-row strong { color: #fff; font-weight: 600; }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: #fff; }
.footer-note { margin-top: 20px; padding-top: 16px; border-top: 1px solid #333; color: #8d8d8d; line-height: 1.8; }

/* 景区详情 */
.page-head { background: var(--primary); color: #fff; padding: 32px 0 36px; border-bottom: 4px solid var(--yellow); position: relative; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(90deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%);
}
.page-head .wrap { position: relative; z-index: 1; }
.crumb { font-size: 12px; color: rgba(255, 255, 255, .7); margin-bottom: 12px; letter-spacing: .04em; }
.crumb a:hover { color: #fff; }
.page-head h1 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 600; line-height: 1.3; }
.page-head .sub { margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, .82); display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pill { display: inline-block; padding: 2px 8px; font-size: 11.5px; font-weight: 500; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); }

.card { background: #fff; border: 1px solid var(--hairline); padding: 28px; margin-top: 16px; }
.card-title { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.card-title::before { content: ""; width: 3px; height: 16px; background: var(--primary); }
.prose { font-size: 15px; color: #333; line-height: 1.9; }
.prose p + p { margin-top: 8px; }

.entry-card {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--canvas); border: 1px solid var(--hairline);
  border-left: 4px solid var(--yellow); padding: 20px 24px; margin-top: 16px;
}
.entry-icon { width: 48px; height: 48px; background: var(--yellow-soft); display: flex; align-items: center; justify-content: center; flex: none; }
.entry-text { flex: 1 1 260px; }
.entry-text h3 { font-size: 15px; font-weight: 600; }
.entry-text p { font-size: 13px; color: var(--ink-muted); margin-top: 4px; line-height: 1.7; }
.entry-metrics { text-align: right; }
.entry-metrics .n { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.entry-metrics .l { font-size: 12px; color: var(--ink-subtle); }
.entry-metrics .rate { font-size: 12.5px; color: var(--primary); margin-top: 2px; }

.phone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.phone-card { background: #fff; padding: 16px 18px; }
.phone-card .k { font-size: 12px; color: var(--ink-muted); }
.phone-card .v { font-size: 19px; font-weight: 600; color: var(--ink); margin-top: 4px; font-variant-numeric: tabular-nums; }
.phone-card .v a:hover { color: var(--primary); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.grid-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 520px; }
table.grid-table th {
  background: var(--surface); color: var(--ink); font-weight: 600; text-align: left;
  padding: 10px 14px; border-bottom: 1px solid var(--hairline-strong); white-space: nowrap;
  font-size: 12.5px; letter-spacing: .04em;
}
table.grid-table td { padding: 12px 14px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
table.grid-table tr:last-child td { border-bottom: 0; }
table.grid-table tbody tr:hover td { background: #fafafa; }
table.grid-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ==========================================================================
   扫码评价页
   ========================================================================== */

.review-body { background: var(--surface); display: block; }
.review-wrap { max-width: 560px; margin: 0 auto; padding: 0 16px 48px; }

.review-hero { background: var(--primary); color: #fff; margin: 0 -16px 0; padding: 20px 20px 56px; position: relative; overflow: hidden; }
.review-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: linear-gradient(180deg, #000, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
}
.review-hero .inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-hero .brandline { display: flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: .12em; color: #ffe08a; }
.review-hero .brandline::before { content: ""; width: 14px; height: 2px; background: var(--yellow); }
.review-hero h1 { font-size: 22px; font-weight: 600; margin-top: 10px; }
.review-hero .sub { font-size: 12px; color: rgba(255,255,255,.72); margin-top: 4px; }

.staff-card {
  background: #fff; border: 1px solid var(--hairline);
  margin-top: -36px; position: relative; z-index: 2;
  padding: 20px; display: flex; align-items: center; gap: 16px;
}
.avatar {
  width: 52px; height: 52px; flex: none;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 600;
}
.staff-info { flex: 1; min-width: 0; }
.staff-info .name { font-size: 19px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.staff-info .role { font-size: 12.5px; color: var(--ink-muted); margin-top: 3px; }
.code-chip {
  flex: none; text-align: center; border: 1px solid var(--hairline-strong);
  padding: 6px 10px; min-width: 62px; background: var(--surface);
}
.code-chip small { display: block; font-size: 9.5px; letter-spacing: .14em; color: var(--ink-subtle); }
.code-chip strong { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .06em; }

.review-form { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.form-block { background: #fff; border: 1px solid var(--hairline); padding: 20px; }
.block-label {
  font-size: 14px; font-weight: 600; color: var(--ink);
  margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.block-label .hint { font-size: 11.5px; font-weight: 400; color: var(--ink-subtle); letter-spacing: 0; }
.block-label .req { color: var(--bad); }

/* 场景 chips */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px;
  border: 1px solid var(--hairline-strong); background: #fff;
  font-size: 13px; color: var(--ink-muted);
  transition: all var(--duration-quick) var(--ease-out);
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.is-on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 500; }
.chip.tag-chip.is-on { background: #edf5ff; border-color: var(--primary); color: var(--primary); }
.chip .ck { font-size: 11px; opacity: 0; width: 0; transition: all var(--duration-quick) var(--ease-out); }
.chip.is-on .ck { opacity: 1; width: 12px; }

/* 好差评 */
.rating-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rating-btn {
  display: flex; align-items: center; gap: 12px; text-align: left;
  border: 1px solid var(--hairline-strong); background: #fff;
  padding: 16px; transition: all var(--duration-quick) var(--ease-out);
}
.rating-btn .ico { font-size: 24px; line-height: 1; }
.rating-btn .t { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.rating-btn .d { display: block; font-size: 11.5px; color: var(--ink-subtle); margin-top: 2px; }
.rating-btn:hover { border-color: var(--ink-muted); }
.rating-btn[data-rating="good"].is-active { border-color: var(--good); background: #f0faf6; box-shadow: inset 3px 0 0 var(--good); }
.rating-btn[data-rating="good"].is-active .t { color: var(--good); }
.rating-btn[data-rating="bad"].is-active { border-color: var(--bad); background: #fdf3f2; box-shadow: inset 3px 0 0 var(--bad); }
.rating-btn[data-rating="bad"].is-active .t { color: var(--bad); }

/* 星级 */
.star-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.star-row:last-child { border-bottom: 0; padding-bottom: 0; }
.star-row:first-of-type { padding-top: 0; }
.star-row .label { font-size: 13.5px; color: #333; }
.star-row .score-text { font-size: 11.5px; color: var(--ink-subtle); width: 60px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stars { display: flex; gap: 2px; flex: none; }
.star {
  width: 32px; height: 32px; border: 0; background: transparent; padding: 0;
  font-size: 24px; line-height: 1; color: #d8d8d8;
  transition: color var(--duration-micro) var(--ease-out), transform var(--duration-fast) var(--ease-bounce);
}
.star.is-on { color: var(--yellow); }
.star:active { transform: scale(.86); }

/* 推荐意愿 */
.wish-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wish {
  border: 1px solid var(--hairline-strong); background: #fff; padding: 12px 8px; text-align: center;
  transition: all var(--duration-quick) var(--ease-out);
}
.wish .t { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.wish .d { font-size: 11px; color: var(--ink-subtle); margin-top: 2px; }
.wish:hover { border-color: var(--ink-muted); }
.wish.is-on { border-color: var(--primary); background: #edf5ff; }
.wish.is-on .t { color: var(--primary); }

/* 留言 */
textarea.comment {
  width: 100%; min-height: 96px; resize: vertical;
  border: 1px solid var(--hairline-strong); background: var(--surface);
  padding: 12px; font-size: 14.5px; line-height: 1.7; outline: none;
  transition: background var(--duration-quick), border-color var(--duration-quick), box-shadow var(--duration-quick);
}
textarea.comment::placeholder { color: var(--ink-subtle); }
textarea.comment:focus { background: #fff; border-color: var(--primary); box-shadow: inset 0 -2px 0 var(--primary); }
.comment-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 11.5px; color: var(--ink-subtle); }

.anon-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; color: #333; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 40px; height: 22px; background: #c6c6c6; position: relative; transition: background var(--duration-quick); flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; transition: transform var(--duration-quick) var(--ease-out); }
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--primary); outline-offset: 2px; }

.submit-bar { margin-top: 4px; }
.btn-submit {
  width: 100%; height: 52px; border: 0; border-radius: 0;
  background: var(--primary); color: #fff;
  font-size: 16px; font-weight: 600; letter-spacing: .06em;
  transition: background var(--duration-quick) var(--ease-out);
}
.btn-submit:hover { background: var(--primary-hover); }
.btn-submit:active { background: var(--primary-press); }
.btn-submit:disabled { background: #8d8d8d; cursor: not-allowed; }
.form-tip { text-align: center; font-size: 11.5px; color: var(--ink-subtle); margin-top: 12px; line-height: 1.8; }

.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 16px);
  background: var(--ink); color: #fff; font-size: 13.5px; padding: 12px 20px;
  opacity: 0; pointer-events: none; transition: all var(--duration-fast) var(--ease-out); z-index: 90;
  max-width: 88vw; text-align: center; border-left: 3px solid var(--yellow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #8c1d18; border-left-color: #fff; }

/* 结果页 */
.result-wrap { max-width: 520px; width: 100%; margin: 0 auto; padding: 72px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1 0 auto; }
.result-icon {
  width: 72px; height: 72px; border: 1px solid var(--hairline-strong);
  display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
  background: #f6fbf8; color: var(--good);
}
.result-icon svg { width: 34px; height: 34px; }
.result-icon.bad { background: #fdf4f3; color: var(--bad); }
.result-icon .check-path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw-check 520ms var(--ease-out) 120ms forwards; }
@keyframes draw-check { to { stroke-dashoffset: 0; } }
.result-wrap h1 { font-size: 24px; font-weight: 600; }
.result-wrap p { color: var(--ink-muted); font-size: 14px; margin-top: 10px; line-height: 1.9; }
.result-actions { margin-top: 32px; display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 300px; }

/* 404 */
.error-wrap { max-width: 520px; width: 100%; margin: 0 auto; padding: 90px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1 0 auto; }
.error-code { font-size: 72px; font-weight: 600; color: var(--surface-2); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.error-wrap h1 { font-size: 20px; margin-top: 12px; }
.error-wrap p { color: var(--ink-muted); font-size: 14px; margin-top: 8px; }

/* 空状态 */
.empty { padding: 32px 16px; text-align: center; color: var(--ink-subtle); font-size: 13px; }

/* 响应式 */
@media (max-width: 1280px) {
  /* 中等屏幕：卡片回到右侧贴边，避免压住标题 */
  .hero-board { left: auto; right: 24px; }
}

@media (max-width: 1000px) {
  .hero-board { display: none; }
  .hero-inner { max-width: 760px; }
}

@media (max-width: 960px) {
  .park-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .step:last-child { border-bottom: 0; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: 0; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid var(--hairline); }
  .phone-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .utility { display: none; }
  .brand-text .brand-full { display: none; }
  .brand-text .brand-mini { display: block; font-size: 15px; }
  .top-nav a { padding: 0 10px; font-size: 13px; }
  .nav-row { height: 58px; }
  .brand-badge { width: 36px; height: 36px; font-size: 9px; }
  .hero { padding: 40px 0 40px; }
  .hero h1 { font-size: 28px; }
  .hero p.lead { font-size: 14px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .park-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0 4px; }
  .section-title { font-size: 23px; }
  .card { padding: 20px 16px; }
  .entry-card { padding: 16px; gap: 14px; }
  .page-head { padding: 24px 0 28px; }
  .staff-card { padding: 16px; gap: 12px; }
  .avatar { width: 46px; height: 46px; font-size: 18px; }
  .staff-info .name { font-size: 17px; }
  .form-block { padding: 16px; }
  .rating-btn { padding: 14px 12px; gap: 10px; }
  .star { width: 30px; height: 30px; font-size: 23px; }
  .wish-group { gap: 6px; }
  .wish { padding: 10px 4px; }
  .page-head .sub { font-size: 12.5px; }
}

/* 动效降级 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* 打印 */
@media print {
  .site-header, .site-footer, .utility, .hero-actions, .top-nav { display: none !important; }
  body { background: #fff; }
  .card, .park-card { border-color: #ddd; }
}

/* 整体五星评分 */
.overall-picker { text-align: center; padding: 6px 0 2px; }
.overall-stars { display: flex; justify-content: center; gap: 10px; }
.ostar {
  width: 48px; height: 48px; border: 0; background: transparent; padding: 0;
  font-size: 42px; line-height: 1; color: #d8d8d8;
  transition: color var(--duration-micro) var(--ease-out), transform var(--duration-fast) var(--ease-bounce);
}
.ostar.is-on { color: var(--yellow); }
.ostar:active { transform: scale(.86); }
.overall-text { margin-top: 8px; font-size: 13.5px; color: var(--ink-subtle); letter-spacing: .02em; }
.overall-text.is-set { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) {
  .overall-stars { gap: 4px; }
  .ostar { width: 44px; height: 44px; font-size: 38px; }
}

/* ==========================================================================
   游客评价页 · 实景风格（参考甲方样稿）
   ========================================================================== */

.review-body { background: #eef1ee; display: block; }
.review-wrap { max-width: 440px; padding: 0 0 28px; }

.rv-hero { position: relative; height: 252px; background-size: cover; background-position: center; }
.rv-hero-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 32, 25, .08) 0%, rgba(8, 32, 25, .42) 52%, rgba(8, 32, 25, .86) 100%);
}
.rv-hero-content { position: absolute; left: 22px; right: 22px; bottom: 38px; color: #fff; }
.rv-hero-content .loc { font-size: 12px; letter-spacing: .1em; opacity: .85; }
.rv-hero-content h1 { font-size: 30px; font-weight: 600; letter-spacing: .02em; margin-top: 6px; }
.rv-rule { width: 46px; height: 3px; background: var(--yellow); margin: 12px 0 10px; }
.rv-hero-content p { font-size: 12.5px; opacity: .9; letter-spacing: .02em; }

.rv-actions { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: -28px 16px 0; }
.rv-action {
  background: #fff; border-radius: 14px; padding: 16px 10px 13px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--primary);
  box-shadow: 0 10px 26px rgba(16, 42, 34, .12);
}
.rv-action svg { width: 26px; height: 26px; margin-bottom: 2px; }
.rv-action b { font-size: 14px; font-weight: 600; }
.rv-action span { font-size: 10.5px; opacity: .68; }
.rv-action.is-on { background: var(--primary); color: #fff; }

.rv-staff {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border-radius: 16px; margin: 14px 16px 0; padding: 15px 16px;
  box-shadow: 0 4px 18px rgba(16, 42, 34, .06);
}
.rv-avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex: none; background: #e6ece8; }
.rv-staff-info { min-width: 0; }
.rv-staff-info .nm { font-size: 17px; font-weight: 600; color: #1b2b25; display: flex; align-items: center; gap: 8px; }
.rv-staff-info .emp { font-size: 10.5px; font-weight: 400; color: var(--ink-muted); background: #f1f4f2; border-radius: 4px; padding: 2px 6px; }
.rv-staff-info .meta { font-size: 11.5px; color: var(--ink-muted); margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.rv-staff-info .meta i { width: 6px; height: 6px; border-radius: 50%; background: #2f9e6e; }

.review-form { margin-top: 0; gap: 0; }
.rv-card {
  background: #fff; border-radius: 16px; margin: 12px 16px 0; padding: 18px 16px;
  box-shadow: 0 4px 18px rgba(16, 42, 34, .05);
}
.q-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.q-head h2 { font-size: 14.5px; font-weight: 600; color: #1b2b25; display: flex; align-items: center; gap: 8px; }
.q-head h2::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--primary); }
.q-req { font-size: 11px; color: #b3261e; background: #fdf2f1; border-radius: 4px; padding: 1px 6px; }
.q-opt { font-size: 11px; color: var(--ink-subtle); }

.overall-picker { padding: 2px 0 0; }
.overall-stars { display: flex; justify-content: center; gap: 6px; }
.ostar {
  width: 52px; height: 52px; border: 0; background: transparent; padding: 0;
  font-size: 44px; line-height: 1; color: #dfe6e1;
  transition: color var(--duration-micro) var(--ease-out), transform var(--duration-fast) var(--ease-bounce);
}
.ostar.is-on { color: var(--yellow); }
.ostar:active { transform: scale(.88); }
.overall-text { text-align: center; margin-top: 6px; font-size: 13px; color: var(--ink-subtle); }
.overall-text.is-set { color: #1b2b25; font-weight: 600; }
.rating-tip { margin-top: 10px; font-size: 11.5px; line-height: 1.6; }

.chip-group { gap: 8px; }
.rv-card .chip { border-radius: 9px; border-color: #dde5df; background: #f7f9f8; height: 34px; color: #43544c; }
.rv-card .chip.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.rv-card .chip.tag-chip.is-on { background: #e8f3ee; border-color: var(--primary); color: var(--primary); }

.rv-card .star-row { border-bottom: 0; padding: 7px 0; }
.rv-card .star { width: 34px; height: 34px; font-size: 26px; color: #dfe6e1; }
.rv-card .star.is-on { color: var(--yellow); }
.rv-card .score-text { width: 58px; font-size: 11px; color: var(--ink-subtle); }

.wish-group { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rv-card .wish { border-radius: 11px; border-color: #dde5df; background: #f7f9f8; padding: 14px 8px; }
.rv-card .wish.is-on { border-color: var(--primary); background: #e8f3ee; }
.rv-card .wish.is-on .t { color: var(--primary); }

.rv-card textarea.comment { border-radius: 10px; background: #f6f8f6; border-color: #dde5df; }
.rv-card textarea.comment:focus { background: #fff; }
.rv-card .anon-row { border-top: 1px solid #eef1ee; }

.rv-submit {
  display: block; width: calc(100% - 32px); margin: 18px 16px 0; height: 52px;
  border: 0; border-radius: 13px; background: linear-gradient(180deg, #2a7561, #1f5c4d);
  color: #fff; font-size: 16px; font-weight: 600; letter-spacing: .08em;
  box-shadow: 0 10px 24px rgba(31, 92, 77, .28);
}
.rv-submit:active { transform: translateY(1px); }
.rv-submit:disabled { background: #9aa8a2; box-shadow: none; }
.rv-tip { text-align: center; font-size: 11px; color: #8a978f; margin: 10px 16px 0; }

.rv-park { margin-top: 22px; }
.rv-intro { font-size: 13px; line-height: 1.85; color: #40524a; }
.rv-phones { display: flex; flex-direction: column; margin-top: 14px; }
.rv-phone { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed #e6ebe7; }
.rv-phone .k { font-size: 12.5px; color: var(--ink-muted); }
.rv-phone .v { font-size: 15px; font-weight: 600; color: var(--primary); font-variant-numeric: tabular-nums; }
.rv-grids { margin-top: 16px; }
.rv-grids h3 { font-size: 12.5px; color: #1b2b25; font-weight: 600; margin-bottom: 6px; }
.rv-grid-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #eef1ee; font-size: 12.5px; }
.rv-grid-row:last-child { border-bottom: 0; }
.rv-grid-row .gno { width: 40px; color: var(--ink-subtle); font-variant-numeric: tabular-nums; }
.rv-grid-row .gname { flex: 1; min-width: 0; color: #33443c; }
.rv-grid-row .gname em { font-style: normal; color: var(--ink-muted); margin-left: 8px; font-size: 12px; }
.rv-grid-row .gphone { color: var(--primary); font-size: 12.5px; }

.rv-foot { margin: 22px 20px 0; text-align: center; font-size: 10.5px; color: #8a978f; line-height: 1.9; }
.rv-foot a { color: var(--primary); }

@media (max-width: 440px) {
  .rv-hero { height: 228px; }
  .rv-hero-content h1 { font-size: 27px; }
  .ostar { width: 46px; height: 46px; font-size: 39px; }
  .rv-actions { margin-left: 12px; margin-right: 12px; gap: 10px; }
  .rv-card, .rv-staff { margin-left: 12px; margin-right: 12px; }
  .rv-submit { width: calc(100% - 24px); margin-left: 12px; margin-right: 12px; }
}

/* 手机端隐藏滚动条，避免演示时出现浏览器滚动条 */
.review-body { scrollbar-width: none; }
.review-body::-webkit-scrollbar { width: 0; height: 0; }

/* ==========================================================================
   实景图应用：首页主视觉轮播、景区卡片、景区页头
   ========================================================================== */

.hero { background: #10382e; min-height: 430px; display: flex; align-items: center; padding: 56px 0; }
.hero-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; will-change: opacity, transform;
  animation: heroFade 28s linear infinite;
  animation-delay: calc(var(--i) * 4s);
}
@keyframes heroFade {
  0%   { opacity: 0; transform: scale(1.02); }
  2%   { opacity: 1; }
  15%  { opacity: 1; }
  18%  { opacity: 0; transform: scale(1.09); }
  100% { opacity: 0; transform: scale(1.09); }
}
.hero-mask {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(8, 32, 25, .9) 0%, rgba(8, 32, 25, .78) 38%, rgba(8, 32, 25, .46) 66%, rgba(8, 32, 25, .52) 100%);
}
.hero::before { z-index: 2; }
.hero .wrap { position: relative; z-index: 3; width: 100%; }
.hero-inner { position: relative; z-index: 3; }
.hero-board { z-index: 4; }

/* 景区卡片：图片蒙版 */
.park-grid { gap: 0; background: #fff; border: 1px solid var(--hairline); }
.park-card {
  position: relative; display: block; padding: 0; min-height: 240px; overflow: hidden;
  box-shadow: none; border-right: 1px solid #fff; border-bottom: 1px solid #fff;
}
.park-card::before { display: none; }
.park-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}
.park-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 32, 25, .08) 0%, rgba(8, 32, 25, .5) 52%, rgba(8, 32, 25, .9) 100%);
  transition: opacity var(--duration-fast) var(--ease-out);
}
.park-card:hover .park-bg { transform: scale(1.07); }
.park-card:hover .park-shade { opacity: .92; }
.park-content {
  position: relative; z-index: 1; min-height: 240px; padding: 20px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.park-name { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .25); }
.level-tag { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .45); color: #fff; }
.park-meta { color: rgba(255, 255, 255, .8); }
.park-foot { border-top-color: rgba(255, 255, 255, .24); }
.park-foot .score { color: rgba(255, 255, 255, .78); }
.park-foot .score b { color: var(--yellow); }
.park-foot .go { color: #fff; }
.park-card:hover .go svg { transform: translateX(3px); }

/* 景区页头 */
.page-head { background-size: cover; background-position: center 40%; position: relative; padding: 52px 0 56px; }
.page-head-mask {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8, 32, 25, .9) 0%, rgba(8, 32, 25, .78) 52%, rgba(8, 32, 25, .5) 100%);
}
.page-head::before { display: none; }
.page-head .wrap { z-index: 2; }
.page-head h1, .page-head .crumb, .page-head .sub { text-shadow: 0 1px 10px rgba(0, 0, 0, .25); }

@media (max-width: 960px) {
  .park-card, .park-content { min-height: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; }
  .hero-slide:first-child { opacity: 1; }
}

/* 景区卡片：图片与信息分离，保证文字清晰、卡片之间有明确间隔 */
.park-grid { gap: 16px; background: transparent; border: 0; }
.park-card {
  display: flex; flex-direction: column; min-height: 0; background: #fff;
  border: 1px solid var(--hairline); border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(16, 42, 34, .04);
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}
.park-card:hover { border-color: #b9cdc3; box-shadow: 0 10px 28px rgba(16, 42, 34, .1); transform: translateY(-2px); }
.park-bg { position: relative; inset: auto; height: 148px; flex: none; }
.park-shade { display: none; }
.park-card:hover .park-bg { transform: scale(1.04); }
.park-content { min-height: 0; padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 10px; }
.park-name { color: var(--ink); font-size: 17px; text-shadow: none; text-wrap: balance; min-height: 2.8em; }
.level-tag { background: #edf5ff; border-color: #c2d9fe; color: var(--primary); }
.park-meta { color: var(--ink-muted); }
.park-foot { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.park-foot .score { color: var(--ink-muted); }
.park-foot .score b { color: var(--primary); }
.park-foot .go { color: var(--primary); }
@media (max-width: 960px) {
  .park-card, .park-content { min-height: 0; }
  .park-bg { height: 160px; }
}

/* 标签分组与照片上传 */
.tag-sub { font-size: 12px; color: #6b7a72; margin: 2px 0 8px; }
.photo-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; flex-wrap: wrap; }
.photo-add {
  width: 74px; height: 74px; border: 1px dashed #cdd8d2; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #8a978f; font-size: 11px; cursor: pointer; background: #f8faf9;
}
.photo-add .plus { font-size: 20px; line-height: 1; }
.photo-add:hover { border-color: var(--primary); color: var(--primary); }
.photo-list { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-item { position: relative; width: 74px; height: 74px; border-radius: 10px; overflow: hidden; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-item button {
  position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; line-height: 18px; padding: 0;
}
.photo-hint { font-size: 11px; color: #8a978f; margin-top: 6px; }

/* 游客页细节修正：入口卡更紧凑、标签网格铺满、分项打分不竖排 */
.rv-actions { gap: 12px; }
.rv-action { padding: 11px 8px 9px; gap: 2px; border-radius: 13px; }
.rv-action svg { width: 20px; height: 20px; }
.rv-action b { font-size: 13px; }
.rv-action span { font-size: 10px; }

.rv-card .chip-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
}
.rv-card .chip { width: 100%; justify-content: center; padding: 0 6px; font-size: 12.5px; }

.rv-card .star-row {
  display: grid;
  grid-template-columns: 64px 1fr 52px;
  gap: 8px;
  align-items: center;
}
.rv-card .star-row .label { white-space: nowrap; font-size: 13px; }
.rv-card .star-row .stars { justify-content: flex-start; }
.rv-card .star-row .score-text { width: auto; text-align: right; font-size: 10.5px; }

/* 隐藏 iframe/手机端整页滚动条 */
html { scrollbar-width: none; }
html::-webkit-scrollbar { width: 0; height: 0; }
