/* Author: VIVI x Claude · 创造力集市官网 v2
 * 视觉基因：暖纸底 + 摊位遮阳篷(扇贝边) + 便利贴 + 手写感点缀
 * 色板延续 vibecoding-field-system（salmon/teal/acid/sky/sand）
 */
:root {
  --bg: #f4f1e8;
  --paper: #fffdf8;
  --paper-soft: rgba(255, 253, 248, 0.86);
  --ink: #2d2622;
  --muted: #6f6a63;
  --line: rgba(45, 38, 34, 0.12);
  --line-strong: rgba(45, 38, 34, 0.28);
  --salmon: #ef7a5c;
  --salmon-soft: #fbe3da;
  --teal: #3ca99b;
  --teal-soft: #ddf0ec;
  --acid: #a8b722;
  --acid-soft: #eef2c8;
  --sky: #5d9fe8;
  --sky-soft: #ddeafb;
  --sand: #cf9349;
  --sand-soft: #f7e6cb;
  --shadow: 0 22px 60px rgba(53, 42, 33, 0.1);
  --shadow-soft: 0 10px 30px rgba(53, 42, 33, 0.08);
  --width: min(1180px, calc(100vw - 40px));
  --serif: "Noto Serif SC", serif;
  --sans: "Noto Sans SC", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --fun: "Noto Sans SC", sans-serif; /* 手写体 ZCOOL 被 vivi 否了（0823），全局回落无衬线 */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
  background:
    radial-gradient(circle at 10% 8%, rgba(243, 208, 133, 0.22), transparent 24%),
    radial-gradient(circle at 86% 14%, rgba(189, 231, 226, 0.22), transparent 26%),
    radial-gradient(circle at 74% 78%, rgba(219, 230, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #f9f7f1 0%, var(--bg) 100%);
}
.page-wash, .page-grain { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.page-wash {
  background:
    radial-gradient(circle at 14% 11%, rgba(255, 243, 198, 0.55), transparent 20%),
    radial-gradient(circle at 82% 16%, rgba(221, 245, 239, 0.3), transparent 24%),
    radial-gradient(circle at 72% 82%, rgba(255, 227, 214, 0.22), transparent 22%);
}
.page-grain {
  opacity: 0.07;
  background-image:
    linear-gradient(rgba(87, 64, 50, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87, 64, 50, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at center, black 68%, transparent 100%);
}
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
a { color: inherit; }
code { font-family: var(--mono); background: rgba(45, 38, 34, 0.07); padding: 0.1em 0.4em; border-radius: 6px; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  width: var(--width); margin: 0 auto; padding: 12px 18px;
  background: rgba(255, 253, 248, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 20px 20px;
  box-shadow: var(--shadow-soft);
}
.nav-logo { text-decoration: none; font-size: 15px; white-space: nowrap; }
.nav-logo strong { font-family: var(--serif); font-weight: 900; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav-links a {
  text-decoration: none; font-size: 13.5px; color: var(--muted);
  padding: 6px 10px; border-radius: 999px; transition: 0.18s;
}
.nav-links a:hover { color: var(--ink); background: rgba(45, 38, 34, 0.06); }
.nav-links .nav-cta {
  color: #fff; background: var(--salmon); font-weight: 700;
  padding: 7px 14px; margin-left: 4px;
}
.nav-links .nav-cta:hover { background: #e2664a; color: #fff; }
.nav-toggle { display: none; }

/* ---------- 布局 ---------- */
.page-shell { position: relative; z-index: 1; width: var(--width); margin: 0 auto; padding: 26px 0 60px; }
.section { margin-top: 72px; }
.section-heading { max-width: 640px; margin-bottom: 28px; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--salmon); margin-bottom: 8px;
}
.eyebrow--light { color: #ffd9cd; }
.section-heading h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.25; }
.section-note { color: var(--muted); font-size: 14.5px; margin-top: 10px; }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.85fr);
  gap: 34px; align-items: center;
  margin-top: 22px; padding: 48px 52px 44px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 244, 186, 0.4), transparent 26%),
    radial-gradient(circle at 78% 22%, rgba(216, 240, 238, 0.42), transparent 30%),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
}
.hero-prefix { font-family: var(--serif); font-weight: 700; font-size: clamp(20px, 2.6vw, 28px); color: var(--muted); }
.hero h1 {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(46px, 7vw, 84px); line-height: 1.08; letter-spacing: 0.02em;
}
.hero-chip {
  display: inline-block; margin-top: 14px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.18em;
  padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
}
.lede { margin-top: 18px; font-size: clamp(15px, 1.7vw, 17.5px); max-width: 30em; }
.hero-sub { margin-top: 12px; color: var(--muted); font-size: 14.5px; }
.hero-sub strong { color: var(--ink); font-family: var(--mono); font-weight: 600; }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 11px 22px; border-radius: 999px; transition: 0.18s;
}
.btn--solid { background: var(--ink); color: #fffdf8; }
.btn--solid:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn--line { border: 1.5px solid var(--line-strong); }
.btn--line:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--big { background: #fffdf8; color: var(--ink); font-size: 17px; padding: 15px 30px; }
.btn--big:hover { transform: translateY(-2px) rotate(-1deg); }

.hero-art { position: relative; transform: rotate(1.6deg); }
.hero-art img {
  display: block; width: 100%; border-radius: 22px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  background: var(--paper-soft);
}
.hero-art-note {
  position: absolute; right: 14px; bottom: -12px;
  font-family: var(--fun); font-size: 15px;
  background: var(--acid-soft); border: 1px solid var(--line);
  padding: 5px 14px; border-radius: 999px; transform: rotate(-2deg);
  box-shadow: var(--shadow-soft);
}

/* ---------- 三种启发入口 ---------- */
.path-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.path-pill {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--paper-soft); border: 1px dashed var(--line-strong);
  border-radius: 18px; padding: 16px 20px;
}
.path-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--muted); }
.path-pill strong { font-family: var(--serif); font-size: clamp(16px, 1.9vw, 20px); font-weight: 900; }

