/* 薅羊毛 · 甜笺 Sweet Journal 设计系统
   模块印色：朱砂红 #C25336（红包 / 福利）+ 金币金 #D9A441（点缀）
   与旅行页同构（暖纸底 / 衬线标题 / 圆角卡），仅以印色区分模块 */

:root {
  --bg: #F7F2EC;
  --card: #FFFFFF;
  --ink: #2E2A26;
  --ink-soft: #6B6259;
  --ink-faint: #9C948A;
  --line: #EADFD2;
  --red: #C25336;
  --red-deep: #A3402A;
  --red-soft: #FBEAE4;
  --gold: #D9A441;
  --gold-soft: #FBF1DC;
  --radius-lg: 18px;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(120, 60, 40, 0.10);
  --shadow-soft: 0 4px 14px rgba(120, 60, 40, 0.07);
  --display: Georgia, "Times New Roman", "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
a { color: inherit; }
.hidden { display: none !important; }

/* ── hero ── */
.wool-hero {
  position: relative;
  background: linear-gradient(135deg, #8E3320 0%, #C25336 52%, #D9714C 100%);
  color: #fff;
  padding: clamp(26px, 5vw, 44px) clamp(20px, 5vw, 40px) 84px;
  overflow: hidden;
}
.wool-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.6px);
  background-size: 22px 22px;
  pointer-events: none;
}
.hero-inner { max-width: 720px; margin: 0 auto; position: relative; }
.wool-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(32px, 6.4vw, 44px);
  margin: 22px 0 8px;
  letter-spacing: .04em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .18);
}
.wool-title::after {
  content: "";
  display: block; width: 46px; height: 4px; border-radius: 4px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--gold), #F3CE8B);
}
.wool-tagline { margin: 14px 0 0; color: rgba(255, 255, 255, .88); font-size: 14.5px; letter-spacing: .04em; }
.hero-deco { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 64px; display: block; }

/* ── 版心 ── */
.wool-shell { max-width: 720px; margin: -56px auto 0; padding: 0 clamp(18px, 4.5vw, 36px) 60px; position: relative; }

