@charset "utf-8";

/* ============ 主题变量 ============ */
:root {
  --primary: #d96a10;
  --primary-strong: #b85609;
  --primary-soft: rgba(217, 106, 16, .12);
  --accent: #e8543f;
  --grad-a: #f59e0b;
  --grad-b: #ef6a1f;
  --cat-caijing: #d96a10;
  --cat-wenyi: #d94f70;
  --cat-yule: #0f9d8a;

  --bg: #f4f6fb;
  --bg-soft: #e9edf6;
  --surface: #ffffff;
  --surface-2: #f7f9fd;
  --text: #1b2440;
  --muted: #67718c;
  --line: #e3e8f2;
  --shadow: 0 6px 24px rgba(27, 36, 64, .08);
  --shadow-lg: 0 16px 48px rgba(27, 36, 64, .14);
  --header-bg: rgba(255, 255, 255, .82);
  --hero-overlay: linear-gradient(100deg, rgba(244,246,251,.96) 0%, rgba(244,246,251,.72) 34%, rgba(244,246,251,0) 68%);
  --chip-bg: #ffffff;
  color-scheme: light;
}

[data-theme="dark"] {
  --primary: #f5a74e;
  --primary-strong: #ffbe78;
  --primary-soft: rgba(245, 167, 78, .16);
  --grad-a: #fbb13c;
  --grad-b: #f2712e;

  --bg: #0d111f;
  --bg-soft: #131a2d;
  --surface: #171f35;
  --surface-2: #1d2740;
  --text: #e9edf9;
  --muted: #96a0bc;
  --line: #2a3452;
  --shadow: 0 6px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .5);
  --header-bg: rgba(15, 20, 36, .82);
  --hero-overlay: linear-gradient(100deg, rgba(13,17,31,.95) 0%, rgba(13,17,31,.7) 34%, rgba(13,17,31,.1) 68%);
  --chip-bg: #1d2740;
  color-scheme: dark;
}

/* ============ 基础 ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}
body.theme-switching *,
body.theme-switching {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease !important;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
::selection { background: var(--primary); color: #fff; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
@media (max-width: 640px) { .container { width: calc(100% - 32px); } }

/* ============ 顶部导航 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, border-color .3s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-logo {
  height: 38px;
  width: auto;
  border-radius: 8px;
  background: #fff;
  padding: 3px 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--text); background: var(--primary-soft); }
.main-nav a.active {
  color: #fff;
  background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
  box-shadow: 0 4px 12px rgba(217, 106, 16, .35);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--chip-bg);
  color: var(--text);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .3s;
}
.icon-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.icon-btn svg { width: 20px; height: 20px; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }

.menu-btn { display: none; }
.mobile-nav { display: none; }

@media (max-width: 1023px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    background: var(--surface);
  }
  .mobile-nav.open { display: block; }
  .mobile-nav a {
    display: block;
    padding: 13px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    border-left: 3px solid transparent;
  }
  .mobile-nav a.active {
    color: var(--primary);
    border-left-color: var(--primary);
    background: var(--primary-soft);
  }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin-top: 28px;
  min-height: 228px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: filter .3s;
}
[data-theme="dark"] .hero-bg { filter: brightness(.55) saturate(.85); }
.hero-overlay { position: absolute; inset: 0; background: var(--hero-overlay); }
.hero-content {
  position: relative;
  padding: 48px 56px;
  max-width: 640px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 1px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc { margin: 0 0 26px; color: var(--muted); font-size: 16px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  position: absolute;
  right: 40px;
  bottom: 32px;
  display: flex;
  gap: 12px;
}
.stat-chip {
  background: var(--chip-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.stat-chip b { display: block; font-size: 22px; font-weight: 900; background: linear-gradient(120deg, var(--grad-a), var(--grad-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-chip span { font-size: 12.5px; color: var(--muted); }

@media (max-width: 900px) {
  .hero { min-height: 180px; }
  .hero-content { padding: 36px 28px; }
  .hero-stats { position: static; padding: 0 28px 28px; flex-wrap: wrap; }
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
  box-shadow: 0 8px 20px rgba(217, 106, 16, .38);
}
.btn-ghost {
  color: var(--text);
  background: var(--chip-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.btn-sm { padding: 8px 18px; font-size: 13.5px; }

/* ============ 分区 ============ */
.section { padding: 52px 0 6px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}
.section-title::before {
  content: "";
  width: 6px;
  height: 24px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--grad-a), var(--grad-b));
}
.section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.section-link:hover { text-decoration: underline; }

