:root {
  --bg: #f6f2ec;
  --surface: #ffffff;
  --ink: #211c18;
  --ink-2: #6b6157;
  --ink-3: #9a8f83;
  --accent: #8c3b1b;
  --accent-deep: #6f2d13;
  --accent-soft: #f3e7de;
  --line: #e7ded4;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(58, 40, 26, 0.09);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 20px calc(96px + env(safe-area-inset-bottom));
}

.hero {
  margin: 0 0 22px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--accent-soft);
}
.hero img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-fallback { width: 100%; aspect-ratio: 3 / 2; background: linear-gradient(135deg, #efe2d7, #e2cfc0); }

.head { margin-bottom: 20px; }
.kicker {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 600;
}
.title {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.36;
  font-weight: 700;
  letter-spacing: -0.01em;
  word-break: break-word;
}
.subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
}

.points {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  min-width: 0;
}
.points .idx {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.points .pt { font-size: 14.5px; line-height: 1.65; color: #3a332c; min-width: 0; word-break: break-word; }

.qr-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 18px;
}
.qr-box {
  flex: 0 0 auto;
  width: 124px;
  height: 124px;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  display: block;
}
.qr-box img { width: 100%; height: 100%; }
.qr-meta { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.qr-meta strong { font-size: 14px; font-weight: 600; }
.qr-meta span { font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }

.cta-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.cta {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.cta:active { transform: scale(0.97); }
.cta svg { color: var(--accent); flex: 0 0 auto; }
.cta span {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cta-primary {
  background: var(--accent-soft);
  border-color: rgba(140, 59, 27, 0.18);
}

.wx-qr {
  width: 220px;
  max-width: 60vw;
  margin: 0 auto;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.consult-panel {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 18px;
  padding: 22px;
}
.consult-title { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.consult-hint { margin: 0 0 14px; font-size: 13px; color: var(--ink-3); }
.consult-input {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  background: #fbf8f4;
  margin-bottom: 10px;
  resize: none;
  outline: none;
  -webkit-appearance: none;
}
.consult-input:focus { border-color: #d9c9ba; background: #fff; }
textarea.consult-input { min-height: 96px; line-height: 1.6; }
.consult-actions { display: flex; gap: 10px; margin-top: 4px; }
.consult-actions .act { height: 44px; }
.consult-tip {
  margin: 10px 0 0;
  min-height: 18px;
  font-size: 12.5px;
  color: var(--accent);
  text-align: center;
}

.faq-count {
  font-size: 12px;
  color: var(--ink-3);
}
.faq-item { border-bottom: 1px solid #f2ebe2; }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 24px 15px 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}
.faq-brief {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 14px;
  font-size: 19px;
  line-height: 1;
  color: var(--ink-3);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  content: "−";
  color: var(--accent);
}
.faq-a {
  padding: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.85;
  color: #3a332c;
  white-space: pre-wrap;
}

.expand {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px;
  border-radius: 14px;
  border: 1px dashed #d9c9ba;
  color: var(--accent);
  font-size: 14.5px;
  font-weight: 500;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.expand:active { background: var(--accent-soft); }
.expand .chev { transition: transform 0.25s ease; }
.expand.is-open .chev { transform: rotate(180deg); }

.blocks {
  display: none;
  padding-top: 16px;
}
.blocks.is-open {
  display: block;
  animation: fadeUp 0.32s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}
.block-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  text-align: left;
}
.block-head.static { cursor: default; }
.block-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.chev { color: var(--ink-3); transition: transform 0.25s ease; flex: 0 0 auto; }
.block-head[aria-expanded="true"] .chev { transform: rotate(180deg); }

.block-body {
  display: none;
  padding: 0 18px 18px;
}
.block-body.open { display: block; }

.prose { font-size: 15px; line-height: 1.85; color: #3a332c; }
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }

.shot { margin: 0 0 14px; }
.shot:last-child { margin-bottom: 0; }
.shot img { width: 100%; border-radius: 12px; background: #f1ece6; }
.shot img.fit-contain { object-fit: contain; height: auto; max-height: 70vh; background: #f8f4ed; }
.shot figcaption { margin-top: 8px; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }

/* 三张以上横滑（2026-10-27）：活动版「这一期我们都聊了什么」用 */
.block-body.swim {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}
.block-body.swim .shot { flex: 0 0 76%; margin: 0; scroll-snap-align: center; }
.block-body.swim .shot img { width: 100%; height: 200px; object-fit: cover; }
.block-body.swim .shot figcaption { font-size: 12px; }
.block-body.swim::-webkit-scrollbar { height: 4px; }
.block-body.swim::-webkit-scrollbar-thumb { background: #D8D2C4; border-radius: 4px; }

/* 三张以上横滑（2026-10-27）：活动版「这一期我们都聊了什么」用 */
.block-body.swim {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}
.block-body.swim .shot { flex: 0 0 76%; margin: 0; scroll-snap-align: center; }
.block-body.swim .shot img { width: 100%; height: 200px; object-fit: cover; }
.block-body.swim .shot figcaption { font-size: 12px; }
.block-body.swim::-webkit-scrollbar { height: 4px; }
.block-body.swim::-webkit-scrollbar-thumb { background: #D8D2C4; border-radius: 4px; }

.doc-frame {
  width: 100%;
  height: 460px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.doc-frame iframe { width: 100%; height: 100%; border: 0; }
.doc-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(140, 59, 27, 0.3);
  padding-bottom: 2px;
}

.video-section { padding-top: 18px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.section-hint { font-size: 12px; color: var(--ink-3); }

.video-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.video-scroll::-webkit-scrollbar { display: none; }

.video-card {
  flex: 0 0 44%;
  min-width: 0;
  padding: 0;
  text-align: left;
}
.video-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  background: #1b1714;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
}
.video-play::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 13px;
  width: 0;
  height: 0;
  border-left: 13px solid #2b2320;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}
.video-dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 11px;
  line-height: 1.4;
}
.video-title {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}

.video-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-layer[hidden] { display: none; }
.video-layer video {
  width: 100%;
  max-height: 100vh;
  background: #000;
}
.video-close {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  right: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.foot {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.foot p { margin: 0; font-size: 11.5px; line-height: 1.7; color: var(--ink-3); }

.actionbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  gap: 10px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: rgba(246, 242, 236, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.actionbar-inner { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; width: 100%; }

.act {
  flex: 1;
  height: 48px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.act:active { transform: scale(0.98); }
.act-ghost { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.act-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(140, 59, 27, 0.24); }

.share-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(24, 18, 14, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  -webkit-overflow-scrolling: touch;
}
.share-layer[hidden] { display: none; }
.share-panel { max-width: 420px; width: 100%; text-align: center; }
.share-tip { color: #f0e7de; font-size: 13px; margin: 0 0 12px; }
.share-img { width: 100%; border-radius: 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.share-close {
  margin-top: 16px;
  padding: 11px 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

@media (min-width: 481px) {
  body { background: #efeae3; }
  .page { background: var(--bg); min-height: 100vh; box-shadow: 0 0 60px rgba(58, 40, 26, 0.07); }
  .actionbar { border-top: 1px solid var(--line); }
}

/* 六段结构 */
.hook {
  margin: 14px 0 0;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  font-size: 17px;
  line-height: 1.72;
  font-weight: 500;
  color: #2b2320;
}

.section-group { margin-bottom: 26px; }
.section-group:last-child { margin-bottom: 0; }
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.sec-idx {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 扫码落地定位视频 */
.video-section.flash {
  animation: videoFlash 1.6s ease;
}
@keyframes videoFlash {
  0% { background: rgba(140, 59, 27, 0.10); }
  100% { background: transparent; }
}

/* 段内单块：无卡片、直接出正文，避免标题与段名重复 */
.block-plain {
  background: transparent;
  border: none;
  border-radius: 0;
  margin-bottom: 0;
}
.block-plain .block-body {
  display: block;
  padding: 0;
}

/* 活动信息 */
.event-info {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  display: grid;
  gap: 10px;
}
.ev-row { display: flex; gap: 12px; align-items: flex-start; }
.ev-k {
  flex: 0 0 40px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.7;
}
.ev-v {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  word-break: break-all;
}
.ev-v a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(140, 59, 27, 0.28); }

/* 二维码：保证识别率 */
.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  image-rendering: -webkit-optimize-contrast;
}

/* 可复制的链接 */
.ev-link {
  color: var(--accent);
  word-break: break-all;
  -webkit-user-select: text;
  user-select: text;
}
.ev-copy {
  margin-left: 8px;
  padding: 2px 9px;
  font-size: 11.5px;
  font-family: inherit;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  vertical-align: middle;
}
.ev-copy:active { background: var(--accent-soft); }


/* ============ 小红书风图文（2026-10-27，活动版第二层） ============ */
.note-card { margin: 0 0 26px; }
.note-card:last-child { margin-bottom: 8px; }

.note-media { display: block; }
.note-shot { margin: 0; }
.note-shot img {
  width: 100%;
  border-radius: 16px;
  display: block;
  background: #EFEADC;
}
.note-shot figcaption {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-3);
}
.note-cap {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
}

/* 三张以上横滑 */
.note-media.swim {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  margin: 0 -18px;
  padding-left: 18px;
  padding-right: 18px;
}
.note-media.swim .note-shot { flex: 0 0 78%; scroll-snap-align: center; }
.note-media.swim .note-shot img { aspect-ratio: 3 / 4; height: auto; object-fit: cover; }
.note-media.swim::-webkit-scrollbar { height: 0; }

/* 文字块：像笔记正文 */
.note-text p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-soft);
  letter-spacing: .01em;
}
.note-text p:last-child { margin-bottom: 0; }
.note-h {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
  padding-left: 10px;
  border-left: 3px solid #B23A2B;
  line-height: 1.5;
}

/* ============ 图文卡：一张图 + 一段文（2026-10-27） ============ */
.note-block {
  margin: 0 0 30px;
  background: transparent;
}
.note-photo { margin: 0; }
.note-photo img {
  width: 100%;
  border-radius: 16px;
  display: block;
  background: #EFEADC;
}
.note-photo figcaption {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-3);
}
.note-body { padding-top: 12px; }
.note-body p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-soft);
  letter-spacing: .01em;
}
.note-body p:last-child { margin-bottom: 0; }


/* 分享弹层里的「发链接」面板（2026-10-27）：白底卡片感，和深色遮罩区分开 */
.share-pane[data-pane="link"] {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 16px 16px 14px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}
.share-pane[data-pane="link"] .share-tip { color: #6B6559; font-size: 12.5px; line-height: 1.7; }
.share-pane[data-pane="link"] .wx-card { max-width: 100%; }
.share-tabs { margin-bottom: 14px; }
.share-tab { background: rgba(255,255,255,.92); }
.share-tab.on { background: #3E6152; }


/* 分享弹层里的「发链接」面板（2026-10-27）：白底卡片感，和深色遮罩区分开 */
.share-pane[data-pane="link"] {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 16px 16px 14px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}
.share-pane[data-pane="link"] .share-tip { color: #6B6559; font-size: 12.5px; line-height: 1.7; }
.share-pane[data-pane="link"] .wx-card { max-width: 100%; }
.share-tabs { margin-bottom: 14px; }
.share-tab { background: rgba(255,255,255,.92); }
.share-tab.on { background: #3E6152; }
