/* ============================================================
   2027 全险种理赔基础作业管理培训 · 会议 H5
   结构复刻参考站：整张海报背景 + 九宫格入口 + 子页路由
   主色：橙 #F1651F / 深橙 #D9531A / 奶金 #FFF6E6 / 米 #FCEDD8
   ============================================================ */


:root {
  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --orange: #F1651F;
  --orange-d: #D9531A;
  --orange-deep: #B8400A;
  --cream: #FFF6E6;
  --cream-2: #FCEDD8;
  --paper: #FFFAF0;
  --ink: #5A2E10;
  --ink-2: #8A5423;
  --line: rgba(217, 83, 26, .28);
  --line-2: rgba(217, 83, 26, .16);

  --head-h: 130vw;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--cream-2);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--cream-2);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
b, strong { font-weight: 700; }

/* ============================================================
   海报背景 + 城市插画
   ============================================================ */
.poster {
  position: absolute;
  top: 0; left: 0; right: 0;
  width: 100%;
  height: 100dvh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-image: url("./assets/img/poster.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

:root { --poster-h: 100dvh; }
.poster img { display: none; }

/* 页尾城市插画：取同一张图的底部 */
body[data-route="home"] .footart { display: none; }

.footart {
  position: relative;
  z-index: 1;
  height: 52vw;
  margin-top: -6vw;
  background-image: url("./assets/img/poster.webp");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
}

/* ============================================================
   顶部文字
   ============================================================ */
.masthead {
  position: relative;
  z-index: 2;
  padding: calc(18px + env(safe-area-inset-top)) 22px 0;
  text-align: center;
}

.masthead__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.logo {
  display: flex;
  align-items: center;
}
.logo__img {
  display: block;
  width: 138px;
  height: auto;
  filter: drop-shadow(0 1px 6px rgba(150, 55, 5, .3));
}
.slogan {
  text-align: right;
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .95);
  text-shadow: 0 1px 8px rgba(150, 55, 5, .3);
}

/* 书法主视觉 */
.calli {
  margin: 14px 0 0;
  line-height: 0;
}
.calli img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 3px 8px rgba(120, 55, 5, .38));
}

.mtitle {
  margin-top: 14px;
  font-size: clamp(15px, 4.4vw, 18px);
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  line-height: 1.5;
  text-shadow: 0 1px 10px rgba(150, 60, 8, .35);
}
.mcity {
  margin-top: 6px;
  font-size: 14px;
  letter-spacing: .26em;
  color: rgba(255, 255, 255, .96);
  text-shadow: 0 1px 8px rgba(150, 60, 8, .3);
}

/* ============================================================
   页面容器
   ============================================================ */
#main {
  position: relative;
  z-index: 2;
  padding: 0 22px 30px;
}

/* 子页：用米色面板盖掉海报下半部分的插画，文字永远落在干净底上 */
body:not([data-route="home"]) #main {
  background: var(--cream-2);
}
body:not([data-route="home"]) #main::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -44px;
  height: 44px;
  background: linear-gradient(180deg, rgba(252, 237, 216, 0), var(--cream-2));
  pointer-events: none;
}

.page[hidden] { display: none; }

/* ============================================================
   首页 · 六宫格
   ============================================================ */
.entries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 6px;
  padding: 22px 0 0;
  position: relative;
}



.entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  -webkit-tap-highlight-color: transparent;
}
/* 8 个入口：3 + 3 + 2，最后一行的两个居中 */
.entries { grid-template-columns: repeat(6, 1fr); }
.entry { grid-column: span 2; }
.entry:nth-child(7) { grid-column: 2 / span 2; }
.entry:nth-child(8) { grid-column: 4 / span 2; }
.entry__ico {
  width: 19.5vw;
  height: 19.5vw;
  max-width: 78px;
  max-height: 78px;
  display: block;
  filter: drop-shadow(0 3px 8px rgba(190, 100, 30, .16));
  transition: transform .18s ease, filter .25s ease;
}
.entry__lb {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #B8400A;
  text-shadow:
    0 0 2px rgba(255, 250, 240, 1),
    0 0 5px rgba(255, 250, 240, .98),
    0 0 10px rgba(255, 250, 240, .9),
    0 1px 2px rgba(255, 250, 240, 1);
}
.entry:active .entry__ico {
  transform: scale(.93);
  filter: drop-shadow(0 1px 4px rgba(190, 100, 30, .22));
}

