[hidden] { display: none !important; }

:root {
  --bg: #05080f;
  --bg-soft: #070c18;
  --surface: #0a1020;
  --surface-2: #0d1628;
  --line: rgba(122, 168, 255, .12);
  --line-strong: rgba(122, 168, 255, .22);
  --ink: #eef3ff;
  --ink-2: #a7b7d4;
  --muted: #6a7b99;
  --muted-2: #3f4d66;
  --accent: #3d8bff;
  --accent-ink: #041020;
  --accent-dim: rgba(61, 139, 255, .12);
  --accent-line: rgba(61, 139, 255, .34);
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(760px 420px at 12% -6%, rgba(61, 139, 255, .07), rgba(8, 8, 10, 0) 62%),
    radial-gradient(620px 380px at 92% 2%, rgba(120, 120, 255, .06), rgba(8, 8, 10, 0) 60%);
}

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; }

/* ---------------------------------------------------------------- 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  height: 58px;
  background: rgba(8, 8, 10, .78);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  flex: 0 0 auto;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%);
}

.brand-name {
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-side { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

.topbar-stat {
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.topbar-sep { width: 1px; height: 14px; background: var(--line-strong); }

.topbar-link {
  font-size: 11.5px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: .18s var(--ease);
}

.topbar-link:hover { border-color: var(--accent-line); color: var(--accent); }

/* ---------------------------------------------------------------- 容器 */
.shell {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 28px 40px;
}

/* ---------------------------------------------------------------- Hero */
.hero { padding-bottom: 44px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .22em;
  color: var(--muted);
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(61, 139, 255, .9);
}

.hero-title {
  margin: 0;
  font-size: clamp(26px, 5.2vw, var(--title-max, 68px));
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.06;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-wrap: balance;
  background: linear-gradient(178deg, #ffffff 8%, #8fa3bf 108%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  max-width: 640px;
  margin: 22px 0 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-2);
  word-break: break-word;
}

.hero-desc a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 1px;
  word-break: break-all;
}

.hero-desc a:hover { border-bottom-color: var(--accent); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 34px 0 0;
  padding: 0;
}

.hero-stats > div {
  padding: 0 30px 0 0;
  margin-right: 30px;
  border-right: 1px solid var(--line);
}

.hero-stats > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }

.hero-stats dt {
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 8px;
}

