/* =========================================================
   窗外云镜 · Web 版样式
   视觉基线来自 2026-09-27 微信小程序 shotlib-miniprogram v2.0.1
   近纯黑底 + 香槟金点缀，四套可切换渐变主题
   ========================================================= */

:root {
  --bg: #0d0d10;
  --bg-elev: #17171b;
  --bg-elev-2: #202026;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text-1: #f1f1f3;
  --text-2: #b6b6bf;
  --text-3: #8e8e99;
  --accent: #d9b26a;
  --accent-light: #e6c684;
  --accent-dark: #c39a51;
  --accent-soft: rgba(217, 178, 106, 0.14);
  --like: #e2564d;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1280px;
  --s: 1;

  /* 主题渐变由 body 上的 theme-* 覆盖 */
  --grad: linear-gradient(172deg, #1b180d 0%, #0d0d10 100%);
  --grad-glow-a: rgba(255, 214, 92, 0.52);
  --grad-glow-b: rgba(255, 168, 40, 0.34);

  color-scheme: dark;
  font-size: calc(16px * var(--s, 1));
}

body.theme-amber {
  --grad:
    radial-gradient(130% 62% at 18% -6%, rgba(255, 214, 92, 0.52) 0%, rgba(255, 214, 92, 0) 58%),
    radial-gradient(110% 55% at 92% 10%, rgba(255, 168, 40, 0.34) 0%, rgba(255, 168, 40, 0) 55%),
    linear-gradient(172deg, #7a5c16 0%, #45330d 34%, #1b180d 70%, #0d0d10 100%);
}
body.theme-grass {
  --grad:
    radial-gradient(130% 62% at 18% -6%, rgba(192, 242, 152, 0.5) 0%, rgba(192, 242, 152, 0) 58%),
    radial-gradient(110% 55% at 92% 10%, rgba(120, 205, 115, 0.32) 0%, rgba(120, 205, 115, 0) 55%),
    linear-gradient(172deg, #3f6329 0%, #253a1a 34%, #141a10 70%, #0d0d10 100%);
}
body.theme-violet {
  --grad:
    radial-gradient(130% 62% at 18% -6%, rgba(217, 184, 245, 0.5) 0%, rgba(217, 184, 245, 0) 58%),
    radial-gradient(110% 55% at 92% 10%, rgba(158, 116, 214, 0.32) 0%, rgba(158, 116, 214, 0) 55%),
    linear-gradient(172deg, #523a70 0%, #30223f 34%, #191322 70%, #0d0d10 100%);
}
body.theme-mono {
  --grad:
    radial-gradient(130% 62% at 18% -6%, rgba(238, 238, 244, 0.32) 0%, rgba(238, 238, 244, 0) 58%),
    radial-gradient(110% 55% at 92% 10%, rgba(150, 150, 160, 0.24) 0%, rgba(150, 150, 160, 0) 55%),
    linear-gradient(172deg, #4e4e56 0%, #2d2d33 34%, #17171b 70%, #0d0d10 100%);
}
body.fs-small { --s: 0.9; }
body.fs-large { --s: 1.12; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-1);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
[hidden] { display: none !important; }
img, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--grad);
  transition: background 420ms ease;
}
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 16, 0) 40%, rgba(13, 13, 16, 0.86) 100%);
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--accent);
  color: #1b1608;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 72px;
  background: rgba(13, 13, 16, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.topbar.scrolled { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); }
