:root {
  color-scheme: dark;
  --bg: #1c1926;
  --surface: #272232;
  --surface-soft: #322b40;
  --border: #3e3652;
  --text: #eae5f2;
  --muted: #a79dbd;
  --accent: #6f5c9c;
  --accent-deep: #b9a3e6;
  --coral: #8b6a82;
  --coral-deep: #d9aecb;
  --danger: #e0929b;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: 15px; }
img { max-width: 100%; }

/* ── 顶部导航（移动优先） ── */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 8px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.30);
}

.brand { margin: 0; font-size: 17px; font-weight: 600; }
.brand a { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-deep); }
/* 品牌：艺术化的 7 —— 深色徽标 + 亮色斜体衬线数字（底色与字色为原先的反色） */
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 27px; height: 27px; flex: 0 0 auto;
  border-radius: 9px;
  background: #221d33;
  color: #dcc9f7;
  border: 1px solid #b9a3e6;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-style: italic; font-weight: 700; font-size: 19px;
  line-height: 1; padding-bottom: 2px;
  box-shadow: 0 2px 9px rgba(0, 0, 0, .38), inset 0 0 9px rgba(185, 163, 230, .22);
}
.brand-name { font-size: 16px; font-weight: 600; letter-spacing: .3px; color: var(--accent-deep); }

.top-menu {
  display: flex;
  gap: 4px;
  order: 3;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.top-link {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 18px;
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
}
.top-link:hover { background: var(--surface-soft); color: var(--accent-deep); }
/* 「今日推介」入口做成一枚带边框的小按钮，跟普通文字导航区分开 */
.top-link.top-today {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px;
  border: 1px solid var(--coral-deep); border-radius: 18px;
  color: var(--coral-deep); font-weight: 600;
}
.top-link.top-today::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--coral-deep);
}
.top-link.top-today:hover {
  background: rgba(217, 174, 203, .16); color: var(--coral-deep);
}
.top-link.active { background: #3a3250; color: var(--accent-deep); font-weight: 600; }
/* 审核入口（仅审核员/管理员渲染）：带待办角标 */
.top-review { display: inline-flex; align-items: center; gap: 5px; }
.top-badge {
  min-width: 17px; height: 17px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--coral-deep); color: #241c2e;
  font-size: 11px; font-weight: 700; line-height: 1;
}
.top-link.main-link { color: var(--coral-deep); }

.top-bar-actions {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
}
.account-name { color: var(--accent-deep); font-size: 13px; font-weight: 500; }
.inline-form { display: inline; margin: 0; }
.link-button {
  border: 0; background: transparent; color: var(--muted);
  font-size: 13px; cursor: pointer; padding: 0;
}
.link-button:hover { color: var(--coral-deep); }

.site-main { width: 100%; padding: 14px 12px 0; }

/* ── 今日推介页 + 审核页录入 ── */
.dp-label {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(217, 174, 203, .14);
  color: var(--coral-deep);
  font-size: 12px; font-weight: 600; letter-spacing: .4px;
}
.dp-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--coral-deep);
  box-shadow: 0 0 0 3px rgba(217, 174, 203, .18);
}
.dp-tag {
  flex: 0 0 auto; padding: 1px 7px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--surface-soft);
  color: var(--muted); font-size: 11px;
}
.dp-tag-site { border-color: var(--coral-deep); color: var(--coral-deep); }
.dp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 9px 16px; border-radius: 10px;
  background: var(--accent-deep); color: #201a2c;
  font-size: 13px; font-weight: 600;
}
.dp-btn:hover { filter: brightness(1.06); }
.dp-arrow { font-size: 13px; opacity: .75; }

