/* ============================================================
   拾光电影院 · 全局样式 (深色电影站风格)
   ============================================================ */
:root {
  --bg: #f5f6f8;
  --bg-soft: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #f0f1f4;
  --border: #e2e4ea;
  --text: #2b2f3a;
  --text-dim: #646a7d;
  --text-faint: #9aa0b3;
  --primary: #42bd56;
  --primary-2: #5ecf72;
  --accent: #4e9cff;
  --gold: #f5a623;
  --green: #07c160;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(31, 38, 66, .10);
  --header-h: 62px;
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  background-image:
    radial-gradient(1100px 520px at 85% -12%, rgba(66, 189, 86, .06), transparent 62%),
    radial-gradient(900px 460px at 5% -10%, rgba(78, 156, 255, .07), transparent 62%),
    linear-gradient(180deg, #fbfbfc 0%, #f5f6f8 100%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: var(--font); cursor: pointer; }
input, textarea, select { font-family: var(--font); }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 22px; padding: 0 24px;
}
.logo {
  font-size: 21px; font-weight: 800; letter-spacing: .5px;
  color: var(--text); white-space: nowrap; display: flex; align-items: center; gap: 8px;
}
.logo .star { color: var(--gold); font-size: 16px; }
.logo .logo-glow {
  font-size: 26px; font-weight: 900; letter-spacing: 1px; margin-right: 2px;
  color: #f5a623;
}
.logo .logo-sub { color: #6d7494; font-size: 18px; font-weight: 700; letter-spacing: 2px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 9px; font-size: 15px; color: var(--text-dim);
  transition: .18s; font-weight: 500;
}
.nav-links a:hover { color: var(--text); background: var(--bg-hover); }
.nav-links a.active { color: var(--text); background: rgba(66, 189, 86, .14); }
.nav-links a.active::after { content: ""; display: none; }
.header-search {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 22px; padding: 6px 8px 6px 16px; width: 240px;
  transition: .2s;
}
.header-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(66, 189, 86, .18); }
.header-search input {
  flex: 1; background: none; border: 0; outline: none; color: var(--text); font-size: 14px; width: 100%;
}
.header-search input::placeholder { color: var(--text-faint); }
.header-search button {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border: 0; color: #fff; border-radius: 16px; padding: 4px 14px; font-size: 13px; font-weight: 600;
}
.header-user { display: flex; align-items: center; gap: 12px; }
.btn-login {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; border: 0; padding: 8px 22px; border-radius: 20px; font-size: 14px; font-weight: 600;
  transition: .2s; box-shadow: 0 4px 16px rgba(66, 189, 86, .35);
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(66, 189, 86, .45); }
.user-chip {
  display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 22px; cursor: pointer;
}
.user-chip .avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; }
.user-chip .uname { font-size: 14px; font-weight: 600; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu { position: relative; }
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); padding: 6px; display: none; z-index: 50;
}
.user-menu.open .user-dropdown { display: block; }
.user-dropdown a, .user-dropdown button {
  display: flex; width: 100%; align-items: center; gap: 8px; padding: 9px 12px;
  border: 0; background: none; color: var(--text); font-size: 14px; border-radius: 8px; text-align: left;
}
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--bg-hover); }
.user-dropdown .danger { color: #e5484d; }

/* ---------------- 页面容器 ---------------- */
.page { max-width: 1280px; margin: 0 auto; padding: 28px 24px 60px; }
.page-title { font-size: 26px; font-weight: 800; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.page-sub { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden; border-radius: 20px; margin-bottom: 32px;
  padding: 56px 48px; min-height: 240px;
  background: linear-gradient(120deg, #1b0f2e 0%, #2a1240 45%, #0e1c3a 100%);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 85% 20%, rgba(66, 189, 86, .28), transparent 60%),
    radial-gradient(500px 260px at 15% 90%, rgba(78, 156, 255, .25), transparent 60%);
}
.hero h1 { font-size: 34px; font-weight: 900; position: relative; line-height: 1.3; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #5ecf72, #7eb8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { position: relative; color: var(--text-dim); margin-top: 12px; font-size: 15px; max-width: 460px; }
.hero-tags { position: relative; display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.hero-tags span {
  padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #dfe3f0;
}
.hero-poster {
  position: relative; width: 190px; height: 270px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5); transform: rotate(2deg);
}
.hero-poster span { color: #fff; font-size: 22px; font-weight: 800; text-align: center; line-height: 1.5; padding: 0 14px; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }

/* ---------------- 海报墙 ---------------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 30px 0 16px; }
.section-head h2 { font-size: 21px; font-weight: 800; }
.section-head .count { color: var(--text-faint); font-size: 13px; }
.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
.card { cursor: pointer; transition: transform .22s; position: relative; }
.card:hover { transform: translateY(-6px); }
.poster {
  position: relative; aspect-ratio: 2 / 3; border-radius: var(--radius);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .4);
}
.poster img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1; border-radius: inherit;
}
.poster::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, .16) 0%, transparent 34%),
    radial-gradient(120% 80% at 50% 115%, rgba(0, 0, 0, .5), transparent 55%);
}
.poster .ptitle {
  position: relative; color: #fff; font-weight: 800; text-align: center;
  font-size: clamp(15px, 2.2vw, 20px); line-height: 1.45; padding: 0 12px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .6); z-index: 1;
  max-height: 66%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
.poster .ptype {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: rgba(0, 0, 0, .45); backdrop-filter: blur(4px);
  color: #fff; font-size: 11px; padding: 3px 9px; border-radius: 10px; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .18);
}
.poster .prating {
  position: absolute; top: 8px; right: 10px; z-index: 2;
  background: rgba(0, 0, 0, .55); color: var(--gold); font-size: 13px; font-weight: 800;
  padding: 3px 8px; border-radius: 10px;
}
.poster .pyear {
  position: absolute; bottom: 10px; left: 0; right: 0; z-index: 2; text-align: center;
  color: rgba(255, 255, 255, .85); font-size: 12px; letter-spacing: 1px;
}
.card .cname {
  margin-top: 10px; font-size: 14px; font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; text-align: center;
}
.card .cinfo { text-align: center; color: var(--text-faint); font-size: 12px; margin-top: 2px; }
.card:hover .poster { box-shadow: 0 12px 30px rgba(0, 0, 0, .55); }

/* 加载更多 */
.load-more-wrap { display: flex; justify-content: center; margin-top: 34px; }
.btn-load {
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
  padding: 11px 40px; border-radius: 24px; font-size: 14px; transition: .2s;
}
.btn-load:hover { border-color: var(--primary); color: var(--primary-2); }
.load-end { text-align: center; color: var(--text-faint); font-size: 13px; margin-top: 30px; }
.skeleton { opacity: .35; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: .7; } }

/* ---------------- 详情页 ---------------- */
.detail-hero {
  display: flex; gap: 34px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 20px; padding: 34px;
  margin-bottom: 26px;
}
.detail-poster {
  width: 230px; height: 345px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5); position: relative; overflow: hidden;
}
.detail-poster span { color: #fff; font-size: 26px; font-weight: 800; text-align: center; line-height: 1.5; padding: 0 18px; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); z-index: 1; }
.detail-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; z-index: 1; }
.detail-poster::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.15), transparent 40%), radial-gradient(120% 80% at 50% 115%, rgba(0,0,0,.55), transparent 60%); }
.detail-info { flex: 1; min-width: 0; }
.detail-info h1 { font-size: 30px; font-weight: 900; }
.detail-info .en { color: var(--text-faint); font-size: 14px; margin-top: 2px; letter-spacing: .4px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; }
.chip {
  background: var(--bg-hover); border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 16px; font-size: 12.5px; color: var(--text-dim);
}
.chip.hot { border-color: rgba(66, 189, 86, .4); color: var(--primary-2); }
.rating-big { display: flex; align-items: baseline; gap: 6px; margin-bottom: 16px; }
.rating-big b { font-size: 44px; color: var(--gold); font-weight: 900; }
.rating-big span { color: var(--text-faint); font-size: 13px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 14px; margin-bottom: 14px; }
.kv dt { color: var(--text-faint); }
.kv dd { color: var(--text); }
.intro-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 22px 26px; margin-bottom: 22px; }
.intro-block h3 { font-size: 17px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.intro-text { color: var(--text-dim); font-size: 14.5px; line-height: 1.9; white-space: pre-wrap; }
.notes-list { display: flex; flex-direction: column; gap: 14px; }
.note-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px;
}
.note-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; color: #fff; font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.note-head .who { font-size: 13.5px; font-weight: 600; }
.note-head .time { color: var(--text-faint); font-size: 12px; margin-left: auto; }
.note-body { color: var(--text-dim); font-size: 14px; line-height: 1.8; white-space: pre-wrap; }
.empty-tip { color: var(--text-faint); text-align: center; padding: 28px 0; font-size: 14px; }