.topbar-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; flex: none;
  border-radius: 50%;
  border: 1px solid rgba(217, 178, 106, 0.55);
  display: grid; place-items: center;
  background: radial-gradient(circle, rgba(217, 178, 106, 0.18), transparent 70%);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-name {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  font-size: 1.3rem; letter-spacing: 0.14em; font-weight: 600; white-space: nowrap;
}
.brand-sub { display: block; font-size: 0.62rem; letter-spacing: 0.2em; color: var(--text-3); line-height: 1.2; text-transform: uppercase; }
.topnav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.topnav a {
  position: relative;
  min-height: 44px; display: inline-flex; align-items: center;
  padding: 0 14px; font-size: 0.94rem; color: var(--text-2);
  border-radius: 8px; transition: color 180ms ease, background 180ms ease;
}
.topnav a:hover { color: var(--text-1); background: rgba(255, 255, 255, 0.05); }
.topnav a.active { color: var(--accent); }
.topnav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-elev); color: var(--text-2);
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.icon-btn:hover { color: var(--accent); border-color: rgba(217, 178, 106, 0.5); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--bg-elev-2); color: var(--text-1);
  font-size: 0.94rem; font-weight: 500; letter-spacing: 0.02em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, opacity 180ms ease;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.32); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 55%, var(--accent-dark) 100%);
  color: #1b1608; border: none; font-weight: 600;
  box-shadow: 0 10px 26px rgba(217, 178, 106, 0.22);
}
.btn-primary:hover { box-shadow: 0 14px 34px rgba(217, 178, 106, 0.34); }
.btn-ghost { background: transparent; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.86rem; }

/* ---------- 设置浮层 ---------- */
.popover {
  position: absolute; right: 24px; top: 66px; z-index: 70;
  width: 280px; padding: 20px;
  background: rgba(23, 23, 27, 0.98);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
.popover h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 600; }
.popover .pop-hint { margin: 0 0 18px; font-size: 0.78rem; color: var(--text-3); }
.pop-label { display: block; font-size: 0.78rem; color: var(--text-2); margin: 16px 0 10px; letter-spacing: 0.06em; }
.swatch-row { display: flex; gap: 10px; }
.swatch {
  width: 44px; height: 44px; border-radius: 12px; border: 2px solid transparent;
  padding: 0; position: relative; transition: transform 180ms ease;
}
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-pressed="true"] { border-color: #fff; }
.swatch::after {
  content: ""; position: absolute; inset: 4px; border-radius: 8px;
  background: var(--sw);
}
.seg { display: flex; gap: 6px; }
.seg button {
  flex: 1; min-height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-elev-2); color: var(--text-2); font-size: 0.85rem;
}
.seg button[aria-pressed="true"] { background: var(--accent-soft); border-color: rgba(217, 178, 106, 0.5); color: var(--accent); }

/* ---------- 首屏 ---------- */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(13, 13, 16, 0.72) 0%, rgba(13, 13, 16, 0.1) 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.75rem; letter-spacing: 0.24em; color: var(--accent); text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
.hero h1 {
  margin: 22px 0 10px;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  font-size: clamp(2.9rem, 6vw, 4.6rem); line-height: 1.12; letter-spacing: 0.12em; font-weight: 600;
}
.hero .slogan { margin: 0; font-size: 1.12rem; color: var(--text-2); letter-spacing: 0.06em; }
.hero .lede { margin: 22px 0 30px; max-width: 34em; color: var(--text-2); font-size: 1rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 48px; }
.hero-stats .num { font-size: 1.7rem; font-weight: 600; color: var(--accent); line-height: 1.2; font-variant-numeric: tabular-nums; }
.hero-stats .lab { font-size: 0.78rem; color: var(--text-3); letter-spacing: 0.08em; }