.today-section { padding-top: 4px; }
.today-head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 10px 18px; margin-bottom: 14px;
}
.today-head h1 { margin: 0 0 4px; font-size: 22px; }
.today-hero {
  padding: 16px 16px 18px;
  border: 1px solid var(--border); border-left: 3px solid var(--coral-deep);
  border-radius: 16px;
  background:
    linear-gradient(115deg, rgba(217, 174, 203, .10), rgba(111, 92, 156, .14)),
    var(--surface);
  box-shadow: var(--shadow);
}
.today-hero-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.today-date {
  display: inline-flex; align-items: baseline; gap: 6px;
  color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums;
}
.today-week { font-size: 12px; opacity: .8; }
.today-title {
  margin: 10px 0 0; font-size: 19px; line-height: 1.4;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.today-desc { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.today-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.today-empty { text-align: center; padding: 34px 18px; }
.today-empty-title { font-size: 16px; font-weight: 600; color: var(--muted); }
.today-empty-desc { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.today-archive { margin-top: 26px; }
.today-archive h2 { margin: 0 0 4px; font-size: 16px; }
.pick-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.pick-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface);
}
.pick-date {
  flex: 0 0 46px; display: flex; flex-direction: column; align-items: center;
  color: var(--accent-deep); font-size: 15px; font-weight: 600; line-height: 1.25;
}
.pick-date span { font-size: 11px; color: var(--muted); font-weight: 400; }
.pick-body { flex: 1 1 auto; min-width: 0; }
.pick-title {
  font-size: 15px; font-weight: 600;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.pick-desc {
  margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.pick-link {
  flex: 0 0 auto; padding: 6px 12px; border-radius: 9px;
  background: var(--surface-soft); color: var(--accent-deep);
  font-size: 13px; font-weight: 600;
}
.pick-link:hover { background: var(--accent); color: var(--text); }

/* 审核页：每日推介录入 */
.promo-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.promo-form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.promo-form-row .field-label { flex: 1 1 200px; min-width: 0; }
/* .field-label 自带 display:block，会盖掉 UA 的 [hidden]，这里显式隐藏 */
.pick-external[hidden], .pick-internal[hidden] { display: none; }
.promo-sub { margin: 18px 0 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
.promo-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.promo-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface-soft); font-size: 13px;
}
.promo-row-date { color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.promo-row-title {
  flex: 1 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.promo-row-kind { color: var(--muted); font-size: 12px; }
.promo-flag-form {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px;
}
.promo-flag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted);
}

/* ── Hero ── */
.hero {
  position: relative;
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #43366a 0%, #5d4b88 55%, #7b67a8 100%);
  box-shadow: var(--shadow);
}
/* 轮播轨道：幻灯片绝对定位叠放，靠 opacity 切换
   （原先用 flex 横排 + 只改 active 类，第 2 张起会停在轨道右侧被裁掉，
   表现为「永远只有第一张」） */
.hero-track { position: relative; height: 100%; }
.hero-slide {
  position: absolute; inset: 0; height: 100%; opacity: 0;
  transition: opacity .5s ease;
  background-size: cover; background-position: center;
}
/* 背景用同一张图放大虚化填充，前景原图完整显示（不裁切，保证水印可见） */
.hero-slide::before {
  content: ''; position: absolute; inset: 0;
  background-image: inherit; background-size: cover; background-position: center;
  filter: blur(18px) brightness(.5);
  transform: scale(1.1);
}
.hero-slide.active { opacity: 1; }
.hero-img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.hero-caption {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  padding: 24px 14px 12px;
  background: linear-gradient(transparent, rgba(12,9,20,.75));
  color: #fff; font-size: 13px;
}
.hero-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; color: rgba(255,255,255,.9); font-size: 17px;
}
/* 箭头 / 圆点必须压在图片之上：.hero-img 有 position+z-index:1，
   箭头原来没有 z-index，会被整层图片盖住，点击落到图片上 → 表现为"点了没反应" */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,.85);
  color: #4a3d6b; font-size: 19px; line-height: 1; cursor: pointer;
  user-select: none; transition: background .15s ease, transform .15s ease;
}
.hero-arrow:hover { background: #fff; }
.hero-arrow:active { transform: translateY(-50%) scale(.92); }
.hero-arrow-left { left: 8px; }
.hero-arrow-right { right: 8px; }
.hero-dots {
  position: absolute; z-index: 3;
  left: 0; right: 0; bottom: 8px;
  display: flex; justify-content: center; gap: 6px;
}
.hero-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; }
.hero-dot.active { background: #fff; width: 18px; border-radius: 4px; }

/* ── 统计条 ── */
.stats-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.stat-card {
  padding: 12px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow);
}
.stat-num { font-size: 22px; font-weight: 600; color: var(--accent-deep); line-height: 1.2; }
.stat-label { margin-top: 2px; font-size: 11px; color: var(--muted); }