/* ---------- 城市走马灯 ---------- */
.city-strip { overflow: hidden; margin-top: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.city-track {
  display: inline-flex; align-items: center; gap: 22px;
  padding: 10px 0; white-space: nowrap;
  animation: cities 26s linear infinite;
  font-family: var(--serif); font-weight: 700; font-size: 15px; color: var(--muted);
}
.city-track i { font-style: normal; color: var(--salmon); font-size: 12px; }
@keyframes cities { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 数据 ---------- */
.numbers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.num-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
  padding: 26px 26px 22px; box-shadow: var(--shadow-soft);
}
.num-value { font-family: var(--mono); font-weight: 600; font-size: clamp(34px, 4.6vw, 52px); line-height: 1.1; }
.num-label { font-family: var(--serif); font-weight: 900; font-size: 17px; margin-top: 6px; }
.num-note { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ---------- 摊位卡（系列） ---------- */
.series-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.series-card {
  position: relative;
  background: var(--paper); border: 1px solid var(--line); border-radius: 24px;
  padding: 34px 28px 24px; box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.series-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.series-card:first-child { grid-column: 1 / -1; }
/* 遮阳篷：扇贝边 */
.awning { position: absolute; top: 0; left: 0; right: 0; height: 14px; }
.tone-salmon .awning { background: radial-gradient(circle at 10px -4px, var(--salmon) 12px, transparent 13px) 0 0 / 28px 18px repeat-x; }
.tone-teal .awning { background: radial-gradient(circle at 10px -4px, var(--teal) 12px, transparent 13px) 0 0 / 28px 18px repeat-x; }
.tone-sky .awning { background: radial-gradient(circle at 10px -4px, var(--sky) 12px, transparent 13px) 0 0 / 28px 18px repeat-x; }
.tone-sand .awning { background: radial-gradient(circle at 10px -4px, var(--sand) 12px, transparent 13px) 0 0 / 28px 18px repeat-x; }
.tone-acid .awning { background: radial-gradient(circle at 10px -4px, var(--acid) 12px, transparent 13px) 0 0 / 28px 18px repeat-x; }

.series-head { display: flex; align-items: flex-start; gap: 12px; }
.series-icon { font-size: 30px; line-height: 1.2; }
.series-card h3 { font-family: var(--serif); font-weight: 900; font-size: 21px; }
.series-feeling { font-family: var(--fun); color: var(--muted); font-size: 14px; margin-top: 2px; }
.series-claim { margin-top: 12px; font-size: 14.5px; color: var(--ink); max-width: 46em; }
.series-subs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-top: 16px; }
.series-sub {
  border: 1px dashed var(--line-strong); border-radius: 16px; padding: 12px 14px;
  background: var(--paper-soft); font-size: 13.5px;
}
.series-sub--upcoming { border-style: solid; border-color: var(--salmon); background: var(--salmon-soft); }
.series-sub-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.series-sub strong { font-size: 14.5px; }
.series-sub p { margin-top: 4px; color: var(--ink); }
.series-sub em { display: block; margin-top: 6px; font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.series-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.series-stats span {
  font-family: var(--mono); font-size: 12px;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--muted);
}
.series-link { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--teal); }
.series-link:hover { text-decoration: underline; }

/* ---------- chips ---------- */
.chip {
  display: inline-block; font-family: var(--mono); font-size: 11.5px;
  padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); background: var(--paper);
}
.chip--new { background: var(--salmon); border-color: var(--salmon); color: #fff; font-weight: 600; }
.chip--series { border-color: var(--line-strong); color: var(--ink); }

/* ---------- 时间轴 ---------- */
.timeline-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter-chip {
  font-family: var(--sans); font-size: 13.5px; cursor: pointer;
  background: var(--paper); color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 16px;
  transition: 0.15s;
}
.filter-chip:hover { color: var(--ink); }
.filter-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fffdf8; font-weight: 700; }

