/* 深色主题收口：统一兜住历史遗留的浅色底、空图片位与低对比文字，避免出现“白框看不清内容”。 */

body[data-app-view] .history-chip-list button {
  border-color: rgba(151, 180, 216, 0.24);
  background: rgba(11, 21, 34, 0.9);
  color: var(--ink);
}

body[data-app-view] .history-chip-list button:hover {
  border-color: rgba(97, 247, 154, 0.45);
  background: rgba(97, 247, 154, 0.12);
  color: #eafff2;
}

body[data-app-view] .history-chip-list small {
  color: rgba(188, 205, 227, 0.62);
}

/* 费率区间表：去掉浅灰/米色横条，改为深色细纹，百分比使用高对比薄荷色。 */
body[data-app-view] .rate-band-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.045);
}

body[data-app-view] .rate-band-row.is-current {
  border-color: rgba(97, 247, 154, 0.4);
  background: rgba(97, 247, 154, 0.14);
}

body[data-app-view] .rate-band-row span,
body[data-app-view] .rate-band-head {
  color: rgba(214, 230, 248, 0.78);
}

body[data-app-view] .rate-band-row b,
body[data-app-view] .asset-balance-grid strong,
body[data-app-view] .personal-task-stats strong,
body[data-app-view] .quote-box strong,
body[data-app-view] .price-amount,
body[data-app-view] .public-game-pricing strong,
body[data-app-view] .service-tags b,
body[data-app-view] .game-detail-tags span,
body[data-app-view] .task-tag-row .task-game-tag,
body[data-app-view] .type-tag.is-owner,
body[data-app-view] .report-note,
body[data-app-view] .referral-user-avatar,
body[data-app-view] .personal-menu-mark {
  color: #8effb8;
}

body[data-app-view] .hot-search-strip button {
  border-color: rgba(151, 180, 216, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

body[data-app-view] .account-credit {
  background: rgba(97, 247, 154, 0.14);
  color: #d9ffe8 !important;
}

body[data-app-view] .account-credit i {
  color: rgba(217, 255, 232, 0.55);
}

body[data-app-view] .account-credit .is-warning {
  color: #ffc48a !important;
}

body[data-app-view] .nav-button:hover {
  border-color: rgba(97, 247, 154, 0.28);
  background: rgba(97, 247, 154, 0.1);
  color: #eafff2;
}

body[data-app-view] .main-nav a.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
}

body[data-app-view] .main-nav .nav-button-download {
  margin-left: 0.4rem;
  border: 1px solid rgba(99, 230, 255, 0.28);
  border-radius: 999px;
  padding: 0.34rem 0.78rem;
  background: linear-gradient(135deg, rgba(99, 230, 255, 0.12), rgba(139, 139, 255, 0.08));
  color: #bdf6ff !important;
  font-size: 0.97em;
  letter-spacing: 0.02em;
  text-shadow: 0 0 16px rgba(99, 230, 255, 0.22);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

body[data-app-view] .main-nav .nav-button-download:hover {
  border-color: rgba(99, 230, 255, 0.58) !important;
  background: linear-gradient(135deg, rgba(99, 230, 255, 0.2), rgba(139, 139, 255, 0.14)) !important;
  color: #effdff !important;
}

@media (max-width: 820px) {
  body[data-app-view] .main-nav .nav-button-download { display: none !important; }
}

body[data-app-view] .account-menu .button {
  border-color: rgba(151, 180, 216, 0.22);
  background: rgba(12, 23, 39, 0.9);
  color: var(--ink);
}

/* 权限清单的完成勾选：亮绿底改用深色字，避免白字压亮绿看不清。 */
body[data-app-view] .unlock-checklist .is-done b {
  background: #62f79a;
  color: #042313 !important;
  text-shadow: none;
}

/* 编辑器画布：空图片位不再使用白色斜纹，改为深色描边占位，一眼能看懂这是待上传空位。 */
body.ui-block-edit-mode img.ui-slot-empty,
body.ui-block-edit-mode [data-ui-slot].ui-slot-empty:not([data-ui-slot="global.pageBackground"]) {
  border-radius: 10px;
  background:
    repeating-linear-gradient(45deg, rgba(97, 247, 154, 0.1) 0 8px, rgba(7, 15, 25, 0.86) 8px 16px) !important;
  box-shadow: inset 0 0 0 2px rgba(97, 247, 154, 0.42) !important;
  color: rgba(217, 255, 232, 0.9);
}

body.ui-block-edit-mode img.ui-slot-empty {
  opacity: 1 !important;
}

/* 任务大厅右侧发布面板：给悬浮个人卡留出安全区，避免文字被遮挡。 */
body[data-app-view="tasks"] .task-publish-panel {
  padding-bottom: calc(19px + 92px);
}

/* 最终深色收口：清掉旧版残留在输入框、评价区和 AI 审核区的浅色块。 */
body[data-app-view] #quick-task-title-input,
body[data-app-view] #quick-task-description {
  border-color: rgba(125, 151, 204, 0.26);
  background: rgba(10, 17, 33, 0.9);
  color: #f2f6ff;
  font-weight: 500;
}

body[data-app-view] #quick-task-title-input::placeholder,
body[data-app-view] #quick-task-description::placeholder {
  color: #7e8aa4;
}