/* ── 搜索卡 ── */
.search-wrap { position: relative; z-index: 5; margin: 14px 6px 0; }
.search-card {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 10px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.search-card select, .search-card input {
  padding: 8px 10px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--bg); color: var(--text); font-size: 14px;
}
.search-card select { flex: 0 0 96px; }
.search-card input[type=text] { flex: 1; min-width: 120px; }
.search-btn {
  padding: 8px 16px; border: 0; border-radius: 8px;
  background: var(--accent); color: var(--text); font-weight: 600; cursor: pointer;
}
.search-btn:hover { background: var(--accent-deep); color: #1c1926; }
.clear-btn { padding: 8px; color: var(--muted); font-size: 13px; }

/* ── 主站链接明确呈现 ── */
.main-site-bar {
  margin: 14px 6px 0; padding: 10px 12px;
  background: linear-gradient(90deg, #382a38, #2f2533);
  border: 1px solid var(--coral); border-radius: 10px;
  font-size: 13px; color: var(--coral-deep);
}
.main-site-bar a { font-weight: 600; text-decoration: underline; word-break: break-all; }

/* ── 顶栏「一键出片」按钮 ── */
.top-post {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 4px;
  margin-right: 6px;
  padding: 5px 12px; border-radius: 18px;
  border: 1px solid var(--accent-deep);
  background: linear-gradient(100deg, #4a3a72 0%, #6f5c9c 60%, #8b6a82 100%);
  color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,.30);
}
.top-post:hover { filter: brightness(1.12); }
.top-post:active { transform: translateY(1px); }
.top-post-icon { font-size: 14px; line-height: 1; }
.post-quick {
  margin-top: 6px; padding: 4px 10px; border: 1px solid var(--accent);
  border-radius: 14px; background: transparent; color: var(--accent-deep);
  font-size: 11px; cursor: pointer;
}
.post-quick:hover { background: var(--accent); color: var(--text); }

/* ── 版块标签 ── */
.category-bar {
  display: flex; gap: 8px; margin: 14px 0 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px;
}
.cat-tab {
  flex: 0 0 auto; padding: 6px 14px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-size: 13px;
}
.cat-tab.active { background: var(--accent-deep); border-color: var(--accent-deep); color: #1c1926; font-weight: 600; }

/* ── 图库 ── */
.gallery-section { margin-top: 22px; }
.gallery-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.gallery-title { font-size: 16px; font-weight: 600; }
.gallery-status { color: var(--muted); font-size: 12px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

.gallery-item {
  position: relative; overflow: hidden; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow); cursor: pointer;
}
.gallery-item img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #14111d; }
.gallery-item-info { padding: 8px 10px; }
.gallery-item-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-item-meta { margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.cat-tag {
  display: inline-block; padding: 1px 7px; border-radius: 10px;
  background: #3a3250; color: var(--accent-deep); font-size: 11px; margin-right: 4px;
}
.status-badge { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 11px; margin-right: 4px; }
.status-badge.pending { background: #4a3c22; color: #e8c886; }
.status-badge.rejected { background: #4a2b34; color: var(--danger); }
.profile-intro { margin-top: 4px; font-size: 12px; color: var(--text); line-height: 1.5; }
.delete-form { margin-top: 6px; }
.danger-button {
  padding: 3px 10px; border: 1px solid var(--coral); border-radius: 14px;
  background: transparent; color: var(--coral-deep); font-size: 11px; cursor: pointer;
}
.danger-button:hover { background: var(--coral); color: #fff; }
.empty-state { padding: 40px 16px; border: 1px dashed var(--border); border-radius: 10px; color: var(--muted); text-align: center; }

.load-more-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; }
.page-btn { padding: 7px 14px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--accent-deep); font-size: 13px; }
.page-btn.disabled { color: var(--muted); opacity: .6; }
.page-hint { color: var(--muted); font-size: 12px; width: 100%; text-align: center; }

/* ── 详情弹窗 + 一键出片 ── */
.modal {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: flex-end; justify-content: center;
  background: rgba(8,6,14,.78);
}
.modal.open { display: flex; }
.modal-content-detail {
  position: relative; width: 100%; max-height: 92vh; overflow: auto;
  background: var(--surface); border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,.5);
}
.modal-close {
  position: absolute; top: 6px; right: 10px; z-index: 2;
  border: 0; background: rgba(39,34,50,.9); border-radius: 50%;
  width: 30px; height: 30px; color: var(--text); font-size: 20px; cursor: pointer;
}
.detail-image { background: var(--surface-soft); }
.detail-image img { display: block; width: 100%; max-height: 52vh; object-fit: contain; }
.detail-info { padding: 14px 16px 20px; }
.detail-info h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.detail-meta { color: var(--muted); font-size: 12px; white-space: pre-line; }

.post-section { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.post-label { display: block; font-size: 13px; margin-bottom: 6px; }
.post-textarea {
  width: 100%; padding: 10px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--bg); color: var(--text); font-size: 14px; resize: vertical;
}
.post-actions { display: flex; gap: 8px; margin-top: 10px; }
.post-copy, .post-download, .post-all {
  flex: 1; padding: 10px 6px; border: 1px solid var(--accent); border-radius: 20px;
  background: var(--surface); color: var(--accent-deep); font-size: 13px; cursor: pointer;
}
.post-all { background: var(--accent); color: var(--text); font-weight: 600; }
.post-all:hover { background: var(--accent-deep); color: #1c1926; }
.post-toast {
  margin-top: 8px; padding: 6px 10px; border-radius: 8px;
  background: var(--accent-deep); color: #1c1926; font-size: 12px;
  text-align: center; opacity: 0; transition: opacity .2s;
}
.post-toast.show { opacity: 1; }

/* ── 表单卡片 ── */
.form-card, .profile-card, .upload-section, .review-section,
.users-section, .profile-edit-section {
  width: 100%; margin: 8px auto; padding: 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow);
}
.form-card { max-width: 460px; }
.form-card h1, .review-section h1, .users-section h1,
.profile-edit-section h1, .upload-section h1 { margin: 0 0 14px; font-size: 20px; font-weight: 600; color: var(--accent-deep); }
.review-section h2, .profile-card h2 { margin: 0 0 10px; font-size: 16px; font-weight: 600; }
.form-card label { display: block; margin-bottom: 14px; font-size: 14px; }

.form-card input:not([type=checkbox]) {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--text); font-size: 15px;
}
.form-card input:focus, .search-card input:focus,
.field-textarea:focus, .field-select:focus { outline: 2px solid var(--accent); }
.form-error { margin: 0 0 14px; color: var(--danger); font-size: 14px; }
.hint { color: var(--muted); font-size: 12px; line-height: 1.6; }
.form-foot { margin-top: 14px; color: var(--muted); font-size: 13px; }
.text-link { color: var(--accent-deep); text-decoration: underline; }
.primary-button {
  display: inline-block; padding: 10px 22px; border: 0; border-radius: 22px;
  background: var(--accent); color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer;
}
.primary-button:hover { background: var(--accent-deep); color: #1c1926; }
.primary-button:disabled { opacity: .5; cursor: not-allowed; }

/* ── 上传：版块/介绍/水印编辑器 ── */
.field-label { display: block; margin-bottom: 14px; font-size: 14px; }
.field-select, .field-textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--text); font-size: 15px; resize: vertical;
}
.wm-editor { margin-top: 14px; }
.wm-canvas-wrap {
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  background: var(--surface-soft); padding: 8px;
}
.wm-canvas-wrap canvas { display: block; width: 100%; height: auto; touch-action: none; }
.wm-tip { margin: 6px 0 0; font-size: 11px; color: var(--muted); text-align: center; }
.wm-controls { margin-top: 12px; }
.wm-group { margin-bottom: 14px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; }
.wm-group-head { margin-bottom: 8px; font-size: 14px; }
.wm-group-head label { display: flex; align-items: center; gap: 6px; }
.wm-text-input {
  width: 100%; padding: 8px 10px; margin-bottom: 8px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text);
}
.wm-slider-label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.wm-slider-label input[type=range] { flex: 1; accent-color: var(--accent-deep); }
/* 网站水印固定展示（不可编辑） */
.wm-fixed-value {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; margin-bottom: 8px;
  border: 1px dashed var(--border); border-radius: 8px;
  background: var(--surface-soft); color: var(--text);
  font-size: 14px; user-select: none;
}
.wm-fixed-text { word-break: break-all; }
.wm-lock {
  flex: 0 0 auto; font-size: 11px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 1px 7px;
}
/* 个性化水印：文字 / 图片切换 */
.wm-mode { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.wm-mode-opt {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px;
  font-size: 12.5px; color: var(--muted); cursor: pointer;
}
.wm-mode-opt:has(input:checked) {
  border-color: var(--accent-deep); color: var(--text); background: var(--surface-soft);
}
/* 可选水印图案（只能用本人已审核通过的水印图） */
.wm-pick-list {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px;
}
.wm-pick {
  position: relative; display: block; width: 74px; height: 74px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface-soft); cursor: pointer; overflow: hidden;
}
.wm-pick input {
  position: absolute; top: 4px; left: 4px; margin: 0; z-index: 2;
  accent-color: var(--accent-deep);
}
.wm-pick img {
  width: 100%; height: 100%; object-fit: contain; padding: 8px 6px;
  box-sizing: border-box;
}
.wm-pick:has(input:checked) {
  border-color: var(--accent-deep); box-shadow: 0 0 0 1px var(--accent-deep) inset;
}
.wm-pick-empty { margin: 0 0 8px; }
.wm-pick-list[hidden], .wm-pick-empty[hidden], .wm-color-row[hidden] { display: none; }
/* 个人中心的水印图案列表 */
.wm-tile-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.wm-tile {
  position: relative; width: 96px; padding: 8px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface-soft); text-align: center;
}
.wm-tile-img {
  width: 100%; height: 64px; object-fit: contain; display: block;
  background: repeating-conic-gradient(#2a2438 0% 25%, #221d33 0% 50%) 50% / 12px 12px;
  border-radius: 6px;
}
.wm-tile form { margin: 6px 0 0; }
.wm-tile .role-toggle { width: 100%; }
.wm-tile-pending .avatar-pending-tag { display: inline-block; margin-top: 6px; }
.wm-tile-pending { opacity: .92; }

/* ── 审核 / 用户管理 / 个人主页 ── */
.review-list, .bio-review-list, .user-list { display: flex; flex-direction: column; gap: 10px; }
.review-item {
  display: flex; flex-direction: column; gap: 10px; padding: 10px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
}
.review-item img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #14111d; border-radius: 8px; }
.review-name { font-size: 14px; font-weight: 600; }
.review-meta { margin: 4px 0; color: var(--muted); font-size: 12px; }
.review-oldnote { color: var(--coral-deep); font-size: 12px; margin: 4px 0; }
.review-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.review-form { display: inline; margin: 0; }
.review-approve, .review-reject {
  padding: 7px 16px; border-radius: 18px; font-size: 13px; cursor: pointer; border: 1px solid;
}
.review-approve { background: var(--accent); border-color: var(--accent); color: var(--text); }
.review-reject { background: transparent; border-color: var(--coral); color: var(--coral-deep); }
.review-note {
  flex: 1; min-width: 120px; padding: 7px 10px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font-size: 13px;
}
.bio-review-section { margin-top: 14px; }
.bio-review-item { padding: 12px; border: 1px solid var(--border); border-radius: 10px; }
.bio-review-user { font-size: 13px; color: var(--accent-deep); font-weight: 600; }
.bio-review-text { margin: 6px 0; font-size: 14px; }
/* 个人中心：我的照片行（含缩略图与一键出片） */
.profile-photo-row { margin-bottom: 8px; }
.profile-thumb {
  width: 56px; height: 56px; flex: 0 0 56px; object-fit: cover;
  border-radius: 8px; background: var(--surface-soft);
}
.profile-photo-row .user-name { flex: 1 1 70px; min-width: 60px; }
.profile-photo-row .post-quick { margin-top: 0; flex: 0 0 auto; }
.profile-photo-row .review-form { flex: 0 0 auto; }

.user-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 10px; border: 1px solid var(--border); border-radius: 10px;
}
.user-name { flex: 1; min-width: 90px; font-size: 14px; }
.user-role { color: var(--muted); font-size: 12px; }
.role-tag { color: var(--accent-deep); font-size: 12px; }
.role-toggle {
  padding: 5px 12px; border: 1px solid var(--accent); border-radius: 16px;
  background: var(--accent); color: var(--text); font-size: 12px; cursor: pointer;
}
.role-toggle.off { background: transparent; color: var(--muted); border-color: var(--border); }