.timeline-list { position: relative; display: flex; flex-direction: column; gap: 14px; }
.tl-item { display: grid; grid-template-columns: 26px 1fr; gap: 14px; }
.tl-rail { position: relative; }
.tl-rail::before {
  content: ""; position: absolute; left: 12px; top: -8px; bottom: -16px;
  border-left: 2px dashed var(--line-strong);
}
.tl-item:last-child .tl-rail::before { bottom: 30%; }
.tl-dot {
  position: absolute; left: 5px; top: 26px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--paper); border: 3px solid var(--muted); z-index: 1;
}
.tone-salmon .tl-dot { border-color: var(--salmon); }
.tone-teal .tl-dot { border-color: var(--teal); }
.tone-sky .tl-dot { border-color: var(--sky); }
.tone-sand .tl-dot { border-color: var(--sand); }
.tone-acid .tl-dot { border-color: var(--acid); }

.tl-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  padding: 18px 22px; box-shadow: var(--shadow-soft);
  transition: transform 0.18s;
}
.tl-item--big .tl-card { padding: 22px 26px; }
.tl-card:hover { transform: translateX(4px); }
.tl-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-date { font-family: var(--mono); font-weight: 600; font-size: 13.5px; }
.tl-title { font-family: var(--serif); font-weight: 900; font-size: 18.5px; margin-top: 8px; }
.tl-item--big .tl-title { font-size: 21px; }
.tl-desc { margin-top: 6px; font-size: 14px; color: var(--ink); max-width: 52em; }
.tl-quote {
  margin-top: 12px; padding: 10px 16px; font-size: 13.5px; color: var(--muted);
  border-left: 3px solid var(--sand); background: rgba(247, 230, 203, 0.28);
  border-radius: 0 12px 12px 0; max-width: 52em;
}
.tone-salmon .tl-quote { border-left-color: var(--salmon); background: rgba(251, 227, 218, 0.32); }
.tone-sky .tl-quote { border-left-color: var(--sky); background: rgba(221, 234, 251, 0.32); }
.tl-bottom { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.tl-stats { display: flex; flex-wrap: wrap; gap: 7px; }
.tl-stats span {
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px;
}
.tl-link { margin-left: auto; font-size: 13.5px; font-weight: 700; text-decoration: none; color: var(--teal); white-space: nowrap; }
.tl-link:hover { text-decoration: underline; }

/* ---------- 便利贴（大家怎么说） ---------- */
.voices-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
.voice-col { display: flex; flex-direction: column; gap: 14px; }
.voice-theme { font-family: var(--fun); font-size: 18px; padding-left: 4px; }
.tone-text-teal { color: var(--teal); }
.tone-text-salmon { color: var(--salmon); }
.tone-text-sky { color: var(--sky); }
.tone-text-sand { color: var(--sand); }
.voice-note {
  position: relative; transform: rotate(var(--tilt, 0deg));
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px;
  padding: 18px 16px 14px; box-shadow: var(--shadow-soft);
  transition: transform 0.18s;
}
.voice-note:hover { transform: rotate(0deg) translateY(-3px); }
.voice-note::before {
  content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  width: 44px; height: 16px; background: rgba(247, 230, 203, 0.85);
  border: 1px solid rgba(45, 38, 34, 0.08); border-radius: 2px;
}
.voice-note.tone-teal { background: linear-gradient(180deg, rgba(221, 240, 236, 0.5), var(--paper) 42%); }
.voice-note.tone-salmon { background: linear-gradient(180deg, rgba(251, 227, 218, 0.5), var(--paper) 42%); }
.voice-note.tone-sky { background: linear-gradient(180deg, rgba(221, 234, 251, 0.5), var(--paper) 42%); }
.voice-note.tone-sand { background: linear-gradient(180deg, rgba(247, 230, 203, 0.5), var(--paper) 42%); }
.voice-note blockquote { font-size: 13.8px; line-height: 1.75; }
.voice-note figcaption { margin-top: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

/* ---------- 作品 ---------- */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work-card {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
  padding: 26px 24px; box-shadow: var(--shadow-soft);
  transition: transform 0.2s, box-shadow 0.2s;
}
.work-card:hover { transform: translateY(-4px) rotate(-0.6deg); box-shadow: var(--shadow); }
.work-emoji { font-size: 30px; }
.work-card h3 { font-family: var(--serif); font-weight: 900; font-size: 18px; }
.work-card p { color: var(--muted); font-size: 13.8px; flex: 1; }
.work-cta { font-weight: 700; font-size: 14px; color: var(--teal); }

/* ---------- 合作伙伴 ---------- */
.sponsor-wall { display: flex; flex-wrap: wrap; gap: 10px; }
.sponsor-chip {
  font-family: var(--serif); font-weight: 700; font-size: 15px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 18px; box-shadow: var(--shadow-soft);
}
.partner-channels { margin-top: 16px; color: var(--muted); font-size: 13.5px; }
.partner-cta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 22px; padding: 20px 26px;
  border: 1px dashed var(--line-strong); border-radius: 20px; background: var(--paper-soft);
}
.partner-cta p { font-family: var(--serif); font-weight: 900; font-size: 18px; }

/* ---------- 关于 ---------- */
.about-card {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.8fr); gap: 34px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 30px;
  padding: 42px 46px; box-shadow: var(--shadow);
}
.about-main h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.about-main p { margin-top: 10px; font-size: 15px; max-width: 40em; }
.north-stars { margin-top: 20px; }
.north-stars-label { font-family: var(--fun); color: var(--muted); font-size: 14.5px; }
.north-stars ul { list-style: none; padding: 0; margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.north-stars li { font-size: 14.5px; }
.north-stars li span {
  display: inline-block; font-family: var(--mono); font-size: 11.5px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 1px 10px; margin-right: 10px; color: var(--muted);
}
.about-contact {
  align-self: start;
  border: 1px dashed var(--line-strong); border-radius: 20px;
  padding: 24px; background: var(--paper-soft);
}
.about-contact h3 { font-family: var(--serif); font-weight: 900; font-size: 18px; }
.about-contact ul { list-style: none; padding: 0; margin-top: 12px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.about-contact li span {
  display: inline-block; font-family: var(--mono); font-size: 11.5px;
  color: var(--muted); margin-right: 8px;
}
.about-contact-note { margin-top: 14px; color: var(--muted); font-size: 13px; }

/* ---------- 下一场 ---------- */
.next-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
  background: linear-gradient(120deg, #423029, #2d2622 62%);
  color: #fdf8ef;
  border-radius: 30px; padding: 44px 48px; box-shadow: var(--shadow);
}
.next-banner h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(26px, 3.6vw, 40px); }
.next-line { margin-top: 10px; font-size: 16.5px; color: #f3d8b4; font-family: var(--fun); }
.next-meta { margin-top: 8px; font-family: var(--mono); font-size: 13px; color: rgba(253, 248, 239, 0.72); }

/* ---------- 页脚 ---------- */
.footer { position: relative; z-index: 1; width: var(--width); margin: 40px auto 0; padding: 30px 6px 46px; text-align: center; }
.footer-line { font-family: var(--serif); font-weight: 900; font-size: 18px; }
.footer-meta { margin-top: 8px; color: var(--muted); font-size: 12.5px; }
.footer-built { margin-top: 4px; color: var(--muted); font-size: 12.5px; font-family: var(--fun); }

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding: 34px 26px; }
  .hero-art { max-width: 520px; }
  .series-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .voices-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: 1fr; }
  .about-card { grid-template-columns: 1fr; padding: 30px 26px; }
}
@media (max-width: 640px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle {
    display: block; margin-left: auto; background: none; border: 1px solid var(--line-strong);
    border-radius: 10px; font-size: 16px; padding: 4px 10px; cursor: pointer; color: var(--ink);
  }
  .nav-links { display: none; width: 100%; }
  .nav-links.is-open { display: flex; flex-direction: column; align-items: stretch; padding-top: 8px; }
  .nav-links.is-open a { padding: 9px 12px; }
  .path-strip { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: 1fr; }
  .voices-grid { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 1fr; }
  .tl-rail { display: none; }
  .next-banner { padding: 32px 26px; }
}

