/* ================= 电脑维修铺 全量样式 ================= */
/* ---- 分享图手写字体（自托管，OFL 开源协议） ---- */
@font-face {
  font-family: 'Ma Shan Zheng';
  src: url('/static/fonts/ma-shan-zheng.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'ZCOOL KuaiLe';
  src: url('/static/fonts/zcool-kuaile.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Long Cang';
  src: url('/static/fonts/long-cang.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'ZCOOL XiaoWei';
  src: url('/static/fonts/zcool-xiaowei.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ---- AI 处理中全屏加载遮罩 ---- */
#busy-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.38);
  z-index: 400; display: none; align-items: center; justify-content: center;
  animation: fadein .15s ease;
}
#busy-overlay.show { display: flex; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.busy-box {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: rgba(30,30,30,.92); padding: 22px 32px; border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,.18); border-top-color: #07c160;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.busy-text { color: #eee; font-size: 14px; }
:root {
  --bg: #ededed;
  --bubble-left: #ffffff;
  --bubble-right: #95ec69;
  --notice: #9a9a9a;
  --accent: #07c160;
  --danger: #fa5151;
  --gold: #ffd54a;
}
html, body { height: 100%; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #d8d8d8;
  display: flex; justify-content: center;
}
#app {
  width: 100%; max-width: 520px;
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--bg);
  box-shadow: 0 0 30px rgba(0,0,0,.15);
  position: relative;
}

/* ================= 侧边栏 ================= */
#sidebar {
  background: #2e2e2e; color: #cfcfcf;
  display: flex; flex-direction: column;
  padding: 8px 10px;
  gap: 6px;
  flex-shrink: 0;
  border-bottom: 1px solid #3a3a3a;
  transition: width .2s ease;
}
.side-top { display: flex; align-items: center; justify-content: space-between; }
.side-brand { display: flex; align-items: center; gap: 6px; justify-content: center; padding: 4px 0; flex: 1; }
.brand-icon { width: 26px; height: 26px; color: var(--gold); flex-shrink: 0; }
.brand-name {
  font-family: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', serif;
  font-size: 24px; color: var(--gold); letter-spacing: 2px; white-space: nowrap;
}
.side-toggle {
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  color: #e8e8e8; border-radius: 8px; width: 32px; height: 32px;
  cursor: pointer; font-family: inherit; flex-shrink: 0;
}
.side-toggle svg { width: 17px; height: 17px; }
.side-toggle:hover { background: rgba(255,255,255,.18); }
.side-shop {
  position: relative;
  display: flex; align-items: center; gap: 8px; justify-content: center;
  background: rgba(255,255,255,.06); border-radius: 10px; padding: 6px 10px;
}
.shop-avatar { font-size: 22px; }
.shop-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.shop-stars {
  font-size: 13px; color: #ffd54a; font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.shop-user {
  font-size: 12px; color: #bbb; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
/* 悬停动画展开：完整评星文字气泡 */
.shop-tip {
  position: absolute; top: calc(100% + 8px); left: 8px; z-index: 30;
  background: #3c3c3c; color: #ffd54a; font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 10px; white-space: nowrap;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.96);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  pointer-events: none;
}
.side-shop:hover .shop-tip { opacity: 1; visibility: visible; transform: none; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
/* 一二级菜单树形导航 */
.nav-group { display: flex; flex-direction: column; }
.nav-sec-btn {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: transparent; border: none; color: #8f8f8f;
  font-size: 11px; letter-spacing: 1.5px; font-weight: 700;
  padding: 10px 8px 4px; cursor: pointer; font-family: inherit; text-align: left;
}
.nav-sec-btn:hover { color: #cfcfcf; }
.nav-sec-arrow { margin-left: auto; font-size: 10px; transition: transform .2s ease; }
.nav-group.closed .nav-sec-arrow { transform: rotate(-90deg); }
.nav-group.closed .nav-sub { display: none; }
.nav-sub {
  display: flex; flex-direction: column; gap: 2px;
  margin-left: 13px; padding-left: 8px;
  border-left: 1px solid rgba(255,255,255,.09);
}
.side-bottom {
  display: flex; gap: 6px; margin-top: 6px; padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.side-bottom .nav-btn { flex: 1; justify-content: center; }
.nav-btn {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  color: #e8e8e8; border-radius: 8px; padding: 6px 10px; font-size: 12px;
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.nav-ico { width: 18px; height: 18px; flex-shrink: 0; }
.nav-ico, .brand-icon { display: block; }
.nav-ico-chip {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.07);
}
.nav-btn:hover { background: rgba(255,255,255,.16); }
.nav-btn.danger { color: #ff9a9a; border-color: rgba(250,81,81,.35); }
.side-legend { display: none; }

/* ================= 主面板 ================= */
#main-panel { flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* ---- 顶栏（微信式聊天头部） ---- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 14px;
  background: #f7f7f7; border-bottom: 1px solid #dcdcdc;
  z-index: 10;
}
.chat-title { font-size: 16px; font-weight: 600; color: #222; white-space: nowrap; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.device-btn { width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.device-btn svg { width: 17px; height: 17px; }
/* ---- 资金胶囊 ---- */
.hud {
  display: flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #2e2e2e, #3c3c3c);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 4px 10px 4px 8px;
  font-size: 13px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: box-shadow .3s;
}
.hud.flash-neg { box-shadow: 0 0 14px rgba(250,81,81,.7); }
.hud.flash-pos { box-shadow: 0 0 14px rgba(107,255,154,.7); }
.hud-coin { font-size: 15px; line-height: 1; }
.hud-value {
  font-weight: 800; font-size: 15px; color: #ffd54a; letter-spacing: .3px;
  font-variant-numeric: tabular-nums; transition: color .3s; white-space: nowrap;
}
.hud-value.low { color: #ff7a7a; }
.hud-delta {
  font-size: 11px; font-weight: 700; border-radius: 9px; padding: 1px 7px;
  opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s;
  white-space: nowrap;
}
.hud-delta.neg { color: #ff8a8a; background: rgba(255,122,122,.16); opacity: 1; transform: none; }
.hud-delta.pos { color: #6bff9a; background: rgba(107,255,154,.16); opacity: 1; transform: none; }
body.dark .hud { background: linear-gradient(135deg, #262626, #323232); border-color: rgba(255,255,255,.1); }

/* ---- 结束维修按钮 ---- */
.finish-btn {
  display: block; margin: 10px 12px 0; padding: 12px; background: var(--accent); color: #fff;
  font-size: 16px; font-weight: 700; border: none; border-radius: 12px; cursor: pointer;
  font-family: inherit; box-shadow: 0 2px 10px rgba(7,193,96,.4);
  animation: pop .25s ease;
}
.finish-btn:active { transform: scale(.98); }

/* ---- 返回工作台按钮 ---- */
.btn-back {
  background: #f2f2f2; border: 1px solid #e0e0e0; color: #444;
  border-radius: 8px; padding: 5px 10px; font-size: 12px; cursor: pointer; font-family: inherit;
  white-space: nowrap;
}
.btn-back:hover { background: #e9e9e9; }
body.dark .btn-back { background: #2a2a2a; border-color: #3f3f3f; color: #ccc; }

/* ---- 日期条 + 工作台 ---- */
#daybar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 8px 12px; background: #f7f7f7; border-bottom: 1px solid #e8e8e8;
}
.day-info { font-size: 13px; font-weight: 600; color: #555; margin-right: auto; white-space: nowrap; }
.day-btn { padding: 7px 12px; font-size: 13px; border-radius: 8px; cursor: pointer; font-family: inherit; border: none; }
#btn-day-begin { background: var(--accent); color: #fff; font-weight: 600; box-shadow: 0 2px 8px rgba(7,193,96,.25); }
#btn-day-end { background: #3a6ea5; color: #fff; font-weight: 600; }
#btn-calendar { background: #f2f2f2; color: #555; border: 1px solid #e0e0e0; }
body.dark #daybar { background: #1a1a1a; border-color: #2c2c2c; }
body.dark .day-info { color: #bbb; }
body.dark #btn-calendar { background: #2a2a2a; border-color: #3f3f3f; color: #ccc; }

.job-board { flex: 1; overflow-y: auto; padding: 14px 12px 20px; display: flex; flex-direction: column; gap: 10px; }
.board-empty { text-align: center; color: #999; font-size: 13px; padding: 40px 12px; line-height: 1.9; }
.board-note { text-align: center; color: #8a6d1a; font-size: 12px; background: #fff6d8; border: 1px dashed #e6c96a; border-radius: 8px; padding: 8px 12px; }
body.dark .board-note { background: #2e2a18; border-color: #6b5a20; color: #d8c98a; }

.job-card {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid #e8e8e8; border-radius: 12px;
  padding: 12px 14px; cursor: pointer; text-align: left;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  transition: transform .08s ease, box-shadow .15s ease;
}
.job-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.1); transform: translateY(-1px); }
.job-avatar {
  width: 44px; height: 44px; border-radius: 10px; background: #b98a3f; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.job-info { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.job-info b { font-size: 15px; color: #333; }
.job-info small { font-size: 12px; color: #999; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-status { font-size: 12px; font-weight: 600; white-space: nowrap; padding: 3px 8px; border-radius: 10px; }
.js-playing { background: #fff3d8; color: #a06a1a; }
.js-repaired { background: #e8f8ee; color: #07a04b; }
.js-restoring { background: #fdeaea; color: #c0392b; }
.js-restored { background: #e8f1fd; color: #2f6db3; }
.job-carry { font-size: 10px; color: #fff; background: #b8860b; border-radius: 8px; padding: 1px 6px; margin-left: 6px; }
body.dark .job-card { background: #262626; border-color: #333; }
body.dark .job-info b { color: #ddd; }
body.dark .js-playing { background: #33280f; color: #e6c96a; }
body.dark .js-repaired { background: #1f3a28; color: #6bff9a; }
body.dark .js-restoring { background: #3a2323; color: #ff8a8a; }
body.dark .js-restored { background: #122235; color: #8ab6ea; }

/* ---- 日历 ---- */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 10px 0; }
.cal-head { font-size: 11px; color: #999; text-align: center; padding: 2px 0; }
.cal-cell {
  aspect-ratio: 1; border-radius: 8px; background: #f5f5f5; color: #999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; position: relative;
}
.cal-cell.done { background: #e8f8ee; color: #07a04b; }
.cal-cell.worked { background: #fff9e8; color: #b8860b; }
.cal-cell.skipped { background: #f0f0f0; color: #aaa; }
.cal-cell.today { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(7,193,96,.4); }
.cal-cell.rent { background: #fdeaea; color: #c0392b; border: 1px dashed #e6a3a3; }
body.dark .cal-cell.rent { background: #3a2323; color: #ff8a8a; border-color: #6b3a3a; }
/* 聊天头像可显示上传图 */
.avatar img, .avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.cal-cell small { font-size: 8px; font-weight: 400; position: absolute; bottom: 3px; }
body.dark .cal-cell { background: #262626; color: #888; }
body.dark .cal-cell.done { background: #1f3a28; color: #6bff9a; }
body.dark .cal-cell.worked { background: #33280f; color: #e6c96a; }
body.dark .cal-cell.skipped { background: #222; color: #666; }

/* ---- 管理员模式开关 ---- */
.admin-toggle {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid #d9d9d9;
  background: #fff; color: #999; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s ease;
}
.admin-toggle svg { width: 19px; height: 19px; }
.admin-toggle.on { background: #07c160; border-color: #07c160; color: #fff; box-shadow: 0 0 10px rgba(7,193,96,.55); }
body.dark .admin-toggle { background: #262626; border-color: #3a3a3a; color: #aaa; }
body.dark .admin-toggle.on { background: #07c160; border-color: #07c160; color: #fff; }

/* ---- 侧边栏头像（可显示上传图） ---- */
.shop-avatar {
  width: 36px; height: 36px; border-radius: 8px; background: #b98a3f; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 20px; overflow: hidden; flex-shrink: 0;
}
.shop-avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .shop-avatar { width: 42px; height: 42px; } }

/* ---- 店铺主页 ---- */
.modal.shop-page { max-width: 620px; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.shop-banner {
  width: 100%; height: 150px; flex-shrink: 0; position: relative;
  background: linear-gradient(135deg, #3a3a3a, #5a5a5a);
  background-size: cover; background-position: center;
}
.shop-avatar-lg {
  position: absolute; left: 20px; bottom: -30px; width: 78px; height: 78px; border-radius: 50%;
  background: #b98a3f; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 34px; border: 3px solid #fff; overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,.25);
}
.shop-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
body.dark .shop-avatar-lg { border-color: #232323; }
.shop-body { padding: 42px 20px 22px; overflow-y: auto; text-align: left; }
.shop-name-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.shop-name-row h3 { font-size: 21px; color: #333; }
.shop-tech { font-size: 13px; color: #999; }
.shop-stars-lg { color: #b8860b; font-size: 14px; font-weight: 600; margin-top: 4px; }
.shop-stats { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0 4px; font-size: 12px; color: #888; }
.shop-desc { font-size: 13px; color: #666; margin: 6px 0 4px; line-height: 1.6; }
.review-item2 { border-top: 1px dashed #eee; padding: 10px 2px; }
.review-item2 .rv-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: #999; }
.review-item2 .rv-head b { color: #555; font-size: 13px; }
.review-item2 .rv-stars { color: #f5a623; letter-spacing: 1px; }
.review-item2 .rv-text { font-size: 14px; color: #333; margin-top: 4px; line-height: 1.65; }
.review-item2.reply { margin-left: 26px; border-top-style: dotted; }
/* 副评论展开/收起 */
.reply-expand {
  font-size: 12px; color: #2f6db3; cursor: pointer; text-align: left;
  margin-left: 26px; padding: 2px 0 4px; user-select: none;
}
.reply-expand:hover { text-decoration: underline; }
.reply-expand.collapse { color: #999; }
body.dark .reply-expand { color: #8ab6ea; }
body.dark .reply-expand.collapse { color: #777; }
/* 评价分页（浏览器式翻页） */
.review-pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 8px 0 4px; flex-wrap: wrap; }
.pg-btn { padding: 4px 11px; }
.pg-btn.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.pg-btn[disabled] { opacity: .35; cursor: default; }
body.dark .pg-btn.on { background: #07c160; color: #fff; border-color: #07c160; }
body.dark .shop-name-row h3 { color: #ddd; }
body.dark .shop-stars-lg { color: #e6c96a; }
body.dark .shop-desc { color: #aaa; }
body.dark .review-item2 { border-color: #3a3a3a; }
body.dark .review-item2 .rv-head b { color: #ccc; }
body.dark .review-item2 .rv-text { color: #ccc; }
.profile-edit { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; border-top: 1px solid #eee; padding-top: 12px; }
.profile-edit input {
  border: 1px solid #dcdcdc; border-radius: 8px; padding: 9px 11px;
  font-size: 14px; outline: none; font-family: inherit;
}
.profile-edit input:focus { border-color: var(--accent); }
body.dark .profile-edit { border-color: #3a3a3a; }
body.dark .profile-edit input { background: #262626; border-color: #3a3a3a; color: #e8e8e8; }

/* ---- 全服玩家列表 ---- */
.modal.players h2 { background: linear-gradient(135deg, #e8f1fd, #f5f9ff); color: #2f6db3; border-bottom-color: #dce8f8; }
body.dark .modal.players h2 { background: linear-gradient(135deg, #122235, #162230); color: #8ab6ea; border-bottom-color: #22405c; }
.pl-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }

@media (min-width: 900px) {
  .job-board { padding: 18px 24px 24px; }
  .job-card { max-width: 860px; margin: 0 auto; width: 100%; }
  #daybar { padding: 10px 24px; }
  .board-note, .board-empty { max-width: 860px; margin: 0 auto; width: 100%; }
}

/* ---- 聊天区 ---- */
.chat {
  flex: 1; overflow-y: auto; padding: 14px 12px 20px;
  display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth;
}
.msg { display: flex; gap: 8px; align-items: flex-start; max-width: 86%; animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg.right { align-self: flex-end; flex-direction: row-reverse; }
.avatar {
  width: 38px; height: 38px; border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; background: #c7c7c7;
}
.avatar.pc { background: #3a6ea5; }
.avatar.customer { background: #b98a3f; }
.avatar.me { background: #5f8f3f; }
.bubble-wrap { display: flex; flex-direction: column; gap: 2px; max-width: 100%; }
.speaker { font-size: 11px; color: #8a8a8a; margin: 0 4px; }
.msg.right .speaker { text-align: right; }
.bubble {
  position: relative; padding: 9px 12px; border-radius: 8px; font-size: 15px; line-height: 1.55;
  background: var(--bubble-left); box-shadow: 0 1px 2px rgba(0,0,0,.08);
  word-break: break-word; white-space: pre-wrap;
}
.bubble::before { content: ""; position: absolute; top: 12px; width: 0; height: 0; }
.msg.left .bubble::before { left: -6px; border: 6px solid transparent; border-right-color: var(--bubble-left); border-left: 0; }
.msg.right .bubble { background: var(--bubble-right); }
.msg.right .bubble::before { right: -6px; border: 6px solid transparent; border-left-color: var(--bubble-right); border-right: 0; }
.bubble.pc { background: #e8f2fd; }
.bubble.pc::before { border-right-color: #e8f2fd; }

/* ---- 旁白：微信小提示框样式 ---- */
.notice {
  align-self: center; text-align: center; font-size: 12px; color: var(--notice);
  background: #e2e2e2; border-radius: 6px; padding: 3px 10px; max-width: 88%;
  animation: pop .25s ease; line-height: 1.5;
}
.notice.big { background: transparent; color: #8a8a8a; font-size: 11px; }

/* ---- 输入栏 ---- */
.inputbar {
  display: flex; gap: 8px; padding: 10px 12px; background: #f7f7f7;
  border-top: 1px solid #dcdcdc; align-items: flex-end;
}
#input {
  flex: 1; resize: none; border: none; outline: none; background: #fff;
  border-radius: 8px; padding: 10px 12px; font-size: 15px; font-family: inherit;
  max-height: 120px; line-height: 1.5;
}
.btn-send {
  position: relative;
  background: var(--accent); color: #fff; border: none; border-radius: 8px;
  padding: 10px 18px; font-size: 15px; cursor: pointer; font-weight: 600; font-family: inherit;
  min-width: 68px;
}
.btn-send:disabled { background: #b5e8c8; cursor: not-allowed; }
/* 发送中：按钮内小转圈，隐藏文字 */
.btn-send.loading .send-txt { visibility: hidden; }
.btn-send.loading::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}

/* ---- 打字中（AI 中立提示，不预判说话人） ---- */
.typing .avatar.ai { background: #8a8a8a; }
.typing .bubble { display: flex; gap: 4px; align-items: center; padding: 12px 14px; }
.typing .dot { width: 7px; height: 7px; border-radius: 50%; background: #b3b3b3; animation: blink 1s infinite; }
.typing .dot:nth-child(2) { animation-delay: .2s; }
.typing .dot:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
body.dark .typing .dot { background: #888; }

/* ---- 弹窗 ---- */
#modal-root { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 100; }
#modal-root.show { display: flex; }
.modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(22px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.modal {
  position: relative; width: 92%; max-width: 440px; background: #fff; border-radius: 18px;
  padding: 0 22px 22px; text-align: center; animation: modal-in .28s cubic-bezier(.2,.8,.3,1);
  max-height: 88vh; overflow-y: auto;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
}
/* 标题做成全宽头带（负边距冲出内边距） */
.modal h2 {
  font-size: 18px; font-weight: 700; margin: 0 -22px 14px;
  padding: 15px 20px 13px; border-radius: 18px 18px 0 0;
  background: #fafafa; border-bottom: 1px solid #eee; color: #333;
}
.modal.win h2 { background: linear-gradient(135deg, #eafaf0, #f5fff9); color: #07a04b; border-bottom-color: #dff0e6; }
.modal.lose h2 { background: linear-gradient(135deg, #fdf0f0, #fff7f7); color: #d64545; border-bottom-color: #f5dfdf; }
.modal.rank h2 { background: linear-gradient(135deg, #fff9e8, #fffdf5); color: #b8860b; border-bottom-color: #f5e9c8; }
.modal.review h2, .modal.review-detail h2 { background: linear-gradient(135deg, #f2f2f2, #fafafa); color: #444; border-bottom-color: #e8e8e8; }
.modal.warehouse h2 { background: linear-gradient(135deg, #fff4e0, #fffaf0); color: #a06a1a; border-bottom-color: #f5e6c8; }
.modal.device h2 { background: linear-gradient(135deg, #e8f1fd, #f5f9ff); color: #2f6db3; border-bottom-color: #dce8f8; }
.modal p { font-size: 14px; color: #555; line-height: 1.65; margin-bottom: 8px; text-align: left; }
.modal .big-money { font-size: 26px; font-weight: 800; color: #e6a23c; margin: 10px 0; }
table.bill { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 13px; }
table.bill td { padding: 6px 4px; border-bottom: 1px dashed #e5e5e5; text-align: left; }
table.bill td:last-child { text-align: right; font-weight: 600; }
table.bill tr.total td { border: none; color: #c0392b; font-weight: 700; font-size: 15px; }
.modal .btn-primary {
  display: block; width: 100%; margin-top: 10px; background: var(--accent); color: #fff;
  border: none; border-radius: 12px; padding: 13px; font-size: 16px; cursor: pointer; font-weight: 700; font-family: inherit;
  box-shadow: 0 3px 10px rgba(7,193,96,.25);
  transition: transform .06s ease, box-shadow .2s ease;
}
.modal .btn-primary:hover { box-shadow: 0 5px 16px rgba(7,193,96,.35); }
.modal .btn-primary:active { transform: scale(.985); }
.modal .btn-secondary {
  display: inline-block; width: auto; min-width: 132px; margin: 8px 4px 0; background: #f2f2f2; color: #555;
  border: 1px solid #e8e8e8; border-radius: 10px; padding: 9px 16px; font-size: 13px; cursor: pointer; font-family: inherit;
  transition: background .15s ease;
}
.modal .btn-secondary:hover { background: #e9e9e9; }
/* 按钮组容器化：相邻次级按钮自动排成一行并居中 */
.modal .btn-secondary + .btn-secondary { margin-left: 4px; }

/* ---- 顾客评分（胜利弹窗内） ---- */
.rate-box { background: #fff9e6; border: 1px dashed #e6c96a; border-radius: 10px; padding: 10px 12px; margin: 10px 0; text-align: left; }
.rate-box h4 { font-size: 14px; color: #b8860b; margin-bottom: 6px; }
.rate-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #555; padding: 2px 0; }
.rate-row .stars { color: #f5a623; letter-spacing: 1px; font-size: 15px; }
.rate-comment { font-size: 12px; color: #8a6d1a; margin-top: 6px; font-style: italic; }

/* ---- toast ---- */
#toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.75); color: #fff; padding: 8px 16px; border-radius: 8px;
  font-size: 13px; z-index: 200; display: none; max-width: 90%;
}

/* ---- 资金变动原因提示 ---- */
#money-note {
  position: fixed; top: 58px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.8); color: #ffe58f; font-size: 12px;
  padding: 5px 14px; border-radius: 14px; z-index: 150; display: none; max-width: 92%;
  text-align: center; line-height: 1.5;
  animation: pop .2s ease;
}

/* ---- 练习局徽章 ---- */
.practice-chip {
  display: inline-block; font-size: 10px; color: #fff; background: #b8860b;
  border-radius: 8px; padding: 1px 6px; vertical-align: 1px; font-weight: 600;
}
.practice-chip.inline { margin-left: 6px; }

/* ---- 资金变动 / 系统提示 消息样式 ---- */
.notice.money { background: #fdeaea; color: #c0392b; font-weight: 600; }
.notice.money.pos { background: #e8f8ee; color: #07a04b; }
.notice.hint-block {
  background: #fff6d8; border: 1px dashed #e6c96a; color: #8a6d1a;
  padding: 8px 12px; max-width: 92%; text-align: left; align-self: center;
}
.hint-head { font-weight: 700; color: #b8860b; font-size: 12px; margin-bottom: 3px; }
.hint-line { font-size: 13px; color: #8a6d1a; line-height: 1.6; }

/* ---- 对局回顾 ---- */
.modal.review { max-height: 84vh; display: flex; flex-direction: column; }
.review-sec { text-align: left; font-size: 13px; color: #999; margin: 10px 0 6px; font-weight: 600; }
.review-list { overflow-y: auto; }
.review-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: #f7f7f7; border: 1px solid #e8e8e8; border-radius: 10px;
  margin-bottom: 8px; cursor: pointer; text-align: left;
}
.review-item:hover { background: #f0f0f0; }
.ri-icon { font-size: 22px; }
.ri-main { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ri-main b { font-size: 14px; color: #333; }
.ri-main small { font-size: 12px; color: #999; }
.ri-arrow { color: #ccc; font-size: 18px; }
.review-empty { text-align: center; color: #aaa; font-size: 13px; padding: 14px 0; }

.modal.review-detail { max-height: 86vh; display: flex; flex-direction: column; }
.rd-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0;
  font-size: 12px; color: #888; text-align: left;
}
.rd-stats span { background: #f7f7f7; border-radius: 8px; padding: 6px 10px; }
.rd-stats b { color: #333; font-size: 14px; }
.rd-cause { font-size: 13px; color: #555; line-height: 1.6; margin-bottom: 8px; }
.review-transcript {
  flex: 1; overflow-y: auto; background: #f5f5f5; border-radius: 10px;
  padding: 10px 12px; margin-bottom: 10px; max-height: 46vh;
  display: flex; flex-direction: column; gap: 7px;
}
.t-me { align-self: flex-end; background: #d9f3c8; border-radius: 8px; padding: 6px 10px; font-size: 13px; max-width: 86%; line-height: 1.5; word-break: break-word; }
.t-customer { align-self: flex-start; background: #fff; border-radius: 8px; padding: 6px 10px; font-size: 13px; max-width: 86%; line-height: 1.5; word-break: break-word; }
.t-narrator { align-self: center; color: #9a9a9a; font-size: 12px; background: #e8e8e8; border-radius: 6px; padding: 3px 8px; max-width: 90%; line-height: 1.5; }
.t-money { align-self: center; font-size: 12px; font-weight: 600; border-radius: 6px; padding: 3px 8px; }
.t-money.neg { color: #c0392b; background: #fdeaea; }
.t-money.pos { color: #07a04b; background: #e8f8ee; }
.t-hint { align-self: center; font-size: 12px; font-weight: 600; color: #b8860b; background: #fff6d8; border: 1px dashed #e6c96a; border-radius: 6px; padding: 5px 9px; max-width: 92%; line-height: 1.6; text-align: left; }

/* ---- 排行榜 ---- */
.modal.rank h2 { color: #b8860b; }
.rank-sub { text-align: center !important; color: #999 !important; font-size: 12px !important; }
table.rank { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 13px; }
table.rank th, table.rank td { padding: 6px 4px; border-bottom: 1px dashed #e5e5e5; text-align: center; }
table.rank th { color: #999; font-weight: 600; font-size: 12px; }
table.rank td:first-child { font-weight: 700; color: #c0392b; }
table.rank tr.me td { background: #fff8dc; font-weight: 600; }
table.rank tr.me td:first-child { color: #b8860b; }

/* ---- 设备清单 / 仓库 ---- */
.modal.device { max-height: 86vh; }
.w-tag { display: inline-block; font-size: 10px; border-radius: 6px; padding: 1px 6px; margin-right: 6px; font-weight: 600; }
.w-tag.new { background: #e8f8ee; color: #07a04b; }
.w-tag.broken { background: #fdeaea; color: #c0392b; }
.modal.warehouse { max-height: 88vh; display: flex; flex-direction: column; }
.w-buy-row { display: flex; gap: 8px; margin: 6px 0; }
.w-buy-row input {
  flex: 1; border: 1px solid #dcdcdc; border-radius: 8px; padding: 8px 10px;
  font-size: 14px; outline: none; font-family: inherit;
}
.w-buy-row input:focus { border-color: var(--accent); }
.w-list { overflow-y: auto; margin-bottom: 6px; }
.w-item {
  display: flex; align-items: center; gap: 8px; background: #f7f7f7;
  border: 1px solid #e8e8e8; border-radius: 10px; padding: 8px 10px;
  margin-bottom: 6px; text-align: left;
}
.w-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.w-info b { font-size: 14px; color: #333; }
.w-info small { font-size: 12px; color: #999; }
.w-ledger-list { max-height: 170px; overflow-y: auto; background: #fafafa; border-radius: 8px; padding: 6px 8px; margin-bottom: 8px; }
.w-ledger { display: flex; flex-direction: column; font-size: 12px; color: #666; padding: 3px 0; border-bottom: 1px dashed #eee; text-align: left; }
.w-ledger .pos { color: #07a04b; font-weight: 600; margin-left: 8px; }
.w-ledger .neg { color: #c0392b; font-weight: 600; margin-left: 8px; }
.w-ledger small { color: #aaa; }

/* ---- 登录 / 注册 ---- */
#auth-root {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center;
  background: linear-gradient(160deg, #2e2e2e, #1c1c1c);
}
#auth-root.show { display: flex; }
.auth-card {
  width: 88%; max-width: 360px; background: #fff; border-radius: 16px;
  padding: 28px 24px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.4);
  animation: pop .25s ease; position: relative;
}
.auth-theme { position: absolute; top: 12px; right: 12px; }
.btn-mini {
  background: #fff; border: 1px solid #d9d9d9; color: #555; border-radius: 8px;
  padding: 4px 10px; font-size: 12px; cursor: pointer; font-family: inherit;
}
.btn-mini:hover { background: #f0f0f0; }
.auth-logo { font-size: 40px; }
.auth-card h2 { font-size: 22px; margin: 8px 0 4px; }
.auth-sub { font-size: 12px; color: #999; margin-bottom: 16px; }
.auth-card input {
  display: block; width: 100%; margin-bottom: 10px; padding: 11px 12px;
  font-size: 15px; border: 1px solid #dcdcdc; border-radius: 8px; outline: none;
  font-family: inherit; box-sizing: border-box;
}
.auth-card input:focus { border-color: var(--accent); }
.auth-card .btn-primary {
  width: 100%; margin-top: 4px; background: var(--accent); color: #fff;
  border: none; border-radius: 10px; padding: 12px; font-size: 16px;
  font-weight: 600; cursor: pointer; font-family: inherit;
}
.auth-card .btn-primary:disabled { background: #b5e8c8; cursor: not-allowed; }
.auth-switch { margin-top: 14px; font-size: 13px; color: #888; }
.auth-switch a { color: var(--accent); cursor: pointer; text-decoration: none; font-weight: 600; }

/* ================= 电脑端微信 UI（宽屏，占满整屏） ================= */
@media (min-width: 900px) {
  body { background: #c8c8c8; }
  #app {
    width: 100%;
    max-width: none;
    flex-direction: row;
    margin: 0;
    height: 100vh; height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
  }
  #sidebar {
    width: 200px;
    border-bottom: none;
    border-right: 1px solid #3a3a3a;
    background: linear-gradient(180deg, #262626, #2e2e2e);
    padding: 16px 10px;
    gap: 8px;
    align-items: stretch;
    overflow-y: auto;
  }
  .side-top { flex-shrink: 0; }
  .side-shop { flex-shrink: 0; }
  .side-brand { justify-content: flex-start; padding-left: 4px; gap: 8px; }
  .brand-name { font-size: 23px; letter-spacing: 1px; }
  .side-shop { justify-content: flex-start; padding: 8px 10px; gap: 10px; }
  .shop-avatar { font-size: 24px; }
  /* 导航栏列表 */
  .side-nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; min-height: 0; }
  .nav-sec-btn { padding: 10px 8px 5px; }
  .nav-btn {
    position: relative;
    flex-direction: row; align-items: center; justify-content: flex-start;
    gap: 10px; padding: 6px 8px; text-align: left;
    border-radius: 10px; border: none; background: transparent; color: #e8e8e8;
    font-size: 13px;
    transition: background .15s ease;
  }
  .nav-btn:hover { background: rgba(255,255,255,.08); }
  .nav-ico-chip { width: 26px; height: 26px; border-radius: 8px; }
  .nav-ico { width: 15px; height: 15px; }
  /* 彩色图标底座：每个功能一块专属色调 */
  #btn-shop .nav-ico-chip { background: rgba(255,193,90,.18); color: #ffc15a; }
  #btn-players .nav-ico-chip { background: rgba(90,160,255,.18); color: #5aa0ff; }
  #btn-rank .nav-ico-chip { background: rgba(255,213,74,.18); color: #ffd54a; }
  #btn-review .nav-ico-chip { background: rgba(170,120,255,.18); color: #aa78ff; }
  #btn-warehouse .nav-ico-chip { background: rgba(255,170,110,.18); color: #ffaa6e; }
  #btn-hint .nav-ico-chip { background: rgba(255,240,150,.18); color: #fff096; }
  #btn-restart .nav-ico-chip { background: rgba(120,220,150,.18); color: #78dc96; }
  #btn-logout .nav-ico-chip { background: rgba(255,120,120,.18); color: #ff8a8a; }
  #btn-theme .nav-ico-chip { background: rgba(150,140,255,.18); color: #968cff; }
  #btn-settings .nav-ico-chip { background: rgba(190,190,200,.18); color: #c2c2cc; }
  .side-bottom { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
  .side-bottom .nav-btn { flex: none; }
  .side-legend { margin-top: 10px; }
  .side-legend {
    display: block; margin-top: 10px; font-size: 11px; color: #8a8a8a;
    line-height: 1.9; padding: 8px 6px 0; border-top: 1px solid rgba(255,255,255,.1);
  }
  /* 折叠为纯图标小侧栏 */
  body.sidebar-mini #sidebar { width: 68px; padding: 14px 8px; }
  body.sidebar-mini .side-top { flex-direction: column; gap: 8px; }
  body.sidebar-mini .side-brand { padding-left: 0; justify-content: center; }
  body.sidebar-mini .brand-name, body.sidebar-mini .side-shop, body.sidebar-mini .side-legend { display: none; }
  body.sidebar-mini .side-nav { display: flex; flex-direction: column; gap: 8px; }
  body.sidebar-mini .nav-group { display: contents; }
  body.sidebar-mini .nav-sec-btn { display: none; }
  body.sidebar-mini .nav-sub { display: flex !important; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: none; }
  body.sidebar-mini .nav-btn { justify-content: center; padding: 9px 0; gap: 0; border: none; background: transparent; }
  body.sidebar-mini .nav-txt { display: none; }
  body.sidebar-mini .nav-ico-chip { width: 32px; height: 32px; }
  body.sidebar-mini .nav-ico { width: 18px; height: 18px; }
  body.sidebar-mini .side-bottom { display: flex; flex-direction: column; margin-top: 12px; gap: 8px; }
  #main-panel { border-radius: 0; }
  .chat { padding: 20px 24px 28px; align-items: stretch; }
  /* 宽屏下气泡限宽，避免拉成横贯全屏的长条 */
  .msg { max-width: min(86%, 700px); }
  .notice { max-width: min(88%, 700px); }
  .inputbar { padding: 14px 20px; }
  .finish-btn { margin: 12px 20px 0; max-width: 820px; }
  /* 弹窗画幅放大，桌面更舒展 */
  .modal { max-width: 560px; }
  .modal.rank, .modal.warehouse, .modal.device, .modal.review, .modal.review-detail { max-width: 680px; }
  .modal.review-detail .review-transcript { max-height: 54vh; }
  .modal .btn-secondary { min-width: 150px; padding: 10px 18px; font-size: 14px; }
}

/* ---- 手机端窄屏：功能区向上折叠，只留一个下拉控件 ---- */
@media (max-width: 899px) {
  #app { max-width: 520px; }
  .side-legend { display: none; }
  #sidebar .side-shop, #sidebar .side-nav, #sidebar .side-bottom { display: none; }
  #sidebar.side-open .side-shop, #sidebar.side-open .side-nav, #sidebar.side-open .side-bottom { display: flex; }
  #sidebar.side-open .side-nav { padding-bottom: 4px; }
  #sidebar.side-open .side-bottom { flex-direction: row; }
}

/* ---- 小屏：顶栏与资金胶囊紧凑化，防止挤压换行 ---- */
@media (max-width: 520px) {
  .topbar { gap: 6px; padding: 8px 10px; }
  .chat-title { font-size: 14px; }
  .btn-back { padding: 4px 8px; font-size: 11px; }
  .device-btn { width: 30px; height: 30px; }
  .device-btn svg { width: 15px; height: 15px; }
  .hud { padding: 3px 8px 3px 6px; gap: 5px; border-radius: 14px; }
  .hud-coin { font-size: 13px; }
  .hud-value { font-size: 13px; }
  .hud-delta { font-size: 10px; padding: 0 5px; }
}

/* ================= 黑暗模式（body.dark） ================= */
body.dark { background: #0a0a0a; }
body.dark #app { background: #111111; box-shadow: 0 0 30px rgba(0,0,0,.6); }
body.dark #sidebar { background: #1c1c1c; border-color: #2c2c2c; }
body.dark .shop-user { color: #999; }
body.dark .nav-btn { color: #ccc; border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.04); }
body.dark .nav-btn:hover { background: rgba(255,255,255,.1); }
body.dark .nav-btn.danger { color: #ff9a9a; }
body.dark .topbar { background: #1a1a1a; border-color: #2c2c2c; }
body.dark .chat-title { color: #ddd; }
body.dark .inputbar { background: #1a1a1a; border-color: #2c2c2c; }
body.dark .chat { background: #111111; }
body.dark .bubble { background: #262626; color: #e8e8e8; box-shadow: none; }
body.dark .msg.left .bubble::before { border-right-color: #262626; }
body.dark .msg.right .bubble { background: #3d6b3d; color: #fff; }
body.dark .msg.right .bubble::before { border-left-color: #3d6b3d; }
body.dark .bubble.pc { background: #1d2a38; }
body.dark .bubble.pc::before { border-right-color: #1d2a38; }
body.dark .speaker { color: #777; }
body.dark .notice { background: #262626; color: #999; }
body.dark .notice.big { background: transparent; color: #777; }
body.dark .notice.money { background: #3a2323; color: #ff8a8a; }
body.dark .notice.money.pos { background: #1f3a28; color: #6bff9a; }
body.dark .notice.hint-block { background: #2e2a18; border-color: #6b5a20; }
body.dark .hint-head { color: #e6c96a; }
body.dark .hint-line { color: #d8c98a; }
body.dark #input { background: #262626; color: #e8e8e8; }
body.dark .modal { background: #232323; }
body.dark .modal h2 { background: #2a2a2a; border-bottom-color: #3a3a3a; color: #eee; }
body.dark .modal.win h2 { background: linear-gradient(135deg, #12321f, #1a2a1d); color: #6bff9a; border-bottom-color: #24502f; }
body.dark .modal.lose h2 { background: linear-gradient(135deg, #3a1b1b, #2a1a1a); color: #ff8a8a; border-bottom-color: #5a2c2c; }
body.dark .modal.rank h2 { background: linear-gradient(135deg, #332c14, #2a2617); color: #e6c96a; border-bottom-color: #54481f; }
body.dark .modal.review h2, body.dark .modal.review-detail h2 { background: linear-gradient(135deg, #262626, #202020); color: #ddd; border-bottom-color: #383838; }
body.dark .modal.warehouse h2 { background: linear-gradient(135deg, #33280f, #2a2412); color: #e6c96a; border-bottom-color: #54481f; }
body.dark .modal.device h2 { background: linear-gradient(135deg, #122235, #162230); color: #8ab6ea; border-bottom-color: #22405c; }
body.dark .modal .btn-secondary { background: #303030; color: #ccc; border-color: #3f3f3f; }
body.dark .modal .btn-secondary:hover { background: #383838; }
body.dark .modal h2 { color: #eee; }
body.dark .modal p { color: #bbb; }
body.dark table.bill td { border-color: #3a3a3a; color: #ccc; }
body.dark .modal .btn-secondary { background: #303030; color: #ccc; }
body.dark .big-money { color: #e6c96a; }
body.dark table.rank th, body.dark table.rank td { border-color: #3a3a3a; color: #ccc; }
body.dark table.rank tr.me td { background: #332c14; }
body.dark .review-item { background: #2a2a2a; border-color: #3a3a3a; }
body.dark .review-item:hover { background: #303030; }
body.dark .ri-main b { color: #ddd; }
body.dark .rd-stats span { background: #2a2a2a; color: #999; }
body.dark .rd-stats b { color: #ddd; }
body.dark .rd-cause { color: #aaa; }
body.dark .review-transcript { background: #1a1a1a; }
body.dark .t-me { background: #2c3d26; color: #d8f3c8; }
body.dark .t-customer { background: #2a2a2a; color: #ddd; }
body.dark .t-narrator { background: #262626; color: #999; }
body.dark .t-money.neg { background: #3a2323; color: #ff8a8a; }
body.dark .t-money.pos { background: #1f3a28; color: #6bff9a; }
body.dark .t-hint { background: #2e2a18; border-color: #6b5a20; color: #e6c96a; }
body.dark .w-item { background: #2a2a2a; border-color: #3a3a3a; }
body.dark .w-info b { color: #ddd; }
body.dark .w-buy-row input { background: #262626; border-color: #3a3a3a; color: #e8e8e8; }
body.dark .w-ledger-list { background: #1a1a1a; }
body.dark .w-ledger { color: #999; border-color: #333; }
body.dark .review-empty { color: #777; }
body.dark .auth-card { background: #232323; }
body.dark .auth-card h2 { color: #eee; }
body.dark .auth-card input { background: #1a1a1a; border-color: #3a3a3a; color: #eee; }
body.dark .auth-switch { color: #999; }
body.dark .rate-box { background: #2e2a18; border-color: #6b5a20; }
body.dark .rate-box h4 { color: #e6c96a; }
body.dark .rate-row { color: #bbb; }
body.dark .rate-comment { color: #d8c98a; }