.profile-header-card { display: flex; gap: 14px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.profile-avatar {
  width: 54px; height: 54px; flex: 0 0 54px; border-radius: 50%;
  background: var(--accent); color: var(--text); font-size: 24px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.profile-identity h1 { margin: 0 0 4px; font-size: 18px; }
.profile-bio { margin: 4px 0; font-size: 14px; }
.profile-card { margin-top: 12px; }
.profile-card p { font-size: 14px; margin: 4px 0 12px; }

/* 个人中心「主页说明」：当前公开文字 + 可展开的编辑框 */
.bio-current {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); font-size: 14px; line-height: 1.65;
}
.bio-current-label {
  flex: 0 0 auto; padding: 1px 8px; border-radius: 999px;
  background: var(--surface-soft); color: var(--muted); font-size: 11px;
}
.bio-current-text { flex: 1 1 160px; min-width: 0; white-space: pre-wrap; word-break: break-word; }
.bio-pending {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px;
  margin-top: 8px; padding: 10px 12px; border-radius: 10px;
  background: rgba(111, 92, 156, .16); font-size: 13.5px; line-height: 1.6;
}
.bio-pending-tag {
  flex: 0 0 auto; padding: 1px 8px; border-radius: 999px;
  background: rgba(111, 92, 156, .35); color: var(--accent-deep); font-size: 11px;
}
.bio-pending-text { flex: 1 1 160px; min-width: 0; white-space: pre-wrap; word-break: break-word; }
.bio-edit { margin-top: 10px; }
.bio-edit > summary {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-soft);
  color: var(--accent-deep); font-size: 13px; cursor: pointer; list-style: none;
}
.bio-edit > summary::-webkit-details-marker { display: none; }
.bio-edit > summary::before { content: "✎ "; }
.bio-edit > summary:hover { color: var(--text); border-color: var(--accent); }
.bio-edit[open] > summary { background: var(--border); color: var(--text); }
.bio-edit-form { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.bio-edit-form .field-textarea { min-height: 92px; }
.bio-edit-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.bio-edit-foot .hint { margin: 0; }

/* ── 头像（个人中心上传 + 审核页） ── */
.profile-avatar { overflow: hidden; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-avatar-lg { width: 84px; height: 84px; flex: 0 0 84px; font-size: 34px; }
.avatar-line { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px; }
.avatar-side { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.avatar-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.avatar-pick {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px; min-width: 0;
  cursor: pointer;
}
.avatar-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.avatar-pick-btn {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--accent); background: var(--surface-soft);
  color: var(--accent-deep); font-size: 13px;
}
.avatar-pick:hover .avatar-pick-btn { background: var(--accent); color: var(--text); }
.avatar-file-name {
  flex: 1 1 90px; min-width: 0; color: var(--muted); font-size: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.avatar-submit { padding: 7px 18px; font-size: 13px; }
.avatar-pending {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-radius: 10px; background: rgba(111, 92, 156, .16);
}
.avatar-pending-thumb {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
  object-fit: cover; display: block;
}
.avatar-pending-tag {
  flex: 0 0 auto; padding: 1px 8px; border-radius: 999px;
  background: rgba(111, 92, 156, .35); color: var(--accent-deep); font-size: 11px;
}
.avatar-pending .hint { margin: 0; flex: 1 1 90px; min-width: 0; }
.avatar-review-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.avatar-review-item {
  display: flex; align-items: center; gap: 12px; padding: 10px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft);
}
.avatar-review-thumb {
  width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%;
  object-fit: cover; display: block; border: 1px solid var(--border);
}
/* 水印图案是横向 logo，用矩形透明底缩略图比圆形头像框更合适 */
.wm-review-thumb {
  width: 96px; height: 60px; flex: 0 0 96px; border-radius: 8px;
  object-fit: contain; padding: 4px;
  background: repeating-conic-gradient(#2a2438 0% 25%, #221d33 0% 50%) 50% / 12px 12px;
}
.avatar-review-body { flex: 1 1 140px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }.avatar-review-user { font-size: 14px; font-weight: 600; }
.avatar-review-time { color: var(--muted); font-size: 11px; }

/* ── 页脚 ── */
.page-footer {
  display: flex; justify-content: space-between;
  margin: 32px 0 0; padding: 16px 4px 24px;
  border-top: 1px solid var(--border); color: var(--muted); font-size: 11px;
}

/* 反垃圾蜜罐字段 */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── 独立管理台（不出现在首页导航） ── */
.admin-section {
  width: 100%; max-width: 620px; margin: 8px auto; padding: 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow);
}
.admin-section h1 { margin: 0 0 10px; font-size: 20px; color: var(--accent-deep); }
.admin-tiles { display: flex; flex-direction: column; gap: 12px; margin: 14px 0; }
.admin-tile {
  display: block; padding: 16px; border: 1px solid var(--accent);
  border-radius: 12px; background: var(--surface-soft);
}
.admin-tile:hover { border-color: var(--accent-deep); }
.admin-tile-title { font-size: 16px; font-weight: 600; color: var(--accent-deep); }
.admin-tile-desc { margin-top: 4px; font-size: 13px; }
.admin-tile-url { margin-top: 8px; font-size: 11px; color: var(--muted); }
.admin-back { margin: 0 0 12px; font-size: 13px; }

/* ── 照片管理（管理员批量删除） ── */
.bulk-section {
  padding: 16px 14px 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow);
}
.bulk-section h1 { margin: 0 0 8px; font-size: 20px; color: var(--accent-deep); }
.bulk-filter {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 10px;
}
.bulk-filter .field-input { flex: 1 1 150px; min-width: 0; }
.bulk-filter .role-toggle { flex: 0 0 auto; }
.bulk-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 10px; margin-bottom: 10px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface-soft);
  position: sticky; top: 0; z-index: 2;
}
.bulk-all { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.bulk-count { font-size: 12px; color: var(--muted); }
.bulk-del { margin-left: auto; padding: 5px 14px; font-size: 12px; }
.bulk-del:disabled { opacity: .45; cursor: not-allowed; }
.bulk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bulk-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface-soft);
}
.bulk-row:hover { border-color: var(--accent); }
.bulk-check { display: flex; align-items: center; padding: 4px; cursor: pointer; }
.bulk-thumb {
  flex: 0 0 auto; width: 54px; height: 54px; object-fit: cover;
  border-radius: 8px; background: var(--surface);
}
.bulk-info { flex: 1 1 auto; min-width: 0; }
.bulk-name {
  font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bulk-meta {
  margin-top: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 11px; color: var(--muted);
}
.bulk-user, .bulk-time { font-variant-numeric: tabular-nums; }

@media (min-width: 700px) {
  .bulk-section { padding: 22px 24px 24px; }
  .bulk-thumb { width: 66px; height: 66px; }
}

/* ── 公交图库 ── */
.crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin: 4px 0 10px; font-size: 12px; color: var(--muted);
}
.crumb a { color: var(--accent-deep); }
.crumb-sep { opacity: .5; }

