/* ============================================================
   AI 中转站导航 · 样式表（兼容版）
   不用 CSS 变量、不用 grid、不用 flex gap，老内核浏览器也能正常显示
   ============================================================ */

* { -webkit-box-sizing: border-box; box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: #fafafa; color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px; line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
a { color: #0071e3; text-decoration: none; }
img { max-width: 100%; border: 0; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ---------- 顶栏 ---------- */
.nav-header {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 100;
  height: 52px; line-height: 52px; white-space: nowrap;
  background: #ffffff; border-bottom: 1px solid rgba(0,0,0,.07);
  padding: 0 20px; overflow: hidden;
}
.nav-header .logo {
  float: left; font-size: 16px; font-weight: 700; color: #1d1d1f;
  margin-right: 18px;
}
.nav-header .nav-links { float: left; }
.nav-header .nav-links a {
  display: inline-block; font-size: 14px; color: #6e6e73; margin-right: 14px;
}
.nav-header .nav-actions { float: right; }

/* ---------- 通用按钮 ---------- */
.btn, .btn-primary, .btn-secondary {
  display: inline-block; line-height: 34px; height: 34px; padding: 0 16px;
  border-radius: 17px; font-size: 14px; text-align: center;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  vertical-align: middle; -webkit-appearance: none;
}
.btn-primary, .btn.btn-primary { background: #0071e3; color: #fff; font-weight: 600; border-color: #0071e3; }
.btn-primary:hover, .btn.btn-primary:hover { background: #0077ed; }
.btn-secondary, .btn { background: #f2f2f5; color: #1d1d1f; border-color: #e2e2e6; }
.btn-secondary:hover, .btn:hover { background: #eaeaee; }
.icon-btn {
  width: 32px; height: 32px; line-height: 32px; padding: 0;
  border-radius: 16px; background: #f2f2f5; border: 1px solid #e2e2e6;
  color: #6e6e73; cursor: pointer; text-align: center;
}

/* ---------- 顶部 hero ---------- */
.hero-section {
  text-align: center; padding: 34px 20px 8px; max-width: 1200px; margin: 0 auto;
}
.hero-section h1 { font-size: 30px; font-weight: 700; margin: 0 0 10px; letter-spacing: -.02em; }
.hero-section p { font-size: 14px; color: #86868b; margin: 0; }

/* ---------- 搜索 ---------- */
.search-wrap {
  position: relative; max-width: 560px; margin: 20px auto 0;
}
.search-wrap input {
  width: 100%; height: 44px; line-height: 44px; padding: 0 16px 0 42px;
  border-radius: 22px; border: 1px solid #e2e2e6; background: #fff;
  font-size: 15px; color: #1d1d1f; outline: none;
  -webkit-appearance: none;
}
.search-wrap input:focus { border-color: #0071e3; }
.search-wrap .search-icon {
  position: absolute; left: 15px; top: 0; height: 44px; line-height: 44px;
  color: #a1a1a6; font-size: 15px; pointer-events: none;
}

/* ---------- chips ---------- */
.chips { text-align: center; margin-top: 16px; }
.filter-chip {
  display: inline-block; line-height: 30px; padding: 0 14px; margin: 4px;
  border-radius: 15px; border: 1px solid #e2e2e6; background: #fff;
  color: #6e6e73; font-size: 13px; cursor: pointer;
}
.filter-chip.on { background: #0071e3; border-color: #0071e3; color: #fff; }

/* ---------- 排序栏 ---------- */
.sort-bar {
  max-width: 1200px; margin: 22px auto 8px; padding: 0 20px;
  overflow: hidden;
}
.sort-bar .sort-label { float: left; font-size: 13px; color: #86868b; line-height: 32px; }
.sort-bar select {
  float: right; height: 32px; line-height: 32px; padding: 0 10px;
  border-radius: 16px; border: 1px solid #e2e2e6; background: #fff;
  color: #1d1d1f; font-size: 13px; outline: none; margin-left: 8px;
}
.view-switch { float: right; margin-left: 8px; }
.view-switch button {
  display: inline-block; height: 32px; line-height: 30px; padding: 0 12px;
  border: 1px solid #e2e2e6; background: #fff; color: #86868b;
  font-size: 12px; cursor: pointer;
}
.view-switch button:first-child { border-radius: 16px 0 0 16px; }
.view-switch button:last-child { border-radius: 0 16px 16px 0; border-left: 0; }
.view-switch button.on { background: #0071e3; border-color: #0071e3; color: #fff; }

/* ---------- 分区 ---------- */
.cat-block { max-width: 1200px; margin: 0 auto; padding: 14px 20px 4px; }
.section-title { font-size: 19px; font-weight: 700; margin: 10px 0 4px; color: #1d1d1f; }
.section-title .cnt { font-size: 12px; color: #a1a1a6; font-weight: 400; margin-left: 8px; }
.section-desc { font-size: 13px; color: #86868b; margin: 0 0 14px; }

/* ---------- 卡片网格：用 inline-block，不依赖 grid ---------- */
.card-grid { font-size: 0; margin: 0 -7px; }
.card-grid .site-card {
  display: inline-block; vertical-align: top;
  width: 33.333%; padding: 0 7px; margin: 0 0 14px;
  font-size: 15px;
}
.card-grid .site-card > .site-card-inner { }

/* 单列 / 两列切换 */
.sections.cols-1 .card-grid .site-card { width: 100%; }
.sections.cols-2 .card-grid .site-card { width: 50%; }

/* ---------- 卡片 ---------- */
.sc-in {
  background: #fff; border: 1px solid #ececf0; border-radius: 14px;
  padding: 14px; position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  min-height: 118px;
}
.sc-in:hover { box-shadow: 0 4px 14px rgba(0,0,0,.07); }

/* 卡片顶部一行：分类 + 标记（float，不靠 flex） */
.card-top { overflow: hidden; margin-bottom: 10px; min-height: 20px; }
.card-cat {
  float: left; font-size: 11px; line-height: 20px; padding: 0 9px;
  border-radius: 10px; background: #f0f0f5; color: #6e6e73;
}
.card-cat.t-free { background: #e8f8ec; color: #1a7f3c; }
.card-cat.t-paid { background: #fff4e0; color: #a86400; }
.card-cat.t-official { background: #e8f0fe; color: #0071e3; }

.mark-btn {
  float: right; font-size: 11px; line-height: 20px; height: 22px; padding: 0 10px;
  border-radius: 11px; border: 1px solid #e2e2e6; background: #fff;
  color: #86868b; cursor: pointer; -webkit-appearance: none; white-space: nowrap;
}
.mark-btn:hover { border-color: #0071e3; color: #0071e3; }
.mark-btn.on { background: #0071e3; border-color: #0071e3; color: #fff; }

/* 卡片头：图标 + 文字（float 布局） */
.card-header { overflow: hidden; }
.card-icon {
  float: left; width: 42px; height: 42px; line-height: 42px; text-align: center;
  border-radius: 11px; background: #f5f5f7; overflow: hidden; margin-right: 12px;
  font-size: 17px; font-weight: 700; color: #0071e3;
}
.card-icon img { width: 100%; height: 100%; display: block; }
.card-icon.big { width: 56px; height: 56px; line-height: 56px; font-size: 22px; border-radius: 14px; }
.card-icon.xl { width: 68px; height: 68px; line-height: 68px; font-size: 26px; border-radius: 16px; }
.card-info { margin-left: 54px; }
.card-title { font-size: 15px; font-weight: 600; color: #1d1d1f; margin-bottom: 3px; word-break: break-word; }
.card-desc {
  font-size: 13px; color: #86868b; line-height: 1.5; word-break: break-word;
  white-space: pre-line;
  /* 最多两行，超出省略，避免长介绍把卡片撑高 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 39px;
}

/* 卡片底部：评分 + 标签 */
.card-meta { overflow: hidden; margin-top: 12px; }
.card-rating { float: left; font-size: 13px; color: #86868b; }
.card-rating .star { color: #dcdce0; cursor: pointer; font-size: 14px; padding: 0 1px; }
.card-rating .star.on { color: #ff9500; }
.card-rating .num { margin-left: 4px; color: #86868b; }
.card-tags { float: right; font-size: 0; }
.card-tags .tag { margin-left: 5px; }

.tag {
  display: inline-block; font-size: 11px; line-height: 20px; padding: 0 8px;
  border-radius: 10px; background: #f0f0f5; color: #6e6e73;
  vertical-align: middle; font-weight: 400;
}
.tag.t-free, .tag.free { background: #e8f8ec; color: #1a7f3c; }
.tag.t-paid, .tag.paid { background: #fff4e0; color: #a86400; }
.tag.t-official, .tag.official { background: #e8f0fe; color: #0071e3; }
.tag.t-lock, .tag.pending { background: #ffeceb; color: #c9271e; }
.tag.t-used { background: #e8f0fe; color: #0071e3; }
.tag.live { background: #e8f0fe; color: #0071e3; }
.tag.off { background: #f0f0f5; color: #6e6e73; }

/* 标记过的卡片：明显区分 */
.sc-in.used { background: #eceef1; border: 1px dashed #b4b8bf; box-shadow: none; }
.sc-in.used .card-icon { opacity: .45; }
.sc-in.used .card-title { color: #86868b; }
.sc-in.used .card-desc { color: #a1a1a6; }
.sc-in.used .card-rating .num { color: #a1a1a6; }
.sc-in.used:after {
  content: '已用过'; position: absolute; left: 0; top: 0;
  font-size: 10px; line-height: 1; padding: 5px 9px 6px 8px;
  background: #0071e3; color: #fff; border-radius: 14px 0 10px 0;
}

/* 收藏按钮（详情页用） */
.fav-btn {
  border: 1px solid #e2e2e6; background: #fff; color: #86868b;
  border-radius: 15px; height: 30px; line-height: 28px; padding: 0 12px;
  font-size: 13px; cursor: pointer;
}
.fav-btn.on { background: #ffeceb; border-color: #ff3b30; color: #ff3b30; }

/* 空状态 */
.empty { text-align: center; color: #a1a1a6; font-size: 14px; padding: 40px 0; }
.empty.small { padding: 18px 0; font-size: 13px; }

/* ---------- 页脚 ---------- */
.site-footer {
  max-width: 1200px; margin: 40px auto 0; padding: 22px 20px 40px;
  border-top: 1px solid #ececf0; text-align: center;
  font-size: 12px; color: #a1a1a6; line-height: 1.8;
}

/* ---------- 登录区 ---------- */
#authArea { float: right; position: relative; }
.user-chip {
  display: inline-block; line-height: 30px; height: 30px; padding: 0 12px;
  border-radius: 15px; background: #f2f2f5; border: 1px solid #e2e2e6;
  font-size: 13px; color: #1d1d1f; cursor: pointer;
  max-width: 130px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; vertical-align: middle;
}
.user-menu {
  display: none; position: fixed; right: 12px; top: 56px; z-index: 999;
  min-width: 150px; background: #fff; border: 1px solid #e2e2e6;
  border-radius: 12px; padding: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.14);
}
.user-menu.on { display: block; }
.user-menu a {
  display: block; padding: 9px 12px; border-radius: 8px;
  font-size: 14px; line-height: 1.4; color: #1d1d1f;
}
.user-menu a:hover { background: #f5f5f7; }
.vip-badge {
  display: inline-block; margin-left: 5px; padding: 0 6px; line-height: 16px;
  border-radius: 5px; font-size: 10px; font-weight: 700; color: #fff;
  background: #ff9f0a; vertical-align: 1px;
}

/* ---------- 弹窗 ---------- */
.modal {
  display: none; position: fixed; left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.35); z-index: 500; overflow-y: auto;
  padding: 40px 16px;
}
.modal.on { display: block; }
.modal-box {
  position: relative; max-width: 420px; margin: 0 auto;
  background: #fff; border-radius: 16px; padding: 22px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.modal-box.wide { max-width: 620px; }
.modal-box h3 { font-size: 18px; margin: 0 0 14px; color: #1d1d1f; }
.modal-box p { font-size: 13px; color: #86868b; margin: 0 0 12px; }
.modal-box input, .modal-box select, .modal-box textarea {
  display: block; width: 100%; padding: 10px 12px; margin-bottom: 10px;
  border: 1px solid #e2e2e6; border-radius: 10px; background: #fafafa;
  font-size: 14px; color: #1d1d1f; outline: none; -webkit-appearance: none;
}
.modal-box input:focus, .modal-box select:focus, .modal-box textarea:focus {
  border-color: #0071e3; background: #fff;
}
.modal-box textarea { resize: vertical; min-height: 70px; }
.close-x {
  position: absolute; right: 14px; top: 10px; font-size: 22px; line-height: 1;
  color: #a1a1a6; cursor: pointer;
}
.modal-box .grid2 { overflow: hidden; }
.modal-box .grid2 > label { float: left; width: 48%; margin-right: 4%; margin-bottom: 10px; }
.modal-box .grid2 > label:nth-child(even) { margin-right: 0; }
.modal-box label { display: block; font-size: 12px; color: #86868b; }
.modal-box label input, .modal-box label select, .modal-box label textarea { margin-top: 4px; }
.modal-box label.chk { margin-top: 10px; font-size: 13px; color: #6e6e73; }
.modal-box label.chk input { display: inline-block; width: auto; margin: 0 6px 0 0; }
.msg { font-size: 13px; margin-top: 8px; color: #86868b; }
.msg.ok { color: #1a7f3c; }
.msg.err { color: #c9271e; }

/* ---------- 详情页（服务端自带样式，这里只兜底） ---------- */
.detail-wrap { max-width: 760px; margin: 0 auto; padding: 20px 16px 60px; }
.back { display: inline-block; font-size: 14px; color: #0071e3; margin-bottom: 12px; }
.detail-card { background: #fff; border: 1px solid #ececf0; border-radius: 16px; padding: 22px; }
.detail-head { overflow: hidden; margin-bottom: 16px; }
.detail-head h1 { font-size: 24px; margin: 0 0 6px; }
.detail-sub { font-size: 13px; color: #86868b; }
.detail-note { font-size: 15px; line-height: 1.7; color: #3a3a3c; white-space: pre-line; margin: 0 0 14px; }
.kv { margin-bottom: 18px; }
.kv div { padding: 8px 0; border-bottom: 1px solid #f0f0f2; font-size: 14px; overflow: hidden; }
.kv span { float: left; width: 78px; color: #86868b; font-size: 13px; }
.kv b { display: block; margin-left: 78px; font-weight: 500; word-break: break-all; }
.warn { font-size: 12px; color: #a86400; background: #fff8ec; border-radius: 10px; padding: 10px 12px; margin-top: 14px; line-height: 1.6; }

/* ---------- 后台 ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 20px; }
.head { overflow: hidden; margin-bottom: 4px; }
.head h1 { float: left; font-size: 21px; margin: 0; }
.sub { font-size: 13px; color: #86868b; margin-bottom: 18px; }
.tabs { overflow: hidden; margin-bottom: 18px; }
.tabs button {
  float: left; margin: 0 6px 6px 0; padding: 7px 15px; border-radius: 16px;
  background: #fff; border: 1px solid #e2e2e6; color: #6e6e73;
  font-size: 14px; cursor: pointer;
}
.tabs button.on { background: #0071e3; border-color: #0071e3; color: #fff; }
.cards { font-size: 0; margin: 0 -5px 18px; }
.stat {
  display: inline-block; vertical-align: top; width: 16.66%;
  padding: 0 5px 10px; font-size: 14px;
}
.stat-inner { background: #fff; border: 1px solid #ececf0; border-radius: 12px; padding: 12px; }
.stat .k { font-size: 12px; color: #86868b; }
.stat .v { font-size: 20px; font-weight: 600; }
table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
th { text-align: left; color: #86868b; font-weight: 500; padding: 10px; border-bottom: 1px solid #ececf0; white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid #f0f0f2; vertical-align: middle; }
tr:hover td { background: #fafafa; }
.nm { font-weight: 600; }
button.act {
  display: inline-block; background: #f5f5f7; border: 1px solid #e2e2e6; color: #1d1d1f;
  padding: 4px 10px; border-radius: 7px; cursor: pointer; font-size: 12px; margin: 1px;
}
button.act:hover { border-color: #0071e3; }
button.act.ok { background: #e8f8ec; border-color: #34c759; color: #1a7f3c; }
button.act.danger { color: #ff3b30; }
.u { font-size: 12px; color: #86868b; word-break: break-all; max-width: 220px; display: block; }
.toast {
  position: fixed; bottom: 22px; left: 50%; margin-left: -90px; width: 180px;
  background: #fff; border: 1px solid #e2e2e6; padding: 10px 14px;
  border-radius: 12px; font-size: 13px; box-shadow: 0 8px 30px rgba(0,0,0,.12);
  display: none; z-index: 900; text-align: center;
}
.toast.on { display: block; }
.login-box {
  max-width: 360px; margin: 60px auto; background: #fff;
  border: 1px solid #ececf0; border-radius: 16px; padding: 26px;
}
.login-box input {
  display: block; width: 100%; padding: 11px 14px; margin-bottom: 10px;
  border-radius: 10px; background: #fafafa; border: 1px solid #e2e2e6;
  color: #1d1d1f; font-size: 14px; outline: none;
}
.login-box .btn-primary { width: 100%; padding: 11px; height: auto; line-height: 1.5; border-radius: 10px; }
.setbox { background: #fff; border: 1px solid #ececf0; border-radius: 16px; padding: 22px; }
.setbox h3 { font-size: 16px; margin: 0 0 6px; }
.setbox .hint { font-size: 12px; color: #86868b; margin-bottom: 16px; }
.setbox .grid2 { overflow: hidden; }
.setbox .grid2 > label { float: left; width: 48%; margin-right: 4%; margin-bottom: 12px; }
.setbox .grid2 > label:nth-child(even) { margin-right: 0; }
.setbox label { display: block; font-size: 12px; color: #86868b; }
.setbox label input, .setbox label select {
  display: block; width: 100%; margin-top: 4px; padding: 9px 12px;
  border-radius: 8px; background: #fafafa; border: 1px solid #e2e2e6;
  color: #1d1d1f; font-size: 14px; outline: none;
}

/* ---------- 个人中心 ---------- */
.me-wrap { max-width: 900px; margin: 0 auto; padding: 72px 16px 0; }
.prof { background: #fff; border: 1px solid #ececf0; border-radius: 16px; padding: 22px; overflow: hidden; }
.avatar {
  float: left; width: 60px; height: 60px; line-height: 60px; text-align: center;
  border-radius: 30px; background: #0071e3; color: #fff;
  font-size: 24px; font-weight: 600; margin-right: 16px;
}
.prof h1 { font-size: 21px; margin: 0 0 4px; }
.prof .meta { font-size: 13px; color: #86868b; }
.prof .nums { float: right; text-align: center; }
.prof .nums div { display: inline-block; margin-left: 18px; }
.prof .nums b { display: block; font-size: 19px; }
.prof .nums span { font-size: 12px; color: #86868b; }
.tabs2 { overflow: hidden; margin: 20px 0 14px; }
.tabs2 button {
  float: left; margin: 0 6px 6px 0; padding: 8px 16px; border-radius: 17px;
  background: #fff; border: 1px solid #e2e2e6; color: #6e6e73;
  font-size: 14px; cursor: pointer;
}
.tabs2 button.on { background: #0071e3; border-color: #0071e3; color: #fff; }
.item { background: #fff; border: 1px solid #ececf0; border-radius: 12px; padding: 16px; margin-bottom: 10px; overflow: hidden; }
.item .ico {
  float: left; width: 40px; height: 40px; line-height: 40px; text-align: center;
  border-radius: 10px; background: #f5f5f7; color: #0071e3; font-weight: 600;
  margin-right: 12px; overflow: hidden;
}
.item .ico img { width: 100%; height: 100%; object-fit: contain; }
.item .body { margin-left: 52px; }
.item .t { font-size: 15px; font-weight: 600; }
.item .d { font-size: 13px; color: #6e6e73; white-space: pre-line; margin-top: 3px; line-height: 1.55; }
.item .row { margin-top: 8px; font-size: 0; }
.item .row > * { margin: 0 6px 6px 0; }
.mini {
  display: inline-block; font-size: 12px; line-height: 26px; height: 28px; padding: 0 10px;
  border-radius: 8px; border: 1px solid #e2e2e6; background: #f5f5f7;
  color: #1d1d1f; cursor: pointer; text-decoration: none; vertical-align: middle;
}
.mini:hover { border-color: #0071e3; }
.mini.danger { color: #ff3b30; }
.empty2 { color: #a1a1a6; font-size: 14px; padding: 30px 0; text-align: center; }
.lv { display: inline-block; padding: 1px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; vertical-align: 2px; }
.lv-user { background: #f0f0f5; color: #6e6e73; border: 1px solid #e2e2e6; }
.lv-vip { background: #ff9f0a; color: #fff; }
.lv-admin { background: #d70015; color: #fff; }

/* ---------- 自适应 ---------- */
@media (max-width: 1024px) {
  .card-grid .site-card { width: 50%; }
  .stat { width: 25%; }
}
@media (max-width: 700px) {
  .nav-header { padding: 0 12px; }
  .nav-header .logo { font-size: 15px; margin-right: 6px; }
  .nav-actions .btn, .nav-actions .btn-secondary, .nav-actions .btn-primary {
    padding: 0 10px; font-size: 13px;
  }
  .nav-actions .icon-btn { width: 28px; height: 28px; line-height: 28px; border-radius: 14px; }
  .user-chip { max-width: 96px; padding: 0 9px; font-size: 12px; }
  .vip-badge { display: none; }
  .sections.cols-1 .card-grid .site-card { width: 100%; }
  .sections.cols-2 .card-grid .site-card { width: 50%; }
  .stat { width: 33.333%; }
  .hero-section h1 { font-size: 23px; }
  .nav-header .nav-links { display: none; }
  .prof .nums { float: none; margin-top: 14px; text-align: left; }
  .prof .nums div:first-child { margin-left: 0; }
  .modal-box .grid2 > label, .setbox .grid2 > label { width: 100%; margin-right: 0; }
  #panel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #panel table { min-width: 700px; }
  .me-wrap { padding-top: 66px; }
}
@media (max-width: 420px) {
  .stat { width: 50%; }
  /* 两列在窄屏也保持两列，只把卡片内部压缩一点 */
  .sections.cols-2 .card-grid .site-card { padding: 0 4px; margin-bottom: 8px; }
  .sections.cols-2 .sc-in { padding: 10px; border-radius: 12px; }
  .sections.cols-2 .card-icon { width: 34px; height: 34px; line-height: 34px; font-size: 14px; margin-right: 8px; border-radius: 9px; }
  .sections.cols-2 .card-info { margin-left: 42px; }
  .sections.cols-2 .card-title { font-size: 13px; }
  .sections.cols-2 .card-desc { font-size: 11px; max-height: 33px; }
  .sections.cols-2 .card-cat { font-size: 10px; padding: 0 6px; }
  .sections.cols-2 .mark-btn { font-size: 10px; padding: 0 7px; }
  .sections.cols-2 .card-tags .tag { font-size: 10px; padding: 0 6px; }
}

/* ---------- 深色模式（字面值，不依赖变量） ---------- */
html[data-theme="dark"] body { background: #1c1c1e; color: #f5f5f7; }
html[data-theme="dark"] .nav-header { background: #2c2c2e; border-bottom-color: #3a3a3c; }
html[data-theme="dark"] .nav-header .logo,
html[data-theme="dark"] .card-title,
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .hero-section h1,
html[data-theme="dark"] .user-chip,
html[data-theme="dark"] .modal-box h3,
html[data-theme="dark"] .item .t { color: #f5f5f7; }
html[data-theme="dark"] .sc-in,
html[data-theme="dark"] .item,
html[data-theme="dark"] .prof,
html[data-theme="dark"] .detail-card,
html[data-theme="dark"] .modal-box,
html[data-theme="dark"] .setbox,
html[data-theme="dark"] .login-box,
html[data-theme="dark"] .user-menu,
html[data-theme="dark"] table,
html[data-theme="dark"] .stat-inner { background: #2c2c2e; border-color: #3a3a3c; }
html[data-theme="dark"] .sc-in.used { background: #232326; border-color: #3a3a3d; }
html[data-theme="dark"] .search-wrap input,
html[data-theme="dark"] .modal-box input,
html[data-theme="dark"] .modal-box select,
html[data-theme="dark"] .modal-box textarea,
html[data-theme="dark"] .setbox input,
html[data-theme="dark"] .setbox select,
html[data-theme="dark"] .login-box input { background: #3a3a3c; border-color: #48484a; color: #f5f5f7; }
html[data-theme="dark"] .card-icon,
html[data-theme="dark"] .item .ico { background: #3a3a3c; }
html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .btn,
html[data-theme="dark"] .mini,
html[data-theme="dark"] .user-chip,
html[data-theme="dark"] .mark-btn,
html[data-theme="dark"] .filter-chip,
html[data-theme="dark"] .tabs button,
html[data-theme="dark"] .tabs2 button { background: #3a3a3c; border-color: #48484a; color: #f5f5f7; }
html[data-theme="dark"] td { border-bottom-color: #3a3a3c; }
html[data-theme="dark"] th { border-bottom-color: #3a3a3c; color: #a1a1a6; }

/* ---------- 补充：后台/个人中心零星类 ---------- */
.tag.admin, .tag.banned { background: #ffeceb; color: #c9271e; }
.form-row { margin-bottom: 10px; }
.form-row label { display: block; font-size: 12px; color: #86868b; margin-bottom: 4px; }
.form-row input, .form-row textarea, .form-row select {
  display: block; width: 100%; padding: 9px 12px; border-radius: 8px;
  background: #fafafa; border: 1px solid #e2e2e6; color: #1d1d1f;
  font-size: 14px; outline: none; -webkit-appearance: none;
}
.form-row textarea { min-height: 80px; resize: vertical; }
.head .sub { float: none; }

/* ---------- 首页搜索框 ---------- */
.search-container { position: relative; max-width: 560px; margin: 20px auto 0; }
.search-container input {
  width: 100%; height: 44px; line-height: 44px; padding: 0 16px 0 44px;
  border-radius: 22px; border: 1px solid #e2e2e6; background: #fff;
  font-size: 15px; color: #1d1d1f; outline: none; -webkit-appearance: none;
}
.search-container input:focus { border-color: #0071e3; }
.search-container .search-icon {
  position: absolute; left: 14px; top: 0; width: 20px; height: 44px;
  line-height: 44px; color: #a1a1a6; pointer-events: none;
}
.search-container .search-icon svg { display: block; margin-top: 12px; }
html[data-theme="dark"] .search-container input { background: #3a3a3c; border-color: #48484a; color: #f5f5f7; }
