/* ===== 设计变量 ===== */
:root {
  /* 品牌配色：优优短剧 · 黑白极简（墨黑主色 + 灰阶层次） */
  --primary: #111111;      /* 主色：墨黑（按钮/链接/选中态） */
  --secondary: #2B2B2B;    /* 深灰：渐变起点 */
  --accent: #000000;       /* 纯黑：渐变终点 / hover 加深 */
  --pink: #111111;         /* 兼容旧变量名，统一为墨黑 */
  --light: #F4F4F4;        /* 页面底色：极浅灰，与白卡片分层 */
  --dark: #111111;
  --text-primary: #111111;
  --text-secondary: #4A4A4A;
  --text-tertiary: #8C8C8C;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.07);
  --card-hover: 0 6px 20px rgba(0,0,0,0.14);
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  min-height: 100vh;
  background: var(--light);
  color: var(--text-primary);
  /* 为底部 Tab 栏预留空间（移动端） */
  padding-bottom: env(safe-area-inset-bottom);
}

/* ===== 顶部导航 ===== */
.header {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  max-width: 1200px; margin: 0 auto;
}
.header-left { display: flex; align-items: center; gap: 8px; }
.header-logo { width: 30px; height: 30px; border-radius: 7px; }
.header-left h1 { font-size: 17px; font-weight: 800; color: var(--primary); white-space: nowrap; }
.header-left .mobile-logo { display: none; font-weight: 800; color: var(--primary); font-size: 16px; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.header-link {
  display: flex; align-items: center; gap: 4px;
  background: none; color: var(--text-primary);
  padding: 6px 10px; border: none; font-size: 14px; font-weight: 600;
  text-decoration: none; border-radius: 8px; transition: color .2s, background .2s;
}
.header-link .ico { font-size: 14px; }
.header-link:hover, .header-link.active { color: var(--primary); background: rgba(17,17,17,0.08); }
.mobile-menu-btn {
  display: none; background: none; border: none;
  font-size: 22px; color: var(--text-primary); cursor: pointer; margin-left: auto;
}

/* 移动端下拉菜单 */
.mobile-menu { display: none; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.mobile-menu.show { display: block; }
.mobile-menu-inner { display: flex; gap: 4px; overflow-x: auto; padding: 6px 10px; }
.mobile-menu-item {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 12px; background: none; color: var(--text-primary);
  font-size: 13px; font-weight: 700; white-space: nowrap; flex-shrink: 0;
  text-decoration: none; border-radius: 8px;
}
.mobile-menu-item:hover { color: var(--primary); background: rgba(17,17,17,0.08); }

/* ===== 公告滚动 ===== */
.announcement-bar {
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  color: #fff; padding: 7px 0; overflow: hidden; font-size: 12.5px;
}
.announcement-bar .inner { display: flex; align-items: center; padding: 0 14px; gap: 8px; }
.ann-ico { flex-shrink: 0; }
.announcement-bar .scroll-wrap { overflow: hidden; flex: 1; white-space: nowrap; }
.announcement-bar .scroll-text { display: inline-block; animation: annScroll 18s linear infinite; }
@keyframes annScroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ===== Hero 搜索区 ===== */
.hero {
  background: linear-gradient(135deg, var(--secondary), var(--primary) 55%, var(--accent));
  padding: 36px 14px 26px; position: relative;
}
.hero-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.hero-stats {
  position: absolute; top: 12px; right: 14px; font-size: 12px; font-weight: 600; text-align: right;
}
.hero-stats div { color: rgba(255,255,255,0.9); }
.hero-stats span { color: #FFFFFF; font-weight: 800; }
.hero h2 { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 8px; text-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.hero p { color: rgba(255,255,255,0.92); margin-bottom: 18px; font-size: 14px; }

.search-wrapper { position: relative; max-width: 560px; margin: 0 auto; }
.search-input {
  width: 100%; padding: 13px 88px 13px 16px;
  border: none; border-radius: 999px; font-size: 15px; outline: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: var(--primary); border: none; color: #fff;
  width: 38px; height: 38px; border-radius: 50%; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.search-btn:hover { background: var(--accent); }
.clear-btn {
  position: absolute; right: 50px; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.06); border: none; color: #666;
  width: 28px; height: 28px; border-radius: 50%; font-size: 13px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.clear-btn:hover { background: rgba(0,0,0,0.12); color: #333; }

/* 分类标签 */
.category-wrap { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cat-btn {
  padding: 7px 16px; border-radius: 999px; font-size: 13px; cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.7); background: rgba(255,255,255,0.15);
  color: #fff; transition: all .2s; font-weight: 600; backdrop-filter: blur(2px);
}
.cat-btn:hover, .cat-btn.active { background: #fff; color: var(--primary); border-color: #fff; }
.cat-btn { display: inline-flex; align-items: center; gap: 5px; }
.cat-num {
  font-style: normal; font-size: 11px; font-weight: 600; opacity: .72;
  background: rgba(0,0,0,0.10); padding: 1px 5px; border-radius: 6px;
}
.cat-btn.active .cat-num, .cat-btn:hover .cat-num { background: rgba(17,17,17,0.12); }

/* ===== 合集索引（纯文字列表，一行一列，窄卡片）===== */
.coll-host { display: block; }
.coll-summary {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  width: max-content; max-width: min(560px, 100%);
  font-size: 11.5px; color: var(--text-secondary);
  background: rgba(17,17,17,0.06);
  border: 1px solid rgba(17,17,17,0.16);
  border-radius: 9px; padding: 8px 12px; margin-bottom: 12px;
}
.coll-summary b { color: var(--primary); font-weight: 800; font-size: 12.5px; }
.coll-summary i { width: 1px; height: 11px; background: rgba(17,17,17,0.25); }
.coll-list { display: flex; flex-direction: column; gap: 8px; width: max-content; max-width: min(560px, 100%); }
.coll-day {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 0 1px; padding-left: 2px;
}
.coll-day:first-child { margin-top: 0; }
.coll-day-date { font-size: 11.5px; font-weight: 800; color: #555555; letter-spacing: .2px; }
.coll-day-num { font-size: 10.5px; color: #9A9A9A; }
.coll-day::after { content: ''; flex: 1; height: 1px; background: #EEEEEE; }
.coll-row {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--border, #EEEEEE); border-radius: 10px;
  padding: 10px 12px; transition: box-shadow .2s, border-color .2s;
  cursor: pointer;
}
.coll-row:hover { border-color: rgba(17,17,17,0.35); box-shadow: 0 4px 16px rgba(17,17,17,0.10); }
.coll-row:hover .coll-open { text-decoration: underline; }
.coll-idx {
  width: 24px; height: 24px; flex: 0 0 24px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #3A3A3A, #000000); color: #fff;
  font-size: 11px; font-weight: 700;
}
.coll-main { flex: 1 1 auto; min-width: 0; }
.coll-title { font-size: 13px; font-weight: 700; color: #1A1A1A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coll-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.coll-copy {
  border: 1px solid rgba(17,17,17,0.35); background: rgba(17,17,17,0.06);
  color: var(--primary); font-size: 11.5px; font-weight: 600;
  padding: 4px 9px; border-radius: 7px; cursor: pointer; transition: all .18s; white-space: nowrap;
}
.coll-copy:hover { background: rgba(17,17,17,0.14); }
.coll-copy.done { background: #111111; border-color: #111111; color: #fff; }
.coll-open { font-size: 11.5px; font-weight: 600; color: var(--primary); text-decoration: none; padding: 4px 2px; white-space: nowrap; }
.coll-open:hover { text-decoration: underline; }

/* ===== 内容区 ===== */
.main-wrapper { max-width: 1200px; margin: 0 auto; padding: 24px 12px 40px; }
.main { width: 100%; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.section-title { font-size: 19px; font-weight: 800; }
.refresh-btn {
  background: none; border: none; color: var(--primary);
  font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 4px; font-weight: 600;
}
.refresh-btn .ico { font-size: 15px; transition: transform .4s; }
.refresh-btn:hover .ico { transform: rotate(180deg); }
.refresh-btn.loading { pointer-events: none; opacity: .6; }
.refresh-btn.loading .ico { animation: spin .8s linear infinite; transform: none; }

/* 卡片网格：移动端优先 2~3 列 */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* 卡片 */
.card {
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: var(--card-shadow); transition: transform .2s, box-shadow .2s;
}
.card:active { transform: scale(0.97); }
.card:hover { box-shadow: var(--card-hover); transform: translateY(-3px); }
.card-poster { position: relative; aspect-ratio: 2/3; overflow: hidden; background: #EDEDED; }
.card-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-badge {
  position: absolute; top: 6px; left: 6px;
  background: #111111; color: #fff; font-size: 10px;
  padding: 2px 7px; border-radius: 5px; font-weight: 700;
}
.card-episodes {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  padding: 20px 6px 5px;
}
.card-episodes span { color: #fff; font-size: 10px; background: rgba(17,17,17,0.85); padding: 2px 6px; border-radius: 4px; }
.card-body { padding: 7px; }
.card-title { font-size: 12.5px; font-weight: 600; line-height: 1.35; height: 34px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-desc { font-size: 10.5px; color: var(--text-tertiary); margin-top: 4px; }
.card-actions { display: flex; align-items: center; gap: 5px; margin-top: 7px; }
.jump-btn, .copy-link-btn {
  flex: 1 1 0; min-width: 0; box-sizing: border-box;
  padding: 7px 2px; border-radius: 7px; border: none; font-family: inherit;
  font-size: 11.5px; font-weight: 700; line-height: 1.2; white-space: nowrap;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s, color .2s;
}
/* 主按钮：直接跳转（黑底白字） */
.jump-btn { background: var(--primary); color: #fff; text-decoration: none; }
.jump-btn:hover { background: var(--accent); }
.jump-btn.is-disabled { background: #C9C9C9; cursor: not-allowed; }
/* 次按钮：复制链接（白底黑描边） */
.copy-link-btn { background: #fff; color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); }
.copy-link-btn:hover { background: var(--primary); color: #fff; }

.loading-spinner { grid-column: 1/-1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 50px 16px; color: #888; font-weight: 700; min-height: 160px; }
.loading-spinner .spinner-icon { width: 30px; height: 30px; border: 3px solid #E5E5E5; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin-bottom: 12px; }

/* 首屏骨架 */
.sk-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--card-shadow); }
.sk-poster { aspect-ratio: 2/3; background: linear-gradient(90deg, #EEEEEE 25%, #F7F7F7 37%, #EEEEEE 63%); background-size: 400% 100%; animation: shimmer 1.3s ease-in-out infinite; }
.sk-line { height: 9px; border-radius: 4px; margin: 8px 7px; background: linear-gradient(90deg, #EEEEEE 25%, #F7F7F7 37%, #EEEEEE 63%); background-size: 400% 100%; animation: shimmer 1.3s ease-in-out infinite; }
.sk-line.w80 { width: 80%; }
.sk-line.w55 { width: 55%; margin-bottom: 10px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.no-results { text-align: center; padding: 50px 16px; color: var(--text-secondary); }
.no-results .nr-ico { font-size: 40px; margin-bottom: 10px; }
.hidden { display: none !important; }

/* ===== 关于我们 ===== */
.about-container { background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 22px; }
.about-header { text-align: center; margin-bottom: 24px; }
.about-logo { width: 56px; height: 56px; margin-bottom: 12px; }
.about-header h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.about-slogan { font-size: 13px; color: var(--text-secondary); }
.about-cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.about-card { background: var(--light); border-radius: 10px; padding: 16px; border-left: 4px solid var(--primary); }
.about-card-icon { font-size: 22px; margin-bottom: 8px; }
.about-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.about-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.about-card ul { list-style: none; }
.about-card ul li { font-size: 13px; color: var(--text-secondary); line-height: 1.9; padding-left: 14px; position: relative; }
.about-card ul li::before { content: ''; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; background: var(--primary); border-radius: 50%; }
.about-footer-text { text-align: center; margin-top: 22px; font-size: 13px; color: var(--text-tertiary); }

/* ===== 页脚 ===== */
.footer { background: #fff; border-top: 1px solid #E5E5E5; padding: 18px 14px; }
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-top p { font-size: 13px; color: var(--text-tertiary); }
.footer-bottom p { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }

/* 加载更多 */
.load-more {
  display: block; margin: 22px auto 8px; padding: 11px 30px;
  border: 1.5px solid var(--primary); background: #fff; color: var(--primary);
  border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .2s, color .2s;
}
.load-more:hover { background: var(--primary); color: #fff; }
.load-more[hidden] { display: none; }

/* ===== 移动端底部 Tab 栏（App 化） ===== */
.bottom-tab {
  display: none; /* 桌面端隐藏，移动端显示 */
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid #E5E5E5;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  padding-bottom: env(safe-area-inset-bottom);
}
.tab-item {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 2px 6px; color: var(--text-tertiary); text-decoration: none;
  font-size: 10.5px; font-weight: 600; letter-spacing: -.2px; white-space: nowrap;
}
.tab-item > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tab-item .tab-ico { font-size: 19px; line-height: 1; }
.tab-item.active { color: var(--primary); }

/* ===== 转存弹窗 ===== */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9999; align-items: center; justify-content: center; padding: 16px; }
.modal-overlay.show { display: flex; }
.qr-box { background: #fff; border-radius: 16px; padding: 26px 22px; max-width: 320px; width: 100%; position: relative; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.modal-close { position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 22px; color: #9C9C9C; cursor: pointer; }
.modal-close:hover { color: #3A3A3A; }
.qr-tip-top { font-size: 13px; color: #111111; font-weight: 700; margin-bottom: 12px; }
.save-title { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 14px; line-height: 1.4; max-height: 40px; overflow: hidden; }
#qrCanvas { display: inline-block; padding: 8px; background: #fff; border-radius: 8px; }
.qr-tip-bottom { margin-top: 14px; font-size: 12px; color: var(--text-tertiary); line-height: 1.6; }
.fid-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; background: var(--light); border-radius: 8px; padding: 8px 10px; }
.fid-text { flex: 1; font-size: 11px; color: var(--text-secondary); word-break: break-all; text-align: left; font-family: monospace; }
.fid-label { flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--text-tertiary); background: rgba(17,17,17,0.10); padding: 3px 7px; border-radius: 5px; }
.copy-btn { background: var(--primary); color: #fff; border: none; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; flex-shrink: 0; }
.copy-btn:hover { background: var(--accent); }
.copy-btn.done { background: #fff; color: #111; box-shadow: inset 0 0 0 1.5px #111; }
.quark-link { display: inline-block; margin-top: 14px; color: var(--primary); text-decoration: none; font-weight: 700; font-size: 13px; }
.alt-link { margin-left: 14px; color: var(--text-tertiary); font-weight: 600; }
.alt-link:hover { color: var(--primary); }

/* ===== 资源求助：Hero 入口按钮 ===== */
.hero-tools { margin-top: 12px; display: flex; justify-content: center; }
.req-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,0.16); border: 1.5px solid rgba(255,255,255,0.72);
  color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .3px;
  backdrop-filter: blur(2px); transition: all .2s;
}
.req-btn:hover { background: #fff; color: var(--primary); border-color: #fff; transform: translateY(-1px); }
.req-btn:active { transform: translateY(0); }
.req-ico { font-size: 14px; }

/* ===== 资源求助弹窗 ===== */
.req-box {
  background: #fff; border-radius: 16px; padding: 24px 22px 20px;
  max-width: 520px; width: 100%; position: relative; text-align: left;
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
  max-height: calc(100vh - 32px); overflow-y: auto;
}
.req-head { margin-bottom: 14px; padding-right: 20px; }
.req-title { font-size: 17px; font-weight: 800; color: var(--text-primary); }
.req-sub { font-size: 12px; color: var(--text-tertiary); margin-top: 5px; line-height: 1.5; }
.req-label {
  display: block; font-size: 13px; font-weight: 700; color: var(--text-primary);
  margin: 14px 0 7px;
}
.req-label i { color: #111111; font-style: normal; }
.req-input, .req-textarea {
  width: 100%; box-sizing: border-box; border: 1.5px solid #E5E5E5; border-radius: 10px;
  padding: 11px 12px; font-size: 13.5px; color: var(--text-primary); outline: none;
  background: #FAFAFA; transition: border-color .2s, background .2s; font-family: inherit;
}
.req-input:focus, .req-textarea:focus { border-color: var(--primary); background: #fff; }
.req-textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
.req-count { text-align: right; font-size: 11px; color: var(--text-tertiary); margin-top: 4px; }
.req-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.req-rules {
  margin-top: 14px; background: #F7F7F7; border: 1px solid #EEEEEE;
  border-radius: 10px; padding: 11px 13px;
}
.req-rules-t { font-size: 12.5px; font-weight: 700; color: var(--text-secondary); margin-bottom: 6px; }
.req-rules ul { margin: 0; padding-left: 16px; }
.req-rules li { font-size: 12px; color: var(--text-tertiary); line-height: 1.75; }
.req-hint { min-height: 18px; font-size: 12px; color: #111111; margin-top: 8px; }
.req-submit {
  width: 100%; margin-top: 10px; padding: 12px; border: none; border-radius: 10px;
  background: var(--primary);
  color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background .2s, transform .1s;
}
.req-submit:hover { background: var(--accent); }
.req-submit:active { transform: scale(.995); }
.req-submit:disabled { opacity: .6; cursor: default; }
.req-submit.ghost { background: #F1F1F1; color: var(--text-secondary); margin-top: 16px; }
.req-success { text-align: center; padding: 16px 0 6px; }
.req-success[hidden] { display: none; }
.rs-ico { font-size: 34px; }
.rs-t { font-size: 16px; font-weight: 800; color: var(--text-primary); margin-top: 8px; }
.rs-no { font-size: 12.5px; color: var(--text-tertiary); margin-top: 6px; }
.rs-no b { color: var(--primary); letter-spacing: .5px; }
.rs-tip { font-size: 12.5px; color: var(--text-tertiary); line-height: 1.7; margin: 10px 6px 0; }

/* ===== 平板及以上：放大网格与间距 ===== */
@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .card-title { font-size: 13.5px; height: 38px; }
  .main-wrapper { padding: 32px 16px 48px; }
}
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .hero { padding: 56px 16px 44px; }
  .hero h2 { font-size: 30px; }
  .about-cards { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .card-actions .jump-btn, .card-actions .copy-link-btn { font-size: 12.5px; padding: 8px 4px; }
}

/* ===== 移动端（<=768px）专属：显示底部 Tab、汉堡菜单 ===== */
@media (max-width: 768px) {
  .header-left h1 { display: none; }
  .header-logo { display: none; }
  .header-left .mobile-logo { display: block; }
  .header-right .header-link { display: none; }
  .mobile-menu-btn { display: block; }
  .hero { padding: 28px 12px 22px; }
  .hero h2 { font-size: 21px; }
  .hero p { font-size: 13px; margin-bottom: 14px; }
  .category-wrap { gap: 6px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; justify-content: flex-start; padding-bottom: 2px; }
  .cat-btn { padding: 6px 13px; font-size: 12.5px; white-space: nowrap; flex-shrink: 0; }
  .main-wrapper { padding: 18px 10px 90px; } /* 给底部 Tab 留白 */
  .grid { gap: 8px; }
  .card-body { padding: 6px; }
  .card-title { font-size: 12px; height: 32px; }
  .card-desc { display: none; }
  .jump-btn, .copy-link-btn { padding: 6px 2px; font-size: 10.5px; }
  .section-title { font-size: 17px; }
  .bottom-tab { display: flex; }
  .footer { padding-bottom: 80px; } /* 避免被 Tab 遮挡 */
}

/* 合集索引 · 移动端（宽度受限） */
@media (max-width: 640px) {
  .req-box { padding: 20px 16px 16px; border-radius: 14px; }
  .req-title { font-size: 16px; }
  .req-textarea { min-height: 84px; }
  .coll-summary { font-size: 11px; padding: 7px 10px; gap: 7px; margin-bottom: 10px; }
  .coll-summary b { font-size: 12px; }
  .coll-list { max-width: 100%; gap: 7px; }
  .coll-day { margin: 8px 0 1px; }
  .coll-day-date { font-size: 11px; }
  .coll-row { gap: 8px; padding: 9px 10px; border-radius: 9px; }
  .coll-idx { width: 22px; height: 22px; flex-basis: 22px; font-size: 10.5px; border-radius: 6px; }
  .coll-title { font-size: 12.5px; }
  .coll-actions { gap: 4px; }
  .coll-copy { padding: 4px 7px; font-size: 11px; }
  .coll-open { font-size: 11px; padding: 2px 0; }
}

/* ===== SSR / SEO 页面（服务端渲染的分类页 / 详情页 / 搜索页） ===== */
.header-brand {
  font-size: 17px; font-weight: 800; color: var(--text-primary);
  text-decoration: none; letter-spacing: .2px;
}
.seo-page { max-width: 1080px; margin: 0 auto; padding: 20px 16px 40px; }
.seo-head { margin: 8px 0 18px; }
.seo-head h1 { font-size: 24px; font-weight: 700; }
.seo-sub { color: var(--text-secondary); margin-top: 6px; font-size: 14px; }
.seo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.seo-card {
  display: block; background: #fff; border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--text-primary); box-shadow: var(--card-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.seo-card:hover { transform: translateY(-3px); box-shadow: var(--card-hover); }
.card-cover { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #EEEEEE; display: block; }
.seo-card-body { padding: 10px 12px 12px; }
.seo-card-title { font-size: 14px; font-weight: 600; line-height: 1.35; }
.seo-card-tag { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }
.seo-catnav {
  max-width: 1080px; margin: 0 auto; padding: 14px 16px 28px;
  font-size: 13px; color: var(--text-secondary); line-height: 2;
}
.seo-catnav a { color: var(--primary); text-decoration: none; margin: 0 6px; }
.seo-catnav a:hover { text-decoration: underline; }
.seo-catnav .sep { color: var(--text-tertiary); margin: 0 2px; }

/* 详情页 */
.detail-head { margin-bottom: 16px; }
.detail-head h1 { font-size: 22px; font-weight: 700; }
.detail-cover { width: 160px; max-width: 40%; border-radius: var(--radius); margin-top: 12px; box-shadow: var(--card-shadow); }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--text-secondary); font-size: 14px; margin: 12px 0; }
.detail-actions { margin: 10px 0 18px; }
.detail-transfer {
  display: inline-block; background: var(--primary);
  color: #fff; text-decoration: none; padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: 15px;
}
.detail-transfer:hover { background: var(--accent); }
.detail-nolink { color: var(--text-tertiary); }
.detail-back { font-size: 14px; }
.detail-back a { color: var(--primary); text-decoration: none; }
.detail-back a:hover { text-decoration: underline; }

/* 首页页脚分类导航 */
.footer-cats { margin-top: 12px; font-size: 13px; color: var(--text-tertiary); }
.footer-cats a { color: var(--primary); text-decoration: none; margin: 0 4px; }
.footer-cats a:hover { text-decoration: underline; }
.footer-actions { margin-top: 8px; font-size: 13px; color: var(--text-tertiary); }
.footer-actions a { color: var(--primary); text-decoration: none; margin: 0 3px; font-weight: 600; }
.footer-actions a:hover { text-decoration: underline; }
.footer-actions span { margin: 0 2px; }