/* ---------- 视图切换（历届：日历/地图/列表） ---------- */
.view-tabs { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.view-tab {
  font-family: var(--sans); font-size: 14.5px; font-weight: 700; cursor: pointer;
  background: var(--paper); color: var(--muted);
  border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 9px 20px;
  transition: 0.15s;
}
.view-tab:hover { color: var(--ink); transform: translateY(-1px); }
.view-tab.is-active { background: var(--ink); border-color: var(--ink); color: #fffdf8; }

/* ---------- 日历 ---------- */
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 16px; font-size: 12.5px; color: var(--muted); }
.cal-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend-item i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.cal-legend-soon { border: 2px dashed var(--salmon); background: transparent !important; }
.cal-legend-tip { font-family: var(--fun); color: var(--salmon); }
.bg-salmon { background: var(--salmon); }
.bg-teal { background: var(--teal); }
.bg-sky { background: var(--sky); }
.bg-sand { background: var(--sand); }
.bg-acid { background: var(--acid); }

.cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }
.cal-month {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 14px 14px 12px; box-shadow: var(--shadow-soft);
}
.cal-month--empty { opacity: 0.55; }
.cal-month-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.cal-month-head strong { font-family: var(--serif); font-weight: 900; font-size: 15.5px; }
.cal-month-head em { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 2px; }
.cal-week span { text-align: center; font-size: 10px; color: var(--muted); opacity: 0.75; }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
  border-radius: 50%; border: none; background: transparent; padding: 0;
}
.cal-day--pad { visibility: hidden; }
.cal-day--ev, .cal-day--soon {
  cursor: pointer; color: #fff; font-weight: 600;
  transition: transform 0.12s; position: relative;
}
.cal-day--ev:hover, .cal-day--soon:hover { transform: scale(1.28); z-index: 1; }
.cal-day--soon { background: transparent !important; border: 2px dashed var(--salmon); color: var(--salmon); }
.cal-day.is-picked { outline: 2.5px solid var(--ink); outline-offset: 1px; }

