/* ============================================================
   TapArcade 深色主题 · CrazyGames 风格布局
   加载顺序：style.css → custom.css → 本文件（最后加载，覆盖生效）
   ============================================================ */

:root {
  --tap-bg: #0a0a14;
  --tap-bg2: #0f0f1e;
  --tap-surface: #16162b;
  --tap-surface2: #1e1e38;
  --tap-border: #2b2b4d;
  --tap-text: #ececf6;
  --tap-muted: #9296b8;
  --tap-accent: #8e7ff5;
  --tap-accent2: #6f5df0;
  --tap-gold: #edca37;
  --tap-green: #3ecf8e;
  --tap-radius: 14px;
  --tap-rail-w: 64px;
}

html { background: var(--tap-bg); }

body {
  background-color: var(--tap-bg);
  color: var(--tap-text);
}

a { color: var(--tap-text); text-decoration: none; transition: color .15s; }
a:hover { color: var(--tap-accent); text-decoration: none; }

::selection { background: rgba(142,127,245,.35); }

/* 滚动条（桌面） */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--tap-bg2); }
::-webkit-scrollbar-thumb { background: var(--tap-surface2); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--tap-border); }

/* ---------- Bootstrap 组件深色化 ---------- */
.form-control {
  background-color: var(--tap-surface2);
  border: 1px solid var(--tap-border);
  color: var(--tap-text);
}
.form-control::placeholder { color: var(--tap-muted); }
.form-control:focus {
  background-color: var(--tap-surface2);
  color: var(--tap-text);
  border-color: var(--tap-accent);
  box-shadow: 0 0 0 3px rgba(142,127,245,.22);
}
.btn-primary {
  background-color: var(--tap-accent);
  border-color: var(--tap-accent);
  color: #fff;
  font-weight: 600;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--tap-accent2);
  border-color: var(--tap-accent2);
}
.btn-secondary {
  background-color: var(--tap-surface2);
  border-color: var(--tap-border);
  color: var(--tap-text);
}
.btn-secondary:hover { background-color: var(--tap-border); color: #fff; }
.btn-outline-secondary { color: var(--tap-muted); border-color: var(--tap-border); }
.text-muted { color: var(--tap-muted) !important; }
.text-success { color: var(--tap-green) !important; }
.text-danger { color: #f06a6a !important; }
hr { border-top-color: var(--tap-border); }
code { color: var(--tap-accent); }

/* 分页 */
.pagination .page-link {
  background-color: var(--tap-surface);
  border-color: var(--tap-border);
  color: var(--tap-text);
}
.pagination .page-link:hover { background-color: var(--tap-surface2); color: #fff; }
.pagination .page-item.active .page-link {
  background-color: var(--tap-accent);
  border-color: var(--tap-accent);
  color: #fff;
}
.pagination .page-item.disabled .page-link { background-color: var(--tap-bg2); color: var(--tap-muted); }

/* 提示框 */
.alert-info { background-color: var(--tap-surface2); border-color: var(--tap-border); color: var(--tap-text); }
.alert-warning { background-color: #3a2f14; border-color: #5c4a1e; color: #f0d9a0; }
.alert-danger { background-color: #3a1a1a; border-color: #5c2626; color: #f0b0b0; }
.alert-success { background-color: #14302a; border-color: #1e5148; color: #a8e6cf; }

/* ---------- 顶部导航 ---------- */
#mainNav {
  background-color: rgba(10,10,20,.94) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--tap-border);
  padding: .5rem 0;
  min-height: 62px;
}
#mainNav .container {
  display: flex;
  align-items: center;
  gap: 14px;
}
.navbar-brand { padding: 0; margin-right: 0; flex: 0 0 auto; }
.site-logo { max-height: 42px; width: auto; display: block; }

#navb {
  flex: 1 1 auto;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-basis: auto !important;
}
#navb .navbar-nav { flex-direction: row; align-items: center; gap: 2px; }
#navb .navbar-nav .nav-link {
  color: #c9cbe4;
  font-size: .88rem;
  font-weight: 600;
  padding: .45rem .7rem;
  border-radius: 8px;
  white-space: nowrap;
}
#navb .navbar-nav .nav-link:hover { color: #fff; background-color: var(--tap-surface2); }
.search-bar { flex: 0 1 420px; width: 420px; max-width: 42vw; margin: 0; }
.search-bar .input-group { width: 100%; }
.search-bar .form-control {
  background-color: var(--tap-surface);
  border: 1px solid var(--tap-border);
  border-right: 0;
  border-radius: 999px 0 0 999px;
  height: 38px;
  font-size: .88rem;
}
.search-bar .btn-search {
  background-color: var(--tap-surface);
  border: 1px solid var(--tap-border);
  border-left: 0;
  border-radius: 0 999px 999px 0;
  color: var(--tap-accent);
  padding: 0 14px;
}
.search-bar .btn-search:hover { background-color: var(--tap-surface2); color: #fff; }
.navbar-toggler { border-color: var(--tap-border); padding: .25rem .5rem; }
.navbar-toggler-icon { filter: invert(1); }
.navbar-dark .navbar-nav .show > .nav-link,
.navbar-dark .navbar-nav .active > .nav-link { color: #fff; }

/* 分类横条 */
.nav-categories {
  background-color: var(--tap-bg2);
  border-bottom: 1px solid var(--tap-border);
  box-shadow: none;
  padding: 8px 0;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.nav-categories::-webkit-scrollbar { display: none; }
.nav-categories .container { display: flex; gap: 6px; }
.nav-categories a {
  color: var(--tap-muted);
  font-size: .8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.nav-categories a:hover, .nav-categories a.active {
  color: #fff;
  background-color: var(--tap-surface2);
  border-color: var(--tap-border);
}

/* ---------- 左侧图标栏（桌面） ---------- */
.tap-rail {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--tap-rail-w);
  background-color: var(--tap-bg2);
  border-right: 1px solid var(--tap-border);
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 14px 0 20px;
  gap: 4px;
  z-index: 1035;
  overflow-y: auto;
  scrollbar-width: none;
}
.tap-rail::-webkit-scrollbar { display: none; }
.tap-rail-item {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 11px;
  color: var(--tap-muted);
  font-size: 17px;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: .15s;
}
.tap-rail-item:hover { color: #fff; background-color: var(--tap-surface2); }
.tap-rail-item.active { color: #fff; background-color: var(--tap-accent); }
.tap-rail-logo { margin-bottom: 14px; }
.tap-rail-logo img { width: 34px; height: 34px; border-radius: 9px; }
.tap-rail-sep { width: 26px; height: 1px; background: var(--tap-border); margin: 8px 0; }
.tap-rail-label { font-size: 9px; color: var(--tap-muted); margin-top: -2px; }

@media (min-width: 1200px) {
  body { padding-left: var(--tap-rail-w); }
  .tap-rail { display: flex; }
}

/* 分类抽屉 */
.tap-cats-drawer {
  position: fixed;
  left: var(--tap-rail-w); top: 0; bottom: 0;
  width: 300px;
  background-color: var(--tap-bg2);
  border-right: 1px solid var(--tap-border);
  transform: translateX(-110%);
  transition: transform .25s ease;
  z-index: 1034;
  padding: 22px 18px;
  overflow-y: auto;
}
.tap-cats-drawer.open { transform: translateX(0); }
.tap-cats-drawer h4 { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 14px; }
.tap-cats-drawer .tap-drawer-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.tap-cats-drawer .tap-drawer-cats a {
  font-size: .8rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--tap-surface);
  border: 1px solid var(--tap-border);
  color: var(--tap-text);
}
.tap-cats-drawer .tap-drawer-cats a:hover { border-color: var(--tap-accent); color: #fff; }
@media (max-width: 1199px) { .tap-cats-drawer { display: none; } }

/* ---------- 容器与区块 ---------- */
.container { max-width: 1280px; }
.game-container { padding-top: 18px; }
.home-h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 6px 0 20px;
}
h3.item-title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0;
  margin: 26px 0 14px;
  border: 0;
  background: transparent;
}
h3.item-title i { color: var(--tap-accent); margin-right: 6px; }

/* ---------- Hero 大图 ---------- */
.tap-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--tap-surface);
  border: 1px solid var(--tap-border);
  margin: 4px 0 30px;
  min-height: 300px;
  display: flex;
  align-items: center;
}
.tap-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 35%;
  transform: scale(1.02);
}
.tap-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,10,20,.96) 0%, rgba(10,10,20,.82) 38%, rgba(10,10,20,.25) 72%, rgba(10,10,20,.1) 100%);
  z-index: 1;
}
.tap-hero-content { position: relative; z-index: 2; padding: 40px 44px; max-width: 620px; }
.tap-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(142,127,245,.18);
  border: 1px solid rgba(142,127,245,.45);
  color: #c9bffd;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .08em;
  padding: 5px 12px; border-radius: 999px;
  margin-bottom: 14px;
}
.tap-hero-title { font-size: 2.3rem; font-weight: 800; color: #fff; line-height: 1.15; margin: 0 0 10px; }
.tap-hero-desc { color: #c3c7e2; font-size: .95rem; line-height: 1.6; margin: 0 0 22px; }
.tap-hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tap-play-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--tap-accent);
  color: #fff; font-weight: 700; font-size: 1rem;
  padding: 13px 36px; border-radius: 999px;
  border: 0; cursor: pointer;
  box-shadow: 0 8px 28px rgba(142,127,245,.42);
  transition: .18s;
}
.tap-play-btn:hover { background: var(--tap-accent2); color: #fff; transform: translateY(-2px); }
.tap-hero-meta { color: var(--tap-muted); font-size: .82rem; }
@media (max-width: 767px) {
  .tap-hero { min-height: 220px; }
  .tap-hero-content { padding: 26px 24px; max-width: 100%; }
  .tap-hero-title { font-size: 1.55rem; }
  .tap-hero-desc { font-size: .85rem; -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ---------- 横向滚动行 ---------- */
.tap-row { margin: 0 0 34px; }
.tap-row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.tap-row-title {
  margin: 0; font-size: 1.12rem; font-weight: 700; color: #fff;
  display: inline-flex; align-items: center; gap: 9px;
}
.tap-row-title i { color: var(--tap-accent); font-size: 1rem; }
.tap-see-all { color: var(--tap-muted); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.tap-see-all:hover { color: var(--tap-accent); }
.tap-row-wrap { position: relative; }
.tap-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}
.tap-track::-webkit-scrollbar { display: none; }
.tap-arrow {
  position: absolute;
  top: 42%;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(22,22,43,.92);
  border: 1px solid var(--tap-border);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 6;
  opacity: 0;
  transition: .18s;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.tap-row-wrap:hover .tap-arrow { opacity: 1; }
.tap-arrow:hover { background: var(--tap-accent); border-color: var(--tap-accent); }
.tap-arrow-left { left: -10px; }
.tap-arrow-right { right: -10px; }
@media (max-width: 767px) { .tap-arrow { display: none; } }

/* 游戏卡片 */
.tap-card { flex: 0 0 156px; scroll-snap-align: start; }
.tap-card-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--tap-surface2);
  border: 1px solid var(--tap-border);
}
.tap-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .3s ease;
}
.tap-card:hover .tap-card-thumb img { transform: scale(1.07); }
.tap-card-overlay {
  position: absolute; inset: 0;
  background: rgba(10,10,20,.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: .18s;
}
.tap-card:hover .tap-card-overlay { opacity: 1; }
.tap-card-play {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--tap-accent);
  color: #fff; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(142,127,245,.5);
}
.tap-card-title {
  margin-top: 8px;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--tap-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.2em;
}
.tap-card:hover .tap-card-title { color: var(--tap-accent); }
@media (max-width: 575px) { .tap-card { flex: 0 0 128px; } }

/* ---------- 首页旧网格（保留兼容） ---------- */
.list-game {
  background: var(--tap-surface);
  border: 1px solid var(--tap-border);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  transition: .18s;
}
.list-game:hover { border-color: var(--tap-accent); transform: translateY(-3px); }
.list-thumbnail { aspect-ratio: 4/3; overflow: hidden; background: var(--tap-surface2); }
.list-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.list-content { padding: 8px 10px 10px; }
.list-title { color: var(--tap-text); font-size: .8rem; font-weight: 600; line-height: 1.3; }
.star-rating { margin-top: 4px; }
.star-rating img { height: 12px; }
.item-grid { margin-bottom: 16px; }
.btn-load-more-games { background: var(--tap-surface2); border: 1px solid var(--tap-border); color: var(--tap-text); border-radius: 999px; padding: 9px 26px; font-weight: 600; }
.btn-load-more-games:hover { background: var(--tap-accent); border-color: var(--tap-accent); color: #fff; }

/* ---------- 面包屑 ---------- */
.breadcrumb-nav {
  background: transparent;
  border: 0;
  padding: 14px 0 4px;
  font-size: .8rem;
  color: var(--tap-muted);
}
.breadcrumb-nav a { color: var(--tap-muted); }
.breadcrumb-nav a:hover { color: var(--tap-accent); }
.breadcrumb-nav .bc-sep { margin: 0 7px; color: var(--tap-border); }
.breadcrumb-nav .bc-current { color: var(--tap-text); }

/* ---------- 游戏着陆页 ---------- */
.game-iframe-container {
  background: #000;
  border-radius: var(--tap-radius);
  overflow: hidden;
  border: 1px solid var(--tap-border);
  box-shadow: 0 10px 40px rgba(0,0,0,.45);
}
.game-iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  background: #000;
}
.single-info-container {
  background: var(--tap-surface);
  border: 1px solid var(--tap-border);
  border-radius: var(--tap-radius);
  padding: 18px 20px;
  margin-top: 16px;
}
.single-info-container .header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.single-title { font-size: 1.55rem; font-weight: 800; color: #fff; margin: 0 0 6px; line-height: 1.2; }
.single-info-container .header-left p { color: var(--tap-muted); font-size: .84rem; margin: 0; }
.header-right { text-align: right; }
.txt-stats { color: var(--tap-muted); font-size: .82rem; }
.txt-stats b { font-size: 1rem; }
.stats-vote { display: flex; align-items: center; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.icon-vote {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: var(--tap-surface2);
  border: 1px solid var(--tap-border);
  color: var(--tap-muted);
  cursor: pointer;
  transition: .15s;
  font-size: 14px;
}
.icon-vote:hover { color: #fff; border-color: var(--tap-accent); background: rgba(142,127,245,.15); }
.icon-vote.color-red { color: #f06a6a; border-color: rgba(240,106,106,.4); }
.vote-status { color: var(--tap-green); font-size: .8rem; }

.action-btn { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--tap-border); }
.single-icon {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--tap-surface2);
  border: 1px solid var(--tap-border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .8rem;
  color: var(--tap-text);
}
.single-icon:hover { border-color: var(--tap-accent); color: #fff; }
.single-icon i { color: var(--tap-accent); }
.social-share img {
  width: 30px; height: 30px;
  border-radius: 8px;
  opacity: .75;
  transition: .15s;
  filter: invert(1);
}
.social-share:hover img { opacity: 1; }

/* 元数据 chips */
.tap-meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tap-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--tap-surface2);
  border: 1px solid var(--tap-border);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: .78rem;
  color: var(--tap-muted);
}
.tap-chip i { color: var(--tap-accent); font-size: .72rem; }
.tap-chip a { color: var(--tap-text); font-weight: 600; }
.tap-chip a:hover { color: var(--tap-accent); }
.tap-chip .cnt { color: var(--tap-muted); font-size: .72rem; }
.tap-chip.tap-chip-accent { border-color: rgba(142,127,245,.45); background: rgba(142,127,245,.12); color: #c9bffd; }

/* 信息区块 */
.info-the-game { margin-top: 6px; }
.tap-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 28px 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.tap-section-title::before {
  content: '';
  width: 4px; height: 17px;
  background: var(--tap-accent);
  border-radius: 2px;
  flex: 0 0 4px;
}
.tap-section-title .tap-count { font-size: .75rem; color: var(--tap-muted); font-weight: 500; }
.single-description, .single-instructions {
  color: #c6cae2;
  font-size: .92rem;
  line-height: 1.75;
}
.single-description p, .single-instructions p { color: #c6cae2; }
.tap-steps { margin: 0; padding-left: 22px; color: #c6cae2; }
.tap-steps li { margin-bottom: 8px; line-height: 1.65; font-size: .92rem; }
.tap-features { list-style: none; margin: 0; padding: 0; }
.tap-features li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  color: #c6cae2;
  font-size: .9rem;
  line-height: 1.6;
}
.tap-features li::before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute; left: 0; top: 2px;
  color: var(--tap-accent);
  font-size: .8rem;
}
.tap-features li b { color: #fff; }

/* FAQ */
.tap-faq { margin-top: 4px; }
.tap-faq-item {
  background: var(--tap-surface);
  border: 1px solid var(--tap-border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
.tap-faq-item summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 600;
  font-size: .92rem;
  color: #fff;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: .15s;
}
.tap-faq-item summary::-webkit-details-marker { display: none; }
.tap-faq-item summary:hover { color: var(--tap-accent); }
.tap-faq-item summary::after {
  content: '+';
  color: var(--tap-accent);
  font-size: 1.25rem;
  font-weight: 700;
  flex: 0 0 auto;
}
.tap-faq-item[open] summary::after { content: '\2212'; }
.tap-faq-item[open] summary { border-bottom: 1px solid var(--tap-border); }
.tap-faq-body { padding: 14px 18px 16px; color: #b8bcd8; font-size: .88rem; line-height: 1.7; }

/* 右侧相关游戏列表 */
.tap-side-title-h {
  font-size: .95rem; font-weight: 700; color: #fff;
  margin: 0 0 13px;
  display: flex; align-items: center; gap: 8px;
}
.tap-side-title-h i { color: var(--tap-accent); }
.tap-side-card {
  display: flex; gap: 11px; align-items: center;
  background: var(--tap-surface);
  border: 1px solid var(--tap-border);
  border-radius: 11px;
  padding: 8px;
  margin-bottom: 10px;
  transition: .15s;
}
.tap-side-card:hover { border-color: var(--tap-accent); background: var(--tap-surface2); }
.tap-side-card img {
  width: 86px; height: 65px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 86px;
  background: var(--tap-surface2);
}
.tap-side-body { min-width: 0; }
.tap-side-title {
  font-size: .8rem; font-weight: 600; color: var(--tap-text);
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tap-side-card:hover .tap-side-title { color: var(--tap-accent); }
.tap-side-meta { font-size: .7rem; color: var(--tap-muted); margin-top: 3px; }

/* 分类/标签链接列表（游戏页 Categories 段） */
.cat-list { margin: 0; }
.cat-list .cat-link {
  display: inline-block;
  background: var(--tap-surface2);
  border: 1px solid var(--tap-border);
  border-radius: 999px;
  padding: 4px 13px;
  font-size: .78rem;
  margin: 0 6px 6px 0;
  color: var(--tap-text);
}
.cat-list .cat-link:hover { border-color: var(--tap-accent); color: #fff; }
.game-tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.game-tag-list .tag-item {
  background: var(--tap-surface2);
  border: 1px solid var(--tap-border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: .75rem;
  color: var(--tap-muted);
}
.game-tag-list .tag-item:hover { border-color: var(--tap-accent); color: #fff; }

/* ---------- 评论区深色化 ---------- */
.jquery-comments .commenting-fields,
.jquery-comments ul.main-comment-list .comment-wrapper,
.jquery-comments .commenting-fields .comment-form-field {
  background: var(--tap-surface);
  color: var(--tap-text);
  border-color: var(--tap-border);
}
.jquery-comments ul.main-comment-list .comment-wrapper { border-radius: 12px; }
.jquery-comments .comment { background: var(--tap-surface2); border-color: var(--tap-border); color: var(--tap-text); }
.jquery-comments .comment .comment-name { color: #fff; }
.jquery-comments .comment .comment-time { color: var(--tap-muted); }
.jquery-comments .commenting-fields .comment-form-field textarea,
.jquery-comments .commenting-fields .comment-form-field input {
  background: var(--tap-bg2) !important;
  color: var(--tap-text) !important;
  border: 1px solid var(--tap-border) !important;
  border-radius: 10px;
}
.jquery-comments .commenting-fields .comment-form-field textarea:focus,
.jquery-comments .commenting-fields .comment-form-field input:focus {
  border-color: var(--tap-accent) !important;
}
.jquery-comments .commenting-fields .slide .btn-primary { background: var(--tap-accent); border-color: var(--tap-accent); }
.jquery-comments .comment-options span { color: var(--tap-muted); }
.jquery-comments .comment-options span:hover { color: var(--tap-accent); }
.jquery-comments .no-comments { color: var(--tap-muted); }

/* ---------- 页脚 ---------- */
.footer {
  background: var(--tap-bg2);
  border-top: 1px solid var(--tap-border);
  padding: 40px 0 8px;
  margin-top: 46px;
}
.footer h5, .footer .footer-1 h5 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 14px; }
.footer p, .footer li { color: var(--tap-muted); font-size: .85rem; line-height: 1.7; }
.footer a { color: var(--tap-muted); }
.footer a:hover { color: var(--tap-accent); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 7px; }
.tap-footer-cats { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.tap-footer-cats a {
  font-size: .76rem;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--tap-surface);
  border: 1px solid var(--tap-border);
  color: var(--tap-muted);
}
.tap-footer-cats a:hover { border-color: var(--tap-accent); color: #fff; }
.copyright {
  background: var(--tap-bg) !important;
  color: var(--tap-muted) !important;
  border-top: 1px solid var(--tap-border);
  font-size: .8rem;
  padding: 18px 0;
}
.copyright a { color: var(--tap-muted); }
.copyright a:hover { color: var(--tap-accent); }
.copyright .dsb-panel { margin-left: 10px; opacity: .55; }

/* ---------- 登录/用户区 ---------- */
.user-profile-header .dropdown-menu {
  background: var(--tap-surface);
  border: 1px solid var(--tap-border);
  border-radius: 12px;
}
.user-profile-header .dropdown-item { color: var(--tap-text); font-size: .85rem; }
.user-profile-header .dropdown-item:hover { background: var(--tap-surface2); color: #fff; }
.user-profile-header .dropdown-divider { border-color: var(--tap-border); }

/* ---------- 搜索页/归档页 ---------- */
.search-bar-wrap .form-control { border-radius: 999px; }

/* 隐藏主题残留的白色块 */
.hp-bottom-container { margin-top: 10px; }

/* 首页站点介绍段 - 哥飞审计P0修复 2026-10-17 */
.tap-intro { margin: 20px auto 28px; max-width: 880px; text-align: center; }
.tap-intro p { margin: 0; color: #a9b4c7; font-size: 15px; line-height: 1.75; }
.tap-intro strong { color: #e8ecf4; font-weight: 600; }
@media (max-width: 640px) { .tap-intro { margin: 14px 0 20px; } .tap-intro p { font-size: 14px; } }


/* ============ 登录/注册页深色化 2026-10-17 ============
   背景：修复 login_logo 缺失导致 PHP 异常截断 HTML（白屏）后，
   亮字版 logo 在白色登录卡片上不可见，统一深色主题。 */
.login-body { background-color: #12161f !important; }
.login-form,
.register-form {
	background-color: #1a2130 !important;
	border: 1px solid #2a3444 !important;
	color: #e8ecf4 !important;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45) !important;
}
.login-form h1, .login-form h2, .login-form h3, .login-form h4,
.register-form h1, .register-form h2, .register-form h3, .register-form h4 { color: #e8ecf4; }
.login-form label, .register-form label { color: #a9b4c7; }
.login-form .form-control,
.register-form .form-control {
	background-color: #12161f;
	border: 1px solid #2a3444;
	color: #e8ecf4;
}
.login-form .form-control:focus,
.register-form .form-control:focus {
	background-color: #12161f;
	color: #e8ecf4;
	border-color: #4a5de0;
	box-shadow: 0 0 0 2px rgba(74, 93, 224, 0.25);
}
.login-form .form-control::placeholder,
.register-form .form-control::placeholder { color: #5a6678; }
.login-form a, .register-form a { color: #6ea8fe; }
.login-form a:hover, .register-form a:hover { color: #9cc2ff; }
.login-form .text-muted, .register-form .text-muted { color: #7a8699 !important; }
.login-logo img { max-width: 220px; height: auto; }
/* 深色卡片上的 bootstrap 提示条保持可读 */
.login-form .alert, .register-form .alert { border-width: 1px; }