/* ============ 卡片 ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 22px;
}
/* 首页栏目分区固定 3 张卡片：auto-fit 折叠空轨道，避免宽屏下右侧留白 */
.home-grid {
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
}
.vcard {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, background .3s ease;
}
.vcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.vcard-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
}
.vcard-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.vcard:hover .vcard-cover img { transform: scale(1.06); }
.vcard-cover .cover-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; font-weight: 900; color: rgba(255,255,255,.9);
  text-shadow: 0 4px 18px rgba(0,0,0,.25);
}
.vcard-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 17, 40, .32);
  opacity: 0;
  transition: opacity .25s;
}
.vcard:hover .vcard-play { opacity: 1; }
.vcard-play span {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.3);
}
.vcard-play svg { width: 24px; height: 24px; fill: var(--primary); margin-left: 3px; }
.vcard-ep {
  position: absolute;
  top: 10px; right: 10px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(13, 17, 40, .62);
  backdrop-filter: blur(4px);
}
.vcard-cat {
  position: absolute;
  top: 10px; left: 10px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.cat-财经 .vcard-cat, .catbadge-财经 { background: var(--cat-caijing); }
.cat-文艺 .vcard-cat, .catbadge-文艺 { background: var(--cat-wenyi); }
.cat-娱乐 .vcard-cat, .catbadge-娱乐 { background: var(--cat-yule); }
.vcard-body { padding: 14px 16px 16px; }
.vcard-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vcard-desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}
.vcard-meta { margin-top: 10px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }

/* ============ 筛选 / 搜索 ============ */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.filter-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: var(--chip-bg);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all .2s;
}
.pill:hover { color: var(--text); border-color: var(--primary); }
.pill.active {
  color: #fff;
  background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(217, 106, 16, .35);
}
.pill i { font-style: normal; opacity: .75; font-size: 12px; margin-left: 3px; }
.search-box {
  position: relative;
  width: 300px;
  max-width: 100%;
}
.search-box svg {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  fill: var(--muted);
}
.search-box input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--chip-bg);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.result-count { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }

/* ============ 播放页 ============ */
.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
  margin-top: 28px;
}
@media (max-width: 991px) { .player-layout { grid-template-columns: 1fr; } }
.player-main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-wrap {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
}
.video-wrap video { width: 100%; height: 100%; display: block; }
.video-error {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #cfd6ec;
  background: #0b0f1c;
  text-align: center;
  padding: 24px;
}
.video-error.show { display: flex; }
.video-error p { margin: 0; font-size: 14.5px; line-height: 1.7; }
.player-topbar { margin-bottom: 14px; }
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s ease;
}
.btn-back:hover { color: var(--primary); border-color: var(--primary); transform: translateX(-2px); }

.player-info { padding: 22px 26px 26px; }
.player-title { margin: 0 0 10px; font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.catbadge { padding: 3px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #fff; }
.player-meta { font-size: 13.5px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
.player-desc { margin: 14px 0 0; font-size: 14.5px; color: var(--muted); }
.episode-box { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line); }
.episode-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.episode-head h3 { margin: 0; font-size: 16px; font-weight: 800; }
.autonext { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); cursor: pointer; user-select: none; }
.switch { position: relative; width: 40px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; inset: 0;
  border-radius: 999px;
  background: var(--line);
  transition: background .2s;
}
.switch .track::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { transform: translateX(18px); }
.episode-list { display: flex; flex-wrap: wrap; gap: 10px; }
.ep-chip {
  min-width: 64px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--chip-bg);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.ep-chip:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-1px); }