/* ============================================================
   子页 · 标题
   ============================================================ */
.sectitle {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 34px 0 22px;
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(22px, 6.4vw, 26px);
  letter-spacing: .04em;
  color: var(--orange-deep);
  white-space: nowrap;
}
.sectitle::before,
.sectitle::after {
  content: "";
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(217, 83, 26, .5));
}
.sectitle::after {
  background: linear-gradient(90deg, rgba(217, 83, 26, .5), transparent);
}

/* 橙色渐变条 */
.bar {
  margin: 22px 0 12px;
  padding: 6px 12px;
  text-align: center;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .06em;
  color: #fff;
  border-radius: 5px;
  background: linear-gradient(180deg, #F9A24E 0%, #EF7A22 55%, #E96A18 100%);
  box-shadow: 0 2px 8px rgba(210, 100, 20, .22);
}

.venue-line {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--orange-d);
  line-height: 1.6;
  margin-bottom: 4px;
}

/* ============================================================
   议程表
   ============================================================ */
.tlist {
  position: relative;
  padding: 2px 0;
}
.tlist::before {
  content: "";
  position: absolute;
  left: calc(94px + 26px);
  top: 20px;
  bottom: 20px;
  border-left: 1.5px dashed rgba(217, 83, 26, .32);
}

.trow {
  display: grid;
  grid-template-columns: 94px 26px 1fr;
  align-items: center;
  padding: 8px 0;
}
.tt {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--orange-d);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  text-align: right;
  padding-right: 10px;
  white-space: nowrap;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  justify-self: center;
  position: relative;
  z-index: 1;
}
.tn {
  font-size: 15px;
  font-weight: 700;
  color: var(--orange-d);
  line-height: 1.45;
  padding-left: 10px;
}
.tn em {
  display: block;
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: .02em;
  margin-top: 1px;
}
.trow--rest .tt { color: var(--ink-2); font-weight: 600; }
.trow--rest .dot { background: #F0A868; }
.trow--rest .tn { color: var(--ink-2); font-weight: 500; }
.trow--end .tn { color: var(--orange); letter-spacing: .08em; }

/* ============================================================
   座次占位
   ============================================================ */
.seatpanel {
  position: relative;
  margin: 8px 0 18px;
  min-height: 260px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  background: linear-gradient(180deg, #FFFDF8, #FDF3E4);
  display: grid;
  place-items: center;
}
.seatpanel__grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 11px;
  padding: 22px;
  width: 100%;
  opacity: .85;
}
.seatpanel__grid i {
  aspect-ratio: 1;
  border-radius: 3px;
  border: 1.2px solid rgba(217, 83, 26, .28);
  background: #FDEFDB;
}
.seatpanel__grid i:nth-child(3n) { background: #F8E0BE; }
.seatpanel__grid i:nth-child(7n) { background: #FAD3AE; }

.seatpanel__mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px;
  background: radial-gradient(64% 58% at 50% 50%, rgba(255, 251, 243, .97) 42%, rgba(255, 251, 243, .55) 100%);
}
.seatpanel__tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 16px;
  border-radius: 999px;
  border: 1.6px solid var(--orange);
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
}
.seatpanel__mask p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-2);
}

/* ============================================================
   提示框
   ============================================================ */
.tipbox {
  margin: 16px 0;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--orange);
  background: #FFF3E2;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-2);
}
.tipbox--inner { margin: 2px 0 16px; }

/* ============================================================
   图文 / 键值
   ============================================================ */
.shot {
  margin: 12px 0 16px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  position: relative;
  background: #fff;
}
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.shot--tall img { aspect-ratio: auto; height: auto; object-fit: contain; background: #FFFDF8; }
.shot figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(90, 30, 5, .78));
}

