
:root {
  --bg: #faf7f2;
  --bg-2: #f4eee5;
  --panel: #ffffff;
  --panel-2: #fffdf9;
  --border: #f0e7da;
  --border-2: #e7dccb;
  --text: #3a342c;
  --muted: #9a8f7d;
  --brand1: #f97316;
  --brand2: #f59e0b;
  --brand3: #fb923c;
  --brand-deep: #c2410c;
  --ok: #16a34a;
  --warn: #f59e0b;
  --danger: #dc2626;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(180, 140, 80, .14);
  --shadow-sm: 0 4px 14px rgba(180, 140, 80, .1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(249,115,22,.08), transparent 60%),
    radial-gradient(700px 360px at -10% 20%, rgba(245,158,11,.06), transparent 60%);
  z-index: -1;
  pointer-events: none;
}
::selection { background: rgba(249,115,22,.2); }
a { color: inherit; text-decoration: none; }
img { display: block; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 18px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 249, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 18px;
  height: 60px;
  display: flex; align-items: center; gap: 18px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 20px; letter-spacing: .5px;
  color: var(--brand-deep);
  white-space: nowrap;
}
.brand-mark {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  box-shadow: 0 4px 16px rgba(249,115,22,.35);
}
.brand-mark svg { width: 17px; height: 17px; color: #fff; }
.brand-text { letter-spacing: .5px; }
.nav-links {
  display: flex; gap: 4px; flex: 1;
  overflow-x: auto; scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-link {
  padding: 7px 14px; border-radius: 999px;
  font-size: 14px; color: var(--muted);
  transition: all .2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--border); }
.nav-link.active {
  color: #fff; font-weight: 700;
  background: linear-gradient(120deg, var(--brand1), var(--brand2));
  box-shadow: 0 4px 14px rgba(249,115,22,.3);
}
.nav-search { display: flex; align-items: center; gap: 6px; }
.search-box {
  display: flex; align-items: center; gap: 6px;
  background: var(--panel); border: 1px solid var(--border-2);
  border-radius: 999px; padding: 5px 6px 5px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.search-box:focus-within { border-color: rgba(249,115,22,.5); box-shadow: 0 0 0 3px rgba(249,115,22,.1); }
.search-box input {
  background: transparent; border: 0; outline: 0;
  color: var(--text); font-size: 14px; width: 150px;
}
.search-box input::placeholder { color: var(--muted); }
.search-btn {
  border: 0; cursor: pointer;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  color: #fff; transition: transform .15s;
}
.search-btn:hover { transform: scale(1.08); }
.search-btn svg { width: 15px; height: 15px; }

/* ---------- Hero ---------- */
.hero { padding: 52px 0 26px; text-align: center; }
.hero-title {
  font-size: clamp(30px, 5.5vw, 52px);
  font-weight: 900; letter-spacing: 1px;
  color: var(--brand-deep);
  animation: heroIn .7s cubic-bezier(.22,.9,.3,1) both;
}
@keyframes heroIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.hero-sub {
  color: var(--muted); margin-top: 10px; font-size: 15px;
  animation: heroIn .7s .1s cubic-bezier(.22,.9,.3,1) both;
}
.hero-search {
  margin: 24px auto 0; max-width: 560px;
  display: flex; gap: 10px;
}
.hero-search .search-box { flex: 1; padding: 11px 12px 11px 20px; border-radius: 14px; background: var(--panel); }
.hero-search .search-box input { width: 100%; font-size: 15px; }
.hero-search .search-btn { width: 46px; height: 46px; border-radius: 14px; }
.hero-search .search-btn svg { width: 20px; height: 20px; }
.hero-stats {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
  margin-top: 22px;
  animation: heroIn .7s .2s cubic-bezier(.22,.9,.3,1) both;
}
.stat-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 16px;
  font-size: 13px; color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.stat-chip b { color: var(--brand-deep); font-size: 15px; font-weight: 800; }

/* ---------- Announcements ---------- */
.announce-bar {
  max-width: 1240px; margin: 16px auto 0; padding: 0 18px;
}
.announce-ticker {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(120deg, #fff7ed, #ffedd5);
  border: 1px solid #fed7aa;
  border-radius: 12px; padding: 10px 16px;
  font-size: 13.5px; color: #9a3412;
  overflow: hidden;
}
.announce-ticker .label {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800; color: var(--brand-deep);
}
.announce-ticker .label svg { width: 16px; height: 16px; }
.announce-ticker .content { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announce-ticker a { color: var(--brand-deep); font-weight: 600; }
.announce-ticker a:hover { text-decoration: underline; }
.announce-list { display: flex; flex-direction: column; gap: 10px; }
.announce-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 13px 16px;
  animation: rise .5s both;
}
.announce-item .icon {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  color: #fff;
}
.announce-item .icon svg { width: 17px; height: 17px; }
.announce-item .body { min-width: 0; }
.announce-item .body h4 { font-size: 14.5px; font-weight: 700; color: var(--text); }
.announce-item .body p { font-size: 13px; color: var(--muted); margin-top: 2px; white-space: pre-wrap; }
.announce-item .body a { color: var(--brand-deep); font-weight: 600; font-size: 13px; }
.announce-item .time { flex: none; font-size: 12px; color: #c9bda8; margin-left: auto; white-space: nowrap; }

/* ---------- Sections ---------- */
.section { padding: 24px 0 8px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 10px; }
.section-title {
  font-size: 20px; font-weight: 800; letter-spacing: .3px;
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ""; width: 4px; height: 20px; border-radius: 4px;
  background: linear-gradient(180deg, var(--brand1), var(--brand2));
}
.section-more { font-size: 13px; color: var(--muted); transition: color .2s; }
.section-more:hover { color: var(--brand-deep); }

/* ---------- Cards grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 18px;
}
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(106px, 1fr)); gap: 12px; }
}

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s cubic-bezier(.22,.9,.3,1), box-shadow .25s, border-color .25s;
  animation: rise .5s both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes af-fade { from { opacity: 0; } to { opacity: 1; } }
.card:hover {
  transform: translateY(-6px);
  border-color: #f5c896;
  box-shadow: 0 18px 40px rgba(180, 110, 40, .16);
}
.cover-wrap { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #f1e9dd; }
.cover-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s cubic-bezier(.22,.9,.3,1);
}
.card:hover .cover-wrap img { transform: scale(1.07); }
.cover-fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #fef3e2, #fbe2c3);
  color: rgba(180,110,40,.55); font-size: 30px; font-weight: 800;
}
.cover-fallback-sm {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #fef3e2, #fbe2c3);
  color: rgba(180,110,40,.55); font-size: 18px; font-weight: 800;
}

.badge {
  position: absolute; top: 8px; left: 8px;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.25);
  backdrop-filter: blur(4px);
  white-space: nowrap;
}
.badge-ended { background: linear-gradient(120deg, #22c55e, #16a34a); }
.badge-ongoing { background: linear-gradient(120deg, #f59e0b, #f97316); }
.badge-live { background: linear-gradient(120deg, #fb923c, #f97316); }
.badge-live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #fff; margin-right: 5px; animation: pulse 1.4s infinite; vertical-align: 1px; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.rating-badge {
  position: absolute; top: 8px; right: 8px;
  display: inline-flex; align-items: center; gap: 3px;
  background: rgba(255,255,255,.94);
  color: #b45309; font-size: 12px; font-weight: 800;
  padding: 3px 8px; border-radius: 999px;
  box-shadow: 0 3px 10px rgba(0,0,0,.18);
}
.rating-badge svg { width: 12px; height: 12px; color: #f59e0b; }

.date-badge {
  position: absolute; left: 8px; bottom: 8px;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(34, 26, 18, .62);
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .3px;
  padding: 3px 8px; border-radius: 999px;
  backdrop-filter: blur(4px);
  box-shadow: 0 3px 10px rgba(0,0,0,.22);
  white-space: nowrap;
}
.date-badge svg { width: 11px; height: 11px; }

.badge-br { inset: auto 8px 8px auto; }

.card-body { padding: 10px 11px 12px; }
.card-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14.5px; font-weight: 700; line-height: 1.35; min-height: 2.7em;
  color: var(--text);
}
.card:hover .card-title { color: var(--brand-deep); }
.card-meta { display: flex; align-items: center; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
.card-year { font-size: 12px; color: var(--muted); }
.card-dot { color: #d9cbb6; font-size: 12px; }
.card-region { font-size: 12px; color: var(--muted); }
.rating { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: var(--warn); }
.rating svg { width: 12px; height: 12px; }
.card-tags { display: flex; gap: 5px; margin-top: 7px; flex-wrap: wrap; }

.tag {
  font-size: 11px; font-weight: 600; letter-spacing: .2px;
  padding: 2px 9px; border-radius: 999px;
  color: #7c4a12;
  background: #ffedd5;
}
.genres-more { font-size: 11px; color: var(--muted); }

/* ---------- List view ---------- */
.row-list { display: flex; flex-direction: column; gap: 10px; }
.row-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, background .2s, transform .2s;
  animation: rise .45s both;
}
@media (min-width: 860px) {
  .row-item { grid-template-columns: 76px minmax(0,1.4fr) minmax(0,1fr); }
}
.row-item:hover { border-color: #f5c896; background: var(--panel-2); transform: translateX(3px); }
.row-cover { width: 72px; height: 96px; object-fit: cover; border-radius: 8px; background: #f1e9dd; }
.row-info { min-width: 0; }
.row-title { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.row-tags { display: flex; gap: 5px; margin-top: 7px; flex-wrap: wrap; }
.row-cols { display: none; gap: 10px; justify-content: flex-end; text-align: right; }
@media (min-width: 860px) { .row-cols { display: grid; grid-template-columns: repeat(5, auto); } }
.row-col { font-size: 12px; color: var(--muted); }
.row-col b { color: var(--text); font-weight: 600; display: block; margin-top: 1px; }
.row-col .rating { font-size: 13px; }

/* ---------- Filter bar ---------- */
.filterbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 22px 0 18px;
}
.filter-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filter-tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 7px 16px; border-radius: 999px;
  font-size: 13.5px; color: var(--muted);
  border: 1px solid transparent;
  transition: all .2s; white-space: nowrap;
  cursor: pointer;
}
.tab:hover { color: var(--text); border-color: var(--border-2); }
.tab.active {
  color: #fff; font-weight: 700;
  background: linear-gradient(120deg, var(--brand1), var(--brand2));
  box-shadow: 0 4px 14px rgba(249,115,22,.3);
}
.filter-selects { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.select {
  appearance: none;
  background: var(--panel) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%239a8f7d' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--border-2); border-radius: 10px;
  color: var(--text); font-size: 13px;
  padding: 8px 34px 8px 13px;
  outline: 0; cursor: pointer;
  transition: border-color .2s;
}
.select:focus { border-color: rgba(249,115,22,.5); }
.viewtoggle { display: flex; border: 1px solid var(--border-2); border-radius: 10px; overflow: hidden; background: var(--panel); }
.view-btn {
  border: 0; cursor: pointer;
  background: transparent; color: var(--muted);
  width: 40px; height: 36px;
  display: grid; place-items: center;
  transition: all .2s;
}
.view-btn svg { width: 16px; height: 16px; }
.view-btn:hover { color: var(--text); }
.view-btn.active { background: linear-gradient(120deg, var(--brand1), var(--brand2)); color: #fff; }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 34px 0 20px; flex-wrap: wrap; }
.page-btn {
  min-width: 38px; height: 38px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-2); border-radius: 10px;
  background: var(--panel); color: var(--text);
  font-size: 13.5px; cursor: pointer;
  transition: all .18s;
}
.page-btn:hover:not(.page-disabled) { border-color: rgba(249,115,22,.5); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.page-btn.active {
  background: linear-gradient(120deg, var(--brand1), var(--brand2));
  color: #fff; font-weight: 700; border-color: transparent;
  box-shadow: 0 4px 14px rgba(249,115,22,.3);
}
.page-btn.disabled, .page-btn.page-disabled { opacity: .35; pointer-events: none; }
.page-info { font-size: 13px; color: var(--muted); }

/* ---------- Detail ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); margin: 22px 0 16px; }
.breadcrumb a:hover { color: var(--brand-deep); }
.breadcrumb .sep { margin: 0 7px; opacity: .5; }
.detail-grid {
  display: grid; grid-template-columns: 300px 1fr; gap: 30px;
  align-items: start;
}
@media (max-width: 820px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-cover-wrap {
  position: relative;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow), 0 0 0 1px rgba(249,115,22,.1);
}
.detail-cover { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.detail-title { font-size: clamp(24px, 4vw, 34px); font-weight: 900; letter-spacing: .3px; line-height: 1.25; color: var(--text); }
.detail-original { color: var(--muted); font-size: 14px; margin-top: 6px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; }
.meta-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted);
  background: var(--panel); border: 1px solid var(--border-2);
  padding: 5px 12px; border-radius: 999px;
}
.meta-chip b { color: var(--text); font-weight: 600; }
.detail-tags { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.detail-desc {
  margin-top: 18px; font-size: 14.5px; color: #6f6557;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
  white-space: pre-wrap;
  box-shadow: var(--shadow-sm);
}

.detail-stats {
  display: flex; gap: 8px 16px; flex-wrap: wrap;
  margin-top: 14px; font-size: 12.5px; color: var(--muted);
}
.detail-stats b { color: var(--brand-deep); font-weight: 700; margin-right: 3px; }

.share-section { margin-top: 28px; }
.share-title { font-size: 18px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 9px; }
.share-title::before { content: ""; width: 4px; height: 18px; border-radius: 4px; background: linear-gradient(180deg, var(--brand1), var(--brand2)); }
.share-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.share-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s, border-color .22s;
  animation: rise .5s both;
}
.share-card:hover { transform: translateY(-4px); border-color: #f5c896; }
.share-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.share-logo {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff;
}
.qk .share-logo { background: linear-gradient(135deg, #38bdf8, #2563eb); box-shadow: 0 4px 14px rgba(56,189,248,.35); }
.bd .share-logo { background: linear-gradient(135deg, #f87171, #dc2626); box-shadow: 0 4px 14px rgba(239,68,68,.3); }
.xl .share-logo { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 4px 14px rgba(52,211,153,.3); }
.share-name { font-weight: 800; font-size: 15px; }
.share-sub { font-size: 12px; color: var(--muted); }
.share-link-text {
  font-size: 12.5px; color: #7a7161; word-break: break-all;
  background: #fbf6ee; border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 11px; margin-top: 8px;
}
.share-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  padding: 9px 16px; border-radius: 10px;
  transition: all .18s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(120deg, var(--brand1), var(--brand2));
  color: #fff;
  box-shadow: 0 6px 16px rgba(249,115,22,.3);
}
.btn-primary:hover { box-shadow: 0 8px 22px rgba(249,115,22,.42); transform: translateY(-2px); }
.btn-ghost { background: var(--panel); color: var(--text); border: 1px solid var(--border-2); }
.btn-ghost:hover { border-color: rgba(249,115,22,.5); color: var(--brand-deep); }
.btn-danger { background: rgba(220,38,38,.08); color: var(--danger); border: 1px solid rgba(220,38,38,.3); }
.btn-danger:hover { background: rgba(220,38,38,.14); }
.btn-sm { padding: 5px 11px; font-size: 12.5px; border-radius: 8px; }

/* ---------- Empty / 404 ---------- */
.empty {
  text-align: center; padding: 70px 20px; color: var(--muted);
}
.empty-emoji { font-size: 44px; margin-bottom: 12px; opacity: .8; }
.empty h3 { font-size: 18px; color: var(--text); margin-bottom: 8px; }
.empty p { font-size: 14px; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 60px; padding: 26px 0 34px;
  border-top: 1px solid var(--border);
  color: var(--muted); font-size: 13px;
  text-align: center;
}
.footer a:hover { color: var(--brand-deep); }
.footer .links { display: flex; gap: 16px; justify-content: center; margin-bottom: 8px; flex-wrap: wrap; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(20px);
  background: #3f3830; border: 1px solid rgba(255,255,255,.1);
  color: #fff; font-size: 13.5px;
  padding: 11px 20px; border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transition: all .3s cubic-bezier(.22,.9,.3,1);
  z-index: 999; max-width: 86vw;
  word-break: break-all;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Request page ---------- */
.req-wrap { max-width: 720px; margin: 0 auto; padding: 34px 18px 60px; }
.req-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 18px; padding: 30px 28px;
  box-shadow: var(--shadow);
  animation: rise .5s both;
}
.req-card h1 { font-size: 22px; color: var(--brand-deep); margin-bottom: 6px; }
.req-card .req-sub { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.req-field { margin-bottom: 14px; }
.req-field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.req-field label .req { color: var(--danger); }
.req-field input, .req-field select, .req-field textarea {
  width: 100%;
  background: #fffdf9; border: 1px solid var(--border-2);
  border-radius: 10px; color: var(--text);
  padding: 10px 13px; font-size: 14px; font-family: inherit;
  outline: 0; transition: border-color .2s, box-shadow .2s;
}
.req-field input:focus, .req-field select:focus, .req-field textarea:focus {
  border-color: rgba(249,115,22,.5); box-shadow: 0 0 0 3px rgba(249,115,22,.1);
}
.req-field textarea { min-height: 80px; resize: vertical; }
.req-field .hint { margin-top: 4px; }
.req-success {
  text-align: center; padding: 40px 20px;
}
.req-success .icon { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; background: linear-gradient(135deg, var(--brand1), var(--brand2)); display: grid; place-items: center; color: #fff; }
.req-success .icon svg { width: 30px; height: 30px; }
.req-success h2 { font-size: 20px; margin-bottom: 8px; }
.req-success p { font-size: 14px; color: var(--muted); }

/* ---------- Admin ---------- */
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 30px 18px 60px; }
.login-card {
  max-width: 380px; margin: 9vh auto 0;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 18px; padding: 34px 30px;
  box-shadow: var(--shadow);
  animation: rise .5s both;
}
.login-card h2 { font-size: 20px; margin-bottom: 4px; text-align: center; color: var(--brand-deep); }
.login-card .sub { font-size: 13px; color: var(--muted); text-align: center; margin-bottom: 22px; }
.login-error { color: var(--danger); font-size: 13px; text-align: center; margin-bottom: 12px; min-height: 18px; }

.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-tab {
  padding: 8px 18px; border-radius: 999px;
  font-size: 14px; color: var(--muted);
  background: var(--panel); border: 1px solid var(--border-2);
  cursor: pointer; transition: all .2s;
}
.admin-tab:hover { color: var(--text); }
.admin-tab.active {
  color: #fff; font-weight: 700;
  background: linear-gradient(120deg, var(--brand1), var(--brand2));
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(249,115,22,.3);
}

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow-sm);
  animation: rise .45s both;
}
.stat-num { font-size: 26px; font-weight: 900; color: var(--brand-deep); }
.stat-label { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.admin-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  animation: rise .5s both;
}
.admin-card h3 { font-size: 17px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.admin-card h3::before { content: ""; width: 4px; height: 16px; border-radius: 4px; background: linear-gradient(180deg, var(--brand1), var(--brand2)); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 12.5px; color: var(--muted); }
.form-group input, .form-group select, .form-group textarea {
  background: #fffdf9; border: 1px solid var(--border-2);
  border-radius: 9px; color: var(--text);
  padding: 9px 12px; font-size: 13.5px; font-family: inherit;
  outline: 0; transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: rgba(249,115,22,.5); box-shadow: 0 0 0 3px rgba(249,115,22,.1);
}
.form-group textarea { min-height: 70px; resize: vertical; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.form-actions { margin-top: 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hint { font-size: 12px; color: var(--muted); }
.file-drop {
  border: 1.5px dashed #e0c9a8;
  border-radius: 12px; padding: 26px; text-align: center;
  color: var(--muted); font-size: 13.5px;
  cursor: pointer; transition: all .2s;
  background: #fffdf9;
}
.file-drop:hover { border-color: rgba(249,115,22,.6); background: rgba(249,115,22,.04); }
.file-drop input { display: none; }

.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 760px; }
.admin-table th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 600; padding: 9px 10px; border-bottom: 1px solid var(--border-2); white-space: nowrap; }
.admin-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:hover td { background: #fffbf4; }
.admin-table .t-title { font-weight: 600; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700;
  padding: 2px 9px; border-radius: 999px;
}
.chip-new { background: #ffedd5; color: #c2410c; }
.chip-done { background: #dcfce7; color: #15803d; }

.spin { width: 16px; height: 16px; border: 2px solid rgba(120,90,40,.2); border-top-color: var(--brand-deep); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Misc ---------- */
.text-muted { color: var(--muted); }
.mt { margin-top: 8px; }
.flex { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.result-bar { font-size: 13.5px; color: var(--muted); margin-bottom: 4px; }
.result-bar b { color: var(--text); }
.link { color: var(--brand-deep); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ---------- 浮动公告卡片 ---------- */
.announce-float {
  position: fixed; top: 72px; right: 0; z-index: 90;
  display: flex; align-items: flex-start;
  transition: transform .35s cubic-bezier(.22, .9, .3, 1);
  animation: af-fade .3s both;
}
.announce-float.closed { transform: translateX(calc(100% - 24px)); }
.af-tab {
  flex: none; width: 24px; height: 44px; border: 0; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--brand1), var(--brand2));
  color: #fff;
  border-radius: 8px 0 0 8px;
  box-shadow: 0 6px 18px rgba(180, 110, 40, .3);
  transition: filter .2s ease;
}
.af-tab:hover { filter: brightness(1.08); }
.af-chev { font-size: 15px; line-height: 1; font-weight: 700; }
.af-chev-open { display: block; }
.af-chev-close { display: none; }
.announce-float.closed .af-chev-open { display: none; }
.announce-float.closed .af-chev-close { display: block; }
.announce-float-inner {
  width: 300px; max-width: calc(100vw - 40px);
  background: var(--panel);
  border: 1px solid var(--border); border-right: 0;
  box-shadow: 0 12px 32px rgba(120, 70, 20, .18);
  overflow: hidden;
}
.announce-float-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(120deg, var(--brand1), var(--brand2)); color: #fff;
}
.announce-float-head .af-bell { display: flex; align-items: center; }
.announce-float-head .af-bell svg { width: 15px; height: 15px; }
.announce-float-head .af-title { font-size: 13.5px; font-weight: 700; flex: 1; }
.announce-float-head .af-count {
  font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px;
  background: rgba(255,255,255,.25);
}
.announce-float-body { padding: 4px 0; max-height: 320px; overflow-y: auto; }
.af-item { padding: 10px 14px; border-bottom: 1px dashed var(--border-2); }
.af-item:last-child { border-bottom: 0; }
.af-item-title { font-size: 13.5px; font-weight: 700; color: var(--brand-deep); margin-bottom: 3px; }
.af-item-text {
  font-size: 12.5px; color: var(--muted); line-height: 1.6;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  word-break: break-word;
}
.af-item-text a { color: var(--brand-deep); font-weight: 600; word-break: break-all; }
.af-item-text a:hover { text-decoration: underline; }
.af-item-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; gap: 8px; }
.af-item-date { font-size: 11.5px; color: var(--muted); }
.af-item-link { font-size: 12px; font-weight: 700; color: var(--brand-deep); flex: 0 0 auto; }

/* ---------- 公告栏 ---------- */
.announce-module { display: flex; flex-direction: column; gap: 10px; }
.announce-pinned {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(120deg, rgba(249,115,22,.08), rgba(251,191,36,.08));
  border: 1px solid rgba(249,115,22,.28);
  border-radius: var(--radius); padding: 14px 16px;
  transition: all .2s;
}
.announce-pinned:hover { box-shadow: var(--shadow-sm); border-color: rgba(249,115,22,.5); }
.announce-pinned .icon, .announce-row .icon {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(120deg, var(--brand1), var(--brand2));
}
.announce-pinned .icon svg { width: 17px; height: 17px; }
.announce-pinned .ap-body { flex: 1; min-width: 0; }
.announce-pinned h4 { font-size: 15.5px; color: var(--brand-deep); margin-bottom: 3px; }
.announce-pinned .ap-body p { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.announce-pinned .ap-time { font-size: 12px; color: var(--muted); flex: 0 0 auto; }
.announce-pinned .ap-more { font-size: 12.5px; font-weight: 700; color: var(--brand-deep); flex: 0 0 auto; }
.announce-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 14px;
  transition: all .2s;
}
.announce-row:hover { border-color: rgba(249,115,22,.4); }
.announce-row .icon { width: 26px; height: 26px; }
.announce-row .icon svg { width: 13px; height: 13px; }
.announce-row .ar-body { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.announce-row .ar-body b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.announce-row .ar-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announce-row .ar-link { font-size: 12px; font-weight: 700; color: var(--brand-deep); flex: 0 0 auto; }
.announce-row .ar-time { font-size: 12px; color: var(--muted); flex: 0 0 auto; }
.announce-empty {
  text-align: center; padding: 26px 0; color: var(--muted); font-size: 13.5px;
  border: 1px dashed var(--border-2); border-radius: var(--radius);
}

/* ---------- 数据概览 ---------- */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dash-panel {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.dash-title { font-size: 14.5px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; color: var(--text); }
.dash-title::before { content: ""; width: 4px; height: 14px; border-radius: 4px; background: linear-gradient(180deg, var(--brand1), var(--brand2)); }

.cat-bars { display: flex; flex-direction: column; gap: 10px; }
.cat-bar-row { display: flex; align-items: center; gap: 10px; }
.cat-bar-label { flex: 0 0 52px; font-size: 12.5px; color: var(--muted); }
.cat-bar-track { flex: 1; height: 10px; background: #f3ead9; border-radius: 999px; overflow: hidden; }
.cat-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand1), var(--brand2)); min-width: 4px; transition: width .6s ease; }
.cat-bar-num { flex: 0 0 30px; text-align: right; font-size: 12.5px; font-weight: 700; color: var(--brand-deep); }

.hot-list { display: flex; flex-direction: column; }
.hot-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 4px; border-radius: 9px; transition: background .2s;
}
.hot-row:hover { background: #fffbf4; }
.hot-rank { flex: 0 0 22px; font-size: 12.5px; font-weight: 800; color: var(--brand-deep); }
.hot-rank:first-child { color: var(--brand2); }
.hot-cover {
  flex: 0 0 auto; width: 36px; height: 48px; border-radius: 6px; object-fit: cover;
  background: linear-gradient(120deg, #fde8d0, #f6d6ae);
}
.hot-cover-fallback {
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-deep); font-weight: 800; font-size: 16px;
}
.hot-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hot-info b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-info span { font-size: 12px; color: var(--muted); }
.hot-views { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.hot-views svg { width: 13px; height: 13px; }
.hot-empty { padding: 18px 0; text-align: center; color: var(--muted); font-size: 13px; }

.recent-list { display: flex; flex-direction: column; }
.recent-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px dashed var(--border-2); }
.recent-row:last-child { border-bottom: 0; }
.recent-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-cat { font-size: 12px; color: var(--muted); }
.recent-time { flex: 0 0 auto; font-size: 12px; color: var(--muted); }

.req-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.req-filter {
  padding: 5px 14px; border-radius: 999px; font-size: 12.5px;
  color: var(--muted); background: var(--panel);
  border: 1px solid var(--border-2); cursor: pointer; transition: all .2s;
}
.req-filter:hover { color: var(--text); }
.req-filter.active { color: #fff; font-weight: 700; background: linear-gradient(120deg, var(--brand1), var(--brand2)); border-color: transparent; }

/* ---------- 求资源 ---------- */
.req-hero { text-align: center; padding: 34px 0 26px; }
.req-hero-icon {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(135deg, var(--brand1), var(--brand2));
  box-shadow: 0 10px 24px rgba(249,115,22,.3);
  animation: rise .5s both;
}
.req-hero-icon svg { width: 30px; height: 30px; }
.req-hero-title { font-size: 26px; color: var(--brand-deep); margin-bottom: 8px; }
.req-hero-sub { font-size: 14px; color: var(--muted); max-width: 520px; margin: 0 auto; }
.req-steps {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin-top: 22px; font-size: 13px; color: var(--muted);
}
.req-steps .step { display: inline-flex; align-items: center; gap: 7px; }
.req-steps .step b {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fff;
  background: linear-gradient(120deg, var(--brand1), var(--brand2));
}
.req-steps .step-arrow { color: var(--brand2); font-weight: 800; }
.req-card-title { font-size: 18px; margin-bottom: 16px; }
.req-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-opt { cursor: pointer; }
.chip-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip-opt span {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  font-size: 13px; color: var(--muted);
  background: #fffdf9; border: 1px solid var(--border-2); transition: all .2s;
}
.chip-opt:hover span { border-color: rgba(249,115,22,.5); }
.chip-opt input:checked + span {
  color: #fff; font-weight: 700;
  background: linear-gradient(120deg, var(--brand1), var(--brand2));
  border-color: transparent; box-shadow: 0 3px 10px rgba(249,115,22,.25);
}
.req-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.note-counter { font-size: 12px; color: var(--muted); }
.req-id { color: var(--brand-deep); font-size: 16px; }

@media (max-width: 640px) {
  .nav-inner { height: 56px; gap: 10px; }
  .brand { font-size: 17px; }
  .nav-search input { width: 92px; }
  .card-body { padding: 8px 9px 10px; }
  .card-title { font-size: 13px; min-height: 2.4em; }
  .badge { font-size: 10px; padding: 2px 6px; top: 6px; left: 6px; }
  .rating-badge { top: 6px; right: 6px; font-size: 11px; }
  .date-badge { left: 6px; bottom: 6px; font-size: 9.5px; padding: 2px 6px; }
  .badge-br { inset: auto 6px 6px auto; }
  .section-title { font-size: 17px; }
  .filterbar { margin: 16px 0 14px; }
  .hero { padding: 36px 0 20px; }
  .req-card { padding: 24px 18px; }
  .req-hero { padding: 26px 0 18px; }
  .req-hero-title { font-size: 21px; }
  .req-steps { gap: 6px; font-size: 12px; }
  .req-row { grid-template-columns: 1fr; gap: 0; }
  .dash-grid { grid-template-columns: 1fr; }
  .announce-float { top: 64px; }
  .announce-float-inner { width: 260px; max-width: calc(100vw - 40px); }
  .announce-pinned { flex-wrap: wrap; }
  .announce-pinned .ap-time { display: none; }
  .announce-row .ar-sub { display: none; }
}