.hero-stats dd {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.hero-stats dd small { font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 4px; }

/* ---------------------------------------------------------------- 日期轴 */
.datebar {
  position: sticky;
  top: 58px;
  z-index: 30;
  margin: 0 -28px;
  padding: 12px 28px;
  background: linear-gradient(180deg, rgba(8, 8, 10, .96) 60%, rgba(8, 8, 10, .82));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.datebar-track {
  display: flex;
  align-items: stretch;
  gap: 26px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.datebar-track::-webkit-scrollbar { display: none; }

.month-group { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.mg-label {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .1em;
  color: var(--muted-2);
  white-space: nowrap;
  padding: 2px 12px 2px 0;
  border-right: 1px solid var(--line);
}

.mg-days { display: flex; gap: 8px; }

.day-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 56px;
  padding: 8px 10px 7px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink-2);
  font-family: inherit;
  cursor: pointer;
  transition: .16s var(--ease);
}

.day-chip .dc-day {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.day-chip .dc-num {
  font-size: 10px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.day-chip:hover { border-color: var(--line-strong); background: var(--surface-2); color: var(--ink); }

.day-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 24px -12px rgba(61, 139, 255, .8);
}

.day-chip.active .dc-num { color: rgba(10, 15, 0, .62); }

/* ---------------------------------------------------------------- 舞台 */
.stage { padding-top: 34px; min-height: 320px; }

.stage-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.stage-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

.stage-meta { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 空态 */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 300px;
  text-align: center;
}

.empty-glyph {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
}

.empty-title { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.empty-sub { margin: 0; font-size: 12px; color: var(--muted-2); max-width: 320px; line-height: 1.7; }

/* 瀑布流 */
.masonry {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.masonry .col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  cursor: zoom-in;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  animation: cardIn .45s var(--ease) both;
}

.card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -28px rgba(0, 0, 0, .9), 0 0 0 1px rgba(61, 139, 255, .08);
}

.card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  opacity: 0;
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}

.card img.loaded { opacity: 1; }
.card:hover img { transform: scale(1.02); }

.card .stamp {
  position: absolute;
  left: 9px;
  bottom: 9px;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(6, 6, 8, .68);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #cfdcf0;
  font-size: 10px;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  pointer-events: none;
}

.card:hover .stamp { opacity: 1; transform: none; }

.card .hint {
  position: absolute;
  right: 9px;
  top: 9px;
  z-index: 2;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(6, 6, 8, .6);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  opacity: 0;
  transform: scale(.9);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

.card:hover .hint { opacity: 1; transform: none; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* 加载更多 */
.more-wrap { display: flex; justify-content: center; margin-top: 30px; }

.more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 550;
  cursor: pointer;
  transition: .18s var(--ease);
}

.more-btn:hover { border-color: var(--accent-line); color: var(--accent); background: var(--accent-dim); }
.more-btn:disabled { opacity: .5; cursor: default; }
.more-btn svg { transition: transform .2s var(--ease); }
.more-btn:hover svg { transform: translateY(2px); }

/* ---------------------------------------------------------------- 更新日志 */
.log {
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.log-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.log-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.log-total {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

.log-list { list-style: none; margin: 0; padding: 0; }

.log-item { border-top: 1px solid var(--line); }
.log-item:last-child { border-bottom: 1px solid var(--line); }

.log-btn {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 16px 12px 16px 2px;
  border: 0;
  background: none;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .16s var(--ease), padding-left .16s var(--ease);
}

.log-btn:hover { background: rgba(255, 255, 255, .025); padding-left: 12px; }
.log-btn:hover .log-date { color: var(--accent); }

.log-no {
  font-size: 11px;
  font-weight: 650;
  color: var(--muted-2);
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}

.log-main { min-width: 0; }

.log-date {
  display: block;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  transition: color .16s var(--ease);
}

.log-sub { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted); }

.log-thumbs { display: flex; }

.log-thumbs img {
  width: 44px;
  height: 28px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  margin-left: -8px;
  background: var(--surface-2);
  filter: saturate(.9);
}

.log-thumbs img:first-child { margin-left: 0; }

.log-count {
  font-size: 12px;
  font-weight: 650;
  color: var(--accent);
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- 页脚 */
.foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: .04em;
}

.foot-line { width: 26px; height: 1px; background: var(--line-strong); }

/* ---------------------------------------------------------------- 灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 74px 74px 40px;
  background: rgba(4, 4, 6, .95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: lbIn .2s var(--ease) both;
}

@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }

.lb-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .03em;
  font-variant-numeric: tabular-nums;
}

.lb-index { color: var(--accent); font-weight: 650; }
.lb-meta { color: var(--ink-2); }

.lb-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.lb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--ink-2);
  font-size: 11.5px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: .16s var(--ease);
}

.lb-btn:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }

.lb-close { padding: 7px; width: 30px; height: 30px; justify-content: center; }

.lb-figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lbImage {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 40px 100px -40px #000, 0 0 0 1px rgba(255, 255, 255, .07);
  animation: lbImg .28s var(--ease) both;
}

@keyframes lbImg { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  color: var(--ink-2);
  cursor: pointer;
  transition: .16s var(--ease);
}

.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-nav:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }

body.lb-open { overflow: hidden; }

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

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1040px) {
  .card img { max-height: 400px; }
  .shell { padding: 40px 22px 36px; }
  .datebar { margin: 0 -22px; padding: 10px 22px; }
  .topbar { padding: 0 22px; }
}

@media (max-width: 720px) {
  .topbar { height: 52px; padding: 0 16px; }
  .topbar-stat { display: none; }
  .topbar-sep { display: none; }
  .shell { padding: 30px 16px 32px; }
  .hero { padding-bottom: 30px; }
  .eyebrow { margin-bottom: 16px; }
  .hero-title { font-size: clamp(22px, 7.2vw, var(--title-max, 34px)); letter-spacing: -.03em; line-height: 1.08; }
  .hero-desc { font-size: 13px; margin-top: 16px; }
  .hero-stats { margin-top: 26px; }
  .hero-stats > div { padding-right: 18px; margin-right: 18px; }
  .hero-stats dd { font-size: 19px; }
  .datebar { top: 52px; margin: 0 -16px; padding: 10px 16px; }
  .card img { max-height: 420px; }
  .log-btn { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; }
  .log-thumbs { display: none; }
  .lightbox { padding: 66px 12px 24px; }
  .lb-nav { display: none; }
  .lb-bar { padding: 14px 16px; gap: 10px; }
  #lbImage { max-height: calc(100vh - 150px); }
  .stage { padding-top: 24px; }
  .log { margin-top: 44px; padding-top: 26px; }
}

@media (max-width: 420px) {
  .hero-stats { gap: 14px; }
  .hero-stats > div { border-right: 0; padding-right: 0; margin-right: 18px; }
  .hero-stats dt { font-size: 9.5px; margin-bottom: 5px; }
  .hero-stats dd { font-size: 17px; }
}