.kvs {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #FFFDF8;
}
.kv {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 10px;
  padding: 12px 14px;
  align-items: baseline;
}
.kv + .kv { border-top: 1px solid var(--line-2); }
.kv span {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--orange-d);
}
.kv b {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
}

.mapbtns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 4px;
}
.mbtn {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: transform .16s;
  -webkit-tap-highlight-color: transparent;
}
.mbtn--solid {
  color: #fff;
  background: linear-gradient(180deg, #F9A24E, #E9690F);
  box-shadow: 0 3px 10px rgba(210, 100, 20, .26);
}
.mbtn--ghost {
  color: var(--orange-d);
  background: #FFF3E2;
  border: 1.5px solid var(--line);
}
.mbtn:active { transform: translateY(1px) scale(.985); }

.fine {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-2);
  opacity: .85;
}

.prose {
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink);
  text-align: justify;
}

/* ============================================================
   会务联系卡片
   ============================================================ */
.cline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  margin-bottom: 12px;
  border-radius: 9px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  background: #FFF9EE;
  box-shadow: 0 3px 10px rgba(190, 100, 30, .1);
  transition: transform .16s;
  -webkit-tap-highlight-color: transparent;
}
.cline:active { transform: scale(.99); }
.cline__name {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 0 16px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #fff;
  background: linear-gradient(135deg, #F4832F, #DC5A10);
  white-space: nowrap;
}
.cline__num {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .03em;
  color: var(--orange-d);
  font-variant-numeric: tabular-nums;
  padding: 14px 4px;
}
.cline__act {
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 0 12px 0 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--orange-d);
  white-space: nowrap;
}
.cline__act svg { width: 19px; height: 19px; }

/* ============================================================
   天府之国
   ============================================================ */
.spots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.spot {
  margin: 0;
  position: relative;
  border-radius: 9px;
  overflow: hidden;
  border: 1.5px solid var(--line);
}
.spot--wide { grid-column: span 2; }
.spot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  filter: saturate(1.02);
}
.spot--wide img { aspect-ratio: 16 / 10; }
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 32%, rgba(60, 20, 2, .5) 62%, rgba(60, 20, 2, .88) 100%);
}
.spot figcaption {
  position: absolute;
  left: 11px; right: 11px; bottom: 9px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.spot figcaption b {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .03em;
}
.spot figcaption span {
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .9);
}
.spot figcaption em {
  font-style: normal;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #FFD98F;
}

.eats { display: grid; gap: 10px; }
.eat {
  margin: 0;
  border-radius: 9px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  background: #FFFDF8;
}
.eat img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.eat figcaption { padding: 11px 14px 13px; }
.eat figcaption b {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--orange-d);
  margin-bottom: 4px;
}
.eat figcaption p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink);
}

/* ============================================================
   天气 / 穿衣
   ============================================================ */
.card {
  margin: 12px 0 16px;
  padding: 16px 15px;
  border-radius: 12px;
  border: 1.8px solid var(--line);
  background: linear-gradient(180deg, #FFFDF8, #FFF6E8);
  box-shadow: 0 3px 12px rgba(190, 100, 30, .1);
}
.card__hd {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--line-2);
  margin-bottom: 6px;
}
.card__ico {
  width: 22px; height: 22px;
  color: var(--orange);
  flex: 0 0 auto;
}
.card__hd b {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: .03em;
}
.card__en {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  color: rgba(232, 90, 18, .5);
}

.wrow {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-2);
}
.wrow:last-of-type { border-bottom: 0; }
.wrow__d b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.wrow__d span { font-size: 11.5px; color: var(--ink-2); }
.wrow__i {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
}
.wrow__t {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--orange-d);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.steps {
  list-style: none;
  padding-right: 4px;
  counter-reset: s;
  margin: 4px 0 0;
  padding: 0;
}
.steps li {
  counter-increment: s;
  position: relative;
  padding: 10px 0 10px 32px;
  border-bottom: 1px solid var(--line-2);
}
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0; top: 12px;
  width: 21px; height: 21px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: var(--orange);
}
.steps b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 2px;
}
.steps p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink);
}

/* ============================================================
   BACK · 底部居中胶囊
   ============================================================ */