/* 窗格视觉 */
.window {
  position: relative; aspect-ratio: 1 / 1.02; max-width: 480px; margin-left: auto;
  border: 1px solid rgba(217, 178, 106, 0.42); border-radius: 6px;
  padding: 12px; background: rgba(13, 13, 16, 0.35);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), inset 0 0 60px rgba(0, 0, 0, 0.3);
  transform: rotate(1.4deg);
}
.window-inner { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 0.82fr; gap: 10px; height: 100%; }
.window-pane { position: relative; overflow: hidden; border-radius: 2px; background: #191920; }
.window-pane:first-child { grid-row: span 2; }
.window-pane img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.88) contrast(1.05); }
.window-pane::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.42)); }
.window-cross {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 12px; margin-left: -6px;
  background: rgba(13, 13, 16, 0.92); border-left: 1px solid rgba(217, 178, 106, 0.35); border-right: 1px solid rgba(217, 178, 106, 0.35);
}
.window-cross-h {
  position: absolute; left: 0; right: 0; top: 58%; height: 12px; margin-top: -6px;
  background: rgba(13, 13, 16, 0.92); border-top: 1px solid rgba(217, 178, 106, 0.35); border-bottom: 1px solid rgba(217, 178, 106, 0.35);
}
.window-tag {
  position: absolute; right: -18px; bottom: 26px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--accent); color: #1b1608; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* ---------- 区块通用 ---------- */
.section { padding: 72px 0; position: relative; }
.section-head { margin-bottom: 36px; max-width: 720px; }
.section-head h2 { margin: 14px 0 10px; font-size: clamp(1.9rem, 3.2vw, 2.5rem); line-height: 1.25; letter-spacing: 0.04em; font-weight: 600; }
.section-head p { margin: 0; color: var(--text-2); }
.divider-line { height: 1px; background: var(--line); max-width: var(--maxw); margin: 0 auto; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 620ms cubic-bezier(0.22, 1, 0.36, 1), transform 620ms cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 筛选栏 ---------- */
.filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 16px; margin-bottom: 28px;
  background: rgba(23, 23, 27, 0.72); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.search {
  position: relative; flex: 1 1 260px; min-width: 200px;
}
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-3); pointer-events: none; }
.search input {
  width: 100%; height: 48px; padding: 0 16px 0 44px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-elev-2); color: var(--text-1); font-size: 0.92rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.search input::placeholder { color: var(--text-3); }