.ep-chip.active {
  color: #fff;
  background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(217, 106, 16, .35);
}
.player-side { display: flex; flex-direction: column; gap: 16px; }
.side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.side-card h3 { margin: 0 0 14px; font-size: 16px; font-weight: 800; }
.side-item {
  display: flex;
  gap: 12px;
  padding: 9px;
  border-radius: 12px;
  cursor: pointer;
  transition: background .2s;
}
.side-item:hover { background: var(--primary-soft); }
.side-thumb {
  position: relative;
  width: 128px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-2);
}
.side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-thumb .cover-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 900; color: rgba(255,255,255,.9); }
.side-thumb b {
  position: absolute; right: 6px; bottom: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  color: #fff;
  background: rgba(13,17,40,.62);
}
.side-item-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.side-item-cat { margin-top: 5px; font-size: 12px; color: var(--muted); }
.side-item-desc {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

/* ============ 直播 ============ */
.live-now {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: livePulse 1.2s ease-in-out infinite;
}
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.live-badge {
  position: absolute;
  top: 6px; right: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  color: #fff;
  background: rgba(13, 17, 40, .62);
  backdrop-filter: blur(4px);
}
.live-badge .live-dot { width: 6px; height: 6px; background: #ff5a47; }
.side-item.active { background: var(--primary-soft); }
.side-item.active .side-item-title { color: var(--primary); }
.live-channel-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 2px;
}
.vcard-meta .live-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 700;
}
.vcard-meta .live-meta .live-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
}

/* ============ 资讯 ============ */
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.news-item:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); }
.news-date {
  flex-shrink: 0;
  text-align: center;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--primary-soft);
}
.news-date b { display: block; font-size: 20px; font-weight: 900; color: var(--primary); }
.news-date span { font-size: 12px; color: var(--muted); }
.news-item h3 { margin: 0 0 4px; font-size: 16.5px; font-weight: 700; }
.news-item p { margin: 0; font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-arrow { margin-left: auto; flex-shrink: 0; color: var(--muted); }
@media (max-width: 640px) {
  .news-item { flex-wrap: wrap; }
  .news-item p { white-space: normal; }
  .news-arrow { display: none; }
}
.article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 48px;
  box-shadow: var(--shadow);
  margin-top: 28px;
}
@media (max-width: 640px) { .article { padding: 26px 20px; } }
.article h1 { margin: 0 0 12px; font-size: 26px; font-weight: 800; line-height: 1.4; }
.article .article-meta { font-size: 13.5px; color: var(--muted); padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.article-content { font-size: 15.5px; line-height: 2; color: var(--text); }
.article-content p { margin: 0 0 18px; text-indent: 2em; }
.article-content img { margin: 10px auto; border-radius: 12px; }
.article-back { margin-top: 30px; }
.article-empty { text-align: center; padding: 60px 0; color: var(--muted); }

/* ============ 占位页 ============ */
.placeholder {
  text-align: center;
  padding: 96px 24px;
}
.placeholder-icon {
  width: 96px; height: 96px;
  margin: 0 auto 26px;
  border-radius: 28px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
  box-shadow: 0 14px 40px rgba(217, 106, 16, .35);
}
.placeholder-icon svg { width: 44px; height: 44px; fill: #fff; }
.placeholder h1 { margin: 0 0 12px; font-size: 28px; font-weight: 800; }
.placeholder p { margin: 0 auto 30px; color: var(--muted); max-width: 460px; }
.placeholder-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ 页脚 ============ */
.site-footer {
  margin-top: 72px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  transition: background .3s ease;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.1fr .7fr .7fr;
  gap: 40px;
  padding: 48px 0 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand .brand-logo { height: 42px; margin-bottom: 16px; }
.footer-brand p { margin: 0 0 6px; font-size: 13.5px; color: var(--muted); }
.footer-col h4 { margin: 4px 0 16px; font-size: 15px; font-weight: 800; }
.footer-col a, .footer-col span {
  display: block;
  padding: 5px 0;
  font-size: 13.5px;
  color: var(--muted);
  transition: color .2s;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

/* ============ 杂项 ============ */
.page-banner { margin-top: 28px; }
.page-banner-inner {
  border-radius: 20px;
  padding: 34px 40px;
  background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
  color: #fff;
  box-shadow: var(--shadow);
}
.page-banner-inner h1 { margin: 0 0 6px; font-size: 26px; font-weight: 800; }
.page-banner-inner p { margin: 0; opacity: .85; font-size: 14px; }

.backtop {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 90;
  width: 46px; height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--chip-bg);
  color: var(--primary);
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s;
}
.backtop.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.backtop svg { width: 20px; height: 20px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

.empty-tip {
  text-align: center;
  padding: 70px 0;
  color: var(--muted);
  font-size: 15px;
}
