/* ===========================================================================
   应时 · Skuld Web — 严格对齐 Compass 小程序「温润风物志 / 宣纸老黄历」设计系统
   宣纸暖底 #F6F3EB · 朱砂红 #B52F2B · 琥珀赭金 #7A5224 · 焦墨宋体
   =========================================================================== */

:root {
  /* 宣纸与层次表面 */
  --bg-app: #F6F3EB;
  --bg-surface: #FFFFFF;
  --bg-paper-warm: #FAF7F0;
  --bg-sunken: #EFEAE0;
  --bg-fill: #E6DFD2;
  --surface-raised: linear-gradient(180deg, #FFFFFF 0%, #FFFCF7 100%);
  --surface-glass: rgba(246, 243, 235, 0.94);

  /* 墨色文字层级 */
  --text-strong: #241F19;
  --text-body: #363029;
  --text-muted: #5A5147;
  --text-faint: #73685C;

  /* 品牌朱砂与琥珀金 */
  --brand: #B52F2B;
  --brand-hover: #982622;
  --brand-active: #7E201D;
  --brand-surface: #FAEDE7;
  --brand-border: #DFB5A8;
  --text-on-brand: #FFFDF9;

  --accent-deep: #7A5224;
  --accent-gold: #9B7043;
  --gold-surface: #FBF2E3;
  --gold-border: #E2CCA7;

  /* 统一跨页状态语义（与 Compass reading-tokens.wxss 一致） */
  --status-today-bg: #FAEDE7;
  --status-today-border: #E2B3A6;
  --status-today-text: #B52F2B;
  --status-soon-bg: #FBF2E3;
  --status-soon-border: #E4CEA9;
  --status-soon-text: #7A5224;
  --status-muted-bg: #F1ECE3;
  --status-muted-border: #DFD7C9;
  --status-muted-text: #6B6156;

  /* 辅助色 */
  --success: #24683E;
  --success-surface: #E6F4EA;

  /* 边框与分割线 */
  --border: #E6DCCB;
  --border-strong: #D0C0A6;
  --border-subtle: #F0E8DA;

  /* 暖纸阴影 */
  --shadow-xs: 0 1px 3px rgba(68, 48, 26, 0.04);
  --shadow-sm: 0 2px 8px rgba(68, 48, 26, 0.05);
  --shadow-card: 0 4px 16px rgba(68, 48, 26, 0.055), 0 1px 2px rgba(68, 48, 26, 0.035);
  --shadow-md: 0 8px 24px rgba(68, 48, 26, 0.08);
  --shadow-brand: 0 3px 10px rgba(181, 47, 43, 0.22);

  /* 圆角规范 */
  --radius-seal: 8px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* 字体规范（避开 Windows 锯齿 SimSun，优先精致衬线与清晰无衬线） */
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "PingFang SC", "Microsoft YaHei", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-body);
  background-color: var(--bg-app);
  background-image:
    radial-gradient(circle at 14% -4%, rgba(200, 136, 30, 0.08), transparent 34%),
    radial-gradient(circle at 90% 10%, rgba(181, 47, 43, 0.04), transparent 26%),
    radial-gradient(rgba(122, 82, 36, 0.035) 0.8px, transparent 0.8px);
  background-size: auto, auto, 20px 20px;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

a:hover {
  color: var(--brand);
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, p, figure {
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.38;
  letter-spacing: 0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.85rem, 1.35rem + 1.8vw, 2.45rem);
}

h2 {
  font-size: clamp(1.28rem, 1.12rem + 0.55vw, 1.5rem);
}

h3 {
  font-size: 1.25rem;
}

p + p {
  margin-top: 0.8rem;
}

::selection {
  color: var(--text-strong);
  background: rgba(181, 47, 43, 0.14);
}

.gj-ico {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  color: var(--text-on-brand);
  background: var(--brand);
  font-weight: 600;
  z-index: 100;
}

.skip:focus {
  top: 10px;
}

/* ── 顶栏：Compass gj-brand 品牌落款 ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  max-width: 1040px;
  min-height: 64px;
  margin: auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--text-strong);
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-seal);
  border: 1px solid var(--border);
  background: var(--bg-surface);
}

.brand > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: 0.04em;
}

.brand small {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--gold-surface);
  color: var(--accent-deep);
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.site-header nav a:hover {
  color: var(--brand);
  background: rgba(250, 237, 231, 0.7);
}

.site-header nav a.active {
  color: var(--brand);
  background: var(--brand-surface);
  border-color: var(--brand-border);
}

.site-header nav .nav-cta {
  margin-left: 6px;
  color: var(--brand);
  background: var(--bg-surface);
  border: 1px solid var(--brand-border);
  box-shadow: var(--shadow-xs);
}

.site-header nav .nav-cta:hover {
  color: var(--text-on-brand);
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: var(--shadow-brand);
}

/* ── 主容器 ── */
main {
  position: relative;
  max-width: 1040px;
  margin: auto;
  padding: 32px 24px 56px;
}

/* ── 首页 Hero（轻融水墨底纹） ── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: 40px;
  padding: 24px 0 36px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -12px -24px 0;
  background: url("/assets/market-welcome.jpg") right center / cover no-repeat;
  opacity: 0.06;
  mask-image: linear-gradient(90deg, transparent 10%, #000 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 65%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

.directory-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 13px;
  border-radius: var(--radius-pill);
  background: var(--gold-surface);
  border: 1px solid var(--gold-border);
  color: var(--accent-deep);
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 700;
}

.directory-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.hero h1 {
  font-size: clamp(2.3rem, 1.45rem + 2.7vw, 3.4rem);
  line-height: 1.28;
  margin: 16px 0 14px;
}

.directory-period {
  color: var(--brand);
}

.hero-note {
  max-width: 470px;
  color: var(--text-muted);
  font-size: 1.04rem;
  line-height: 1.8;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid var(--brand);
  border-radius: var(--radius-pill);
  color: var(--text-on-brand);
  background: linear-gradient(155deg, #C43B35 0%, #A42521 100%);
  box-shadow: var(--shadow-brand);
  font-size: 0.96rem;
  font-weight: 600;
}

.button:hover {
  color: var(--text-on-brand);
  background: linear-gradient(155deg, #B52F2B 0%, #8E1F1C 100%);
  transform: translateY(-1px);
}

.button-outline {
  background: var(--brand-surface);
  border-color: var(--brand-border);
  color: var(--brand);
  box-shadow: var(--shadow-xs);
}

.button-outline:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--text-on-brand);
}

.hero-actions .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-body);
  font-size: 0.94rem;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

.hero-actions .text-link:hover {
  color: var(--brand);
  border-color: var(--brand-border);
  background: var(--brand-surface);
}

.directory-caption {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-strong);
}

.directory-caption > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.directory-caption b {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--brand);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.directory-caption span {
  color: var(--text-faint);
  font-size: 0.82rem;
}

/* 首页右侧迎宾伴侣卡（Compass fair-hero + welcome-card） */
.directory-companion {
  position: relative;
  align-self: center;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gold-border);
  background: linear-gradient(165deg, #FFFDF8 0%, #FDF4E6 65%, #FAEDE7 100%);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.directory-companion::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, #D97A54 55%, var(--gold-border) 100%);
}

.directory-companion::after {
  content: "集";
  position: absolute;
  right: 10px;
  bottom: -14px;
  font-family: var(--font-serif);
  font-size: 90px;
  font-weight: 700;
  color: rgba(181, 47, 43, 0.065);
  transform: rotate(-8deg);
  pointer-events: none;
  line-height: 1;
}

.directory-companion-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-bottom: 1px dashed rgba(208, 192, 166, 0.72);
  color: var(--accent-deep);
  font-family: var(--font-serif);
  font-size: 0.94rem;
  font-weight: 700;
}