body[data-app-view] .ai-review-content {
  border-left-color: rgba(255, 190, 92, 0.72);
  background: rgba(63, 43, 17, 0.55);
  color: #f2e5c9;
}

body[data-app-view] .comment-avatar {
  background: rgba(28, 73, 50, 0.72);
  color: #9bffbc;
}

body[data-app-view] .comment-rating-options span {
  border-color: rgba(151, 180, 216, 0.24);
  background: rgba(8, 17, 29, 0.82);
  color: rgba(218, 232, 250, 0.72);
}

body[data-app-view] .comment-rating {
  background: rgba(255, 255, 255, 0.07);
  color: #dce9fb !important;
}

body[data-app-view] .comment-rating.good {
  background: rgba(45, 172, 100, 0.18);
  color: #8fffb6 !important;
}

body[data-app-view] .comment-rating.bad {
  background: rgba(196, 62, 72, 0.2);
  color: #ff9aa2 !important;
}

body[data-app-view] .unlock-strip {
  border-color: rgba(151, 180, 216, 0.2);
  background: linear-gradient(110deg, rgba(38, 43, 27, 0.58), rgba(7, 16, 25, 0.94));
}

.auth-back-button {
  border-color: rgba(151, 180, 216, 0.24);
  background: rgba(7, 15, 25, 0.88);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
  color: #edf6ff;
}

body[data-app-view] #global-chat-root .gchat-form-field,
body[data-app-view] #global-chat-root .gchat-form-check {
  color: rgba(218, 232, 250, 0.84);
}

body[data-app-view] #global-chat-root .gchat-profile-tags span {
  border: 1px solid rgba(112, 145, 205, 0.24);
  background: rgba(27, 48, 82, 0.72);
  color: #a9cfff;
}

body[data-app-view] #global-chat-root .gchat-profile-tags span.is-bao {
  border-color: rgba(255, 101, 116, 0.34);
  background: rgba(125, 28, 39, 0.42);
  color: #ff9aa5;
}

body[data-app-view] #global-chat-root .gchat-profile-hero-copy p,
body[data-app-view] #global-chat-root .gchat-profile-games small {
  color: rgba(188, 205, 227, 0.68);
}
/* Unified brand logo across boot, login and the live site. */
.brand-mark-logo {
  overflow: hidden;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.brand-mark-logo > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-brand-mark.brand-mark-logo {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(3, 9, 16, 0.7);
}

body[data-app-view] .topbar #site-logo-image {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 24px;
  display: block !important;
  width: 54px;
  height: 54px;
  border: 0;
  padding: 0;
  background: transparent;
  object-fit: contain;
  transform: translateY(-50%);
  filter: drop-shadow(0 7px 16px rgba(0, 0, 0, 0.38));
}

@media (max-width: 620px) {
  body[data-app-view] .topbar #site-logo-image {
    left: 10px;
    width: 42px;
    height: 42px;
  }
}