/* 事件详情浮层（日历/地图共用） */
.ev-detail { margin-top: 18px; }
.ev-detail-head {
  font-family: var(--fun); font-size: 16px; color: var(--muted); margin-bottom: 10px;
}
.ev-detail .tl-item { grid-template-columns: 1fr; }
.ev-detail .tl-item + .tl-item { margin-top: 10px; }

/* ---------- 地图 ---------- */
.map-wrap {
  background: var(--paper); border: 1px solid var(--line); border-radius: 24px;
  padding: 18px 18px 8px; box-shadow: var(--shadow-soft);
}
.world-map { width: 100%; height: auto; display: block; }
.map-land path {
  fill: #efe8d3; stroke: rgba(45, 38, 34, 0.22); stroke-width: 2;
  stroke-linejoin: round;
}
.map-route {
  fill: none; stroke: var(--salmon); stroke-width: 1.6;
  stroke-dasharray: 5 6; stroke-linecap: round; opacity: 0.55;
}
.map-pin { cursor: pointer; }
.map-pin-ring { fill: none; stroke: var(--salmon); stroke-width: 1.5; stroke-dasharray: 3 4; opacity: 0.7; }
.map-pin-dot { fill: var(--salmon); stroke: #fffdf8; stroke-width: 2.5; }
.map-pin--online .map-cloud { fill: var(--sky); stroke: #fffdf8; stroke-width: 2.5; }
.map-pin-count {
  fill: #fffdf8; font-family: var(--mono); font-weight: 600; font-size: 15px;
  text-anchor: middle; dominant-baseline: middle; pointer-events: none;
}
.map-pin-name {
  fill: var(--ink); font-family: var(--serif); font-weight: 900; font-size: 15px;
  text-anchor: middle; pointer-events: none;
  paint-order: stroke; stroke: rgba(255, 253, 248, 0.9); stroke-width: 4px;
}
.map-pin:hover .map-pin-dot, .map-pin.is-picked .map-pin-dot { fill: #e2664a; }
.map-pin:hover .map-pin-ring, .map-pin.is-picked .map-pin-ring { opacity: 1; }
.map-pin.is-picked .map-pin-dot { stroke: var(--ink); }
.map-pin:focus { outline: none; }
.map-note { padding: 10px 8px 12px; font-size: 12.5px; color: var(--muted); font-family: var(--fun); }

/* 列表收起 */
.tl-more-wrap { display: flex; justify-content: center; margin-top: 20px; }

@media (max-width: 640px) {
  .cal-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cal-month { padding: 10px; }
  .view-tab { font-size: 13px; padding: 8px 14px; }
}

/* ---------- 修复：日历日期底色被 .cal-day 的 transparent 覆盖（两类权重压过一类） ---------- */
.cal-day--ev.bg-salmon { background: var(--salmon); }
.cal-day--ev.bg-teal { background: var(--teal); }
.cal-day--ev.bg-sky { background: var(--sky); }
.cal-day--ev.bg-sand { background: var(--sand); }
.cal-day--ev.bg-acid { background: var(--acid); }
.cal-legend-tip { color: var(--muted); font-family: var(--sans); }

/* ---------- 列表视图 v2：每系列一板块，行点开明细（lamy 式） ---------- */
.sg-block {
  position: relative; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: 24px;
  padding: 30px 30px 18px; box-shadow: var(--shadow-soft); margin-bottom: 18px;
  border-left: 5px solid var(--muted);
}
.sg-block.tone-salmon { border-left-color: var(--salmon); }
.sg-block.tone-teal { border-left-color: var(--teal); }
.sg-block.tone-sky { border-left-color: var(--sky); }
.sg-block.tone-sand { border-left-color: var(--sand); }
.sg-block.tone-acid { border-left-color: var(--acid); }
.sg-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sg-index { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--salmon); }
.sg-block.tone-teal .sg-index { color: var(--teal); }
.sg-block.tone-sky .sg-index { color: var(--sky); }
.sg-block.tone-sand .sg-index { color: var(--sand); }
.sg-block.tone-acid .sg-index { color: var(--acid); }
.sg-head h3 { font-family: var(--serif); font-weight: 900; font-size: clamp(19px, 2.4vw, 24px); }
.sg-count { font-family: var(--mono); font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.sg-line { margin-top: 6px; color: var(--muted); font-size: 14px; }
.sg-rows { margin-top: 14px; }
.sg-row {
  display: grid; grid-template-columns: 74px 1fr auto auto; gap: 14px; align-items: center;
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 12px 8px; border-top: 1px dashed var(--line-strong);
  font-family: var(--sans); font-size: 14.5px; color: var(--ink);
  transition: background 0.15s;
}
.sg-row:hover { background: rgba(45, 38, 34, 0.035); }
.sg-row-date { font-family: var(--mono); font-weight: 600; font-size: 13px; color: var(--muted); }
.sg-row-title { font-weight: 700; }
.sg-row-title em { font-style: normal; font-weight: 400; color: var(--muted); }
.sg-row-score { font-family: var(--mono); font-weight: 600; font-size: 14.5px; color: var(--salmon); }
.sg-row-toggle { color: var(--muted); font-size: 12px; transition: transform 0.18s; }
.sg-row.is-open .sg-row-toggle { transform: rotate(180deg); }
.sg-detail { padding: 4px 8px 14px; }
.sg-detail .tl-item { grid-template-columns: 1fr; }
@media (max-width: 640px) {
  .sg-row { grid-template-columns: 60px 1fr auto; }
  .sg-row-toggle { display: none; }
  .sg-block { padding: 20px 16px 10px; }
}
