/* =========================================================
   影迷投稿板块
   ========================================================= */

/* ---------- 按钮(修掉浏览器默认白底导致白字看不见的问题) ---------- */
body.articles .btn {
  background: transparent; border: 0; color: var(--text); font-family: inherit;
}
body.articles .btn-sm { padding: 8px 14px; font-size: 13px; }
body.articles .btn-primary { background: var(--accent); color: #fff; }
body.articles .btn-primary:hover { background: #ff4747; }
body.articles .btn-ghost { border: 1px solid var(--line); color: var(--text); }
body.articles .btn-ghost:hover { border-color: var(--accent); color: #fff; }

/* ---------- 两个板块切换 ---------- */
.board-switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  max-width: 1180px; margin: 26px auto 0; padding: 0 22px;
}
.bs-item {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 18px; transition: 0.2s;
}
.bs-item b { font-size: 15px; color: var(--text); }
.bs-item span { font-size: 12px; color: var(--muted); }
.bs-item:hover { border-color: rgba(47, 211, 154, 0.5); transform: translateY(-2px); }
.bs-item.active { border-color: var(--accent-2); background: rgba(247, 201, 72, 0.07); }
.bs-item.active b { color: var(--accent-2); }

/* ---------- 工具条 ---------- */
.art-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.art-tools .search-input { flex: 1 1 260px; margin: 0; }
.art-tool-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.art-filters { display: flex; flex-direction: column; gap: 10px; }
.art-count { font-size: 14px; color: var(--muted); font-weight: 400; }

/* ---------- 列表 ---------- */
.art-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.art-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 18px 16px; cursor: pointer; transition: 0.2s;
  display: flex; flex-direction: column; gap: 9px;
}
.art-card:hover { border-color: rgba(47, 211, 154, 0.5); transform: translateY(-3px); box-shadow: var(--shadow); }
.art-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.art-cat { font-size: 11px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.art-cat.c-info { background: rgba(77, 163, 255, 0.13); border-color: rgba(77, 163, 255, 0.38); color: #8ec4ff; }
.art-cat.c-trailer { background: rgba(226, 54, 54, 0.14); border-color: rgba(226, 54, 54, 0.42); color: #ff8b8b; }
.art-cat.c-lore { background: rgba(157, 107, 255, 0.14); border-color: rgba(157, 107, 255, 0.38); color: #bd9bff; }
.art-cat.c-cast { background: rgba(247, 201, 72, 0.14); border-color: rgba(247, 201, 72, 0.42); color: var(--accent-2); }
.art-cat.c-review { background: rgba(67, 209, 124, 0.13); border-color: rgba(67, 209, 124, 0.38); color: #7fe2a9; }
.art-date { font-size: 11.5px; color: var(--muted); margin-left: auto; }
.art-pin {
  position: absolute; top: -9px; left: 14px; font-size: 10.5px; padding: 2px 9px; border-radius: 999px;
  background: var(--accent-2); color: #1a1405; font-weight: 800;
}
.art-spoiler-tag { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(226, 54, 54, 0.18); color: #ff9a9a; border: 1px solid rgba(226, 54, 54, 0.45); }
.art-title { font-size: 17px; font-weight: 800; line-height: 1.45; color: var(--text); }
.art-summary { font-size: 13px; color: var(--muted); line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.art-status { font-size: 11px; padding: 3px 9px; border-radius: 999px; }
.art-status.ok { background: rgba(67, 209, 124, 0.15); color: #7fe2a9; border: 1px solid rgba(67, 209, 124, 0.4); }
.art-status.wait { background: rgba(247, 201, 72, 0.15); color: var(--accent-2); border: 1px solid rgba(247, 201, 72, 0.42); }
.art-status.no { background: rgba(226, 54, 54, 0.15); color: #ff8b8b; border: 1px solid rgba(226, 54, 54, 0.42); }
.art-note { font-size: 12.5px; color: #ffb3b3; margin-top: -6px; }
.art-admin-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* ---------- 详情 ---------- */
.art-detail {
  margin-top: 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 28px 30px 26px;
  display: flex; flex-direction: column; gap: 14px;
}
.art-detail-title { font-size: clamp(22px, 3.2vw, 30px); font-weight: 900; line-height: 1.35; }
.art-body { font-size: 15px; line-height: 2; color: #d3e0e8; }
.art-body p { margin-bottom: 12px; }
.art-links-view {
  display: flex; flex-direction: column; gap: 8px; padding: 14px 16px;
  background: rgba(47, 211, 154, 0.06); border: 1px solid rgba(47, 211, 154, 0.25); border-radius: 12px;
}
.art-links-view b { font-size: 13px; color: #8dffd0; }
.art-links-view a { font-size: 13.5px; color: #8ec4ff; word-break: break-all; }
.art-links-view a:hover { text-decoration: underline; }
.art-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px dashed var(--line); }
.art-act {
  background: none; border: 1px solid var(--line); color: var(--muted);
  font-size: 13.5px; padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: 0.18s;
}
.art-act:hover { color: #fff; border-color: var(--accent); }
.art-act.on { color: #ff8b8b; border-color: rgba(226, 54, 54, 0.55); background: rgba(226, 54, 54, 0.10); }
.art-act.on.fav { color: var(--accent-2); border-color: rgba(247, 201, 72, 0.55); background: rgba(247, 201, 72, 0.10); }

/* ---------- 评论 ---------- */
.art-comment-wrap { margin-top: 30px; }
.art-sub { font-size: 18px; margin: 22px 0 12px; color: var(--accent-2); }
.art-cm-form { margin-bottom: 18px; }

/* ---------- 投稿表单 ---------- */
.art-rules { margin: 14px 0 16px; }
.art-rules p { font-size: 13px; color: var(--muted); line-height: 1.9; }
.art-rules b { color: var(--accent-2); }
.art-textarea { min-height: 260px; font-family: inherit; line-height: 1.9; }
.art-links { margin-top: 16px; padding: 14px 16px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--line); border-radius: 12px; }
.art-links-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.art-links-head b { font-size: 13.5px; }
.art-link-row { display: grid; grid-template-columns: 160px 1fr 34px; gap: 8px; margin-bottom: 8px; }
.art-link-row input { font-size: 13px; }
.al-del {
  background: none; border: 1px solid var(--line); color: var(--muted);
  border-radius: 8px; cursor: pointer; font-size: 13px;
}
.al-del:hover { color: #ff8b8b; border-color: rgba(226, 54, 54, 0.5); }
.art-hint { font-size: 12px; color: var(--muted); line-height: 1.8; margin-top: 6px; }
.art-spoiler { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text); margin-top: 14px; }
.art-spoiler input { width: auto; }

/* ---------- 站长管理 ---------- */
.admin-modal-inline {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; max-width: 520px;
}
.admin-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .board-switch { grid-template-columns: 1fr; padding: 0 16px; }
  .art-list { grid-template-columns: 1fr; }
  .art-detail { padding: 20px 18px; }
  .art-link-row { grid-template-columns: 1fr; }
  .al-del { justify-self: end; padding: 4px 12px; }
  .art-tool-actions { width: 100%; }
  .art-tool-actions .btn { flex: 1 1 auto; }
}