/* ---------------- 下载链接 (紧凑区块) ---------------- */
.dl-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; }
.dl-block h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }

/* ---------------- 评论区 (豆瓣小组风格) ---------------- */
.cmt-count { font-size: 13px; color: var(--text-faint); font-weight: 400; }
.cmt-box { margin-top: 18px; }
.cmt-previews { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cmt-prev { position: relative; display: inline-block; }
.cmt-prev img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); cursor: zoom-in; }
.cmt-prev b {
  position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; font-weight: 700; line-height: 20px;
  text-align: center; cursor: pointer;
}
.cmt-input-wrap { position: relative; }
.cmt-input-wrap textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: 12px; padding: 12px 60px 46px 14px; font-size: 14.5px; line-height: 1.7;
  outline: none; resize: vertical; min-height: 96px; transition: .18s;
}
.cmt-input-wrap textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(66, 189, 86, .12); }
.cmt-img-btn {
  position: absolute; left: 10px; bottom: 10px; width: 32px; height: 32px; border-radius: 8px;
  background: var(--bg-hover); border: 1px solid var(--border); font-size: 15px; line-height: 1; transition: .15s;
}
.cmt-img-btn:hover { border-color: var(--primary); }
.cmt-send {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(180, 185, 200, .5); color: rgba(255, 255, 255, .85);
  font-size: 14px; font-weight: 600;
  padding: 7px 22px; border-radius: 999px; border: 0;
  transition: all .22s; cursor: default;
}
.cmt-send.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; font-weight: 800; cursor: pointer;
  box-shadow: 0 4px 14px rgba(66, 189, 86, .4);
}
.cmt-send.active:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(66, 189, 86, .5); }
.cmt-login-tip {
  text-align: center; color: var(--text-faint); font-size: 13.5px;
  border: 1px dashed var(--border); border-radius: 12px; padding: 16px; background: var(--bg);
  cursor: pointer;
}
.cmt-login-tip:hover { border-color: var(--primary); color: var(--primary-2); }
.note-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 10px; }
.note-imgs img { width: 100%; max-height: 240px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); cursor: zoom-in; transition: .15s; }
.note-imgs img:hover { border-color: var(--primary); }
.lightbox {
  position: fixed; inset: 0; z-index: 400; background: rgba(0, 0, 0, .82);
  display: none; align-items: center; justify-content: center; padding: 30px; cursor: zoom-out;
}
.lightbox.show { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }

/* ---------------- 下载链接 ---------------- */
.dl-list { display: flex; flex-direction: column; gap: 12px; }
.dl-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 15px 20px; display: flex; flex-direction: column; gap: 9px; transition: .15s;
}
.dl-item:hover { border-color: rgba(78, 156, 255, .45); }
.dl-top { display: flex; align-items: center; gap: 10px; }
.dl-title { font-weight: 700; font-size: 14.5px; }
.dl-note { color: var(--text-dim); font-size: 13px; line-height: 1.7; }
.dl-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dl-link {
  color: var(--accent); font-size: 13px; word-break: break-all; flex: 1; min-width: 0;
  border-bottom: 1px dashed rgba(78, 156, 255, .35); padding-bottom: 1px; transition: .15s;
}
.dl-link:hover { color: #8ec3ff; border-bottom-style: solid; }
.dl-meta { display: flex; align-items: center; gap: 6px; color: var(--text-faint); font-size: 12px; white-space: nowrap; }

/* ---------------- 资源反馈 ---------------- */
.fb-row { display: flex; gap: 14px; flex-wrap: wrap; }
.fb-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
  border-radius: 999px; padding: 9px 20px; font-size: 14px; font-weight: 600; cursor: pointer; transition: .18s;
}
.fb-btn:hover { border-color: var(--primary); color: var(--primary-2); transform: translateY(-1px); }
.fb-btn .fb-count { color: var(--text-faint); font-size: 13px; }
.fb-btn.voted {
  border-color: rgba(66, 189, 86, .55); color: #2e9e48; background: rgba(66, 189, 86, .08);
  cursor: default; transform: none;
}
.fb-btn.voted .fb-count { color: #2e9e48; }
.fb-tip { color: var(--text-faint); font-size: 12.5px; margin-top: 10px; }
.fb-badge {
  display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
}
.fb-badge.warn { background: rgba(245, 181, 10, .13); color: #f5c54a; border: 1px solid rgba(245, 181, 10, .35); }
.fb-badge.danger { background: rgba(229, 72, 77, .12); color: #e5484d; border: 1px solid rgba(229, 72, 77, .4); }
.notify-unread td { background: rgba(78, 156, 255, .06); }
.notify-unread td:first-child { border-left: 3px solid var(--primary); }

/* ---------------- 论坛 ---------------- */
.board-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 22px; }
.board-tab {
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-dim);
  padding: 9px 20px; border-radius: 22px; font-size: 14px; font-weight: 600; transition: .18s;
  display: flex; align-items: center; gap: 7px;
}
.board-tab:hover { color: var(--text); border-color: #44445c; }
.board-tab.active {
  background: linear-gradient(135deg, rgba(66,189,86,.18), rgba(78,156,255,.14));
  border-color: rgba(66, 189, 86, .5); color: var(--text);
}
.board-tab .cnt { background: rgba(0,0,0,.06); font-size: 11px; padding: 1px 8px; border-radius: 10px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border: 0;
  padding: 10px 26px; border-radius: 22px; font-size: 14px; font-weight: 700; transition: .2s;
  box-shadow: 0 4px 16px rgba(66, 189, 86, .3); display: inline-flex; align-items: center; gap: 7px;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(66, 189, 86, .42); }
.post-list { display: flex; flex-direction: column; gap: 12px; }
.post-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 22px; cursor: pointer; transition: .18s;
}
.post-item:hover { border-color: rgba(66, 189, 86, .4); background: var(--bg-hover); }
.post-item .p-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.post-item .p-title { font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }
.post-item .p-title .pin { color: var(--gold); font-size: 13px; margin-right: 6px; }
.post-item .p-excerpt { color: var(--text-dim); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-item .p-meta { display: flex; align-items: center; gap: 14px; margin-top: 12px; color: var(--text-faint); font-size: 12.5px; flex-wrap: wrap; }
.post-item .p-meta .s { display: flex; align-items: center; gap: 5px; }
.board-badge { font-size: 11.5px; padding: 2px 10px; border-radius: 10px; font-weight: 600; background: rgba(78,156,255,.14); color: #2563eb; border: 1px solid rgba(78,156,255,.3); }
.who-line { display: flex; align-items: center; gap: 7px; color: var(--text-dim); font-size: 12.5px; }

/* 帖子详情 */
.post-view { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 28px 30px; margin-bottom: 22px; }
.post-view h1 { font-size: 24px; font-weight: 900; margin-bottom: 10px; }
.post-view .p-meta { display: flex; align-items: center; gap: 16px; color: var(--text-faint); font-size: 13px; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 18px; flex-wrap: wrap; }
.post-view .p-content { color: #d6d9e6; font-size: 15px; line-height: 1.95; white-space: pre-wrap; }
.reply-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.reply-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; }
.reply-item .note-head { margin-bottom: 6px; }
.reply-item .r-body { color: #c9cddd; font-size: 14.5px; line-height: 1.85; white-space: pre-wrap; }
.reply-item .r-floor { color: var(--text-faint); font-size: 12px; margin-left: auto; }

/* ---------------- 表单 / 模态 ---------------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .62); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(3px);
}
.modal-mask.show { display: flex; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px;
  width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  padding: 26px 28px; box-shadow: var(--shadow); animation: pop .22s ease;
}
@keyframes pop { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h3 { font-size: 19px; font-weight: 800; margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; }
.modal h3 .x { cursor: pointer; color: var(--text-faint); font-size: 22px; line-height: 1; }
.form-item { margin-bottom: 16px; }
.form-item label { display: block; font-size: 13.5px; color: var(--text-dim); margin-bottom: 7px; font-weight: 600; }
.form-item input, .form-item textarea, .form-item select {
  width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 11px 14px; font-size: 14.5px; outline: none; transition: .18s;
}
.form-item input:focus, .form-item textarea:focus, .form-item select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(66, 189, 86, .15);
}
.form-item textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
.form-item .row { display: flex; gap: 10px; }
.form-item .row input { flex: 1; }
.btn-code {
  background: var(--bg-hover); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 0 16px; font-size: 13.5px; white-space: nowrap; font-weight: 600;
}
.btn-code:disabled { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; padding: 13px; font-size: 15.5px; border-radius: 12px; margin-top: 6px; }

/* Toast */
#toast-wrap { position: fixed; top: 78px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
  padding: 11px 24px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow);
  animation: slideDown .25s ease; display: flex; align-items: center; gap: 8px;
}
.toast.error { border-color: rgba(229, 72, 77, .6); color: #e5484d; }
.toast.success { border-color: rgba(7, 193, 96, .55); color: #1a9e5c; }
.toast.hide { animation: fadeOut .3s ease forwards; }
@keyframes slideDown { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateY(-8px); } }

/* ---------------- 登录 / 注册页 ---------------- */
.auth-page { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card {
  width: 100%; max-width: 430px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 34px 34px 30px; box-shadow: var(--shadow);
}
.auth-card .brand { font-size: 24px; font-weight: 900; text-align: center; margin-bottom: 4px; }
.auth-card .sub { text-align: center; color: var(--text-faint); font-size: 13px; margin-bottom: 24px; }
.auth-tabs { display: flex; background: var(--bg); border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.auth-tabs button {
  flex: 1; background: none; border: 0; color: var(--text-dim); font-size: 14px;
  font-weight: 700; padding: 9px; border-radius: 9px; transition: .18s;
}
.auth-tabs button.active { background: var(--bg-card); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.auth-switch { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--text-dim); }
.auth-switch a { color: var(--primary-2); font-weight: 600; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--text-faint); font-size: 12px; margin: 22px 0 16px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.wx-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #07c160; color: #fff; border: 0; padding: 12px; border-radius: 12px;
  font-size: 15px; font-weight: 700; transition: .2s;
}
.wx-btn:hover { background: #06ad56; }
.wx-icon { width: 22px; height: 22px; }

/* 微信扫码面板 */
.wx-panel { text-align: center; padding: 8px 0 2px; }
.wx-panel .qr-box {
  width: 220px; height: 220px; margin: 6px auto 14px; background: #fff; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; padding: 14px; position: relative;
}
.wx-panel .qr-box img { width: 100%; height: 100%; object-fit: contain; }
.wx-panel .qr-box .expired {
  position: absolute; inset: 0; background: rgba(255, 255, 255, .92); border-radius: 14px;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #333;
}
.wx-panel .qr-box.expired .expired { display: flex; }
.wx-panel .sim-hint {
  background: rgba(7, 193, 96, .1); border: 1px dashed rgba(7, 193, 96, .4); color: #6ee7a8;
  font-size: 13px; border-radius: 10px; padding: 10px 14px; margin-top: 6px; line-height: 1.7;
}
.wx-panel .sim-btn {
  margin-top: 12px; background: #07c160; color: #fff; border: 0; padding: 10px 26px;
  border-radius: 20px; font-size: 14px; font-weight: 700;
}
.wx-status { color: var(--text-dim); font-size: 13px; margin-top: 10px; }
.qr-refresh { color: var(--accent); cursor: pointer; font-size: 13px; margin-top: 8px; display: inline-block; }

/* 演示验证码提示条 */
.demo-code-bar {
  background: linear-gradient(90deg, rgba(245, 181, 10, .13), rgba(66, 189, 86, .13));
  border: 1px dashed rgba(245, 181, 10, .5); color: #f5c54a;
  border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 18px;
  display: none; line-height: 1.7;
}
.demo-code-bar.show { display: block; }
.demo-code-bar b { font-size: 17px; letter-spacing: 3px; color: #ffd76a; }

/* ---------------- 搜索结果 / 杂项 ---------------- */
.empty-state { text-align: center; padding: 70px 20px; color: var(--text-faint); }
.empty-state .big { font-size: 44px; margin-bottom: 12px; }
.empty-state h3 { color: var(--text-dim); font-weight: 700; margin-bottom: 6px; }
.breadcrumb { color: var(--text-faint); font-size: 13px; margin-bottom: 18px; display: flex; gap: 8px; align-items: center; }
.breadcrumb a:hover { color: var(--primary-2); }

/* ---------------- Banner 轮播 ---------------- */
.banner-wrap {
  position: relative; border-radius: 20px; overflow: hidden; margin-bottom: 8px;
  border: 1px solid var(--border); user-select: none;
}
.banner-track { display: flex; transition: transform .55s cubic-bezier(.65,.05,.36,1); }
.banner-slide {
  position: relative; flex: 0 0 100%; min-height: 260px; overflow: hidden;
  display: flex; align-items: center; padding: 46px 52px; box-sizing: border-box;
}
.banner-slide::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 340px at 82% 12%, rgba(255,255,255,.16), transparent 55%),
    linear-gradient(120deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,.22) 100%);
}
.banner-slide .b-content { position: relative; z-index: 2; max-width: 520px; }
.banner-slide .b-tag {
  display: inline-block; font-size: 12px; font-weight: 600; color: #fff;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.25);
  padding: 4px 14px; border-radius: 16px; margin-bottom: 14px; backdrop-filter: blur(4px);
}
.banner-slide .b-title { font-size: 32px; font-weight: 900; color: #fff; line-height: 1.25; text-shadow: 0 3px 18px rgba(0,0,0,.45); }
.banner-slide .b-desc { margin-top: 12px; color: rgba(255,255,255,.88); font-size: 14.5px; line-height: 1.8; text-shadow: 0 1px 8px rgba(0,0,0,.4); max-width: 460px; }
.banner-slide .b-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  background: #fff; color: #111; font-size: 14px; font-weight: 700;
  padding: 10px 26px; border-radius: 24px; box-shadow: 0 8px 26px rgba(0,0,0,.28); transition: .2s;
}
.banner-slide .b-btn:hover { transform: translateY(-2px) scale(1.02); }
.banner-slide .b-media {
  position: absolute; right: 44px; top: 50%; transform: translateY(-50%); z-index: 3;
}
.banner-slide .b-poster {
  display: block; width: 158px; height: 237px; object-fit: cover; border-radius: 10px;
  border: 3px solid rgba(255, 255, 255, .3); box-shadow: 0 18px 46px rgba(0, 0, 0, .55);
  transform: rotate(2deg); transition: transform .3s; cursor: pointer;
}
.banner-slide .b-poster:hover { transform: rotate(0deg) scale(1.05); }
.banner-slide .b-score {
  position: absolute; top: -14px; right: -10px; z-index: 4;
  width: 62px; height: 62px; border-radius: 50%;
  background: rgba(0, 0, 0, .5); backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255, 255, 255, .55);
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff;
}
.banner-slide .b-score b { font-size: 19px; color: #ffd76a; font-weight: 900; line-height: 1.1; }
.banner-slide .b-score span { font-size: 10px; color: rgba(255, 255, 255, .8); }
.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(13,13,18,.55); color: #fff; font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); transition: .18s; opacity: .75;
}
.banner-arrow:hover { opacity: 1; background: rgba(66,189,86,.75); transform: translateY(-50%) scale(1.08); }
.banner-arrow.prev { left: 18px; }
.banner-arrow.next { right: 18px; }
.banner-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 5;
  display: flex; gap: 8px;
}
.banner-dots button {
  width: 9px; height: 9px; border-radius: 5px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.45); transition: .25s; padding: 0;
}
.banner-dots button.active { width: 26px; background: #fff; }

/* 筛选标签 (与标题同行) */
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 30px 0 16px; gap: 14px; flex-wrap: wrap; }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tab {
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-dim);
  padding: 6px 15px; border-radius: 18px; font-size: 13px; font-weight: 600; transition: .16s;
}
.filter-tab:hover { color: var(--text); border-color: #45455f; }
.filter-tab.active {
  background: linear-gradient(135deg, rgba(66,189,86,.2), rgba(78,156,255,.16));
  border-color: rgba(66,189,86,.55); color: #2e9e48;
}
.head-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.more-link {
  color: var(--primary-2); font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 2px;
  padding: 4px 10px; border-radius: 14px; transition: .15s;
  flex-shrink: 0;
}
.more-link:hover { background: rgba(66,189,86,.12); }

/* ---------------- 联系我们 ---------------- */
.contact-text { white-space: pre-wrap; line-height: 2.1; font-size: 15px; color: var(--text-dim); }
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; display: flex; flex-direction: column; gap: 8px; transition: .2s;
}
.contact-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.contact-card .cc-icon { font-size: 26px; }
.contact-card b { font-size: 15px; }
.contact-card span { color: var(--text-faint); font-size: 12.5px; }

