/* ============================================================
   Ds象棋 · 鲸鱼娘主题层（whale.css）
   在 style.css / review.css / library.css 之后加载，统一换肤。
   设计语言：深海蓝 + 白纱 + 青尾光；克制、只作用于外壳，不动棋盘木色。
   ============================================================ */

:root {
  /* 品牌 */
  --w-brand: #4d6bfe;
  --w-brand-strong: #3a55e8;
  --w-brand-soft: #e9eeff;
  --w-aqua: #35c9e6;
  --w-aqua-soft: #e2f8fd;

  /* 语义色（盈亏 / 状态） */
  --w-good: #12a06a;
  --w-good-soft: rgba(18, 160, 106, .10);
  --w-bad: #e2504c;
  --w-bad-soft: rgba(226, 80, 76, .10);
  --w-warn: #d98a1c;

  /* 墨色文字 */
  --w-ink: #10243d;
  --w-ink-2: #3c5c82;
  --w-mute: #7d96b4;

  /* 表面 */
  --w-page: #f4f9ff;
  --w-card: rgba(255, 255, 255, .94);
  --w-track: #eef3ff;
  --w-line: rgba(77, 107, 254, .12);
  --w-line-strong: rgba(77, 107, 254, .22);

  /* 尺寸与阴影 */
  --w-r-card: 18px;
  --w-r-btn: 12px;
  --w-r-pill: 999px;
  --w-shadow-1: 0 1px 2px rgba(16, 58, 120, .05), 0 8px 24px rgba(16, 58, 120, .06);
  --w-shadow-2: 0 2px 4px rgba(16, 58, 120, .06), 0 18px 44px rgba(16, 58, 120, .10);
  --w-shadow-brand: 0 6px 18px rgba(77, 107, 254, .26);

  /* 动效曲线（Emil：<300ms、ease-out、只动 transform/opacity） */
  --w-ease: cubic-bezier(.22, 1, .36, 1);
  --w-dur-1: 120ms;
  --w-dur-2: 180ms;
  --w-dur-3: 260ms;

  /* 兼容 review.css / library.css 的旧变量名 */
  --bg: var(--w-page);
  --bg-2: #eaf3ff;
  --panel: var(--w-card);
  --panel-2: #f6faff;
  --line: var(--w-line);
  --gold: var(--w-brand);
  --gold-bright: var(--w-brand-strong);
  --text: var(--w-ink);
  --muted: var(--w-mute);
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  color: var(--w-ink);
  background:
    radial-gradient(1100px 620px at 8% -12%, rgba(77, 107, 254, .16), transparent 62%),
    radial-gradient(900px 560px at 104% 4%, rgba(53, 201, 230, .14), transparent 58%),
    radial-gradient(900px 700px at 50% 116%, rgba(77, 107, 254, .10), transparent 60%),
    linear-gradient(168deg, #fbfdff 0%, #f2f8ff 46%, #eaf3ff 100%);
  background-attachment: fixed;
  font-feature-settings: "tnum" 1;
}

::selection { background: rgba(77, 107, 254, .18); }

.app { animation: w-rise var(--w-dur-3) var(--w-ease) both; }

/* ---------- 品牌区 ---------- */
.brand-text h1 { color: var(--w-ink); font-size: 18px; font-weight: 800; letter-spacing: 0; }
.brand-text p { color: var(--w-mute); }
.brand-chip {
  background: linear-gradient(135deg, var(--w-brand), var(--w-aqua));
  box-shadow: 0 3px 10px rgba(77, 107, 254, .28);
  letter-spacing: .5px;
}
.logo.mascot-logo { filter: none; }
.mascot-logo img, .mascot-logo svg {
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 6px 16px rgba(77, 107, 254, .28);
  background: #fff;
  animation: w-bob 5s ease-in-out infinite;
}

/* ---------- 按钮 ---------- */
.btn {
  border-radius: var(--w-r-btn);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0;
  background: var(--w-brand);
  box-shadow: var(--w-shadow-brand), inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: background var(--w-dur-1) var(--w-ease),
              transform var(--w-dur-1) var(--w-ease),
              box-shadow var(--w-dur-2) var(--w-ease);
}
.btn:hover { background: var(--w-brand-strong); filter: none; transform: translateY(-1px); }
.btn:active { transform: scale(.98); box-shadow: 0 3px 10px rgba(77, 107, 254, .22); }
.btn:focus-visible { outline: none; box-shadow: var(--w-shadow-brand), 0 0 0 3px rgba(77, 107, 254, .28); }
.btn:disabled { opacity: .42; box-shadow: none; transform: none; }

.btn.ghost {
  color: var(--w-brand);
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--w-line-strong);
  box-shadow: none;
}
.btn.ghost:hover { background: #fff; border-color: var(--w-brand); color: var(--w-brand-strong); }

.mini-btn {
  border-radius: 10px;
  border: 1px solid var(--w-line-strong);
  background: #fff;
  color: var(--w-brand);
  font-weight: 600;
  transition: background var(--w-dur-1) var(--w-ease), border-color var(--w-dur-1) var(--w-ease), transform var(--w-dur-1) var(--w-ease);
}
.mini-btn:hover { background: var(--w-brand-soft); border-color: var(--w-brand); }
.mini-btn:active { transform: scale(.97); }

/* ---------- 卡片 ---------- */
.card,
.setup-card,
.moves-card,
.help-card,
.review-card {
  position: relative;
  border-radius: var(--w-r-card);
  background: var(--w-card);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--w-shadow-1);
  backdrop-filter: blur(16px) saturate(1.05);
  -webkit-backdrop-filter: blur(16px) saturate(1.05);
  transition: box-shadow var(--w-dur-3) var(--w-ease), transform var(--w-dur-3) var(--w-ease);
}
.card::before { display: none; }
@media (hover: hover) {
  .card:hover { box-shadow: var(--w-shadow-2); }
}