.directory-companion-top img {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-seal);
  border: 1px solid var(--border);
  background: var(--bg-surface);
}

.directory-companion-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 24px;
}

.directory-companion-body h2 {
  font-size: 1.55rem;
  line-height: 1.42;
  margin-bottom: 8px;
}

.directory-companion-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.directory-companion-body > div a {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--brand-border);
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

.directory-companion-body > div a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--text-on-brand);
}

.directory-companion-body > a,
.directory-companion-body > .qr-img-btn {
  flex: 0 0 120px;
  display: block;
}

.directory-companion-body > a img,
.directory-companion-body > .qr-img-btn img {
  display: block;
  width: 120px;
  border-radius: 12px;
  border: 6px solid var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

/* ── 通用区块头（Compass 朱砂竖线） ── */
.section {
  padding: 34px 0 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head > div h2,
.section-head > h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.38rem;
}

.section-head > div h2::before,
.section-head > h2::before {
  content: "";
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: var(--brand);
  flex-shrink: 0;
}

.section-head > a {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

.section-head > a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--text-on-brand);
}

/* ── 首页 7 大区紧凑省区目录（替代杂乱标签墙） ── */
.region-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  padding: 16px 20px;
  background: var(--surface-raised);
  border: 1px solid rgba(208, 192, 166, 0.58);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), var(--shadow-xs);
}

