/* 例会罗盘 · 访客首页（绳子悬卡版 · 古典编辑风 × 极简纸感） */

body {
  background: linear-gradient(180deg, #fbfaf6 0%, var(--bg) 45%, var(--bg-deep) 100%);
}
/* 米白纸张颗粒（若有若无） */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.page {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 18px 34px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
@media (min-width: 560px) { .page { max-width: 720px; } }
@media (min-width: 900px) { .page { max-width: 880px; } }

/* ===== 品牌区 ===== */
.brand { text-align: center; padding-top: 4px; }
.compass { display: flex; justify-content: center; }
.compass svg { width: 66px; height: 66px; }
.brand-eyebrow {
  margin-top: 18px;
  font-size: 10.5px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--ink-2);
}
.brand-name {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  margin-top: 8px;
  color: var(--ink);
}
.brand-sub {
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--accent);
}
.brand .rule { max-width: 220px; margin: 18px auto 0; }

/* ===== 本周主题跑马灯 ===== */
.themes { margin-top: 26px; }
.section-title {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 12px; letter-spacing: 0.3em; text-indent: 0.3em;
  color: var(--accent);
}
.section-title::before, .section-title::after {
  content: ""; width: 34px; height: 1px; background: var(--accent-dim);
}
.marquee {
  margin-top: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 26px, #000 calc(100% - 26px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 26px, #000 calc(100% - 26px), transparent);
}
.marquee::-webkit-scrollbar { display: none; }
.marquee-track { display: inline-flex; align-items: center; white-space: nowrap; padding: 8px 0; }
.marquee-item { font-size: 14px; color: var(--ink-2); }
.marquee-item b { color: var(--ink); font-weight: 600; font-family: var(--serif); letter-spacing: 0.03em; }
.marquee-sep { width: 5px; height: 5px; background: var(--accent); opacity: 0.6; transform: rotate(45deg); margin: 0 18px; flex: none; }

/* ===== 名录：绳子与悬卡 ===== */
.board { margin-top: 32px; }

.rope-row {
  position: relative;
  padding-top: 34px;      /* 给绳子和夹子留出空间 */
  margin-bottom: 36px;
}
.rope-row:last-child { margin-bottom: 6px; }

/* 细绳：自然麻色斜纹，两端带绳结 */
.rope {
  position: absolute;
  top: 12px; left: -8px; right: -8px;
  height: 3px;
  z-index: 1;
  background: repeating-linear-gradient(105deg, #b9a07f 0 2px, #8f7a5b 2px 4px);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(96, 74, 58, 0.25);
  opacity: 0.9;
}
.rope::before, .rope::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px; height: 9px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle at 35% 30%, #cbb491, #8f7a5b 72%);
  box-shadow: 0 1px 2px rgba(96, 74, 58, 0.3);
}
.rope::before { left: -4px; }
.rope::after { right: -4px; }

.rope-cards {
  position: relative;
  z-index: 2;             /* 卡片与夹子压在绳子前面，像从正面夹住 */
  display: grid;
  grid-template-columns: repeat(var(--n, 3), 1fr);
  gap: 14px;
  align-items: start;     /* 允许卡长不一，挂牌自然参差 */
}
@media (min-width: 560px) { .rope-cards { gap: 18px; } }