/* ---------------- 汉堡菜单 (移动端) ---------------- */
.hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 40px; height: 40px; background: var(--bg-card); border: 1px solid var(--border);
  cursor: pointer; padding: 9px; border-radius: 10px;
}
.hamburger span { display: block; width: 22px; height: 2.5px; background: var(--text); border-radius: 2px; transition: .25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mobile-nav {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg-soft); border-bottom: 1px solid var(--border);
  padding: 10px 16px 18px; flex-direction: column; gap: 4px; z-index: 99;
  box-shadow: 0 18px 30px rgba(0, 0, 0, .35);
}
.mobile-nav.open { display: flex; }
.m-links { display: flex; flex-direction: column; }
.m-links a { padding: 12px 6px; font-size: 15px; font-weight: 600; color: var(--text-dim); border-bottom: 1px solid rgba(0, 0, 0, .07); }
.m-links a:last-child { border-bottom: 0; }
.m-links a.active { color: var(--primary-2); }
.m-search { display: flex; gap: 8px; margin-top: 8px; }
.m-search input {
  flex: 1; background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 10px 14px; font-size: 14px; outline: none; min-width: 0;
}
.m-search button {
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); border: 0; color: #fff;
  border-radius: 10px; padding: 0 20px; font-size: 14px; font-weight: 600; flex-shrink: 0;
}
.m-user-box { margin-top: 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }

