:root {
    --bg: #0b0b09;
    --bg-2: #10100d;
    --panel: #161612;
    --line: rgba(244, 241, 232, 0.09);
    --line-strong: rgba(244, 241, 232, 0.18);
    --ink: #f4f1e8;
    --muted: #8f8c80;
    --dim: #5c5a52;
    --volt: #d9ff3d;
    --volt-dim: rgba(217, 255, 61, 0.14);
    --display: 'Anton', 'Arial Narrow', 'PingFang SC', 'Noto Sans SC', sans-serif;
    --ui: 'Space Grotesk', 'PingFang SC', 'Noto Sans SC', system-ui, sans-serif;
    --cn: 'PingFang SC', 'Noto Sans SC', 'Heiti SC', sans-serif;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--ui);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  ::selection { background: var(--volt); color: #0b0b09; }
  ::-webkit-scrollbar { width: 10px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: #26261f; border-radius: 5px; }
  ::-webkit-scrollbar-thumb:hover { background: #38382e; }
  a { color: inherit; text-decoration: none; }
  img { display: block; }

  /* 胶片颗粒 */
  body::after {
    content: '';
    position: fixed; inset: 0; z-index: 200;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  }

  /* ============ 顶栏 ============ */
  .topbar {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; gap: 28px;
    padding: 14px 32px;
    background: rgba(11, 11, 9, 0.86);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .brand { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
  .brand .mark {
    font-family: var(--display);
    font-size: 26px; letter-spacing: 0.06em; line-height: 1;
  }
  .brand .mark em { font-style: normal; color: var(--volt); }
  .brand .sub { font-size: 12px; color: var(--muted); letter-spacing: 0.12em; }
  .counter {
    margin-left: auto;
    font-size: 12px; color: var(--dim); letter-spacing: 0.08em; white-space: nowrap;
  }
  .counter b { color: var(--volt); font-weight: 600; }

  /* ============ 主视觉 ============ */
  .hero {
    position: relative;
    padding: 96px 32px 48px;
    max-width: 1440px; margin: 0 auto;
    overflow: hidden;
  }
  .hero .ghost {
    position: absolute; right: -2vw; top: 24px; z-index: 0;
    font-family: var(--display); font-size: 24vw; line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(244, 241, 232, 0.14);
    pointer-events: none; user-select: none;
  }
  .hero .kicker {
    position: relative; z-index: 1;
    font-size: 12px; letter-spacing: 0.34em; color: var(--volt);
    font-weight: 600; text-transform: uppercase;
    margin-bottom: 26px;
  }
  .hero h1 {
    position: relative; z-index: 1;
    font-family: var(--cn);
    font-size: clamp(44px, 7.2vw, 108px);
    font-weight: 900; line-height: 1.06; letter-spacing: -0.02em;
  }
  .hero h1 .row { display: block; }
  .hero h1 .accent { color: var(--volt); }
  .hero .lede {
    position: relative; z-index: 1;
    margin-top: 28px; max-width: 560px;
    color: var(--muted); font-size: 16px; line-height: 1.85; font-weight: 400;
  }
  .hero .heroline {
    position: relative; z-index: 1;
    margin-top: 20px;
    font-size: 12px; letter-spacing: 0.22em; color: var(--dim);
  }
  .hero .heroline b { color: var(--ink); font-weight: 600; }

  /* ============ 筛选栏 ============ */
  .filters {
    position: sticky; top: 57px; z-index: 40;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 12px 32px;
    background: rgba(11, 11, 9, 0.86);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .filters .label { font-size: 11px; letter-spacing: 0.26em; color: var(--dim); margin-right: 8px; }
  .srcpick { position: relative; margin-left: auto; }
  .srcpick-btn {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--ui); font-size: 13px; color: var(--ink);
    background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 8px;
    padding: 8px 12px; cursor: pointer; outline: none;
    transition: border-color .2s;
  }
  .srcpick-btn .chev { color: var(--muted); transition: transform .2s; }
  .srcpick.open .srcpick-btn { border-color: var(--volt); }
  .srcpick.open .chev { transform: rotate(180deg); }
  .srcpick-menu {
    position: absolute; right: 0; top: calc(100% + 6px);
    min-width: 170px; list-style: none;
    background: var(--panel); border: 1px solid var(--line-strong); border-radius: 8px;
    box-shadow: 0 18px 44px rgba(0,0,0,0.55);
    padding: 6px; z-index: 60;
  }
  .srcpick-menu li {
    font-size: 13px; color: var(--muted);
    padding: 9px 12px; border-radius: 6px; cursor: pointer;
    letter-spacing: 0.04em;
    transition: color .15s, background .15s;
  }
  .srcpick-menu li:hover { color: var(--ink); background: rgba(244,241,232,0.06); }
  .srcpick-menu li.sel { color: var(--volt); font-weight: 700; }
  .filters .shown { font-size: 12px; color: var(--dim); letter-spacing: 0.06em; }

  /* ============ 收藏墙 ============ */
  .wallhead {
    max-width: 1440px; margin: 0 auto; padding: 72px 32px 28px;
    display: flex; align-items: baseline; gap: 18px;
  }
  .wallhead h2 {
    font-family: var(--display); font-size: clamp(30px, 4vw, 48px);
    font-weight: 400; letter-spacing: 0.05em;
  }
  .wallhead h2 i { font-style: normal; color: var(--volt); }

  .wall {
    max-width: 1440px; margin: 0 auto;
    padding: 0 32px 96px;
    column-count: 3; column-gap: 24px;
  }
  @media (max-width: 1080px) { .wall { column-count: 2; column-gap: 20px; } }
  @media (max-width: 760px)  { .wall { column-gap: 14px; padding: 0 20px 72px; } }
  @media (max-width: 460px)  { .wall { column-count: 1; } }

  .card {
    break-inside: avoid;
    margin-bottom: 24px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    cursor: pointer;
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  }
  .card:hover {
    transform: translateY(-3px);
    border-color: rgba(217, 255, 61, 0.55);
    box-shadow: 0 18px 44px rgba(0,0,0,0.55);
  }
  .card .frame { position: relative; }
  .card img {
    width: 100%; height: auto;
    transform: scale(1.001);
    transition: transform .5s cubic-bezier(.2,.7,.2,1);
  }
  .card:hover img { transform: scale(1.045); }
  .card .shade {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(11,11,9,0.92) 0%, rgba(11,11,9,0.35) 42%, transparent 65%);
    opacity: 0.5; transition: opacity .3s;
  }
  .card:hover .shade { opacity: 1; }
  .card .chip {
    position: absolute; top: 10px; left: 10px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
    background: rgba(11,11,9,0.78); border: 1px solid var(--line-strong);
    color: var(--ink); padding: 4px 10px; border-radius: 999px;
    backdrop-filter: blur(4px);
  }
  .card .chip.hot { color: var(--volt); border-color: rgba(217,255,61,0.5); }
  .card .meta {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 14px 16px;
    transform: translateY(6px);
    transition: transform .3s ease;
  }
  .card:hover .meta { transform: translateY(0); }
  .card .src { font-size: 12px; font-weight: 700; color: var(--volt); letter-spacing: 0.08em; }
  .card h3 {
    font-family: var(--cn); font-size: 14px; font-weight: 600; line-height: 1.5;
    margin: 4px 0 3px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  /* 桌面端: 标题凝视时才显现, 降低静态密度 */
  @media (hover: hover) {
    .card h3 { opacity: 0; transform: translateY(4px); transition: opacity .3s ease, transform .3s ease; }
    .card:hover h3 { opacity: 1; transform: translateY(0); }
  }
  .card .orig {
    position: absolute; right: 14px; bottom: 14px;
    font-size: 11px; letter-spacing: 0.1em; color: var(--ink);
    border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 12px;
    background: rgba(11,11,9,0.55); backdrop-filter: blur(4px);
    opacity: 0; transform: translateY(6px);
    transition: opacity .25s, transform .25s;
  }
  .card:hover .orig { opacity: 1; transform: translateY(0); }
  .card .orig:hover { background: var(--volt); color: #0b0b09; border-color: var(--volt); }

  /* 加载更多 */
  .morewrap { column-span: all; text-align: center; padding-top: 6px; }
  .more {
    font-family: var(--ui); font-size: 13px; letter-spacing: 0.2em;
    color: var(--muted); background: transparent;
    border: 1px solid var(--line-strong); border-radius: 999px;
    padding: 12px 32px; cursor: pointer;
    transition: color .2s, border-color .2s;
  }
  .more:hover { color: var(--ink); border-color: rgba(217,255,61,0.5); }

  /* 日期展签 */
  .daylabel {
    column-span: all;
    display: flex; align-items: baseline; gap: 14px;
    margin: 6px 0 18px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
  }
  .daylabel .cn {
    font-family: var(--cn); font-weight: 700; font-size: 16px;
    color: var(--ink); letter-spacing: 0.04em;
  }
  .daylabel .en {
    font-family: var(--display); font-size: 13px;
    color: var(--dim); letter-spacing: 0.24em;
  }

  /* 空态 */
  .empty {
    column-span: all; text-align: center; padding: 90px 0;
    color: var(--dim); font-size: 14px; letter-spacing: 0.1em;
  }
  .empty b { display: block; font-family: var(--display); font-size: 40px; color: var(--muted); font-weight: 400; margin-bottom: 10px; }

  /* 入场动画 */
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: translateY(0); }

  /* ============ 灯箱 ============ */
  .lightbox {
    position: fixed; inset: 0; z-index: 100;
    display: none;
    background: rgba(7, 7, 5, 0.9);
    backdrop-filter: blur(10px);
  }
  .lightbox.open { display: grid; }
  .lb-close {
    position: absolute; top: 20px; right: 26px; z-index: 5;
    font-size: 30px; line-height: 1; color: var(--muted);
    background: none; border: none; cursor: pointer;
    transition: color .2s, transform .2s;
  }
  .lb-close:hover { color: var(--volt); transform: rotate(90deg); }
  .lb-stage {
    display: grid; grid-template-columns: minmax(0, 1fr) 360px;
    width: min(1280px, 94vw); max-height: 88vh;
    margin: auto; border-radius: 10px; overflow: hidden;
    background: var(--bg-2); border: 1px solid var(--line-strong);
  }
  .lb-img {
    display: flex; align-items: center; justify-content: center;
    background: #050504; min-height: 300px; position: relative;
  }
  .lb-img img { max-width: 100%; max-height: 88vh; width: auto; height: auto; object-fit: contain; }
  .lb-info {
    padding: 36px 30px; display: flex; flex-direction: column; gap: 0;
    border-left: 1px solid var(--line);
  }
  .lb-info .lb-src {
    display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
  }
  .lb-info .avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--volt); color: #0b0b09;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--display); font-size: 18px;
  }
  .lb-info .lb-src b { display: block; font-size: 14px; letter-spacing: 0.04em; }
  .lb-info .lb-src span { font-size: 12px; color: var(--dim); }
  .lb-info h3 { font-family: var(--cn); font-size: 22px; font-weight: 800; line-height: 1.4; margin-bottom: 14px; }
  .lb-rows { border-top: 1px solid var(--line); padding-top: 16px; }
  .lb-rows .r { display: flex; justify-content: space-between; padding: 9px 0; font-size: 13px; }
  .lb-rows .r dt { color: var(--dim); letter-spacing: 0.1em; }
  .lb-rows .r dd { color: var(--ink); font-weight: 500; }
  .lb-btn {
    margin-top: auto;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--volt); color: #0b0b09;
    font-weight: 700; font-size: 14px; letter-spacing: 0.04em;
    padding: 13px 0; border-radius: 8px;
    transition: filter .2s;
  }
  .lb-btn:hover { filter: brightness(1.1); }
  .lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(11,11,9,0.6); border: 1px solid var(--line-strong);
    color: var(--ink); font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, border-color .2s;
  }
  .lb-nav:hover { background: var(--volt); color: #0b0b09; border-color: var(--volt); }
  .lb-nav.prev { left: 22px; }
  .lb-nav.next { right: 22px; }
  @media (max-width: 860px) {
    .lb-stage { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
    .lb-info { border-left: none; border-top: 1px solid var(--line); }
    .lb-img img { max-height: 52vh; }
  }

  /* ============ 页脚 ============ */
  footer { border-top: 1px solid var(--line); background: var(--bg-2); }
  .legal {
    max-width: 1440px; margin: 0 auto;
    padding: 22px 32px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    font-size: 12px; color: var(--dim); letter-spacing: 0.05em;
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
  }