.bus-head { padding: 14px 6px 0; }
.bus-head h1 { margin: 0 0 4px; font-size: 22px; }
.bus-stats { margin-top: 8px; font-size: 13px; color: var(--muted); }
.bus-stats strong { color: var(--text); font-size: 15px; }

.sub-tabs {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 12px 6px 0; scrollbar-width: none;
}
.sub-tabs::-webkit-scrollbar { display: none; }
.sub-tab {
  flex: 0 0 auto; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 13px; color: var(--muted); white-space: nowrap;
}
.sub-tab.active {
  border-color: var(--accent-deep); color: #fff;
  background: linear-gradient(100deg, #4a3a72 0%, #6f5c9c 60%, #8b6a82 100%);
  font-weight: 700;
}

.filter-card {
  margin: 12px 6px 0; padding: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow);
}
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.filter-row:last-child { margin-bottom: 0; }
.filter-row label {
  display: flex; flex-direction: column; gap: 4px;
  flex: 1 1 140px; min-width: 0; font-size: 12px; color: var(--muted);
}
.filter-row select, .filter-row input {
  width: 100%; padding: 8px 10px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--surface-soft);
  color: var(--text); font-size: 14px;
}
.filter-row .search-btn, .filter-row .clear-btn { align-self: flex-end; }