/* ── 线报主卡（票根质感） ── */
.wool-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4.5vw, 30px);
  /* 不加 fill-mode：动画只是「淡入」，即使因隐藏未播放也保持可见 */
  animation: rise .42s ease;
}
.wool-card.is-loading { opacity: .45; pointer-events: none; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.wool-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--red-soft); color: var(--red-deep);
  border-radius: 999px; padding: 3px 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
}
.wool-tag::before { content: "¥"; font-size: 11px; opacity: .75; }
.wool-head {
  font-family: var(--display);
  font-size: clamp(21px, 4.4vw, 26px);
  font-weight: 600; line-height: 1.45;
  margin: 12px 0 4px;
}
/* 上部分隔：票根虚线 */
.wool-body { margin-top: 14px; }
.sec { padding: 13px 0; border-top: 1px dashed var(--line); }
.sec:first-child { border-top: 0; padding-top: 4px; }
.sec__label {
  display: inline-block;
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em;
  color: var(--red);
  margin-bottom: 5px;
}
.sec__label::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
  margin-right: 7px; vertical-align: 2px;
}
.sec__text { margin: 0; color: var(--ink-soft); white-space: pre-wrap; word-break: break-word; }
.sec__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.link-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; text-decoration: none;
  border: 1.5px solid var(--line); color: var(--ink-soft); background: #fff;
  transition: all .18s;
}
.link-btn:hover { border-color: var(--red); color: var(--red); }
.link-btn--main {
  border: 0; color: #fff;
  background: linear-gradient(135deg, var(--red-deep), var(--red));
  box-shadow: 0 6px 16px rgba(163, 64, 42, .28);
  letter-spacing: .06em;
}
.link-btn--main:hover { filter: brightness(1.07); transform: translateY(-1px); color: #fff; }

/* 截图 */
.shots { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin-top: 16px; }
.shots .shot:only-child { grid-column: 1 / -1; }
.shot {
  padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden;
  background: var(--gold-soft);
  line-height: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
.shot img { width: 100%; display: block; aspect-ratio: 9 / 14; object-fit: cover; object-position: top; }
.shot:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.shot.is-broken { display: none; }

/* 截断提示 */
.wool-note {
  display: flex; align-items: flex-start; gap: 6px;
  margin: 14px 0 0;
  padding: 9px 12px;
  border-radius: var(--radius);
  background: var(--gold-soft);
  color: #8A6420;
  font-size: 12px; line-height: 1.6;
}
.wool-note svg { flex: none; margin-top: 2px; }

/* ── 操作区 ── */
.wool-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.btn {
  padding: 13px 16px;
  border-radius: 999px;
  cursor: pointer; font-size: 14px; font-weight: 600; letter-spacing: .06em;
  transition: all .2s; border: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.btn--primary {
  flex: 1; min-width: 150px;
  background: linear-gradient(135deg, var(--red-deep), var(--red));
  color: #fff;
  box-shadow: 0 8px 20px rgba(163, 64, 42, .30);
}
.btn--primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn--primary:disabled { opacity: .6; cursor: wait; transform: none; }
.btn--ghost {
  flex: 0 1 auto; min-width: 96px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft);
}
.btn--ghost:hover { border-color: var(--red); color: var(--red); }
.btn--ghost.is-on { border-color: var(--gold); background: var(--gold-soft); color: #A5722A; }
.wool-hint { min-height: 20px; margin: 12px 2px 0; font-size: 13px; color: #C25336; }

/* ── 骨架屏 ── */
.wool-skeleton {
  background: var(--card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 26px;
}
.sk {
  border-radius: 8px;
  background: linear-gradient(100deg, #EFE7DD 35%, #F8F3EC 50%, #EFE7DD 65%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
}
.sk--tag { width: 84px; height: 22px; border-radius: 999px; }
.sk--title { height: 26px; margin-top: 16px; width: 82%; }
.sk--line { height: 14px; margin-top: 18px; }
.sk--line.short { width: 64%; margin-top: 10px; }
.sk--block { height: 150px; margin-top: 20px; border-radius: var(--radius); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── 收藏夹 ── */
.fav {
  margin-top: 20px;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 4px 16px;
}
.fav-toggle {
  width: 100%;
  display: flex; align-items: center; gap: 8px;
  padding: 13px 2px;
  border: 0; background: transparent;
  color: var(--ink-soft); font-size: 13.5px; font-weight: 600; letter-spacing: .04em;
  cursor: pointer;
}
.fav-toggle:hover { color: var(--red); }
.fav-toggle__icon { color: var(--gold); flex: none; }
.fav-toggle__count {
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px;
  background: var(--gold-soft); color: #A5722A;
  font-size: 11.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.fav-toggle__caret { margin-left: auto; color: var(--ink-faint); transition: transform .25s; }
.fav.is-open .fav-toggle__caret { transform: rotate(180deg); }
.fav-panel { overflow: hidden; max-height: 0; opacity: 0; transition: max-height .32s ease, opacity .24s ease; }
.fav.is-open .fav-panel { max-height: 340px; opacity: 1; }
.fav-list {
  list-style: none; margin: 0 0 4px; padding: 0;
  max-height: 282px; overflow-y: auto;
  display: grid; gap: 8px;
}
.fav-item {
  display: flex; align-items: center; gap: 4px;
  background: #FCF8F4; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .18s, background .18s;
}
.fav-item:hover { border-color: var(--red); background: #fff; }
.fav-item__open {
  flex: 1; min-width: 0;
  display: flex; align-items: baseline; gap: 10px;
  padding: 10px 12px;
  border: 0; background: transparent; text-align: left; cursor: pointer;
  font: inherit; color: inherit;
}
.fav-item__title {
  font-family: var(--display); font-size: 14.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0;
}
.fav-item__time { font-size: 11.5px; color: var(--ink-faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fav-item__del {
  flex: none; width: 28px; height: 28px; margin-right: 5px;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-faint);
  font-size: 16px; line-height: 1; cursor: pointer;
  transition: background .18s, color .18s;
}
.fav-item__del:hover { background: var(--red-soft); color: var(--red); }
.fav-empty { padding: 14px 4px; font-size: 13px; color: var(--ink-faint); text-align: center; }
.fav-clear {
  width: 100%; margin: 4px 0 12px;
  padding: 9px 0;
  border: 1px dashed var(--line); border-radius: var(--radius);
  background: transparent; color: var(--ink-faint);
  font-size: 12.5px; cursor: pointer;
  transition: color .18s, border-color .18s;
}
.fav-clear:hover { color: var(--red); border-color: var(--red); }
.fav.is-empty .fav-clear { display: none; }

/* ── 截图预览 ── */
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(24, 18, 14, .92);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  cursor: zoom-out;
  animation: fade .2s ease both;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius); }

/* ── toast ── */
.toast {
  position: fixed;
  left: 50%; bottom: calc(30px + env(safe-area-inset-bottom));
  transform: translate(-50%, 16px);
  background: rgba(46, 42, 38, .93);
  color: #fff; font-size: 13.5px;
  padding: 10px 20px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 90; max-width: 86vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.wool-foot {
  margin-top: 30px; padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-faint); text-align: center;
}

/* ── 移动端 ── */
@media (max-width: 640px) {
  .wool-hero { padding-bottom: 76px; }
  .wool-shell { margin-top: -48px; }
  .wool-actions .btn--primary { flex: 1 1 100%; order: -1; }
  .wool-actions .btn--ghost { flex: 1; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .toast { bottom: calc(22px + env(safe-area-inset-bottom)); }
}