.card-title {
  position: relative;
  padding-left: 12px;
  color: var(--w-ink);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .2px;
}
.card-title::after { display: none; }
.card-title::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 3px; height: 15px;
  margin-top: -7.5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--w-brand), var(--w-aqua));
}

/* 侧栏卡片入场：60ms 错峰 */
.panel > .card { animation: w-rise var(--w-dur-3) var(--w-ease) both; }
.panel > .card:nth-child(1) { animation-delay: 40ms; }
.panel > .card:nth-child(2) { animation-delay: 100ms; }
.panel > .card:nth-child(3) { animation-delay: 160ms; }
.panel > .card:nth-child(4) { animation-delay: 220ms; }

/* ---------- 表单与控件 ---------- */
.field > label { color: var(--w-ink-2); font-weight: 600; font-size: 12px; letter-spacing: .2px; }
.field .val { color: var(--w-brand); font-weight: 700; }
.hint, .tip, .suggest-eval, .suggest-pv { color: var(--w-mute); }

.seg {
  background: var(--w-track);
  border: 1px solid transparent;
  border-radius: var(--w-r-pill);
  padding: 3px;
  transition: background var(--w-dur-2) var(--w-ease);
}
.seg button {
  border-radius: var(--w-r-pill);
  color: var(--w-ink-2);
  font-weight: 600;
  transition: background var(--w-dur-2) var(--w-ease),
              color var(--w-dur-2) var(--w-ease),
              box-shadow var(--w-dur-2) var(--w-ease);
}
.seg button:hover { background: rgba(77, 107, 254, .08); color: var(--w-brand); }
.seg button.active {
  background: #fff;
  color: var(--w-brand-strong);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(16, 58, 120, .10), 0 4px 10px rgba(16, 58, 120, .08);
}