.line-index { margin: 14px 6px 0; }
.line-index-head { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.line-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.line-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-soft);
  font-size: 13px;
}
.line-chip-count {
  min-width: 18px; text-align: center; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px;
}
.bus-tag {
  display: inline-block; margin-left: 6px; padding: 1px 7px;
  border-radius: 999px; border: 1px solid var(--accent-deep);
  color: var(--accent-deep); font-size: 11px;
}
.bus-tag:hover { background: rgba(185, 163, 230, .16); }

/* 线路资料页 */
.line-page { padding: 14px 6px 0; }
.line-page h1 { margin: 0 0 4px; font-size: 24px; }
.line-sub { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.line-meta-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin-bottom: 14px;
}
.line-meta {
  padding: 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
}
.line-meta span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.line-meta strong { font-size: 14px; font-weight: 600; }
.line-h2 { font-size: 16px; margin: 18px 0 8px; }
.line-note { font-size: 13px; color: var(--muted); }
.line-disclaimer {
  margin: 14px 0 0; padding: 10px 12px; font-size: 12px;
  color: var(--muted); background: var(--surface-soft);
  border-left: 3px solid var(--coral); border-radius: 8px;
}
.copyright-note { margin: 16px 0 0; font-size: 11px; color: var(--muted); }
.line-actions { margin: 14px 0; }
.stop-list { list-style: none; margin: 0; padding: 0; }
.stop-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 4px; border-bottom: 1px dashed var(--border); font-size: 14px;
}
.stop-list li:last-child { border-bottom: none; }
.stop-seq {
  flex: 0 0 22px; height: 22px; line-height: 22px; text-align: center;
  border-radius: 50%; background: var(--surface-soft);
  border: 1px solid var(--border); font-size: 11px; color: var(--muted);
}

/* 上传页：公交标签栏 */
.bus-fieldset {
  margin: 10px 0 14px; padding: 14px;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); min-width: 0;
}
.bus-fieldset legend { padding: 0 8px; font-size: 13px; color: var(--accent-deep); }
.bus-fieldset .field-label { margin-bottom: 10px; }
.field-row { display: flex; flex-wrap: wrap; gap: 10px; }
.field-row .field-label { flex: 1 1 140px; min-width: 0; }
.tag-checks { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 6px; }
.tag-checks label {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--text);
}