.region-group-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-subtle);
}

.region-group-row:last-child,
.region-group-row:nth-last-child(2):nth-child(odd) {
  border-bottom: 0;
}

.region-group-row__label {
  flex: 0 0 42px;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.region-group-row__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-width: 0;
}

.region-group-row__links a {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-strong);
  padding: 2px 0;
}

.region-group-row__links a small {
  color: var(--text-faint);
  font-size: 0.76rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.region-group-row__links a:hover,
.region-group-row__links a:hover small {
  color: var(--brand);
}

/* ── 省页地市快捷锚点与城市分块 ── */
.city-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 8px;
  margin-bottom: 24px;
}

.city-jump a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 253, 249, 0.88);
  border: 1px solid rgba(208, 192, 166, 0.58);
  color: var(--text-body);
  font-size: 0.86rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.city-jump a span {
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 500;
}

.city-jump a:hover,
.city-jump a:hover span {
  color: var(--brand);
  border-color: var(--brand-border);
  background: var(--brand-surface);
}

.city-block {
  margin-bottom: 28px;
}

.city-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.city-heading h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.24rem;
}

.city-heading h2::before {
  content: "";
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: var(--brand);
}

.city-heading span {
  color: var(--text-faint);
  font-size: 0.82rem;
}

/* ── 地区目录页：7 大区区块 ── */
.macro-region {
  margin-top: 28px;
}

.macro-region:first-of-type {
  margin-top: 8px;
}

.macro-region__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.macro-region__head h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.28rem;
}

.macro-region__head h2::before {
  content: "";
  width: 3px;
  height: 17px;
  border-radius: 2px;
  background: var(--brand);
}

.macro-region__head span {
  color: var(--text-faint);
  font-size: 0.84rem;
}

/* ── 关于页：核心数字带 + 3 列特性卡 ── */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.about-stat {
  padding: 16px 20px;
  background: var(--surface-raised);
  border: 1px solid rgba(208, 192, 166, 0.58);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), var(--shadow-xs);
}

.about-stat b {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--brand);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.about-stat span {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.feature-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-trio__card {
  padding: 20px;
  background: var(--surface-raised);
  border: 1px solid rgba(208, 192, 166, 0.58);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), var(--shadow-card);
}

.feature-trio__card .action-icon {
  margin-bottom: 12px;
}

.feature-trio__card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  color: var(--text-strong);
  margin-bottom: 6px;
}

.feature-trio__card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── 地区胶囊导航（轻盈紧凑，减少标签墙压迫感） ── */
.region-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 8px;
}

.region-nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 5px 12px;
  color: var(--text-body);
  background: rgba(255, 253, 249, 0.86);
  border: 1px solid rgba(208, 192, 166, 0.55);
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.region-nav a:hover {
  color: var(--brand);
  border-color: var(--brand-border);
  background: var(--brand-surface);
  transform: translateY(-1px);
}

/* ===========================================================================
   Compass 核心集市卡片（完全复刻 components/market-card/index.wxml + index.wxss）
   =========================================================================== */
.m-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.m-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 0;
  background: var(--surface-raised);
  border: 1px solid rgba(208, 192, 166, 0.58);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 4px 18px rgba(68, 48, 26, 0.05);
  overflow: hidden;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.m-card:hover {
  border-color: var(--brand-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 10px 26px rgba(68, 48, 26, 0.085);
  transform: translateY(-2px);
}

.m-card--today {
  border-color: var(--status-today-border);
  background: linear-gradient(180deg, #FFFBF8 0%, #FFFFFF 38%);
}

.m-card--today::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, #D96B52 55%, var(--gold-border) 100%);
}

.m-card__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.m-card__title-wrap {
  flex: 1;
  min-width: 0;
}

.m-name {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: 0.02em;
  color: var(--text-strong);
  overflow-wrap: anywhere;
}

.m-name a:hover {
  color: var(--brand);
}

/* 统一状态印签：每天开集=朱砂红，定期开集/逢圩=琥珀金，集日待核=暖灰 */
.m-card__status-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 5px;
  margin-top: 2px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--status-soon-border);
  background: var(--status-soon-bg);
  color: var(--status-soon-text);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.m-card__status-badge--today {
  border-color: var(--status-today-border);
  background: var(--status-today-bg);
  color: var(--status-today-text);
}

