:root {
  --wx-green: #07c160;
  --wx-green-press: #06ad56;
  --wx-self: #95ec69;
  --wx-chat: #ededed;
  --wx-list: #f7f7f7;
  --wx-selected: #ebebeb;
  --wx-hover: #f0f0f0;
  --wx-rail: #1c1c1e;
  --wx-badge: #fa5151;
  --wx-text: #111;
  --wx-sub: #8c8c8c;
  --wx-muted: #b1b1b1;
  --wx-line: rgba(0, 0, 0, 0.06);
  --wx-white: #fff;
  --wx-header: rgba(247, 247, 247, .78);
  --wx-header-chat: rgba(237, 237, 237, .78);
  --wx-fill: #fff;
  --wx-fill-2: #f7f7f7;
  --wx-fill-3: #ececec;
  --wx-icon: #1a1a1a;
  --wx-bubble: #fff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --rail: 68px;
  --list: 300px;
  --header: 58px;
  --tabbar: 58px;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Noto Sans SC", sans-serif;
  color: var(--wx-text);
  background: var(--wx-page, radial-gradient(1200px 600px at 50% -10%, #eef1f4, #cfd5dc 55%, #c5ccd3));
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button, textarea, input { font: inherit; }
button { border: 0; background: none; cursor: pointer; color: inherit; }
svg { width: 22px; height: 22px; fill: currentColor; flex: none; }

.wx-root {
  display: flex;
  height: calc(100% - 24px);
  max-width: 1280px;
  margin: 12px auto;
  background: var(--wx-white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(32, 36, 42, .22);
}

.wx-rail {
  width: var(--rail);
  background: var(--wx-rail);
  color: #8e8e93;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 0 16px;
  flex: none;
}
.rail-avatar {
  width: 38px; height: 38px; border-radius: 10px;
  margin-bottom: 26px;
  background: linear-gradient(160deg, #7ec8ff, #3b82f6);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'><rect width='36' height='36' rx='8' fill='%233b82f6'/><circle cx='18' cy='14' r='6' fill='white'/><path d='M6 32c2-7 7-10 12-10s10 3 12 10' fill='white'/></svg>");
  background-size: cover;
}
.rail-nav { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.rail-btn {
  position: relative;
  height: 54px;
  color: #8e8e93;
  display: grid;
  place-items: center;
  transition: color .15s ease;
}
.rail-btn.is-active { color: var(--wx-green); }
.rail-btn:hover { color: #fff; }
.rail-btn.is-active:hover { color: var(--wx-green); }
.rail-btn svg { width: 26px; height: 26px; }
.rail-bottom { margin-top: auto; }
.rail-badge, .tab-badge {
  position: absolute;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  background: var(--wx-badge);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  font-style: normal;
  font-weight: 600;
}
.rail-badge { top: 6px; right: 12px; }
.tab-badge { top: 2px; right: 18px; }

.wx-listpane {
  width: var(--list);
  background: var(--wx-list);
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid var(--wx-line);
}
.list-header, .chat-header {
  min-height: var(--header);
  display: flex;
  align-items: center;
  padding: 0 14px;
  flex: none;
  background: var(--wx-header);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}
.chat-header {
  background: var(--wx-header-chat);
  border-bottom: 1px solid var(--wx-line);
}
.list-header h1, .chat-header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  flex: 1;
  letter-spacing: .01em;
}
.icon-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: var(--radius-pill);
  color: var(--wx-icon);
}
.icon-btn:hover { background: rgba(0,0,0,.05); }
.icon-btn:active { background: rgba(0,0,0,.08); }
.search-wrap { padding: 4px 12px 12px; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--wx-fill-3);
  border-radius: var(--radius-pill);
  height: 34px;
  padding: 0 12px;
  color: #8e8e93;
}
.search-box svg { width: 15px; height: 15px; }
.search-box input {
  border: 0; outline: 0; background: transparent;
  width: 100%; color: var(--wx-text); font-size: 14px;
}
.list-scroll { flex: 1; overflow: auto; }
.chat-item, .contact-item, .cell, .moment {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 14px;
  position: relative;
  cursor: pointer;
}
.chat-item { margin: 2px 8px; padding: 11px 10px; border-radius: 12px; }
.chat-item:hover, .contact-item:hover, .cell:hover { background: var(--wx-hover); }
.chat-item.is-active { background: var(--wx-selected); }
.contact-item::after, .cell::after {
  content: "";
  position: absolute; left: 70px; right: 16px; bottom: 0;
  height: 1px; background: var(--wx-line);
}
.avatar {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center;
  color: #fff; font-size: 15px; font-weight: 700;
  flex: none; overflow: hidden;
  letter-spacing: .02em;
}
.item-main { min-width: 0; flex: 1; }
.item-top { display: flex; justify-content: space-between; gap: 8px; }
.item-name { font-size: 16px; font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-time { color: var(--wx-muted); font-size: 12px; flex: none; }
.item-bottom { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; }
.item-last { color: var(--wx-sub); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread {
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--radius-pill); background: var(--wx-badge);
  color: #fff; font-size: 11px; line-height: 18px; text-align: center; flex: none; font-weight: 600;
}
.section-label {
  padding: 8px 16px 6px; font-size: 12px; color: #8e8e93; font-weight: 600;
}
.tabbar {
  display: none;
  height: calc(var(--tabbar) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(247,247,247,.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--wx-line);
}
.tab-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: #111; font-size: 10px; position: relative; font-weight: 500;
}
.tab-btn svg { width: 26px; height: 26px; }
.tab-btn.is-active { color: var(--wx-green); }

.wx-chatpane {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  background: var(--wx-chat);
}
.chat-title { flex: 1; min-width: 0; text-align: center; }
.chat-title h2 { font-size: 17px; }
.chat-sub { margin: 2px 0 0; font-size: 11px; color: #8e8e93; }
.back-btn { display: none; }
.chat-body {
  flex: 1; overflow: auto;
  padding: 18px 16px 22px;
}
.empty-chat {
  height: 100%;
  display: grid; place-items: center;
  text-align: center; color: #8e8e93; padding: 40px;
}
.empty-logo {
  width: 76px; height: 76px; border-radius: 22px;
  background: linear-gradient(160deg, #34d399, #07c160);
  color: #fff;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 700; margin: 0 auto 16px;
  box-shadow: 0 10px 24px rgba(7, 193, 96, .28);
}
.time-chip {
  text-align: center; color: #aaa; font-size: 12px;
  margin: 6px 0 16px;
}
.msg {
  display: flex; gap: 10px; margin: 12px 0; align-items: flex-start;
  max-width: 100%;
  animation: rise .22s ease;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.msg.me { flex-direction: row-reverse; }
.msg .avatar { width: 38px; height: 38px; font-size: 13px; border-radius: 10px; }
.bubble {
  max-width: min(72%, 520px);
  background: var(--wx-bubble);
  border-radius: 6px 16px 16px 16px;
  padding: 10px 13px;
  font-size: 16px; line-height: 1.55;
  position: relative;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
  word-break: break-word;
}
.msg.me .bubble {
  background: var(--wx-self);
  border-radius: 16px 6px 16px 16px;
}
.bubble::before { display: none; }
.bubble ruby { ruby-position: over; }
.bubble rt { font-size: 9px; color: #666; }
.zh-hint { display: block; margin-top: 6px; color: #8e8e93; font-size: 12px; }
.card-bubble {
  background: #fff; border-radius: 16px; padding: 0;
  overflow: hidden; max-width: min(86%, 420px);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.card-hd {
  background: #f7f7f7; padding: 12px 14px; font-weight: 650; font-size: 14px;
}
.card-bd { padding: 12px 14px 14px; font-size: 13px; line-height: 1.65; }
.card-bd b { font-weight: 650; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip {
  background: #f3f4f6; border-radius: var(--radius-pill); padding: 4px 10px; font-size: 12px; color: #444;
}
.typing { display: flex; gap: 5px; padding: 14px 16px; width: 58px; }
.typing i {
  width: 6px; height: 6px; border-radius: 50%; background: #c4c4c4;
  animation: blink 1.2s infinite;
}
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3 } 40% { opacity: 1 } }

.chat-inputbar {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 10px 10px calc(10px + var(--safe-b));
  background: rgba(247,247,247,.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--wx-line);
}
.chat-inputbar textarea {
  flex: 1; resize: none; border: 0; outline: 0;
  min-height: 38px; max-height: 96px;
  padding: 8px 14px; border-radius: 18px;
  background: #fff; line-height: 22px;
}
.hold-talk {
  flex: 1; height: 38px; border-radius: 18px;
  background: #fff; color: #111; font-size: 15px; font-weight: 560;
}
.hold-talk.is-holding { background: #e8e8e8; }
.send-btn {
  height: 34px; padding: 0 14px; margin-bottom: 2px;
  background: var(--wx-green); color: #fff;
  border-radius: 18px; font-size: 14px; font-weight: 650;
}
.send-btn:active { background: var(--wx-green-press); }
.plus-panel {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px 10px;
  padding: 18px 16px calc(20px + var(--safe-b));
  background: #f3f3f3;
  border-top: 1px solid var(--wx-line);
}
.plus-panel button {
  background: transparent;
  height: auto;
  font-size: 12px; color: #3a3a3a;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.plus-panel button::before {
  content: "";
  width: 54px; height: 54px;
  border-radius: 14px;
  background: #fff center / 22px no-repeat;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.plus-panel button[data-action="ready"]::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307C160' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='8'/><path d='m8.2 12.2 2.4 2.4 5.2-5.2'/></svg>"); }
.plus-panel button[data-action="preview"]::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B8DEF' stroke-width='1.8'><rect x='5' y='3.5' width='14' height='17' rx='2'/><path d='M8 8h8M8 12h8M8 16h5'/></svg>"); }
.plus-panel button[data-action="hint"]::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E6A817' stroke-width='1.8'><path d='M9 18h6M10 21h4'/><path d='M8 10a4 4 0 1 1 5.2 3.8c-.7.3-1.2.9-1.2 1.7V16'/></svg>"); }
.plus-panel button[data-action="keyword"]::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF8A3D' stroke-width='1.8'><circle cx='10' cy='11' r='4.5'/><path d='m14 15 5 5'/></svg>"); }
.plus-panel button[data-action="demo"]::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307C160' stroke-width='1.8'><path d='M8 6.5 18 12 8 17.5z'/></svg>"); }
.plus-panel button[data-action="speak"]::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7CFF' stroke-width='1.8'><path d='M11 5 7 9H4v6h3l4 4zM16 9a4 4 0 0 1 0 6M18.5 7a7 7 0 0 1 0 10'/></svg>"); }
.plus-panel button[data-action="end"]::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FA5151' stroke-width='1.8'><rect x='7' y='7' width='10' height='10' rx='1.5'/></svg>"); }
.plus-panel button[data-action="level"]::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B5E3C' stroke-width='1.8'><path d='M5 19V11M12 19V5M19 19v-6'/></svg>"); }
.plus-panel button[data-action="mode"]::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232AA84A' stroke-width='1.8'><circle cx='12' cy='12' r='8'/><path d='M12 8v4l2.5 1.5'/></svg>"); }
.plus-panel button[data-action="ai"]::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307C160' stroke-width='1.8'><path d='M12 4 13.8 9.2 19 11 13.8 12.8 12 18 10.2 12.8 5 11 10.2 9.2z'/></svg>"); }
.plus-panel button:active::before { transform: scale(.96); }

.cell-group { background: #fff; margin: 12px 12px 0; border-radius: 14px; overflow: hidden; }
.cell { background: #fff; }
.cell .item-last { margin-top: 0; }
.me-head {
  background: #fff; margin: 12px; border-radius: 16px;
  padding: 20px 16px; display: flex; gap: 14px; align-items: center;
}
.me-head .avatar { width: 58px; height: 58px; font-size: 20px; border-radius: 14px; }
.quote-card, .moment {
  background: #fff; margin: 12px; border-radius: 16px; padding: 16px;
  display: block;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.quote-jp { font-size: 18px; line-height: 1.65; }
.quote-meta { color: #8e8e93; font-size: 13px; margin-top: 8px; }
.moment { align-items: flex-start; cursor: default; }
.moment::after { display: none; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff; margin: 0 12px; border-radius: 14px;
}
.stat { text-align: center; padding: 16px 0; }
.stat b { display: block; font-size: 20px; }
.stat span { color: #8e8e93; font-size: 12px; }

.sheet { position: fixed; inset: 0; z-index: 20; }
.sheet-mask { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.sheet-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(420px, calc(100% - 32px));
  background: #fff; border-radius: 18px; padding: 20px 18px 14px;
  max-height: 80vh; overflow: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
}
.sheet-card h3 { margin: 0 0 10px; font-size: 17px; }
.sheet-card p { margin: 0 0 8px; font-size: 14px; line-height: 1.6; color: #333; }
.sheet-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.sheet-actions button {
  padding: 8px 14px; border-radius: 18px; background: #f2f2f2;
}
.sheet-actions .primary { background: var(--wx-green); color: #fff; }
.choice {
  display: block; width: 100%; text-align: left;
  padding: 12px 14px; border-radius: 12px; margin: 6px 0;
  background: #f7f7f7;
}
.choice.is-on { background: #e9f8ee; color: #07c160; font-weight: 650; }

.report { background: #fff7e6; }
.good { color: #07c160; }
.bad { color: #fa5151; }

@media (max-width: 860px) {
  body { background: #000; }
  .wx-root {
    max-width: none; margin: 0; height: 100%;
    border-radius: 0; box-shadow: none;
  }
  .wx-rail { display: none; }
  .wx-listpane { width: 100%; border: 0; background: #fff; }
  .list-header, .chat-header {
    background: rgba(247,247,247,.86);
    min-height: calc(48px + var(--safe-t));
    padding-top: var(--safe-t);
  }
  .chat-item { margin: 0; border-radius: 0; padding: 12px 14px; }
  .tabbar { display: flex; }
  .wx-chatpane {
    position: fixed; inset: 0; transform: translateX(100%);
    transition: transform .28s cubic-bezier(.2,.8,.2,1);
    z-index: 5;
  }
  .wx-chatpane.is-open { transform: none; }
  .back-btn { display: grid; }
  .chat-title { text-align: left; }
  .chat-item:hover, .contact-item:hover { background: transparent; }
  .chat-item:active, .contact-item:active, .cell:active { background: #f0f0f0; }
  .sheet-card {
    top: auto; bottom: 0; left: 0; right: 0; transform: none;
    width: 100%;
    border-radius: 18px 18px 0 0;
    padding-bottom: calc(16px + var(--safe-b));
  }
}

@media (prefers-reduced-motion: reduce) {
  .msg, .wx-chatpane { animation: none; transition: none; }
}
.jp-word {
  border-bottom: 1.5px dotted #07c160;
  cursor: pointer;
  border-radius: 2px;
}
.jp-word:hover, .jp-word.is-noted { background: #e9f8ee; }
.jp-word.is-noted { border-bottom-style: solid; }
.word-bar {
  position: fixed; z-index: 30;
  background: #111; color: #fff;
  border-radius: 18px; padding: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
.word-bar button {
  color: #fff; padding: 8px 14px; font-size: 13px; font-weight: 650;
}
.toast {
  position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%);
  background: rgba(17,17,17,.88); color: #fff;
  padding: 8px 16px; border-radius: 18px; font-size: 13px; z-index: 40;
}
.note-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--wx-line);
}
.note-item:last-child { border-bottom: 0; }
.note-main { flex: 1; min-width: 0; }
.note-main ruby { font-size: 18px; font-weight: 650; }
.note-main rt { font-size: 10px; color: #07c160; }
.note-zh { display: block; margin-top: 4px; color: #333; font-size: 14px; }
.note-from { display: block; margin-top: 2px; color: #8e8e93; font-size: 12px; }
.note-del { color: #8e8e93; font-size: 12px; padding: 4px 8px; border-radius: 12px; }
.note-del:hover { background: #f4f4f4; color: #fa5151; }
.plus-panel button[data-action="notes"]::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B8DEF' stroke-width='1.8'><path d='M7 4.5h10v15l-5-2.5-5 2.5z'/></svg>"); }

.sync-hint {
  margin: 8px 16px 0;
  color: #8e8e93;
  font-size: 12px;
  line-height: 1.5;
}
.sync-input {
  width: 100%;
  border: 0;
  background: #f4f4f4;
  border-radius: 12px;
  padding: 14px 12px;
  font-size: 28px;
  letter-spacing: .42em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  outline: none;
  margin: 8px 0 4px;
}

.off-tag {
  display: inline-block; margin-left: 6px; padding: 1px 5px;
  font-size: 10px; font-weight: 500; font-style: normal; vertical-align: 2px;
  color: #07c160; background: #e9f8ef; border-radius: 4px;
}
.jump-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 4px; }
.jump {
  border: 0; background: #f7f7f7; border-radius: 10px;
  padding: 10px 10px 9px; text-align: left; line-height: 1.35;
}
.jump b { display: block; font-size: 13px; font-weight: 650; }
.jump span { color: #8e8e93; font-size: 11px; }
.jump:active { background: #ebebeb; }
.me-head { cursor: pointer; }
.nick-input { letter-spacing: 0; font-size: 18px; text-align: left; }

.theme-switch {
  position: relative;
  display: flex;
  align-items: center;
  width: 64px;
  height: 32px;
  margin-right: 4px;
  padding: 2px;
  flex: none;
  border-radius: var(--radius-pill);
  background: rgba(0,0,0,.06);
}
.theme-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 4px 10px rgba(0,0,0,.06);
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.theme-opt {
  position: relative;
  z-index: 1;
  width: 30px; height: 28px;
  display: grid; place-items: center;
  color: #8e8e93;
}
.theme-opt.is-on { color: #111; }
.theme-switch svg { width: 15px; height: 15px; fill: none; }
html.dark .theme-thumb { transform: translateX(32px); background: #3a3a3c; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
html.dark .theme-switch { background: rgba(255,255,255,.1); }
html.dark .theme-opt.is-on { color: #fff; }
html.dark .theme-opt { color: #8e8e93; }
@media (min-width: 861px) {
  .list-header .theme-switch { display: none; }
}

html.dark {
  color-scheme: dark;
  --wx-self: #3c9f5a;
  --wx-chat: #111111;
  --wx-list: #111111;
  --wx-selected: #2c2c2e;
  --wx-hover: #2c2c2e;
  --wx-rail: #000000;
  --wx-text: #f5f5f7;
  --wx-sub: #8e8e93;
  --wx-muted: #636366;
  --wx-line: rgba(255,255,255,.08);
  --wx-white: #1c1c1e;
  --wx-header: rgba(22, 22, 24, .78);
  --wx-header-chat: rgba(17, 17, 17, .78);
  --wx-fill: #1c1c1e;
  --wx-fill-2: #2c2c2e;
  --wx-fill-3: #3a3a3c;
  --wx-icon: #f5f5f7;
  --wx-bubble: #2c2c2e;
  --wx-page: radial-gradient(1200px 600px at 50% -10%, #2c2c31, #141416 55%, #050505);
}
html.dark body { background: var(--wx-page); }
html.dark .wx-root { box-shadow: 0 18px 50px rgba(0,0,0,.55); }
html.dark .icon-btn:hover { background: rgba(255,255,255,.08); }
html.dark .icon-btn:active { background: rgba(255,255,255,.12); }
html.dark .search-box svg { color: #8e8e93; }
html.dark .tabbar { background: rgba(22,22,24,.92); border-top-color: var(--wx-line); }
html.dark .tab-btn { color: #d1d1d6; }
html.dark .chat-sub,
html.dark .item-last,
html.dark .zh-hint,
html.dark .quote-meta,
html.dark .note-from,
html.dark .note-del,
html.dark .sync-hint,
html.dark .empty-chat,
html.dark .time-chip,
html.dark .section-label { color: #8e8e93; }
html.dark .bubble { background: var(--wx-bubble); box-shadow: 0 1px 1px rgba(0,0,0,.35); }
html.dark .bubble rt { color: #a1a1a6; }
html.dark .card-bubble { background: #1c1c1e; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
html.dark .card-hd { background: #2c2c2e; }
html.dark .chip { background: #2c2c2e; color: #d1d1d6; }
html.dark .typing i { background: #636366; }
html.dark .chat-inputbar,
html.dark .plus-panel { background: rgba(22,22,24,.92); border-top-color: var(--wx-line); }
html.dark .chat-inputbar textarea,
html.dark .hold-talk,
html.dark .sync-input,
html.dark .choice { background: #2c2c2e; color: var(--wx-text); }
html.dark .plus-panel button::before {
  background-color: #3a3a3c;
  box-shadow: 0 1px 2px rgba(0,0,0,.35);
}
html.dark .hold-talk.is-holding { background: #3a3a3c; }
html.dark .cell-group,
html.dark .cell,
html.dark .me-head,
html.dark .quote-card,
html.dark .moment,
html.dark .stats,
html.dark .sheet-card { background: #1c1c1e; }
html.dark .sheet-card p,
html.dark .note-zh,
html.dark .plus-panel button { color: #e5e5ea; }
html.dark .sheet-actions button { background: #2c2c2e; color: #e5e5ea; }
html.dark .choice.is-on { background: #163524; color: #32d74b; }
html.dark .report { background: #3a2f14; }
html.dark .jp-word:hover, html.dark .jp-word.is-noted { background: #163524; }
html.dark .note-del:hover { background: #3a3a3c; }
html.dark .jump { background: #2c2c2e; color: var(--wx-text); }
html.dark .jump span { color: #8e8e93; }
html.dark .jump:active { background: #3a3a3c; }
html.dark .off-tag { color: #32d74b; background: #163524; }
html.dark .word-bar { background: #2c2c2e; }
html.dark .toast { background: rgba(44,44,46,.94); }
@media (max-width: 860px) {
  html.dark body { background: #000; }
  html.dark .wx-listpane { background: #111; }
  html.dark .list-header, html.dark .chat-header { background: rgba(22,22,24,.86); }
  html.dark .chat-item:active, html.dark .contact-item:active, html.dark .cell:active { background: #2c2c2e; }
}