/* 水印颜色（黑白两色，无描边） */
.wm-color-row {
  display: flex; align-items: center; gap: 8px; margin: 8px 0 4px;
}
.wm-color-label { font-size: 12px; color: var(--muted); }
.wm-swatch {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-soft);
  font-size: 12px; cursor: pointer;
}
.wm-swatch input { margin: 0; }
.wm-swatch.swatch-white span { color: #fff; }
.wm-swatch.swatch-black span { color: #111; background: #f0edf6; border-radius: 999px; padding: 0 6px; }
.wm-swatch:has(input:checked) { border-color: var(--accent-deep); }

/* 用户管理：按版块分配审核权限 */
.user-card {
  padding: 12px 14px; margin-bottom: 10px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface);
}
.user-card-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
  margin-bottom: 8px;
}
.user-card-head .user-name { font-size: 15px; font-weight: 600; }
.user-card-head .user-role { font-size: 12px; color: var(--muted); }
.cat-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cat-checks { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.cat-checks label {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--text);
}
.user-card-actions { margin-top: 8px; }

/* 轮播精选（管理页） */
.featured-summary { margin: 12px 0 10px; font-size: 14px; color: var(--muted); }
.featured-summary b { color: var(--accent-deep); font-size: 17px; }
.featured-list { display: flex; flex-direction: column; gap: 10px; }
.featured-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface);
}
.featured-item img {
  width: 84px; height: 56px; flex: 0 0 84px; object-fit: cover;
  border-radius: 8px; background: var(--surface-soft);
}
.featured-rank { flex: 0 0 22px; text-align: center; font-weight: 700; color: var(--accent-deep); }
.featured-info { flex: 1 1 auto; min-width: 0; }
.featured-name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.featured-meta {
  display: flex; align-items: center; gap: 8px;
  margin-top: 4px; font-size: 12px; color: var(--muted);
}
.featured-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.move-btn {
  width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface-soft);
  color: var(--text); font-size: 14px; cursor: pointer;
}
.move-btn:hover:enabled { color: var(--accent-deep); }
.move-btn:disabled { opacity: .35; cursor: default; }
.featured-sub { margin: 22px 0 10px; font-size: 16px; }
.featured-pool {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px;
}
.featured-cand {
  display: flex; flex-direction: column; gap: 8px; padding: 8px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
}
.featured-cand img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 8px; background: var(--surface-soft);
}
.featured-cand .featured-name { font-size: 13px; }

/* 公告栏（首页正中弹出，可关闭；关闭后右下留小胶囊可重开） */
.notice-mask {
  position: fixed; inset: 0; z-index: 170;
  background: rgba(10, 8, 16, .62);
  animation: notice-fade .18s ease;
}
.notice-mask[hidden] { display: none; }
.notice-float {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 180;
  width: min(380px, calc(100vw - 40px));
  max-height: min(72vh, 520px);
  display: flex; flex-direction: column;
  padding: 16px 18px 14px;
  border: 1px solid var(--border); border-left: 3px solid var(--accent-deep);
  border-radius: 16px; background: var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .68);
  animation: notice-pop .22s ease;
}
.notice-float[hidden] { display: none; }
@keyframes notice-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes notice-pop {
  from { opacity: 0; transform: translate(-50%, -46%) scale(.95); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.notice-float-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.notice-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--accent-deep);
  letter-spacing: .5px;
}
.notice-close {
  flex: 0 0 auto; width: 26px; height: 26px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px; background: var(--surface-soft);
  color: var(--muted); font-size: 17px; line-height: 1; cursor: pointer;
}
.notice-close:hover { color: var(--text); background: var(--border); }
.notice-bar {
  display: inline-block; width: 3px; height: 13px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-deep), var(--coral-deep));
}
.notice-scroll {
  margin-top: 8px; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.notice-list { margin: 0; padding: 0; list-style: none; }
.notice-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 6px 0; border-top: 1px dashed var(--border);
  font-size: 13.5px; line-height: 1.65; color: var(--text);
}
.notice-item:first-child { border-top: 0; padding-top: 0; }
.notice-text { white-space: pre-wrap; word-break: break-word; }
.notice-link { align-self: flex-start; color: var(--accent-deep); font-size: 13px; }
.notice-link:hover { color: var(--coral-deep); }
.notice-reopen {
  position: fixed; right: 14px; bottom: 14px; z-index: 150;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--accent-deep);
  font-size: 13px; font-weight: 600; cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
}
.notice-reopen[hidden] { display: none; }
.notice-reopen:hover { color: var(--text); }
.notice-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--coral-deep);
}