.m-card__status-badge--soon {
  border-color: var(--status-soon-border);
  background: var(--status-soon-bg);
  color: var(--status-soon-text);
}

.m-card__status-badge--unknown {
  border-color: var(--status-muted-border);
  background: var(--status-muted-bg);
  color: var(--status-muted-text);
  font-weight: 500;
}

.m-card__state-dot {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.m-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  min-width: 0;
}

.m-card__place {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 5px;
  min-width: 0;
  color: var(--accent-gold);
}

.m-card__place .gj-ico {
  width: 15px;
  height: 15px;
}

.m-card__region {
  min-width: 0;
  color: var(--text-faint);
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 轻盈直排规则区（去嵌套灰盒，虚线分隔） */
.m-card__body {
  flex: 1;
  min-width: 0;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-subtle);
}

.m-card__rule-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.m-card__seal {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid var(--gold-border);
  background: var(--gold-surface);
  color: var(--accent-deep);
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.m-card__seal--today {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--text-on-brand);
}

.m-card__rule-detail {
  flex: 1;
  min-width: 0;
}

.m-card__rule-text {
  color: var(--text-body);
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.m-card__hours {
  margin-top: 3px;
  color: var(--text-faint);
  font-size: 0.84rem;
  line-height: 1.45;
}

.m-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.m-card__tags--flush {
  margin-top: 0;
}

.m-card__tag {
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-paper-warm);
  border: 1px solid var(--border-subtle);
  color: var(--accent-deep);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* 精致化 5 点集期时间轴（复刻 Compass market-card/index.wxss） */
.m-card__timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 14px;
}

.m-card__timeline .m-dots__line {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 4px;
  height: 1px;
  background: var(--border);
}

.m-dot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.m-dot:nth-child(2) {
  align-items: flex-start;
}

.m-dot:last-child {
  align-items: flex-end;
}

.m-dot__node {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}

.m-dot--active .m-dot__node {
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-surface);
}

.m-dot--active .m-dot__label {
  color: var(--brand);
  font-weight: 700;
}

.m-dot--next .m-dot__node {
  background: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--gold-surface);
}

.m-dot--next .m-dot__label {
  color: var(--accent-deep);
  font-weight: 600;
}

.m-dot__label {
  display: block;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  line-height: 1.3;
  white-space: nowrap;
}

/* 底部操作栏：降噪克制，默认温润墨色，悬停才亮起朱砂红 */
.m-card__foot {
  min-width: 0;
  margin: 14px -20px 0;
  border-top: 1px solid var(--border-subtle);
  background: rgba(250, 247, 240, 0.55);
}

.m-card__actions {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.m-card__action {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 4px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.m-card__action:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--border-subtle);
}

.m-card__action:hover {
  background: var(--brand-surface);
  color: var(--brand);
}

.m-card__action .gj-ico {
  width: 15px;
  height: 15px;
  color: var(--text-faint);
  transition: color 0.15s ease;
}

.m-card__action-label--primary {
  color: var(--text-strong);
  font-weight: 600;
}

.m-card:hover .m-card__action:first-child .m-card__action-label--primary,
.m-card:hover .m-card__action:first-child .gj-ico,
.m-card__action:hover .gj-ico {
  color: var(--brand);
}

/* ── 底部扫码面板 ── */
.qr-panel {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  justify-content: space-between;
  gap: 32px;
  margin: 34px 0 0;
  padding: 24px 28px;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-xl);
  background: linear-gradient(165deg, #FFFDF8 0%, #FDF4E6 65%, #FAEDE7 100%);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.qr-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, #D97A54 55%, var(--gold-border) 100%);
}

.qr-kicker {
  display: inline-flex;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  color: var(--accent-deep);
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 700;
}