.search input:focus { outline: none; border-color: rgba(217, 178, 106, 0.6); box-shadow: 0 0 0 3px var(--accent-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); color: var(--text-3); font-size: 0.86rem;
  transition: all 180ms ease;
}
.chip:hover { color: var(--text-1); border-color: var(--line-strong); }
.chip[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--accent-light), var(--accent) 55%, var(--accent-dark));
  border-color: transparent; color: #1b1608; font-weight: 600;
}
.chip .ico-img { width: 12px; height: 12px; border: 1.6px solid currentColor; border-radius: 2px; position: relative; }
.chip .ico-img::after { content: ""; position: absolute; left: 2px; bottom: 2px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.chip .ico-vid { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.sort-row { display: flex; align-items: center; gap: 18px; margin: 0 0 18px 2px; }
.sort-btn { min-height: 40px; padding: 0 4px; background: none; border: none; border-bottom: 2px solid transparent; color: var(--text-3); font-size: 0.92rem; }
.sort-btn[aria-pressed="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.result-count { margin-left: auto; font-size: 0.8rem; color: var(--text-3); }

/* ---------- 分类 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-card {
  position: relative; display: block; width: 100%; padding: 0;
  aspect-ratio: 16 / 9; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-elev); text-align: left;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.cat-card:hover { transform: translateY(-4px); border-color: rgba(217, 178, 106, 0.5); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4); }
.cat-card[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft), 0 14px 30px rgba(0, 0, 0, 0.4); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9); transition: transform 400ms ease; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.72) 100%); }
.cat-label { position: absolute; left: 14px; bottom: 10px; z-index: 1; font-size: 1.06rem; font-weight: 600; letter-spacing: 0.08em; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }
.cat-count { position: absolute; right: 10px; top: 10px; z-index: 1; font-size: 0.68rem; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); color: #fff; }

/* ---------- 瀑布流 ---------- */
.waterfall { columns: 4; column-gap: 16px; }
.asset-card {
  display: inline-block; width: 100%; margin: 0 0 16px;
  break-inside: avoid; -webkit-column-break-inside: avoid;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-align: left; padding: 0; color: inherit;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.asset-card:hover { transform: translateY(-4px); border-color: rgba(217, 178, 106, 0.42); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42); }
.cover-wrap { position: relative; width: 100%; overflow: hidden; background: #191920; }
.cover-btn { display: block; width: 100%; padding: 0; border: none; background: none; text-align: left; color: inherit; }
.cover-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; border-radius: var(--radius) var(--radius) 0 0; }
.asset-title-btn {
  display: block; width: 100%; padding: 0; border: none; background: none;
  text-align: left; color: var(--text-1); font-size: 0.94rem; line-height: 1.45;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.asset-title-btn:hover { color: var(--accent); }
.cover-wrap img, .cover-wrap video { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms ease; }
.asset-card:hover .cover-wrap img { transform: scale(1.04); }
.badge {
  position: absolute; right: 10px; bottom: 10px; padding: 2px 9px;
  border-radius: 7px; background: rgba(0, 0, 0, 0.66); color: #fff; font-size: 0.72rem; line-height: 1.6;
  display: inline-flex; align-items: center; gap: 5px;
}
.badge-video::before { content: ""; width: 0; height: 0; border-left: 7px solid #fff; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.asset-info { padding: 12px 14px 14px; }
.asset-title { font-size: 0.94rem; color: var(--text-1); line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.avatar { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--bg-elev-2); border: 1px solid var(--line); color: var(--accent); font-size: 0.68rem; }
.author { font-size: 0.78rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta-spacer { flex: 1; }
.like-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 6px; background: none; border: none; color: var(--text-3); font-size: 0.8rem; }
.like-btn svg { width: 15px; height: 15px; }
.like-btn[aria-pressed="true"] { color: var(--like); }
.like-btn[aria-pressed="true"] svg { fill: currentColor; }

.empty {
  padding: 72px 24px; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: rgba(23, 23, 27, 0.5);
}
.empty-icon { width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; color: var(--text-3); }
.empty-icon svg { width: 26px; height: 26px; }
.empty h3 { margin: 0 0 8px; font-size: 1.06rem; font-weight: 500; color: var(--text-2); }
.empty p { margin: 0 0 22px; color: var(--text-3); font-size: 0.88rem; }

/* ---------- 活动 ---------- */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.event-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform 220ms ease, border-color 220ms ease; }
.event-card:hover { transform: translateY(-4px); border-color: rgba(217, 178, 106, 0.4); }
.event-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #191920; }
.event-cover img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); }
.event-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.62)); }
.event-status { position: absolute; left: 14px; top: 14px; z-index: 1; padding: 4px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; background: var(--accent); color: #1b1608; }
.event-status.closed { background: rgba(255, 255, 255, 0.16); color: var(--text-1); }
.event-deadline { position: absolute; right: 14px; top: 16px; z-index: 1; font-size: 0.74rem; color: #fff; }
.event-body { padding: 20px 22px 22px; }
.event-body h3 { margin: 0 0 8px; font-size: 1.16rem; font-weight: 600; }
.event-body p { margin: 0 0 18px; font-size: 0.88rem; color: var(--text-2); min-height: 3em; }
.event-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.78rem; color: var(--text-3); }
.progress { height: 4px; border-radius: 2px; background: var(--bg-elev-2); margin: 16px 0 14px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-light), var(--accent)); }