.open-chips button,
.time-gears button {
  border-radius: var(--w-r-pill);
  border: 1px solid var(--w-line);
  background: #fff;
  color: var(--w-ink-2);
  transition: background var(--w-dur-1) var(--w-ease),
              border-color var(--w-dur-1) var(--w-ease),
              color var(--w-dur-1) var(--w-ease),
              transform var(--w-dur-1) var(--w-ease);
}
.open-chips button:hover,
.time-gears button:hover { border-color: var(--w-brand); color: var(--w-brand); }
.open-chips button:active,
.time-gears button:active { transform: scale(.97); }
.open-chips button.active,
.time-gears button.active {
  background: var(--w-brand-soft);
  border-color: rgba(77, 107, 254, .45);
  color: var(--w-brand-strong);
  font-weight: 700;
  box-shadow: none;
}

input[type="range"] { accent-color: var(--w-brand); }
input[type="text"], input[type="password"], textarea, select {
  transition: border-color var(--w-dur-1) var(--w-ease), box-shadow var(--w-dur-1) var(--w-ease);
}
input[type="text"]:focus, input[type="password"]:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(77, 107, 254, .55);
  box-shadow: 0 0 0 3px rgba(77, 107, 254, .12);
}

/* ---------- 棋盘外壳 ---------- */
.board-area { animation: w-rise var(--w-dur-3) var(--w-ease) both; }
.board-wrap {
  border-radius: 26px;
  padding: 11px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 58%, #edf4ff 100%);
  border: 1px solid #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 22px 50px rgba(16, 58, 120, .15),
    0 0 0 1px rgba(77, 107, 254, .10);
  transition: box-shadow var(--w-dur-3) var(--w-ease);
}
#board { border-radius: 18px; display: block; box-shadow: 0 2px 12px rgba(90, 60, 20, .10); }

/* ---------- 建议文字变化 ---------- */
.suggest-move.w-pop { animation: w-text-pop var(--w-dur-3) var(--w-ease) both; }
@keyframes w-text-pop {
  from { opacity: .45; transform: translate3d(0, 4px, 0); }
  to { opacity: 1; transform: none; }
}