/* 举报中心：修复历史白色卡片，统一为深色玻璃与高对比文字。 */
body[data-app-view] .report-card,
body[data-app-view] .admin-report-card {
  border: 1px solid rgba(151, 180, 216, 0.2);
  background:
    radial-gradient(120% 150% at 100% 0, rgba(103, 255, 155, 0.06), transparent 46%),
    linear-gradient(145deg, rgba(17, 30, 47, 0.92), rgba(6, 13, 23, 0.96));
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  color: #e8f2ff;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

body[data-app-view] .report-card h3,
body[data-app-view] .admin-report-card h3 {
  color: #f5faff;
}

body[data-app-view] .report-card p {
  color: #dbe8f8;
}

body[data-app-view] .report-card .type-tag,
body[data-app-view] .report-card .count-badge,
body[data-app-view] .report-card .status-pill {
  border: 1px solid rgba(151, 180, 216, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #c8d9ec;
}

body[data-app-view] .report-card .type-tag {
  border-color: rgba(103, 255, 155, 0.2);
  background: rgba(103, 255, 155, 0.09);
  color: #a9ffc7;
}

body[data-app-view] .report-card .status-unpaid {
  border-color: rgba(255, 183, 94, 0.28);
  background: rgba(255, 168, 64, 0.12);
  color: #ffcb8a;
}

body[data-app-view] .report-card .status-cancelled {
  border-color: rgba(255, 120, 120, 0.26);
  background: rgba(255, 90, 90, 0.12);
  color: #ffb3b3;
}

body[data-app-view] .report-card .status-completed {
  border-color: rgba(110, 186, 255, 0.26);
  background: rgba(90, 170, 255, 0.12);
  color: #a9d8ff;
}

body[data-app-view] .report-evidence,
body[data-app-view] .report-content {
  border: 1px solid rgba(151, 180, 216, 0.14);
  background: rgba(255, 255, 255, 0.055);
  color: #c9d9ec;
}

body[data-app-view] .report-note {
  border: 1px solid rgba(103, 255, 155, 0.18);
  background: rgba(103, 255, 155, 0.1);
  color: #b9ffd0;
}

body[data-app-view] .report-card .order-detail-grid {
  border-top-color: rgba(151, 180, 216, 0.16);
  color: rgba(196, 213, 233, 0.72);
}

body[data-app-view] .report-card .order-detail-grid b {
  color: #f2f8ff;
}


/* 20261106 referral user permission pills: dark glass, readable text */
body[data-app-view] .referral-user-row .referral-permission-tags b {
  border: 1px solid rgba(151, 180, 216, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(198, 214, 234, 0.68);
  font-size: 0.78rem;
  padding: 0.15rem 0.46rem;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-app-view] .referral-user-row .referral-permission-tags b.on {
  border-color: rgba(103, 255, 155, 0.32);
  background: rgba(83, 255, 151, 0.14);
  color: #8affbd;
  box-shadow: 0 0 10px rgba(83, 255, 151, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ============================================================
   陪玩卡片 · 深色玻璃（匹配陪玩 / 搜索结果 / 任务大厅统一）
   ============================================================ */
body[data-app-view] .companion-grid { gap: 14px; }

body[data-app-view] .companion-grid .companion-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(96, 202, 255, 0.18);
  border-radius: 20px;
  padding: 16px;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(56, 140, 255, 0.15), transparent 54%),
    radial-gradient(80% 90% at 0% 100%, rgba(124, 92, 255, 0.1), transparent 58%),
    linear-gradient(155deg, rgba(14, 26, 40, 0.96), rgba(6, 12, 20, 0.98));
  color: #e8f7ff;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

body[data-app-view] .companion-grid .companion-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 12%;
  left: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 230, 255, 0.55), transparent);
  opacity: 0.7;
  pointer-events: none;
}

body[data-app-view] .companion-grid .companion-card::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -64px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 230, 255, 0.12), transparent 68%);
  pointer-events: none;
}