/* 返回按钮容器：无背景、无渐隐带，只负责定位 */
.backdock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 39;
  padding: 0 0 calc(14px + env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .24s ease;
}
body:not([data-route="home"]) .backdock { opacity: 1; }
body:not([data-route="home"]) .backdock.is-hidden { opacity: 0; }
.backdock.is-hidden .back { pointer-events: none; }

.back {
  position: relative;
  transform: translateY(6px);
  z-index: 40;
  pointer-events: auto;

  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px 9px 16px;
  border-radius: 999px;

  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #FFF7E7;

  background: linear-gradient(180deg, #F4832F 0%, #DC5A10 100%);
  border: 1px solid rgba(255, 226, 170, .55);
  box-shadow:
    0 6px 20px rgba(180, 70, 10, .32),
    inset 0 1px 0 rgba(255, 236, 196, .45);

  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s cubic-bezier(.22, 1, .36, 1);
  -webkit-tap-highlight-color: transparent;
}
.back__ico {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  transform: translateY(-.5px);
}
.back.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back:active {
  transform: translateY(1px) scale(.97);
  box-shadow: 0 3px 12px rgba(180, 70, 10, .3), inset 0 1px 0 rgba(255, 236, 196, .3);
}

/* 首页隐藏 */
body[data-route="home"] .backdock { display: none; }

/* 给底部按钮让出空间，内容不会被挡 */
#main { padding-bottom: 96px; }

@media (min-width: 640px) {
  .back { bottom: 22px; padding: 10px 24px 10px 18px; font-size: 14px; }
}
/* ============================================================
   桌面
   ============================================================ */
@media (min-width: 640px) {
  :root { --poster-h: 200vw; }
  .masthead { padding-left: 0; padding-right: 0; max-width: 520px; margin: 0 auto; }
  #main { max-width: 520px; margin: 0 auto; padding: 0 0 calc(220px + 30px); }
  .entries { gap: 26px 10px; }
  .entry__ico { max-width: 96px; max-height: 96px; }
  .calli { font-size: 46px; }
  .citybase { height: 22vw; }
}

@media (min-width: 1024px) {
  #main { max-width: 560px; }
  .masthead { max-width: 560px; }
}

/* 横屏矮屏 */
@media (max-height: 620px) {
  .calli { font-size: clamp(26px, 7vh, 38px); }
  .entries { padding-top: 22px; }
}

/* 无障碍 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .back { background: #FFFAF3; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ============================================================
   版本切换（页尾静态链接，不浮动）
   ============================================================ */
.versionlink {
  text-align: center;
  padding: 4px 0 28px;
  font-size: 11.5px;
  letter-spacing: .06em;
}
.versionlink a {
  color: var(--ink-2);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 2px;
}
/* 首页：版本切换缩成底部小胶囊，浮在水面上，不压内容 */
body[data-route="home"] .versionlink {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 45;
  padding: 0;
  margin: 0;
  text-align: center;
}
body[data-route="home"] .versionlink a {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, .94);
  box-shadow: 0 3px 10px rgba(140, 70, 10, .22);
  color: var(--orange-deep);
  font-size: 10.5px;
  text-decoration: none;
}
/* ============================================================
   桌面：整页收成手机画框，避免背景被拉伸裁切
   ============================================================ */
@media (min-width: 720px) {
  body {
    background:
      radial-gradient(70% 50% at 50% 0%, #F9DFC0, #F2D2AC 60%, #EEC99B 100%);
  }
  /* 桌面就沿用手机的逻辑，只收窄居中，不改任何间距 */
  .poster { width: 520px; }
  .masthead, #main {
    width: 520px;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
  .poster {
    border-radius: 0 0 12px 12px;
    box-shadow: 0 0 0 1px rgba(226, 88, 15, .14), 0 20px 50px rgba(150, 80, 20, .2);
  }
}




/* ============================================================
   微信分享缩略图载体：不影响视觉，供微信抓取
   ============================================================ */
.wxthumb {
  position: absolute;
  left: -2000px;
  top: 0;
  width: 300px;
  height: 300px;
  overflow: hidden;
  pointer-events: none;
}
.wxthumb img { display: block; width: 300px; height: 300px; }