.qr-panel > img,
.qr-panel > .qr-img-btn {
  width: 122px;
  flex: 0 0 122px;
}

.qr-panel > img,
.qr-panel > .qr-img-btn img {
  display: block;
  width: 122px;
  border: 6px solid var(--bg-surface);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.qr-panel h2 {
  margin: 8px 0 8px;
  font-size: 1.4rem;
}

.qr-panel p {
  font-size: 0.94rem;
  color: var(--text-muted);
  max-width: 580px;
}

.qr-panel a,
.qr-trigger {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--brand-border);
  color: var(--brand);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.qr-panel a:hover,
.qr-trigger:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--text-on-brand);
}

.qr-img-btn {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 12px;
  display: block;
}

/* ── 纯 HTML/CSS 原生弹窗：查看大图小程序码（零 JS，支持点击遮罩和 Esc 关闭） ── */
.qr-modal {
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  max-width: calc(100vw - 32px);
}

.qr-modal::backdrop {
  background: rgba(36, 31, 25, 0.56);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.qr-modal__card {
  width: min(360px, calc(100vw - 32px));
  padding: 20px 22px 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gold-border);
  background: linear-gradient(170deg, #FFFFFF 0%, #FDF6EA 72%, #FAEDE7 100%);
  box-shadow: 0 20px 50px rgba(36, 31, 25, 0.28);
  text-align: center;
}

.qr-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px dashed var(--border-strong);
}

.qr-modal__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-strong);
}

.qr-modal__brand img {
  border-radius: 7px;
  border: 1px solid var(--border);
}

.qr-modal__close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
}

.qr-modal__close:hover {
  color: var(--brand);
  border-color: var(--brand-border);
  background: var(--brand-surface);
}

.qr-modal__img {
  width: 260px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  border: 10px solid var(--bg-surface);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.qr-modal__tip {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ── 面包屑与内页头 ── */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--text-faint);
  font-size: 0.86rem;
}

.breadcrumbs > * + *::before {
  content: "/";
  margin-right: 8px;
  color: var(--border-strong);
}

.page-intro {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.page-intro h1 {
  margin: 0 0 8px;
}

.lede {
  max-width: 720px;
  font-size: 0.98rem;
  color: var(--text-muted);
  text-wrap: pretty;
}

.list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 24px 0 14px;
}

.list-heading h2 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.32rem;
}

.list-heading h2::before {
  content: "";
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: var(--brand);
}

.list-heading h2 span {
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  color: var(--brand);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
}

.list-heading > span {
  color: var(--text-faint);
  font-size: 0.84rem;
}

/* ── 提示条 ── */
.notice {
  margin: 26px 0 0;
  padding: 16px 20px;
  background: var(--gold-surface);
  border: 1px solid var(--gold-border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
}

.notice strong {
  font-family: var(--font-serif);
  font-size: 1.04rem;
  color: var(--text-strong);
}

.notice p {
  margin-top: 6px;
  color: var(--text-muted);
}

/* ── 地区目录网格 ── */
.region-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.region-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  min-height: 158px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.region-tile > span {
  align-self: flex-start;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--gold-surface);
  border: 1px solid var(--gold-border);
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.region-tile h2 {
  margin: 12px 0 6px;
  font-size: 1.5rem;
}

.region-tile p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.region-tile b {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-paper-warm);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--accent-deep);
  font-weight: 600;
}

.region-tile:hover {
  border-color: var(--brand-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.region-tile:hover b {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--text-on-brand);
}

/* ── 关于页（复刻 Compass profile.wxml 顶部风物头卡 + action-list） ── */
.about-hero {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.about-hero__scenery {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  pointer-events: none;
}

.about-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 253, 249, 0.94) 0%, rgba(250, 246, 239, 0.84) 60%, rgba(250, 237, 231, 0.78) 100%);
  pointer-events: none;
}

.about-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 28px;
}

.about-hero__logo {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  box-shadow: var(--shadow-xs);
}

.about-hero__copy {
  flex: 1;
  min-width: 0;
}

.about-hero__copy h1 {
  font-size: clamp(1.65rem, 1.3rem + 1vw, 2.1rem);
  margin-bottom: 4px;
}

.about-hero__sub {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.about-hero__motto {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--gold-surface);
  border: 1px solid var(--gold-border);
  color: var(--accent-deep);
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.action-list {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.action-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.action-item:last-child {
  border-bottom: 0;
}

.action-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--gold-surface);
  border: 1px solid var(--gold-border);
  color: var(--accent-deep);
}