body[data-app-view] .companion-grid .companion-card:hover,
body[data-app-view] .companion-grid .companion-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(99, 230, 255, 0.46);
  box-shadow:
    0 26px 54px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(99, 230, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

body[data-app-view] .companion-grid .companion-avatar {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(99, 230, 255, 0.42);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(31, 118, 214, 0.85), rgba(8, 28, 58, 0.95));
  color: #fcfeff;
  font-size: 19.5px;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.35),
    0 0 0 3px rgba(99, 230, 255, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

body[data-app-view] .companion-grid .companion-avatar img { border-radius: 15px; }

body[data-app-view] .companion-grid .companion-identity strong,
body[data-app-view] .companion-grid .companion-identity > strong {
  color: #f5fdff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

body[data-app-view] .companion-grid .companion-identity > span {
  color: #7f9db2;
  font-size: 12.5px;
}

body[data-app-view] .companion-grid .companion-rating { color: #ffcf75; font-size: 12.5px; letter-spacing: 0.04em; }

body[data-app-view] .companion-grid .companion-credit strong {
  color: #7ff0c0;
  font-size: 24px;
  font-weight: 900;
  text-shadow: 0 0 18px rgba(84, 230, 168, 0.35);
}

body[data-app-view] .companion-grid .companion-credit span { color: #6f8ea1; font-size: 12.5px; }

body[data-app-view] .companion-grid .companion-bio { color: #8fa9bb; font-size: 12.5px; line-height: 1.7; }

body[data-app-view] .companion-grid .companion-game-line {
  border: 1px solid rgba(96, 202, 255, 0.14);
  border-radius: 11px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.045);
  color: #b9d7e7;
  font-size: 12.5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-app-view] .companion-grid .companion-game-line .game-name { color: #eafcff; font-weight: 800; }

body[data-app-view] .companion-grid .companion-game-line .rank-tag {
  border: 1px solid rgba(99, 230, 255, 0.22);
  background: rgba(99, 230, 255, 0.1);
  color: #a6ecff;
}

body[data-app-view] .companion-grid .service-tags b {
  border: 1px solid rgba(126, 219, 255, 0.16);
  background: rgba(99, 230, 255, 0.08);
  color: #a9e6f8;
}

body[data-app-view] .companion-grid .companion-card-footer {
  border-top: 1px solid rgba(126, 219, 255, 0.12);
  padding-top: 11px;
}

body[data-app-view] .companion-grid .card-tag-row > span {
  border: 1px solid rgba(126, 219, 255, 0.14);
  background: rgba(99, 230, 255, 0.07);
  color: #9fd3e6;
  font-size: 12.5px;
}

body[data-app-view] .companion-grid .card-escort-quote > span { color: #7c9aab; }
body[data-app-view] .companion-grid .card-escort-quote > b { color: #d6eefb; }
body[data-app-view] .companion-grid .card-escort-quote > strong { color: #ffc46b; }

body[data-app-view] .companion-grid .companion-card-actions .button {
  border: 1px solid rgba(96, 202, 255, 0.26);
  color: #f2fdff;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

body[data-app-view] .companion-grid .companion-card-actions .button-primary {
  background: linear-gradient(120deg, rgba(33, 124, 244, 0.95), rgba(58, 215, 238, 0.85));
  box-shadow: 0 10px 22px rgba(33, 124, 244, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

body[data-app-view] .companion-grid .companion-card-actions .button-secondary {
  border-color: rgba(126, 219, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #bfe6f6;
}

body[data-app-view] .companion-hover-card {
  border: 1px solid rgba(99, 230, 255, 0.26);
  background: rgba(8, 17, 28, 0.96);
  color: #dff6ff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body[data-app-view] .companion-hover-card strong { color: #f4fdff; }
body[data-app-view] .companion-hover-card span { color: #8fb0c3; }
body[data-app-view] .companion-hover-card button {
  border: 1px solid rgba(99, 230, 255, 0.2);
  background: rgba(99, 230, 255, 0.08);
  color: #c9effd;
}

/* 电脑端基础字号：相对原 18px 提升约 39%，避免电脑端正文偏小。 */
@media (min-width: 821px) {
  html {
    font-size: 25px;
  }
}

/* 客户端窗口比浏览器窄，字号单独收敛；网页端保持 25px 不变。 */
@media (min-width: 821px) {
  html.peiban-desktop-client {
    font-size: 14px !important;
  }
  html.peiban-desktop-client body {
    font-size: 14px !important;
  }
}