/* 悬挂卡：整体绕夹子支点摆动 */
.hang-card {
  position: relative;
  transform: rotate(var(--tilt, 0deg));
  transform-origin: 50% -22px;   /* 支点 = 绳子穿过夹子的位置 */
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
@keyframes sway {
  from { transform: rotate(calc(var(--tilt) - var(--amp))); }
  to   { transform: rotate(calc(var(--tilt) + var(--amp))); }
}
@media (prefers-reduced-motion: no-preference) {
  .hang-card:not(.skel):not(.ghost) {
    animation: sway var(--dur) cubic-bezier(0.45, 0, 0.55, 1) var(--delay) infinite alternate;
  }
  .hang-card:hover { animation-play-state: paused; }  /* 停住看清楚 */
}

/* 小木夹：原木色两片木瓣 + 金属弹簧 + 夹缝 */
.clip {
  position: absolute;
  top: -26px; left: 50%;
  width: 13px; height: 28px;
  transform: translateX(-50%);
  z-index: 3;
  border-radius: 4px 4px 3px 3px;
  background:
    repeating-linear-gradient(90deg, rgba(120, 85, 45, 0.13) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #e8cb9f 0%, #cfa97a 55%, #b28c60 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 248, 238, 0.65),
    0 2px 4px rgba(96, 74, 58, 0.28);
}
.clip::before {  /* 弹簧圈 */
  content: "";
  position: absolute;
  top: 3px; left: 50%;
  transform: translateX(-50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ececee, #a2a2a8 60%, #74747c);
  box-shadow: 0 1px 1px rgba(96, 74, 58, 0.35);
}
.clip::after {   /* 木瓣夹缝 */
  content: "";
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%);
  width: 2px; height: 13px;
  border-radius: 1px;
  background: linear-gradient(180deg, rgba(96, 66, 36, 0.75), rgba(96, 66, 36, 0.4));
}

/* 卡面：米白纸卡 */
.card-inner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(175deg, #fffdf8 0%, #faf6ec 100%);
  border: 1px solid rgba(31, 30, 29, 0.16);
  border-radius: 4px;
  padding: 7px 7px 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 10px 24px rgba(96, 74, 58, 0.12),
    0 2px 6px rgba(96, 74, 58, 0.07);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  animation: cardArrive 0.55s cubic-bezier(0.32, 0.72, 0, 1) var(--ad, 0s) backwards;
}
@keyframes cardArrive {
  from { transform: translateY(14px); }   /* 只用 transform：动画不跑卡也可见 */
  to   { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .card-inner { animation: none; }
}

/* 悬停：上浮 + 暖灰柔和投影为主，极淡暖色内光为辅 */
.card-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 75% 60% at 50% 26%,
    rgba(217, 119, 87, 0.14) 0%, rgba(217, 119, 87, 0.04) 52%, transparent 76%);
  opacity: 0;
  transition: opacity 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: none;
}
.hang-card:hover .card-inner::after,
.hang-card:focus-visible .card-inner::after { opacity: 1; }
.hang-card:hover .card-inner {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 18px 34px rgba(96, 74, 58, 0.20),
    0 3px 10px rgba(96, 74, 58, 0.10);
}
.hang-card:hover .card-name { color: var(--accent-deep); }
.hang-card:focus-visible .card-inner {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.hang-card:active .card-inner { transform: translateY(0) scale(0.98); }

/* 海报（模糊底衬 + 完整 contain，任何比例都不裁剪） */
.card-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 3px;
  overflow: hidden;
  background: #f2eee3;
  border: 1px solid rgba(31, 30, 29, 0.12);
}
.poster-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.2);            /* 模糊边缘外扩，避免露底 */
  filter: blur(13px) brightness(0.94) saturate(0.85);
  opacity: 0.85;
}
.poster-main {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: contain;
}
.poster-ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--ink-2); font-size: 11px; letter-spacing: 0.12em;
}
.poster-ph svg { opacity: 0.55; }

.card-name {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  color: var(--ink);
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-time {
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 560px) {
  .card-name { font-size: 14px; }
  .card-time { font-size: 11.5px; }
}

/* ===== “今天”印章（赤陶圆牌，白字，轻微旋转） ===== */
.today-seal {
  position: absolute;
  top: -7px;
  right: -7px;
  z-index: 4;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fffdf8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 253, 248, 0.55),
    0 2px 5px rgba(96, 74, 58, 0.3);
  pointer-events: none;
}
.today-seal.mini {
  position: static;
  display: inline-flex;
  width: 22px; height: 22px;
  font-size: 8.5px;
  margin-right: 6px;
  vertical-align: -2px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 253, 248, 0.55),
    0 1px 3px rgba(96, 74, 58, 0.25);
}
/* 今天的卡片整体轻微抬高 */
.hang-card.today .card-inner {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 14px 28px rgba(96, 74, 58, 0.16),
    0 2px 6px rgba(96, 74, 58, 0.08);
}