/* ---------- 我的 ---------- */
.profile {
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px;
  padding: 28px; margin-bottom: 26px;
  background: rgba(23, 23, 27, 0.78); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.profile-avatar { width: 84px; height: 84px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; font-family: "Songti SC", "STSong", serif; color: #1b1608; background: linear-gradient(135deg, var(--accent-light), var(--accent-dark)); }
.profile-main { flex: 1; min-width: 200px; }
.profile-main h3 { margin: 0 0 4px; font-size: 1.4rem; font-weight: 600; }
.profile-main p { margin: 0; color: var(--text-3); font-size: 0.86rem; }
.role-tag { display: inline-block; margin-top: 8px; padding: 2px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 0.74rem; border: 1px solid rgba(217, 178, 106, 0.4); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.stat { padding: 20px; text-align: center; background: rgba(23, 23, 27, 0.7); border: 1px solid var(--line); border-radius: var(--radius); }
.stat.highlight { border-color: rgba(217, 178, 106, 0.45); background: var(--accent-soft); }
.stat .num { font-size: 1.8rem; font-weight: 600; color: var(--text-1); font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat.highlight .num { color: var(--accent); }
.stat .lab { font-size: 0.78rem; color: var(--text-3); margin-top: 4px; }
.credits-tip { font-size: 0.8rem; color: var(--text-3); margin: 0 0 26px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tabs button { min-height: 46px; padding: 0 18px; background: none; border: none; border-bottom: 2px solid transparent; color: var(--text-3); font-size: 0.94rem; }
.tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mini-card { padding: 0; text-align: left; color: inherit; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-elev); transition: border-color 180ms ease, transform 180ms ease; }
.mini-card:hover { border-color: rgba(217, 178, 106, 0.45); transform: translateY(-3px); }
.mini-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mini-card div { padding: 10px 12px 12px; font-size: 0.82rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 关于 / 设计说明 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { padding: 24px; background: rgba(23, 23, 27, 0.7); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.feature .fi { width: 42px; height: 42px; margin-bottom: 18px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 1.2rem; }
.feature h3 { margin: 0 0 10px; font-size: 1.06rem; font-weight: 600; }
.feature p { margin: 0; font-size: 0.86rem; color: var(--text-2); }
.notice {
  margin-top: 22px; padding: 22px 24px;
  border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(217, 178, 106, 0.07); color: var(--text-2); font-size: 0.9rem;
}
.notice strong { color: var(--text-1); }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); background: rgba(9, 9, 11, 0.9); padding: 52px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin: 14px 0 0; color: var(--text-3); font-size: 0.88rem; max-width: 26em; }
.footer h4 { margin: 0 0 16px; font-size: 0.86rem; letter-spacing: 0.12em; color: var(--text-2); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: var(--text-3); font-size: 0.88rem; }
.footer a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line);
  color: var(--text-3); font-size: 0.76rem;
}

/* ---------- 移动端底部导航 / 悬浮按钮 ---------- */
.tabbar { display: none; }
.fab {
  position: fixed; right: 28px; bottom: 28px; z-index: 55;
  width: 58px; height: 58px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
  color: #1b1608; font-size: 1.6rem; line-height: 1;
  box-shadow: 0 14px 34px rgba(217, 178, 106, 0.32);
  display: grid; place-items: center;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.fab:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 44px rgba(217, 178, 106, 0.45); }
.to-top {
  position: fixed; left: 28px; bottom: 28px; z-index: 55;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--bg-elev); color: var(--text-2); display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity 220ms ease;
}
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 20px;
  background: rgba(5, 5, 7, 0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: fade-in 200ms ease;
}
.modal-card {
  position: relative; width: 100%; max-width: 940px; max-height: 90vh; overflow: auto;
  background: #17171b; border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
}
.modal-close {
  position: absolute; right: 14px; top: 14px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(13, 13, 16, 0.82); color: var(--text-1); font-size: 1.4rem; line-height: 1;
  display: grid; place-items: center;
}
.modal-close:hover { border-color: var(--accent); color: var(--accent); }
.detail-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; }
.detail-media { position: relative; min-height: 420px; background: #101014; }
.detail-media img { width: 100%; height: 100%; max-height: 78vh; object-fit: cover; }
.detail-media .video-note {
  position: absolute; inset: auto 16px 16px 16px; padding: 10px 14px;
  border-radius: 10px; background: rgba(13, 13, 16, 0.86); color: var(--text-2); font-size: 0.82rem;
}
.detail-body { padding: 32px 30px; }
.detail-body h2 { margin: 12px 0 14px; font-size: 1.6rem; line-height: 1.3; }
.detail-body .desc { color: var(--text-2); font-size: 0.92rem; margin: 0 0 20px; }
.detail-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.detail-facts dt { font-size: 0.72rem; color: var(--text-3); letter-spacing: 0.08em; }
.detail-facts dd { margin: 2px 0 0; font-size: 0.88rem; color: var(--text-1); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.comments h3 { margin: 0 0 14px; font-size: 0.94rem; font-weight: 600; }
.comment { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.86rem; }
.comment .who { color: var(--accent); white-space: nowrap; }
.comment p { margin: 0; color: var(--text-2); }
.comment-form { display: flex; gap: 8px; margin-top: 14px; }
.comment-form input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-elev-2); }
.comment-form input:focus { outline: none; border-color: rgba(217, 178, 106, 0.6); }