@media (max-width: 860px) {
  /* 移动端顶部不折叠: 始终显示 nav-links + 搜索框, 仅隐藏汉堡按钮 */
  .hamburger, .mobile-nav-btn { display: none !important; }
  .header-inner { gap: 8px; padding: 0 12px; overflow-x: auto; flex-wrap: nowrap; }
  .logo { flex-shrink: 0; }
  .nav-links { flex: 1; min-width: 0; flex-wrap: nowrap; }
  .nav-links a { padding: 6px 10px; font-size: 13.5px; white-space: nowrap; flex-shrink: 0; }
  .header-search { width: 140px; flex-shrink: 0; }
  .user-chip { flex-shrink: 0; padding: 4px 8px; }
  .user-chip .avatar { width: 28px; height: 28px; font-size: 12px; }
}

/* ---------------- 管理后台 ---------------- */
.admin-body { background: #f5f6f8; }
.admin-gate { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.admin-layout { display: flex; min-height: calc(100vh - var(--header-h)); max-width: 1400px; margin: 0 auto; }
.admin-side {
  width: 210px; flex-shrink: 0; padding: 22px 14px;
  border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.admin-side-title { font-size: 15px; font-weight: 800; padding: 6px 12px 14px; color: var(--text-dim); letter-spacing: 1px; }
.admin-nav {
  text-align: left; background: none; border: 0; color: var(--text-dim);
  padding: 11px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 600; transition: .15s;
}
.admin-nav:hover { background: var(--bg-hover); color: var(--text); }
.admin-nav.active { background: linear-gradient(135deg, rgba(66,189,86,.16), rgba(78,156,255,.12)); color: var(--text); }
.admin-side-foot { margin-top: auto; padding: 12px; }
.admin-side-foot a { color: var(--text-faint); font-size: 13px; }
.admin-side-foot a:hover { color: var(--primary-2); }
.admin-main { flex: 1; min-width: 0; padding: 28px 30px 60px; }
.admin-h2 { font-size: 21px; font-weight: 800; margin-bottom: 20px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-input {
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 9px 14px; font-size: 14px; outline: none; width: 240px;
}
.admin-input:focus { border-color: var(--primary); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: .2s;
}
.stat-card:hover { border-color: #44445c; transform: translateY(-2px); }
.stat-icon { font-size: 26px; }
.stat-num { font-size: 32px; font-weight: 900; line-height: 1; }
.stat-label { color: var(--text-faint); font-size: 13px; }

.admin-table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.admin-table th {
  text-align: left; padding: 12px 16px; color: var(--text-faint); font-size: 12.5px; font-weight: 700;
  border-bottom: 1px solid var(--border); background: rgba(0, 0, 0, .02); white-space: nowrap;
}
.admin-table td { padding: 11px 16px; border-bottom: 1px solid rgba(0, 0, 0, .06); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: rgba(0, 0, 0, .02); }
.admin-thumb { width: 40px; height: 60px; object-fit: cover; border-radius: 6px; display: block; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.admin-sub { color: var(--text-faint); font-size: 12px; }
.admin-intro { color: var(--text-dim); font-size: 13px; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-empty { text-align: center; color: var(--text-faint); padding: 40px 0; }
.btn-sm {
  background: var(--bg-hover); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 5px 13px; font-size: 12.5px; font-weight: 600; margin-right: 6px; transition: .15s;
}
.btn-sm:hover { border-color: var(--primary); color: var(--primary-2); }
.btn-sm.danger:hover { border-color: rgba(229,72,77,.6); color: #e5484d; }

@media (max-width: 860px) {
  .admin-layout { flex-direction: column; }
  .admin-side { width: 100%; flex-direction: row; flex-wrap: wrap; height: auto; position: static; border-right: 0; border-bottom: 1px solid var(--border); padding: 12px; }
  .admin-side-title { display: none; }
  .admin-side-foot { margin-left: auto; }
  .admin-main { padding: 20px 14px 50px; }
}

/* 页脚 */
.site-footer {
  border-top: 1px solid var(--border); padding: 26px 0 34px; text-align: center;
  color: var(--text-faint); font-size: 12.5px; margin-top: 30px;
}
.site-footer b { color: var(--text-dim); }

/* 滚动条 */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #33334a; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #45456a; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 翻页器 (豆瓣风格 5×2 多页) ---------------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 28px 0 16px; }
.pager-arrow {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-dim); font-size: 14px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: .15s;
}
.pager-arrow:hover:not(:disabled) { color: var(--primary); border-color: var(--primary); background: rgba(66,189,86,.06); }
.pager-arrow:disabled { opacity: .35; cursor: not-allowed; }
.pager-dots { display: flex; gap: 6px; align-items: center; }
.pager-dots button {
  width: 8px; height: 8px; border-radius: 4px;
  background: var(--border); border: 0; padding: 0; cursor: pointer;
  transition: all .25s;
}
.pager-dots button.active { background: var(--primary); width: 22px; }

@media (max-width: 720px) {
  /* 顶部紧凑 (logo + nav + 搜索 + 用户) */
  .site-header { --header-h: 50px; }
  .header { height: 50px; }
  .header-inner { gap: 6px; padding: 0 8px; overflow-x: auto !important; flex-wrap: nowrap !important; }
  .logo { gap: 2px; flex-shrink: 0; }
  .logo .logo-glow { font-size: 14px !important; letter-spacing: 0 !important; }
  .logo .logo-sub { display: none !important; }
  .nav-links { gap: 0; flex-shrink: 0; }
  .nav-links a { padding: 3px 5px; font-size: 11.5px; white-space: nowrap; }
  .header-search { width: 88px; padding: 2px 4px 2px 10px; flex-shrink: 0; }
  .header-search input { font-size: 11.5px; }
  .header-search input::placeholder { font-size: 11.5px; }
  .header-search button { padding: 2px 7px; font-size: 11px; }
  .user-chip { padding: 1px 5px; font-size: 11px; gap: 3px; flex-shrink: 0; }
  .user-chip .avatar { width: 22px; height: 22px; font-size: 10px; }
  .user-chip .name { display: none; }
  .btn-login { font-size: 12px; padding: 3px 10px; }

  /* banner 扁平小 */
  .banner { margin-top: 12px; }
  .banner-slide { padding: 18px 16px; min-height: 110px; }
  .banner-slide .b-title { font-size: 18px; }
  .banner-slide .b-tag { font-size: 10.5px; padding: 2px 7px; }
  .banner-slide .b-poster { width: 54px; height: 81px; border-width: 1.5px; right: 14px; bottom: 14px; }
  .banner-slide .b-desc, .banner-slide .b-score, .banner-slide .b-btn { display: none; }
  .banner-dots button { width: 6px; height: 6px; }
  .banner-dots button.active { width: 16px; }
  .banner-arrow { display: none; }

  .card .title { font-size: 12.5px; }
  .card .meta { font-size: 10.5px; gap: 4px; }
  .card .rating { font-size: 11px; }

  /* section-head 紧凑 */
  .section-head { margin: 20px 0 12px; gap: 8px; }
  .section-head h2 { font-size: 15.5px; }
  .more-link { font-size: 13px; padding: 3px 8px; }

  /* 翻页器紧凑 */
  .pager { gap: 8px; margin: 18px 0 10px; }
  .pager-arrow { width: 26px; height: 26px; font-size: 13px; }
  .pager-dots button { width: 6px; height: 6px; }
  .pager-dots button.active { width: 16px; }

  /* page padding 收紧 */
  .page { padding: 16px 12px 40px; }
}