.action-copy strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  color: var(--text-strong);
  margin-bottom: 3px;
}

.action-copy p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.rule-guide-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rule-guide-grid > div {
  padding: 16px 18px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.rule-guide-grid dt {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--accent-deep);
  margin-bottom: 6px;
}

.rule-guide-grid dd {
  margin: 0;
  color: var(--text-body);
  font-size: 0.92rem;
  line-height: 1.7;
}

.about-note-card {
  padding: 20px 22px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ── 网站地图 ── */
.map-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
}

.map-pages a {
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-strong);
}

.map-pages a:hover {
  color: var(--brand);
  border-color: var(--brand-border);
  background: var(--brand-surface);
}

.map-section {
  padding: 20px 22px;
  margin-top: 12px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.map-section h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.22rem;
}

.map-section h2::before {
  content: "";
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: var(--brand);
}

.map-section h2 small {
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--gold-surface);
  color: var(--accent-deep);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
}

.map-section ul {
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 14px;
  font-size: 0.94rem;
}

.map-section li a {
  display: inline-block;
  padding: 4px 0;
}

/* ── 404 空态卡（Compass welcome-card） ── */
.welcome-empty {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 540px;
  margin: 40px auto 72px;
  padding: 36px 28px;
  background: radial-gradient(120% 80% at 50% 0%, var(--brand-surface), transparent 58%), var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.welcome-empty img {
  border-radius: 14px;
  margin-bottom: 14px;
}

.welcome-empty h1 {
  font-size: 1.65rem;
  margin-bottom: 10px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

/* ── 页脚 ── */
.site-footer {
  max-width: 992px;
  margin: 0 auto;
  padding: 26px 0 36px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  color: var(--text-faint);
  font-size: 0.88rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  color: var(--text-strong);
  font-weight: 700;
  font-size: 1.15rem;
}

.footer-brand span {
  padding: 1px 9px;
  border-radius: var(--radius-pill);
  background: var(--gold-surface);
  color: var(--accent-deep);
  font-family: var(--font-serif);
  font-size: 0.76rem;
  font-weight: 600;
}

.site-footer > div > p {
  margin-top: 5px;
  color: var(--text-muted);
}

.site-footer nav {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-top: 4px;
}

.footer-note {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* ── 响应式断点 ── */
@media (max-width: 1040px) {
  .site-footer {
    margin-left: 24px;
    margin-right: 24px;
  }
  .hero {
    gap: 28px;
  }
}

@media (max-width: 820px) {
  .brand small {
    display: none;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 12px 0 26px;
  }
  .m-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .region-groups {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature-trio {
    grid-template-columns: minmax(0, 1fr);
  }
  .region-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rule-guide-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .about-hero__inner {
    flex-wrap: wrap;
  }
  .map-section ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: auto;
    padding: 12px 16px 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .brand small {
    display: inline-flex;
  }
  .site-header nav {
    width: 100%;
    overflow-x: auto;
    gap: 4px;
  }
  .site-header nav a {
    padding: 5px 11px;
    font-size: 0.86rem;
  }
  .site-header nav .nav-cta {
    margin-left: auto;
  }
  main {
    padding: 20px 16px 40px;
  }
  .directory-companion-body {
    padding: 18px;
    gap: 14px;
  }
  .directory-companion-body h2 {
    font-size: 1.38rem;
  }
  .directory-companion-body > a {
    flex-basis: 104px;
  }
  .directory-companion-body > a img {
    width: 104px;
  }
  .m-card {
    padding: 16px 16px 0;
  }
  .m-card__foot {
    margin: 12px -16px 0;
  }
  .qr-panel {
    padding: 20px 18px;
    gap: 18px;
    align-items: flex-start;
    flex-direction: column-reverse;
  }
  .qr-panel > img {
    width: 112px;
    flex-basis: auto;
  }
  .region-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .about-hero__inner {
    padding: 20px 18px;
  }
  .site-footer {
    margin: 0 16px;
    grid-template-columns: 1fr;
  }
  .site-footer nav {
    justify-content: flex-start;
  }
  .map-section ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  a,
  .m-card,
  .region-tile {
    transition: none;
  }
}