.form-card { max-width: 560px; }
.form-body { padding: 30px; }
.form-body h2 { margin: 0 0 6px; font-size: 1.4rem; }
.form-body .form-hint { margin: 0 0 22px; color: var(--text-3); font-size: 0.84rem; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; font-size: 0.84rem; color: var(--text-2); }
.field input[type="text"], .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-elev-2); color: var(--text-1);
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(217, 178, 106, 0.6); }
.file-drop {
  display: grid; place-items: center; gap: 6px; min-height: 140px; padding: 18px;
  border: 1px dashed var(--line-strong); border-radius: 12px; background: rgba(255, 255, 255, 0.02);
  text-align: center; color: var(--text-3); font-size: 0.86rem;
}
.file-drop strong { color: var(--accent); font-weight: 600; }
.file-drop input { display: none; }
.file-drop img { max-height: 160px; border-radius: 8px; }
.field-error { margin: 8px 0 0; color: #ff9d94; font-size: 0.82rem; min-height: 1.2em; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

.toast {
  position: fixed; left: 50%; bottom: 104px; z-index: 150;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  max-width: min(90vw, 460px); padding: 12px 22px; border-radius: 999px;
  background: rgba(23, 23, 27, 0.96); border: 1px solid var(--line-strong);
  color: var(--text-1); font-size: 0.88rem; text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  transition: opacity 240ms ease, transform 240ms ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 开场闪屏（快门光圈） ---------- */
.splash {
  position: fixed; inset: 0; z-index: 300;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(120% 60% at 50% 34%, #17171b 0%, #0a0a0c 52%, #000 100%);
  cursor: pointer;
}
.splash.leaving { animation: splash-out 520ms ease forwards; }
.splash-glow {
  position: absolute; width: 620px; height: 620px; max-width: 90vw; max-height: 90vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07), transparent 62%);
  animation: breathe 2.6s ease-in-out infinite;
}
.splash-stage { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.splash-lens {
  position: relative; width: 132px; height: 132px; border-radius: 50%; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  animation: lens-in 1.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.splash-lens::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(241, 241, 243, 0.92) 0deg 30deg, rgba(241, 241, 243, 0.24) 30deg 60deg);
  animation: lens-spin 2.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.splash-lens::after {
  content: ""; position: absolute; inset: 26%; border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--accent) 38%, #0d0d10 72%);
  animation: shutter 2.1s ease-in-out both;
}
.splash-name { display: flex; gap: 0.16em; margin-top: 38px; font-family: "Songti SC", "STSong", "SimSun", serif; font-size: 2rem; letter-spacing: 0.16em; }
.splash-name span { opacity: 0; animation: char-in 620ms ease forwards; }
.splash-rule { width: 0; height: 1px; margin: 18px 0 14px; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: rule-in 900ms 900ms ease forwards; }
.splash-slogan { opacity: 0; color: var(--text-3); font-size: 0.84rem; letter-spacing: 0.14em; animation: char-in 700ms 1.1s ease forwards; }
.splash-foot { position: absolute; bottom: 12%; width: 160px; height: 2px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.splash-foot i { display: block; height: 100%; width: 0; background: var(--accent); animation: bar-in 2.3s linear forwards; }
.splash-skip { position: absolute; bottom: 7%; color: var(--text-3); font-size: 0.74rem; letter-spacing: 0.1em; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes splash-out { to { opacity: 0; visibility: hidden; } }
@keyframes breathe { 0%, 100% { opacity: 0.5; transform: scale(0.94); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes lens-in { 0% { opacity: 0; transform: scale(1.14); } 18%, 40% { opacity: 1; transform: scale(1); } 46% { transform: scale(0.972); } 54% { transform: scale(1.008); } 64%, 100% { transform: scale(1); } }
@keyframes lens-spin { 0% { transform: rotate(0deg) scale(1.05); } 55% { transform: rotate(28deg) scale(1.05); } 100% { transform: rotate(60deg) scale(1.05); } }
@keyframes shutter { 0%, 100% { transform: scale(1); opacity: 1; } 46% { transform: scale(0.12); opacity: 1; } 58% { transform: scale(1.35); opacity: 0.85; } }
@keyframes char-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes rule-in { to { width: 180px; } }
@keyframes bar-in { to { width: 100%; } }

/* ---------- 响应式断点 ---------- */
@media (max-width: 1279px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .waterfall { columns: 3; }
  .mini-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1023px) {
  .hero { padding: 72px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .window { max-width: 400px; margin: 0 auto; transform: none; }
  .hero::before { background: linear-gradient(180deg, rgba(13, 13, 16, 0.4), rgba(13, 13, 16, 0.75)); }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-media { min-height: 0; }
  .detail-media img { max-height: 46vh; }
}
@media (max-width: 767px) {
  html { scroll-padding-top: 68px; }
  .container { padding: 0 18px; }
  .topbar { height: 62px; }
  .topbar-inner { gap: 12px; }
  .brand-name { font-size: 1.12rem; }
  .brand-sub { display: none; }
  .topnav { display: none; }
  .top-actions { margin-left: auto; }
  .top-actions .btn { display: none; }
  .popover { right: 14px; top: 58px; width: min(280px, calc(100vw - 28px)); }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .hero .lede { font-size: 0.92rem; }
  .hero-stats { gap: 22px; margin-top: 36px; }
  .hero-stats .num { font-size: 1.35rem; }
  .window { max-width: 320px; }
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 24px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-card { aspect-ratio: 16 / 8; }
  .cat-label { font-size: 0.96rem; left: 12px; bottom: 8px; }
  .filters { padding: 12px; gap: 10px; }
  .search { flex-basis: 100%; }
  .chips { width: 100%; }
  .chip { flex: 1; justify-content: center; padding: 0 10px; }
  .waterfall { columns: 2; column-gap: 10px; }
  .asset-card { margin-bottom: 10px; }
  .asset-info { padding: 10px; }
  .asset-title { font-size: 0.84rem; }
  .events-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .profile { padding: 20px; gap: 16px; }
  .profile-avatar { width: 64px; height: 64px; font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .modal { padding: 0; align-items: end; }
  .modal-card { max-height: 92vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .detail-body { padding: 22px 20px 28px; }
  .form-body { padding: 24px 20px; }

  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 58;
    display: grid; grid-template-columns: repeat(4, 1fr);
    height: calc(64px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(16, 16, 20, 0.96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
  }
  .tabbar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 44px; border: none; background: none; color: var(--text-3); font-size: 0.7rem;
  }
  .tabbar button svg { width: 21px; height: 21px; }
  .tabbar button.active { color: var(--accent); }
  .tabbar .tab-upload svg { width: 26px; height: 26px; }
  .fab { display: none; }
  .to-top { bottom: calc(76px + env(safe-area-inset-bottom)); left: 18px; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .waterfall { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   多人协作版新增组件（云端状态条 / 账户 / 登录）
   ========================================================= */
.cloud-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 0 18px; padding: 12px 16px;
  border: 1px solid rgba(217, 178, 106, 0.28); border-radius: var(--radius-sm);
  background: rgba(217, 178, 106, 0.06);
  color: var(--text-2); font-size: 0.85rem; line-height: 1.6;
}
.cloud-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.cloud-bar.off { border-color: var(--line); background: rgba(255, 255, 255, 0.025); }
.cloud-bar.off .dot { background: var(--text-3); }
.cloud-bar .grow { flex: 1 1 240px; min-width: 0; }
.cloud-bar .btn { flex: none; min-height: 36px; padding: 0 16px; }

.account-btn { max-width: 132px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-popover { width: 240px; }
.account-popover h3 { overflow-wrap: anywhere; }
.account-popover .btn { justify-content: center; }

.auth-card { max-width: 480px; }
.auth-tabs { display: flex; gap: 4px; margin: 2px 0 20px; border-bottom: 1px solid var(--line); }
.auth-tabs button {
  min-height: 42px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent;
  background: none; color: var(--text-3); font-size: 0.88rem; cursor: pointer;
}
.auth-tabs button:hover { color: var(--text-1); }
.auth-tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.auth-note { margin: 16px 0 0; color: var(--text-3); font-size: 0.8rem; line-height: 1.7; }
.field-row { display: flex; align-items: flex-end; gap: 10px; }
.field-row .field { flex: 1; min-width: 0; margin-bottom: 0; }
.field-row > .btn { flex: none; min-height: 46px; }
.field input[type="email"] {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-elev-2); color: var(--text-1);
}
.field input[type="email"]:focus { outline: none; border-color: rgba(217, 178, 106, 0.6); }

@media (max-width: 767px) {
  .top-actions .account-btn { display: inline-flex; min-height: 36px; padding: 0 12px; font-size: 0.78rem; max-width: 96px; }
  .cloud-bar { padding: 10px 12px; font-size: 0.8rem; gap: 8px; }
  .cloud-bar .grow { flex-basis: 100%; }
  .cloud-bar .btn { min-height: 34px; }
  .auth-tabs button { flex: 1; padding: 0 8px; font-size: 0.82rem; }
}

/* =========================================================
   微信登录 / 原片下载 / 举报 / 活动详情 / 功能对照
   ========================================================= */
.wechat-btn svg { width: 20px; height: 20px; flex: none; }
.detail-media .detail-video {
  display: block; width: 100%; min-height: 300px; max-height: 78vh;
  background: #000; object-fit: contain;
}
.event-detail-cover img { object-fit: cover; }
.compare {
  margin-top: 18px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-elev);
}
.compare summary { cursor: pointer; color: var(--text-1); font-size: 0.94rem; font-weight: 500; }
.compare summary::marker, .compare li::marker { color: var(--accent); }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; }
.compare h3 { margin: 0 0 10px; font-size: 0.86rem; color: var(--accent); font-weight: 600; }
.compare ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 0.82rem; line-height: 1.85; }
.tabs { flex-wrap: wrap; }
.tabs button { padding: 0 14px; white-space: nowrap; }

@media (max-width: 767px) {
  .tabs { flex-wrap: nowrap; gap: 0; }
  .tabs button { flex: 1; padding: 0 4px; font-size: 0.78rem; }
  .compare-grid { grid-template-columns: 1fr; gap: 18px; }
  .detail-media .detail-video { min-height: 220px; }
  .detail-actions .btn { flex: 1 1 auto; min-width: 0; padding: 0 12px; }
}
@media (max-width: 360px) {
  .tabs button { font-size: 0.72rem; }
}