/* 公告栏管理页 */
.notice-form {
  margin: 14px 0 18px; padding: 14px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
}
.field-input {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--text); font-size: 15px;
}
.field-input:focus { outline: 2px solid var(--accent); }
.notice-form-row { display: flex; flex-direction: column; gap: 0; }
.notice-row {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start;
  padding: 12px 14px; margin-bottom: 10px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
}
.notice-row-main { flex: 1 1 240px; min-width: 0; }
.notice-row-body {
  font-size: 14px; line-height: 1.65; white-space: pre-wrap; word-break: break-word;
}
.notice-row-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 6px; font-size: 12px; color: var(--muted);
}
.notice-row-actions { display: flex; gap: 8px; align-items: center; }
/* 已有公告：就地展开编辑 */
.notice-edit { flex: 1 1 100%; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--border); }
.notice-edit > summary {
  display: inline-block; padding: 5px 11px; border-radius: 8px;
  background: var(--surface-soft); color: var(--accent-deep);
  font-size: 13px; cursor: pointer; list-style: none;
}
.notice-edit > summary::-webkit-details-marker { display: none; }
.notice-edit > summary:hover { color: var(--text); }
.notice-edit[open] > summary { color: var(--text); background: var(--border); }
.notice-edit-form { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.notice-edit-form .field-textarea { min-height: 84px; }
.notice-edit-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.notice-state { padding: 1px 8px; border-radius: 999px; font-size: 11px; }
.notice-state.on { background: rgba(111, 92, 156, .3); color: var(--accent-deep); }
.notice-state.off { background: var(--surface-soft); color: var(--muted); }
.notice-nolink { color: var(--muted); }
.notice-time { color: var(--muted); }

/* ── 平板及以上 ── */
@media (min-width: 700px) {
  body { font-size: 15px; }
  .site-main { width: min(1120px, calc(100% - 40px)); padding: 26px auto 0; margin: 0 auto; }
  .top-bar { flex-wrap: nowrap; padding: 10px 28px; min-height: 62px; }
  .top-menu { order: 0; width: auto; }
  .hero { height: 340px; }
  .today-head h1 { font-size: 26px; }
  .today-hero { padding: 22px 24px 24px; }
  .today-title { font-size: 22px; }
  .pick-row { padding: 14px 16px; }
  .hero-caption { font-size: 14px; padding: 30px 20px 16px; }
  .stats-strip { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .stat-card { padding: 16px 18px; }
  .stat-num { font-size: 26px; }
  .stat-label { font-size: 12px; }
  .search-wrap { margin: 16px 24px 0; }
  .search-card { flex-wrap: nowrap; padding: 12px 14px; }
  .search-card select { flex: 0 0 120px; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
  .modal { align-items: center; padding: 24px; }
  .modal-content-detail { width: min(960px, 100%); max-height: 88vh; border-radius: 16px; }
  .detail-image img { max-height: 68vh; }
  .review-item { flex-direction: row; }
  .review-item img { width: 220px; flex: 0 0 220px; aspect-ratio: auto; }
  .form-card { padding: 28px; margin: 12px auto; }
  .notice-form-row { flex-direction: row; gap: 16px; }
  .notice-form-row .field-label { flex: 1 1 0; min-width: 0; }
  .notice-float { padding: 18px 22px 16px; width: min(460px, calc(100vw - 60px)); }
  .page-footer { margin: 46px auto 0; }
}

/* ── 首页「上传你的第一张」引导 ── */
.first-upload {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 14px 0 0; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent-deep); border-radius: 10px;
}
.fu-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 220px; }
.fu-text strong { font-size: 15px; color: var(--accent-deep); }
.fu-text span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.fu-btn {
  flex: 0 0 auto; padding: 8px 16px; border-radius: 999px;
  background: var(--accent-deep); color: #241f33; font-weight: 600; font-size: 14px;
}
.fu-btn:hover { background: #cbb8f0; }

/* ── 运营看板 ── */
.st-page { max-width: 1000px; margin: 0 auto; }
.st-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 16px; }
.st-tab {
  padding: 6px 14px; border-radius: 999px; font-size: 13px;
  border: 1px solid var(--border); color: var(--muted);
}
.st-tab.active { background: var(--surface-soft); color: var(--accent-deep); border-color: var(--accent-deep); }
.st-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
.st-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.st-num { font-size: 24px; font-weight: 700; color: var(--accent-deep); line-height: 1.2; }
.st-label { font-size: 13px; color: var(--muted); margin-top: 2px; }
.st-hint { font-size: 11px; color: #7f7595; margin-top: 4px; }
.st-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 14px; }
.st-panel-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.st-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.st-bars { display: flex; align-items: flex-end; gap: 4px; height: 132px; }
.st-bar { flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 132px; min-width: 0; }
.st-bar-fill { width: 100%; max-width: 22px; background: linear-gradient(180deg, var(--accent-deep), var(--accent)); border-radius: 3px 3px 0 0; }
.st-bar-label { font-size: 9px; color: #7f7595; margin-top: 3px; }
.st-list { list-style: none; margin: 0; padding: 0; }
.st-list li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed rgba(255,255,255,0.06); font-size: 13px; }
.st-list li:last-child { border-bottom: none; }
.st-name { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-count { color: var(--muted); flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.st-pct { color: #7f7595; font-size: 11px; }
.st-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.st-table th, .st-table td { text-align: left; padding: 5px 4px; border-bottom: 1px dashed rgba(255,255,255,0.06); }
.st-table th { color: var(--muted); font-weight: 500; font-size: 12px; }
.st-empty, .st-empty-row { color: var(--muted); font-size: 13px; }
.st-note { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.8; word-break: break-all; }
@media (max-width: 640px) {
  .st-pair { grid-template-columns: 1fr; }
  .st-bars { height: 90px; }
  .st-bar-label { font-size: 8px; }
}

/* ── 航空标签：卡片角标 + 大图详情 ── */
.aviation-tag { border-color: #6fa8c7; color: #a9d6f2; }
.detail-aviation { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.detail-aviation[hidden] { display: none; }
.av-chip {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  background: var(--surface-soft); border: 1px solid var(--border);
  font-size: 12px; color: var(--text);
}
.av-chip b { color: var(--muted); font-weight: 500; }