/* ---------- 状态条 ---------- */
.persona-badge, .material {
  background: #fff;
  border: 1px solid var(--w-line-strong);
  color: var(--w-brand);
  border-radius: var(--w-r-pill);
  font-weight: 600;
}
.turn { font-weight: 600; }
.turn-dot { transition: background var(--w-dur-2) var(--w-ease), box-shadow var(--w-dur-2) var(--w-ease); }
.turn-dot.red { background: #ef5a52; box-shadow: 0 0 0 3px rgba(239, 90, 82, .16); }
.turn-dot.black { background: #23364f; box-shadow: 0 0 0 3px rgba(35, 54, 79, .14); }

/* ---------- 棋灵建议 ---------- */
.mini-avatar {
  background-image: url("../assets/mascot/whale-girl.png");
  background-size: cover;
  background-position: center 30%;
  color: transparent;
  font-size: 0;
  box-shadow: 0 4px 12px rgba(77, 107, 254, .3), inset 0 0 0 1.5px #fff;
}
.suggest-move {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--w-ink);
  font-weight: 800;
  letter-spacing: .5px;
  font-variant-numeric: tabular-nums;
}
.suggest-eval { font-size: 12.5px; }
.engine-tag {
  color: var(--w-brand) !important;
  background: var(--w-brand-soft) !important;
  border: 1px solid rgba(77, 107, 254, .28) !important;
  border-radius: var(--w-r-pill) !important;
  font-weight: 700;
}
#infoScore { color: var(--w-brand) !important; }
.metrics { border-top: 1px solid var(--w-line); color: var(--w-mute); }
.metrics b { color: var(--w-ink); font-weight: 700; }

.idea-box {
  position: relative;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7faff, #eef6ff);
  border: 1px solid var(--w-line);
  color: var(--w-ink-2);
  padding-left: 30px;
  line-height: 1.65;
}
.idea-box::before {
  content: "";
  position: absolute;
  left: 12px; top: 12px;
  width: 9px; height: 9px;
  border-radius: 50% 50% 50% 0;
  background: var(--w-aqua);
  transform: rotate(-45deg);
}

/* ---------- 着法列表 ---------- */
.move-list { color: var(--w-ink-2); }
.move-list::-webkit-scrollbar { width: 6px; }
.move-list::-webkit-scrollbar-thumb { background: rgba(77, 107, 254, .22); border-radius: 6px; }
.move-list .empty {
  color: var(--w-mute);
  padding: 6px 0 14px;
  display: block;
}
.move-list .empty::before {
  content: "";
  display: block;
  width: 68px; height: 68px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: url("../assets/mascot/whale-girl.png") center 28% / cover no-repeat;
  box-shadow: 0 0 0 4px #fff, 0 10px 24px rgba(77, 107, 254, .16);
  opacity: .92;
  animation: w-bob 6s ease-in-out infinite;
}

/* ---------- 菜单 / 弹窗 ---------- */
.menu-list {
  border-radius: 14px;
  background: rgba(255, 255, 255, .98);
  border: 1px solid var(--w-line);
  box-shadow: 0 18px 44px rgba(16, 58, 120, .16);
  padding: 6px;
  transform-origin: top right;
  animation: w-pop var(--w-dur-2) var(--w-ease) both;
}
.menu-list button, .menu-list a {
  color: var(--w-ink-2);
  border-radius: 9px;
  transition: background var(--w-dur-1) var(--w-ease), color var(--w-dur-1) var(--w-ease);
}
.menu-list button:hover, .menu-list a:hover { background: var(--w-brand-soft); color: var(--w-brand-strong); }

.game-over { background: rgba(9, 28, 52, .42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: w-fade var(--w-dur-2) var(--w-ease) both; }
.over-card {
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 30px 80px rgba(9, 28, 52, .32);
  animation: w-pop-up var(--w-dur-3) var(--w-ease) both;
}
.over-card h2 { color: var(--w-ink); }

/* ---------- 加载中 ---------- */
.thinking span {
  background: rgba(255, 255, 255, .96);
  color: var(--w-ink);
  border: 1px solid var(--w-line);
  box-shadow: 0 8px 24px rgba(16, 58, 120, .14);
  font-weight: 600;
  letter-spacing: .5px;
}
.spinner {
  width: 10px; height: 10px;
  border: none;
  border-radius: 50%;
  background: var(--w-brand);
  box-shadow: 0 0 0 0 rgba(77, 107, 254, .45);
  animation: w-ripple 1.25s var(--w-ease) infinite;
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(77, 107, 254, .24); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(77, 107, 254, .38); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 开屏 ---------- */
.splash {
  background:
    radial-gradient(720px 520px at 30% 18%, rgba(77, 107, 254, .45), transparent 62%),
    radial-gradient(620px 480px at 74% 82%, rgba(53, 201, 230, .35), transparent 60%),
    linear-gradient(165deg, #0b1d3a 0%, #14305c 52%, #1d4a86 100%);
  transition: opacity .38s var(--w-ease), transform .38s var(--w-ease), visibility .38s;
}
.splash.hide { opacity: 0; transform: scale(1.03); }
.splash-name { font-weight: 800; letter-spacing: 3px; }
.splash-tag { color: rgba(230, 242, 255, .8); }

/* ---------- 统一动效关键帧 ---------- */
@keyframes w-rise { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
@keyframes w-pop { from { opacity: 0; transform: translate3d(0, -6px, 0) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes w-pop-up { from { opacity: 0; transform: translate3d(0, 12px, 0) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes w-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes w-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes w-ripple {
  0%   { box-shadow: 0 0 0 0 rgba(77, 107, 254, .42); }
  70%  { box-shadow: 0 0 0 12px rgba(77, 107, 254, 0); }
  100% { box-shadow: 0 0 0 0 rgba(77, 107, 254, 0); }
}

/* ---------- 复盘 / 棋库页 ---------- */
.rv-brand h1 { color: var(--w-ink); font-weight: 800; }
.rv-brand .sub { color: var(--w-mute); }
.back { color: var(--w-mute); transition: color var(--w-dur-1) var(--w-ease); }
.back:hover { color: var(--w-brand); }
.card .row, .row { color: var(--w-ink-2); }
.tag { border-radius: var(--w-r-pill); }
.tag.on { background: var(--w-brand-soft); color: var(--w-brand-strong); border-color: rgba(77, 107, 254, .35); }
.eval-box { border-radius: 14px; background: #fff; border: 1px solid var(--w-line); box-shadow: var(--w-shadow-1); }
.search {
  background: #fff;
  border: 1px solid var(--w-line-strong);
  color: var(--w-ink);
  border-radius: 10px;
}
.search:focus { outline: none; border-color: var(--w-brand); box-shadow: 0 0 0 3px rgba(77, 107, 254, .12); }
.lib-tab.on { background: var(--w-brand); color: #fff; border-color: transparent; }

/* ---------- 复盘/棋库页：窄屏换行修正（避免整页横向溢出） ---------- */
.rv-actions { flex-wrap: wrap; }
.rv-nav { flex-wrap: wrap; }
/* 栅格子项的 min-width:auto 会让 canvas 的固有宽度撑破整页 */
.rv-main > *, .rv-board-col { min-width: 0; }
#rvBoard { max-width: 100%; width: 100%; height: auto; }

@media (max-width: 620px) {
  body { padding: 12px; }
  .rv-top { margin-bottom: 12px; gap: 10px; }
  .rv-brand h1 { font-size: 19px; }
  .rv-brand .sub { display: none; }
  .btn { padding: 8px 13px; font-size: 13px; }
  .board-wrap { padding: 8px; border-radius: 20px; }
}

/* ---------- 移动端 ---------- */
@media (max-width: 760px) {
  body { padding: 12px; }
  .card { border-radius: 16px; }
  .board-wrap { border-radius: 18px; padding: 7px; }
  .move-list .empty::before { width: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ===== v2.44.3 方向 B 第一批 =====
   1) 状态条不再被棋盘卡片压住、长提示截断
   2) 建议按钮三等分，不再一大两小
   3) 手机端头部只保留主操作 */
@media (max-width: 760px) {
  .statusbar {
    position: relative;
    z-index: 6;
    margin-top: 12px;
    padding: 8px 10px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(246,250,255,.98));
    box-shadow: 0 2px 10px rgba(20, 50, 96, .06);
    row-gap: 6px;
  }
  .statusbar .hint {
    max-width: 46vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .suggest-btns { display: flex; gap: 10px; }
  .suggest-btns .btn { flex: 1 1 0; min-width: 0; white-space: nowrap; }
}
.suggest-btns .btn { white-space: nowrap; }

/* ===== v2.44.3 方向 B 第三批：手机端头部精简 ===== */
@media (max-width: 760px) {
  .topbar { gap: 8px; row-gap: 6px; padding: 4px 2px 6px; align-items: center; }
  .topbar .logo { width: 32px; height: 32px; flex: 0 0 32px; }
  .brand { gap: 8px; min-width: 0; }
  .brand-text { min-width: 0; }
  .brand-text h1 { font-size: 15.5px; white-space: nowrap; }
  .brand-text p { display: none; }
  .brand-chip { display: none; }
  .top-actions { gap: 6px; margin-left: auto; flex-wrap: nowrap; }
  .top-actions .btn {
    padding: 7px 11px;
    min-height: 32px;
    font-size: 13px;
    border-radius: 10px;
    white-space: nowrap;
  }
}

/* v2.44.3 第三批补：≤430 收窄，保证四个动作不出屏 */
@media (max-width: 430px) {
  .topbar { padding: 2px 2px 4px; }
  .top-actions { gap: 4px; }
  .top-actions .btn { padding: 6px 9px; font-size: 12.5px; min-height: 30px; border-radius: 9px; }
  #btnUndo { display: none; }
  .brand-text h1 { font-size: 15px; }
}
/* v2.44.3 方案1：建议区去重
   顶部建议条承担动作（采用/重算），底部「棋灵建议」只保留主变与评分细节 */
.suggest-card .suggest-main,
.suggest-card .suggest-btns { display: none; }
.suggest-card .card-title { font-size: 14px; }
.suggest-card .suggest-pv { margin-top: 2px; }
@media (max-width: 760px) {
  .suggest-card { padding: 12px 13px; }
  .suggest-card .suggest-pv { max-height: 132px; overflow: hidden; }
}
/* ===== 打赏弹窗（v2.44.4） ===== */
.dsq-donate {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 26, 48, .42);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s cubic-bezier(.22, 1, .36, 1);
}
.dsq-donate.on { opacity: 1; pointer-events: auto; }
.dsq-donate[hidden] { display: none; }

.dsq-card {
  width: min(340px, 100%);
  border-radius: 24px;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, #fff, #f7fbff);
  box-shadow: 0 24px 60px rgba(10, 30, 60, .28);
  border: 1px solid rgba(223, 234, 246, .9);
  text-align: center;
  transform: translateY(14px) scale(.97);
  transition: transform .34s cubic-bezier(.22, 1, .36, 1);
}
.dsq-donate.on .dsq-card { transform: translateY(0) scale(1); }

.dsq-card img {
  display: block;
  width: 186px;
  height: auto;
  margin: -6px auto 2px;
  /* v2.44.22：换成原生透明 webp，不再用 multiply 融合白底（深色模式下 multiply 会把人物压黑） */
  filter: drop-shadow(0 10px 22px rgba(28, 78, 140, .18));
}

.dsq-title {
  margin: 2px 0 6px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.dsq-text {
  margin: 0 auto 14px;
  max-width: 24em;
  font-size: 12.5px;
  line-height: 1.85;
  color: #3c5c82;
}
.dsq-actions { display: flex; gap: 10px; margin-top: 6px; }
.dsq-actions .btn { flex: 1 1 0; font-size: 14px; font-weight: 800; height: 46px; border-radius: 14px; letter-spacing: .01em; }
.dsq-actions .btn:not(.ghost) {
  flex: 1.6 1 0;
  background: linear-gradient(180deg, #4a84ff, #1c47c8);
  box-shadow: 0 10px 22px rgba(28, 71, 200, .40), inset 0 1px 0 rgba(255, 255, 255, .3);
  color: #fff;
}
/* v2.44.15：.dsq-later（以后别问了）已移除，弹窗改成每 3 天提醒一次 */
/* ===== v2.44.15：启动时「留言审核结果」小提示 ===== */
.dsq-news[hidden] { display: none !important; }
.dsq-news {
  position: fixed; left: 0; right: 0; top: 0; z-index: 9995;
  padding: 10px 12px; display: flex; justify-content: center;
  pointer-events: none;
}
.dsq-news-card {
  pointer-events: auto; display: flex; align-items: center; gap: 10px;
  width: min(520px, 100%); padding: 10px 12px; border-radius: 14px;
  background: linear-gradient(140deg, #ffffff, #eef5ff);
  border: 1px solid rgba(77, 147, 232, .28);
  box-shadow: 0 12px 28px -10px rgba(31, 111, 214, .35);
  transform: translateY(-130%); opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
}
.dsq-news.on .dsq-news-card { transform: translateY(0); opacity: 1; }
.dsq-news-icon { font-size: 22px; flex: 0 0 auto; }
.dsq-news-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dsq-news-body b { font-size: 13.5px; color: #16395f; }
.dsq-news-body span {
  font-size: 12.5px; color: #5d7590; line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dsq-news-go {
  flex: 0 0 auto; font: inherit; font-size: 12.5px; font-weight: 700;
  padding: 7px 13px; border-radius: 999px; cursor: pointer;
  border: 0; color: #fff;
  background: linear-gradient(120deg, #1f6fd6, #4d93e8 60%, #26c0ae);
  box-shadow: 0 6px 14px -8px rgba(31, 111, 214, .9);
}
.dsq-news-x {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  border: 0; background: rgba(77, 147, 232, .12); color: #56789c;
  font-size: 13px; line-height: 1; cursor: pointer;
}