/* ===== 骨架屏（同样挂在绳上） ===== */
.hang-card.skel { cursor: default; transform: none; }
.hang-card.skel .card-inner { animation: none; }
.skel-block {
  border-radius: 3px;
  background: linear-gradient(100deg, #ece7db 32%, #f6f2e7 50%, #ece7db 68%);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}
.skel-poster { aspect-ratio: 3 / 4; }
.skel-line { height: 11px; margin: 8px auto 0; width: 82%; }
.skel-line.short { width: 52%; margin-top: 6px; height: 9px; }
@keyframes shimmer { from { background-position: 130% 0; } to { background-position: -90% 0; } }
@media (prefers-reduced-motion: reduce) {
  .skel-block { animation: none; }
}

/* ===== 空状态（绳子在，挂占位虚卡） ===== */
.empty { text-align: center; padding: 0 0 10px; color: var(--ink-2); }
.ghost-row { margin-bottom: 26px; }
.hang-card.ghost { cursor: default; }
.ghost-row .hang-card:nth-child(1) { --tilt: -1.5deg; }
.ghost-row .hang-card:nth-child(2) { --tilt: 0.8deg; }
.ghost-row .hang-card:nth-child(3) { --tilt: -0.7deg; }
.ghost-body {
  aspect-ratio: 3 / 4.4;
  border: 1.5px dashed rgba(31, 30, 29, 0.26);
  border-radius: 4px;
  background: rgba(217, 119, 87, 0.03);
  display: flex; align-items: center; justify-content: center;
  color: rgba(124, 115, 104, 0.75);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  writing-mode: vertical-rl;
}
.empty-mark { opacity: 0.4; margin: 0 auto 14px; display: block; }
.empty-title { font-family: var(--serif); font-size: 19px; color: var(--ink); letter-spacing: 0.14em; }
.empty-sub { margin-top: 8px; font-size: 13px; }

/* ===== 页脚 ===== */
.foot { margin-top: auto; padding-top: 38px; text-align: center; }
.foot .rule { max-width: 200px; margin: 0 auto 12px; }
.foot-text { font-size: 11px; color: var(--ink-2); letter-spacing: 0.18em; opacity: 0.85; }

/* ===== 全屏浮层（lightbox · 纸张风） ===== */
.overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(64, 52, 42, 0.32);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  backdrop-filter: blur(14px) saturate(1.05);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.overlay.open { opacity: 1; }
.overlay-card {
  position: relative;
  width: 100%; max-width: 440px;
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #fffdf8, #f8f4ea);
  border: 1px solid rgba(31, 30, 29, 0.15);
  border-radius: 14px 14px 0 0;
  padding: 18px 18px 30px;
  transform: translateY(26px);
  transition: transform 0.24s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -12px 44px rgba(64, 52, 42, 0.18);
}
.overlay.open .overlay-card { transform: translateY(0); }
@media (min-width: 520px) {
  .overlay { align-items: center; }
  .overlay-card { border-radius: 14px; margin: 20px; }
}
.overlay-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(31, 30, 29, 0.22);
  color: var(--accent); font-size: 19px; line-height: 1;
  background: rgba(255, 253, 248, 0.9);
  transition: transform 0.18s ease;
}
.overlay-close:active { transform: scale(0.9); }
.overlay-poster {
  display: block; border-radius: 8px; overflow: hidden;
  background: #f2eee3;
  border: 1px solid rgba(31, 30, 29, 0.12);
}
.overlay-poster img { width: 100%; max-height: 50vh; object-fit: contain; margin: 0 auto; }
.overlay-poster-ph {
  border-radius: 8px;
  border: 1px dashed rgba(31, 30, 29, 0.28);
  background: #f6f2e9;
  padding: 60px 0;
  text-align: center;
  color: var(--ink-2);
  letter-spacing: 0.15em;
  font-size: 13px;
}
.overlay-body { padding-top: 16px; text-align: center; }
.overlay-body h2 { font-family: var(--serif); font-size: 21px; letter-spacing: 0.06em; color: var(--ink); }
.ov-theme { margin-top: 10px; font-family: var(--serif); font-size: 17px; color: var(--accent); }
.ov-theme::before { content: "「 "; }
.ov-theme::after { content: " 」"; }
.ov-rows { margin-top: 16px; border-top: 1px solid var(--line); }
.ov-row {
  display: flex; gap: 14px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}
.ov-label { flex: none; color: var(--accent); font-size: 12px; letter-spacing: 0.2em; padding-top: 2px; }
.ov-value { color: var(--ink); word-break: break-all; }
.ov-qr { margin-top: 18px; }
.ov-qr img {
  width: 140px; height: 140px; margin: 0 auto;
  background: #fff; padding: 8px;
  border-radius: 4px;
  border: 1px solid rgba(31, 30, 29, 0.2);
}
.ov-qr p { margin-top: 9px; font-size: 12px; color: var(--ink-2); letter-spacing: 0.08em; }

/* ===== 浮层 · 关注俱乐部 ===== */
.ov-social { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.ov-social-title {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--serif); font-size: 15px; letter-spacing: 0.14em; color: var(--ink);
}
.ov-social-title::before, .ov-social-title::after {
  content: ""; width: 22px; height: 1px; background: var(--accent-dim);
}
.ov-gzh { margin-top: 14px; text-align: center; }
.ov-gzh a { display: inline-block; }
.ov-gzh img {
  width: 96px; height: 96px; margin: 0 auto;
  background: #fff; padding: 6px;
  border-radius: 4px;
  border: 1px solid rgba(31, 30, 29, 0.2);
}
.ov-gzh p { margin-top: 7px; font-size: 12px; color: var(--ink-2); letter-spacing: 0.08em; }
.ov-social-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.social-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf8;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.social-item:hover { border-color: var(--accent-dim); }
.social-item:active { transform: scale(0.98); }
.social-pill {
  flex: none;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.social-account-text { color: var(--ink); font-size: 14px; word-break: break-all; }
