:root {
  --bg: #f6f3ec;
  --bg-2: #edf4ea;
  --paper: #fffdf8;
  --paper-soft: rgba(255, 253, 248, 0.82);

  --text: #2e332d;
  --text-soft: #566052;
  --muted: #7c846f;

  --green: #6f8f72;
  --green-dark: #456b4b;
  --green-soft: rgba(111, 143, 114, 0.14);

  --tea: #b88b5a;
  --tea-soft: rgba(184, 139, 90, 0.14);

  --red: #b05d52;
  --red-soft: rgba(176, 93, 82, 0.12);

  --line: rgba(88, 103, 75, 0.16);
  --line-strong: rgba(88, 103, 75, 0.28);

  --shadow: 0 18px 45px rgba(70, 62, 45, 0.09);
  --shadow-soft: 0 10px 25px rgba(70, 62, 45, 0.07);

  --radius: 22px;
  --radius-sm: 14px;

  --font-ui: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "LXGW WenKai", "Microsoft YaHei", serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.92), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(205, 224, 196, 0.75), transparent 34%),
    radial-gradient(circle at 75% 90%, rgba(238, 215, 178, 0.58), transparent 36%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 52%, #f8efe2 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-serif);
  background:
    linear-gradient(rgba(255,255,255,.32), rgba(255,255,255,.10)),
    repeating-linear-gradient(
      90deg,
      rgba(88,103,75,.022) 0,
      rgba(88,103,75,.022) 1px,
      transparent 1px,
      transparent 42px
    );
}

a {
  color: var(--green-dark);
  text-decoration: none;
}

a:hover {
  color: var(--tea);
}

/* 顶部：品牌 + 选项卡，强制稳定显示 */
.yx-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 250, 246, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(70, 62, 45, 0.06);
}

.yx-header-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 14px 22px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.yx-brand {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: #2e3a2f !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

.yx-brand-mark {
  display: inline-block;
  width: 10px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--green), var(--tea));
  box-shadow: 0 8px 18px rgba(111,143,114,.25);
}

.yx-brand-text {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .08em;
  white-space: nowrap;
}

.yx-userbar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--muted);
}

.yx-logout {
  color: var(--red) !important;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(176,93,82,.18);
  background: rgba(255,255,255,.5);
}

.yx-tabs {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 22px 13px;
  display: flex !important;
  align-items: center;
  gap: 9px;
  overflow-x: auto !important;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: thin;
}

.yx-tabs a {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #596252;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1;
  background: rgba(255,255,255,.42);
  transition: all .16s ease;
}

.yx-tabs a:hover {
  color: var(--green-dark);
  background: var(--green-soft);
  border-color: var(--line);
}

.yx-tabs a.active {
  color: #fff !important;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 8px 18px rgba(79, 115, 85, 0.22);
}

/* 兼容旧 header/nav，防止旧结构仍存在时隐藏 */
header nav,
.site-header nav,
nav {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow-x: auto;
}

nav a {
  display: inline-flex;
  flex: 0 0 auto;
}

/* 主体 */
.page,
main,
.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 28px 22px 64px;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: #2d352b;
  font-weight: 700;
  letter-spacing: .03em;
}

h1 {
  font-size: 34px;
  margin-bottom: 22px;
}

h2 {
  font-size: 22px;
  margin-bottom: 14px;
}

h3 {
  font-size: 17px;
  margin-bottom: 12px;
}

p {
  line-height: 1.78;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

/* 卡片 */
.card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.68)),
    var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.56), transparent 32%),
    radial-gradient(circle at 96% 0%, rgba(184,139,90,.12), transparent 28%);
  opacity: .82;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card h2::before {
  content: "✦";
  color: var(--tea);
  font-size: 15px;
}

/* 页面操作按钮区 */
.actions {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* 按钮 */
button,
.btn,
input[type="submit"] {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 16px;
  border-radius: 999px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 8px 18px rgba(79, 115, 85, 0.18);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1;
  transition: transform .16s ease, box-shadow .16s ease;
}

button:hover,
.btn:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(79, 115, 85, 0.24);
}

.btn.ghost,
button.ghost {
  color: var(--green-dark) !important;
  background: rgba(255,255,255,.65);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.btn.ghost:hover,
button.ghost:hover {
  background: var(--green-soft);
}

button.danger,
.btn.danger,
.danger button {
  background: linear-gradient(135deg, #c7786c, var(--red));
}

/* 表单 */
form {
  margin: 0;
}

.form-grid,
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  align-items: end;
}

label {
  display: block;
  margin-bottom: 7px;
  color: #596252;
  font-size: 13px;
  font-family: var(--font-ui);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  border-radius: 14px;
  padding: 11px 12px;
  font-size: 14px;
  outline: none;
  font-family: var(--font-ui);
  transition: border .16s ease, box-shadow .16s ease, background .16s ease;
}

textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.65;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(111,143,114,.65);
  box-shadow: 0 0 0 4px rgba(111,143,114,.12);
  background: rgba(255,255,255,.94);
}

/* 提示 */
.alert {
  padding: 13px 15px;
  margin: 12px 0 18px;
  border-radius: 16px;
  background: var(--green-soft);
  border: 1px solid rgba(111,143,114,.25);
  color: #405640;
  line-height: 1.65;
}

.alert.danger,
.alert.error {
  background: var(--red-soft);
  border-color: rgba(176, 93, 82, 0.25);
  color: #87453e;
}

/* 统计 */
.stat-grid,
.mini-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
  margin: 16px 0 18px;
}

.stat-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.44));
  box-shadow: 0 8px 20px rgba(70, 62, 45, 0.06);
}

.stat-label {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 12px;
  margin-bottom: 6px;
}

.stat-value {
  color: #334633;
  font-family: var(--font-ui);
  font-size: 24px;
  font-weight: 760;
}

/* 表格 */
.table-wrap,
.history-scroll {
  width: 100%;
  overflow-x: auto !important;
  overflow-y: visible;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.54);
}

table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 980px;
  font-family: var(--font-ui);
  font-size: 13px;
}

.history-table {
  table-layout: fixed !important;
  width: 2100px !important;
  min-width: 2100px !important;
}

th,
td {
  padding: 12px 13px;
  border-bottom: 1px solid rgba(88,103,75,.12);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #4d5b49;
  background: linear-gradient(180deg, #f7f5ee, #eeefe6);
  font-weight: 700;
  border-bottom: 1px solid var(--line-strong);
}

td {
  color: #3f433d;
  background: rgba(255,255,255,.34);
  overflow: hidden;
  text-overflow: ellipsis;
}

tr:hover td {
  background: rgba(111,143,114,.075);
}

.history-table th,
.history-table td {
  display: table-cell !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.history-table .c-seq { width: 80px; }
.history-table .c-title { width: 260px; }
.history-table .c-author { width: 180px; }
.history-table .c-country { width: 100px; }
.history-table .c-publisher { width: 220px; }
.history-table .c-format { width: 110px; }
.history-table .c-platform { width: 130px; }
.history-table .c-date { width: 130px; }
.history-table .c-score { width: 100px; }
.history-table .c-douban { width: 120px; }
.history-table .c-url { width: 100px; }
.history-table .c-status { width: 100px; }
.history-table .c-progress { width: 100px; }
.history-table .c-note { width: 220px; }
.history-table .c-action { width: 160px; }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1px solid rgba(111,143,114,.2);
  font-family: var(--font-ui);
  font-size: 12px;
}

/* 登录页 */
.auth-card,
.login-card {
  max-width: 420px;
  margin: 70px auto;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(88,103,75,.08);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb {
  background: rgba(111,143,114,.38);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(111,143,114,.58);
}

/* 移动端 */
@media (max-width: 820px) {
  .yx-header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 13px 12px 6px;
  }

  .yx-tabs {
    padding: 0 12px 12px;
  }

  .yx-userbar {
    align-self: flex-end;
  }

  .yx-brand-text {
    font-size: 18px;
  }

  .page,
  main,
  .container {
    padding: 18px 12px 46px;
  }

  .card {
    padding: 16px;
    border-radius: 18px;
  }

  h1 {
    font-size: 28px;
  }

  .form-grid,
  .filters {
    grid-template-columns: 1fr;
  }

  .stat-grid,
  .mini-stats {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

/* 顶部导航强制兜底 */
.yx-force-header,
.yx-force-header * {
  box-sizing: border-box;
}

.yx-force-header {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.yx-force-tabs {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.yx-force-tabs a,
.yx-force-brand {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* 统计页防重叠修复 */
.stat-grid,
.stats-grid,
.dashboard-grid,
.metrics-grid,
.mini-stats {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
  gap: 14px !important;
  align-items: stretch !important;
}

.stat-card,
.metric-card,
.summary-card {
  min-width: 0 !important;
  overflow: hidden !important;
  word-break: break-word !important;
}

.stat-value,
.metric-value {
  white-space: normal !important;
  word-break: break-word !important;
  line-height: 1.2 !important;
}

.card {
  min-width: 0 !important;
}

.card canvas,
.card svg {
  max-width: 100% !important;
}

@media (max-width: 900px) {
  .stat-grid,
  .stats-grid,
  .dashboard-grid,
  .metrics-grid,
  .mini-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  .stat-grid,
  .stats-grid,
  .dashboard-grid,
  .metrics-grid,
  .mini-stats {
    grid-template-columns: 1fr !important;
  }
}

/* 豆瓣信息获取进度 */
.sync-progress-wrap {
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: rgba(88,103,75,.12);
  overflow: hidden;
  margin: 18px 0;
  border: 1px solid rgba(88,103,75,.16);
}

.sync-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6f8f72, #b88b5a);
  transition: width .28s ease;
  position: relative;
}

.sync-progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  animation: yxShine 1.2s linear infinite;
}

@keyframes yxShine {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.sync-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-ui, system-ui);
  color: var(--muted, #7d806f);
}

.sync-numbers span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(88,103,75,.15);
}

/* ===============================
   统计页稳定布局修复
   =============================== */
.stats-page {
  display: block !important;
  width: 100% !important;
  max-width: 1500px !important;
  margin: 0 auto !important;
}

.stats-hero {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 18px !important;
}

.stats-eyebrow {
  margin: 0 0 6px !important;
  color: var(--accent, #b88b5a) !important;
  font-family: var(--font-ui, system-ui) !important;
  font-size: 12px !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
}

.stats-metrics {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
  margin: 0 0 20px !important;
}

.stats-metric {
  min-width: 0 !important;
  padding: 18px !important;
  border-radius: 20px !important;
  border: 1px solid var(--line, rgba(88,103,75,.16)) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.56)) !important;
  box-shadow: 0 10px 24px rgba(70,62,45,.07) !important;
  overflow: hidden !important;
}

.stats-metric span {
  display: block !important;
  margin-bottom: 8px !important;
  color: var(--muted, #7d806f) !important;
  font-family: var(--font-ui, system-ui) !important;
  font-size: 13px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.stats-metric strong {
  display: block !important;
  color: #334633 !important;
  font-family: var(--font-ui, system-ui) !important;
  font-size: 28px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.stats-panels {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
  align-items: start !important;
  width: 100% !important;
}

.stats-panel {
  min-width: 0 !important;
  width: 100% !important;
  overflow: hidden !important;
}

.stats-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.stats-row {
  min-width: 0 !important;
}

.stats-row-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 6px !important;
  font-family: var(--font-ui, system-ui) !important;
  font-size: 13px !important;
}

.stats-row-head span {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: var(--text-soft, #566052) !important;
}

.stats-row-head b {
  flex: 0 0 auto !important;
  color: var(--green-dark, #456b4b) !important;
}

.stats-bar {
  width: 100% !important;
  height: 9px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  background: rgba(88,103,75,.11) !important;
}

.stats-bar i {
  display: block !important;
  height: 100% !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, var(--green, #6f8f72), var(--tea, #b88b5a)) !important;
}

.stats-table-wrap {
  width: 100% !important;
  overflow-x: auto !important;
  border-radius: 16px !important;
  border: 1px solid var(--line, rgba(88,103,75,.16)) !important;
}

.stats-table {
  width: 100% !important;
  min-width: 720px !important;
  table-layout: fixed !important;
}

.stats-table th,
.stats-table td {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (max-width: 1180px) {
  .stats-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .stats-panels {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 560px) {
  .stats-metrics {
    grid-template-columns: 1fr !important;
  }

  .stats-metric strong {
    font-size: 24px !important;
  }
}

/* 阅读历史强制显示豆瓣评分、豆瓣阅读人数 */
.history-scroll {
  width: 100% !important;
  overflow-x: auto !important;
}

.history-table {
  table-layout: fixed !important;
  width: 2100px !important;
  min-width: 2100px !important;
}

.history-table th,
.history-table td {
  display: table-cell !important;
  visibility: visible !important;
  opacity: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.history-table .c-douban {
  width: 130px !important;
  min-width: 130px !important;
}

/* 阅读历史顶部横向滚动条 */
.history-scroll-top {
  width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  height: 18px !important;
  margin-bottom: 8px !important;
  border: 1px solid var(--line, rgba(88,103,75,.16)) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.48) !important;
}

.history-scroll-spacer {
  height: 1px !important;
}

.history-scroll {
  width: 100% !important;
  overflow-x: auto !important;
}

.history-table {
  table-layout: fixed !important;
  width: 2100px !important;
  min-width: 2100px !important;
}

.history-table .c-seq { width: 80px !important; }
.history-table .c-title { width: 260px !important; }
.history-table .c-author { width: 180px !important; }
.history-table .c-country { width: 100px !important; }
.history-table .c-publisher { width: 220px !important; }
.history-table .c-douban { width: 130px !important; }
.history-table .c-url { width: 100px !important; }
.history-table .c-format { width: 110px !important; }
.history-table .c-platform { width: 130px !important; }
.history-table .c-date { width: 130px !important; }
.history-table .c-score { width: 100px !important; }
.history-table .c-status { width: 100px !important; }
.history-table .c-progress { width: 100px !important; }
.history-table .c-note { width: 220px !important; }
.history-table .c-action { width: 160px !important; }

.history-table th,
.history-table td {
  display: table-cell !important;
  visibility: visible !important;
  opacity: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* 阅读历史：表格区域独立滚动，表头固定 */
.history-scroll {
  width: 100% !important;
  overflow: auto !important;
  max-height: calc(100vh - 260px) !important;
  border: 1px solid var(--line, rgba(88,103,75,.16)) !important;
  border-radius: 18px !important;
}

.history-table thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 20 !important;
  background: linear-gradient(180deg, #f7f5ee, #eeefe6) !important;
  box-shadow: 0 1px 0 rgba(88,103,75,.22) !important;
}

.history-scroll-top {
  position: sticky !important;
  top: 0 !important;
  z-index: 30 !important;
}

/* 豆瓣进度 */
.sync-progress-wrap {
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: rgba(88,103,75,.12);
  overflow: hidden;
  margin: 18px 0;
  border: 1px solid rgba(88,103,75,.16);
}

.sync-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6f8f72, #b88b5a);
  transition: width .28s ease;
  position: relative;
}

.sync-progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  animation: yxShine 1.2s linear infinite;
}

@keyframes yxShine {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.sync-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-ui, system-ui);
  color: var(--muted, #7d806f);
}

.sync-numbers span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(88,103,75,.15);
}

pre {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.62);
  border: 1px solid var(--line, rgba(88,103,75,.16));
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* 豆瓣获取消息提示 */
.douban-sync-card .alert {
  margin-top: 16px;
}

.sync-progress-wrap {
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: rgba(88,103,75,.12);
  overflow: hidden;
  margin: 18px 0;
  border: 1px solid rgba(88,103,75,.16);
}

.sync-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6f8f72, #b88b5a);
  transition: width .28s ease;
  position: relative;
}

.sync-progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  animation: yxShine 1.2s linear infinite;
}

@keyframes yxShine {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.sync-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-ui, system-ui);
  color: var(--muted, #7d806f);
}

.sync-numbers span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(88,103,75,.15);
}

/* 品牌图标美化：书页 + 书签感 */
.yx-force-brand::before {
  content: "阅" !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 12px !important;
  color: #fffdf8 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  font-family: "Noto Serif SC", "Songti SC", "STSong", "Microsoft YaHei", serif !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.22), transparent 42%),
    linear-gradient(135deg, #6f8f72, #4f7355 58%, #b88b5a) !important;
  box-shadow:
    0 10px 22px rgba(79,115,85,.24),
    inset 0 0 0 1px rgba(255,255,255,.35) !important;
}

.yx-force-brand::after {
  content: "" !important;
  display: inline-block !important;
  width: 5px !important;
  height: 18px !important;
  border-radius: 999px !important;
  background: rgba(255, 253, 248, .72) !important;
  margin-left: -18px !important;
  margin-right: 13px !important;
  transform: translateY(10px) rotate(35deg) !important;
  box-shadow: 0 2px 5px rgba(70,62,45,.12) !important;
}

/* 品牌图标：清新简洁小书本 */
.yx-force-brand {
  gap: 10px !important;
}

.yx-force-brand::before {
  content: "" !important;
  display: inline-block !important;
  width: 28px !important;
  height: 24px !important;
  border-radius: 6px !important;
  background:
    linear-gradient(90deg, transparent 48%, rgba(79,115,85,.38) 48%, rgba(79,115,85,.38) 52%, transparent 52%),
    linear-gradient(135deg, rgba(111,143,114,.16), rgba(255,255,255,.76)) !important;
  border: 1.5px solid rgba(79,115,85,.55) !important;
  box-shadow: none !important;
  position: relative !important;
  flex: 0 0 auto !important;
}

.yx-force-brand::after {
  content: "" !important;
  display: inline-block !important;
  width: 5px !important;
  height: 17px !important;
  border-radius: 999px !important;
  background: #b88b5a !important;
  margin-left: -20px !important;
  margin-right: 15px !important;
  transform: translateY(4px) !important;
  box-shadow: none !important;
  opacity: .85 !important;
}

/* 去掉品牌标题旁棕色细长色块 */
.yx-force-brand::after {
  content: none !important;
  display: none !important;
}

/* 阅读历史序号旁编辑图标 */
.record-edit-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  margin-left: 6px !important;
  border-radius: 999px !important;
  color: var(--green-dark, #456b4b) !important;
  background: rgba(111,143,114,.12) !important;
  border: 1px solid rgba(111,143,114,.2) !important;
  font-size: 13px !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}

.record-edit-icon:hover {
  color: #fff !important;
  background: linear-gradient(135deg, #6f8f72, #4f7355) !important;
}

/* 编辑页危险操作区 */
.danger-zone {
  border-color: rgba(176, 93, 82, 0.28) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,245,243,.68)) !important;
}

.danger-zone h2::before {
  content: "!" !important;
  color: #b05d52 !important;
}

/* 登录页：记住我的账号 */
.remember-row {
  margin-top: 8px;
}

.remember-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  cursor: pointer !important;
  color: var(--muted, #7d806f) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.remember-label input[type="checkbox"] {
  width: 17px !important;
  height: 17px !important;
  margin: 0 !important;
  accent-color: var(--primary, #6f8f72) !important;
}

/* ===============================
   阅心：美化消息弹框 / Toast
   =============================== */

.yx-toast-wrap {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.yx-toast {
  min-width: 220px;
  max-width: 380px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(88, 103, 75, 0.18);
  box-shadow: 0 16px 36px rgba(70, 62, 45, 0.12);
  backdrop-filter: blur(18px);
  color: #394137;
  font-family: var(--font-ui, system-ui);
  font-size: 14px;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(-8px) scale(.98);
  transition: opacity .22s ease, transform .22s ease;
}

.yx-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.yx-toast-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #6f8f72;
  font-size: 13px;
  font-weight: 700;
}

.yx-toast-warning .yx-toast-icon {
  background: #b88b5a;
}

.yx-toast-danger .yx-toast-icon {
  background: #b05d52;
}

.yx-toast-success .yx-toast-icon {
  background: #6f8f72;
}

.yx-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 999998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(47, 51, 45, 0.18);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .18s ease;
}

.yx-modal-mask.show {
  opacity: 1;
}

.yx-modal-card {
  width: min(430px, 100%);
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,253,248,.92));
  border: 1px solid rgba(88,103,75,.18);
  box-shadow: 0 26px 70px rgba(70, 62, 45, 0.18);
  transform: translateY(12px) scale(.98);
  transition: transform .18s ease;
}

.yx-modal-mask.show .yx-modal-card {
  transform: translateY(0) scale(1);
}

.yx-modal-icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #6f8f72;
  font-family: var(--font-ui, system-ui);
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(111, 143, 114, 0.22);
}

.yx-modal-icon-warning {
  background: #b88b5a;
  box-shadow: 0 10px 24px rgba(184, 139, 90, 0.18);
}

.yx-modal-icon-danger {
  background: #b05d52;
  box-shadow: 0 10px 24px rgba(176, 93, 82, 0.18);
}

.yx-modal-icon-success {
  background: #6f8f72;
}

.yx-modal-body h3 {
  margin: 0 0 8px;
  color: #2f332d;
  font-size: 18px;
  line-height: 1.35;
}

.yx-modal-body p {
  margin: 0;
  color: #6f7568;
  font-family: var(--font-ui, system-ui);
  font-size: 14px;
  line-height: 1.75;
}

.yx-modal-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.yx-modal-ok {
  min-width: 88px;
  min-height: 38px;
  border-radius: 999px;
  border: 0;
  color: #fff;
  background: #6f8f72;
  box-shadow: 0 10px 22px rgba(111, 143, 114, 0.2);
  cursor: pointer;
}

.yx-alert-ready {
  animation: yxAlertIn .22s ease both;
}

@keyframes yxAlertIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ===============================
   阅心：清爽进度条
   =============================== */

.sync-progress-wrap,
.progress-wrap,
.progress,
.progress-bar-wrap {
  position: relative !important;
  width: 100% !important;
  height: 14px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  background: rgba(111, 143, 114, 0.12) !important;
  border: 1px solid rgba(111, 143, 114, 0.16) !important;
  box-shadow: inset 0 1px 2px rgba(70, 62, 45, 0.04) !important;
}

.sync-progress-bar,
.progress-bar,
.progress > div,
.progress-wrap > div,
.progress-bar-wrap > div {
  height: 100% !important;
  border-radius: 999px !important;
  background: #7fa681 !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.32) inset,
    0 6px 14px rgba(111, 143, 114, 0.16) !important;
  transition: width .32s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.sync-progress-bar::after,
.progress-bar::after,
.progress > div::after,
.progress-wrap > div::after,
.progress-bar-wrap > div::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255,255,255,.28) 45%,
      rgba(255,255,255,.42) 50%,
      rgba(255,255,255,.28) 55%,
      transparent 100%
    ) !important;
  transform: translateX(-100%) !important;
  animation: yxCleanFlow 2.2s ease-in-out infinite !important;
}

@keyframes yxCleanFlow {
  0% {
    transform: translateX(-100%);
    opacity: .15;
  }
  45% {
    opacity: .65;
  }
  100% {
    transform: translateX(100%);
    opacity: .15;
  }
}

/* 去掉旧的脏渐变 */
.sync-progress-bar {
  background: #7fa681 !important;
}

.sync-numbers span {
  background: rgba(255,255,255,.72) !important;
  border: 1px solid rgba(111,143,114,.15) !important;
  color: #5f695c !important;
}

@media (max-width: 640px) {
  .yx-toast-wrap {
    left: 12px;
    right: 12px;
    top: 12px;
  }

  .yx-toast {
    max-width: none;
    width: 100%;
  }

  .yx-modal-card {
    grid-template-columns: 38px 1fr;
    padding: 18px;
  }

  .yx-modal-icon {
    width: 36px;
    height: 36px;
    border-radius: 14px;
  }
}

/* 修复：隐藏状态的美化弹框绝不能遮挡页面点击 */
.yx-modal-mask[hidden],
#yxModalMask[hidden] {
  display: none !important;
  pointer-events: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.yx-modal-mask:not([hidden]) {
  pointer-events: auto !important;
  visibility: visible !important;
}

#yx-ui-root {
  pointer-events: none !important;
}

#yx-ui-root .yx-toast-wrap,
#yx-ui-root .yx-toast,
#yx-ui-root .yx-modal-mask,
#yx-ui-root .yx-modal-card,
#yx-ui-root .yx-modal-ok {
  pointer-events: auto !important;
}

/* ===============================
   阅心：统一所有统计条 / 进度条为清爽单色
   覆盖旧的绿色-棕色渐变
   =============================== */

/* 外层轨道 */
.stats-bar,
.sync-progress-wrap,
.progress-wrap,
.progress,
.progress-bar-wrap {
  position: relative !important;
  width: 100% !important;
  height: 10px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  background: rgba(111, 143, 114, 0.12) !important;
  border: 1px solid rgba(111, 143, 114, 0.14) !important;
  box-shadow: inset 0 1px 2px rgba(70, 62, 45, 0.04) !important;
}

/* 内层填充 */
.stats-bar i,
.sync-progress-bar,
.progress-bar,
.progress > div,
.progress-wrap > div,
.progress-bar-wrap > div {
  display: block !important;
  height: 100% !important;
  border-radius: 999px !important;
  background: #82a985 !important;
  background-image: none !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.32),
    0 4px 12px rgba(111,143,114,.12) !important;
  position: relative !important;
  overflow: hidden !important;
}

/* 干净流光，不带棕色 */
.stats-bar i::after,
.sync-progress-bar::after,
.progress-bar::after,
.progress > div::after,
.progress-wrap > div::after,
.progress-bar-wrap > div::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,.20) 42%,
    rgba(255,255,255,.42) 50%,
    rgba(255,255,255,.20) 58%,
    transparent 100%
  ) !important;
  transform: translateX(-100%) !important;
  animation: yxCleanBarFlow 2.4s ease-in-out infinite !important;
}

/* 避免旧动画残留 */
@keyframes yxCleanBarFlow {
  0% {
    transform: translateX(-100%);
    opacity: .15;
  }
  45% {
    opacity: .55;
  }
  100% {
    transform: translateX(100%);
    opacity: .15;
  }
}

/* 统计页专用覆盖 */
.stats-page .stats-bar i,
.stats-panels .stats-bar i,
.stats-panel .stats-bar i {
  background: #82a985 !important;
  background-image: none !important;
}

/* 统计页条子高度稍微细一点，更清爽 */
.stats-page .stats-bar,
.stats-panels .stats-bar,
.stats-panel .stats-bar {
  height: 8px !important;
  background: rgba(111, 143, 114, 0.11) !important;
}

/* 去掉任何 var(--tea) 参与的条形渐变 */
.stats-bar i[style],
.sync-progress-bar[style] {
  background-color: #82a985 !important;
  background-image: none !important;
}

/* =========================================================
   阅心：统一所有进度条 / 统计条
   风格：清爽新潮、清晰边缘、无脏渐变、无模糊阴影
   ========================================================= */

:root {
  --yx-bar-track: #eef4ee;
  --yx-bar-track-border: #d7e4d9;
  --yx-bar-fill: #4f9f83;
  --yx-bar-fill-2: #65b99c;
  --yx-bar-line: rgba(255, 255, 255, .42);
}

/* 所有条子的外层轨道 */
.stats-bar,
.sync-progress-wrap,
.progress-wrap,
.progress,
.progress-bar-wrap,
.meter,
.meter-wrap {
  position: relative !important;
  width: 100% !important;
  height: 12px !important;
  overflow: hidden !important;

  border-radius: 999px !important;
  background: var(--yx-bar-track) !important;
  border: 1px solid var(--yx-bar-track-border) !important;

  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
}

/* 所有条子的填充层 */
.stats-bar i,
.sync-progress-bar,
.progress-bar,
.progress > div,
.progress-wrap > div,
.progress-bar-wrap > div,
.meter > div,
.meter-wrap > div {
  display: block !important;
  height: 100% !important;
  min-width: 0 !important;

  border-radius: inherit !important;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,.18) 0,
      rgba(255,255,255,.18) 6px,
      transparent 6px,
      transparent 12px
    ),
    linear-gradient(90deg, var(--yx-bar-fill), var(--yx-bar-fill-2)) !important;

  box-shadow: none !important;
  filter: none !important;
  position: relative !important;
  overflow: hidden !important;

  transition: width .26s cubic-bezier(.2, .8, .2, 1) !important;
}

/* 清晰流动线，不做模糊光效 */
.stats-bar i::after,
.sync-progress-bar::after,
.progress-bar::after,
.progress > div::after,
.progress-wrap > div::after,
.progress-bar-wrap > div::after,
.meter > div::after,
.meter-wrap > div::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;

  background:
    linear-gradient(
      90deg,
      transparent 0%,
      transparent 35%,
      var(--yx-bar-line) 48%,
      rgba(255,255,255,.62) 50%,
      var(--yx-bar-line) 52%,
      transparent 65%,
      transparent 100%
    ) !important;

  transform: translateX(-120%) !important;
  animation: yxModernBarSweep 2.8s linear infinite !important;
  opacity: .75 !important;
}

/* 禁用旧样式残留 */
.stats-bar i::before,
.sync-progress-bar::before,
.progress-bar::before,
.progress > div::before,
.progress-wrap > div::before,
.progress-bar-wrap > div::before {
  content: none !important;
  display: none !important;
}

/* 统计页条子统一高度 */
.stats-page .stats-bar,
.stats-panels .stats-bar,
.stats-panel .stats-bar {
  height: 12px !important;
  background: var(--yx-bar-track) !important;
  border-color: var(--yx-bar-track-border) !important;
}

.stats-page .stats-bar i,
.stats-panels .stats-bar i,
.stats-panel .stats-bar i {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,.18) 0,
      rgba(255,255,255,.18) 6px,
      transparent 6px,
      transparent 12px
    ),
    linear-gradient(90deg, var(--yx-bar-fill), var(--yx-bar-fill-2)) !important;
}

/* 豆瓣获取进度条也完全统一 */
.douban-sync-card .sync-progress-wrap {
  height: 12px !important;
  margin: 18px 0 !important;
}

.douban-sync-card .sync-progress-bar {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,.18) 0,
      rgba(255,255,255,.18) 6px,
      transparent 6px,
      transparent 12px
    ),
    linear-gradient(90deg, var(--yx-bar-fill), var(--yx-bar-fill-2)) !important;
}

/* 动效：线性扫过，不模糊 */
@keyframes yxModernBarSweep {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

/* 进度数字卡片也配套干净一点 */
.sync-numbers span {
  background: #f7faf7 !important;
  border: 1px solid #dbe8de !important;
  color: #486456 !important;
  box-shadow: none !important;
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  .stats-bar i::after,
  .sync-progress-bar::after,
  .progress-bar::after,
  .progress > div::after,
  .progress-wrap > div::after,
  .progress-bar-wrap > div::after {
    animation: none !important;
    display: none !important;
  }
}

/* 阅读历史：豆瓣获取弹窗 */
.yx-douban-modal-mask[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.yx-douban-modal-mask {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999900 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 22px !important;
  background: rgba(47, 51, 45, 0.18) !important;
  backdrop-filter: blur(10px) !important;
  opacity: 0;
  transition: opacity .18s ease;
}

.yx-douban-modal-mask.show {
  opacity: 1;
}

.yx-douban-modal-card {
  width: min(760px, 100%) !important;
  max-height: min(760px, calc(100vh - 44px)) !important;
  overflow: auto !important;
  border-radius: 26px !important;
  padding: 24px !important;
  background: rgba(255, 253, 248, 0.96) !important;
  border: 1px solid rgba(88, 103, 75, 0.18) !important;
  box-shadow: 0 28px 80px rgba(70, 62, 45, 0.18) !important;
  transform: translateY(12px) scale(.985);
  transition: transform .18s ease;
}

.yx-douban-modal-mask.show .yx-douban-modal-card {
  transform: translateY(0) scale(1);
}

.yx-douban-modal-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin-bottom: 18px !important;
}

.yx-douban-modal-head h2 {
  margin-bottom: 8px !important;
}

.yx-douban-modal-kicker {
  margin: 0 0 6px !important;
  color: #4f9f83 !important;
  font-family: var(--font-ui, system-ui) !important;
  font-size: 12px !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
}

.yx-douban-modal-close {
  width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  color: #617060 !important;
  background: #eef4ee !important;
  box-shadow: none !important;
  border: 1px solid #d7e4d9 !important;
  font-size: 22px !important;
  line-height: 1 !important;
}

.yx-douban-modal-close:hover {
  color: #fff !important;
  background: #4f9f83 !important;
}

@media (max-width: 720px) {
  .yx-douban-modal-card {
    padding: 18px !important;
    border-radius: 20px !important;
  }

  .yx-douban-modal-head {
    gap: 12px !important;
  }
}

/* 豆瓣后台处理悬浮按钮 */
.yx-douban-floating[hidden] {
  display: none !important;
}

.yx-douban-floating {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  z-index: 999850 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  min-height: 42px !important;
  padding: 10px 16px !important;
  border-radius: 999px !important;
  color: #2e5548 !important;
  background: rgba(247, 250, 247, 0.94) !important;
  border: 1px solid #d7e4d9 !important;
  box-shadow: 0 14px 34px rgba(70, 62, 45, 0.14) !important;
  backdrop-filter: blur(14px) !important;
  font-family: var(--font-ui, system-ui) !important;
  font-size: 14px !important;
  transform: translateY(10px) scale(.96) !important;
  opacity: 0 !important;
  transition: opacity .18s ease, transform .18s ease, background .18s ease !important;
}

.yx-douban-floating.show {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

.yx-douban-floating:hover {
  background: #eef7f0 !important;
  color: #20483b !important;
}

.yx-douban-floating-dot {
  width: 9px !important;
  height: 9px !important;
  border-radius: 999px !important;
  background: #4f9f83 !important;
  box-shadow: 0 0 0 0 rgba(79,159,131,.35) !important;
  animation: yxDoubanPulse 1.6s ease-out infinite !important;
}

@keyframes yxDoubanPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79,159,131,.36);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(79,159,131,0);
  }
}

@media (max-width: 720px) {
  .yx-douban-floating {
    right: 12px !important;
    bottom: 12px !important;
    max-width: calc(100vw - 24px) !important;
  }
}

/* 全站豆瓣后台任务弹窗 */
.yx-douban-modal-mask[hidden],
#globalDoubanModal[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.yx-douban-modal-mask {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999900 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 22px !important;
  background: rgba(47, 51, 45, 0.18) !important;
  backdrop-filter: blur(10px) !important;
  opacity: 0;
  transition: opacity .18s ease;
}

.yx-douban-modal-mask.show {
  opacity: 1;
}

.yx-douban-modal-card {
  width: min(760px, 100%) !important;
  max-height: min(760px, calc(100vh - 44px)) !important;
  overflow: auto !important;
  border-radius: 26px !important;
  padding: 24px !important;
  background: rgba(255, 253, 248, 0.96) !important;
  border: 1px solid rgba(88, 103, 75, 0.18) !important;
  box-shadow: 0 28px 80px rgba(70, 62, 45, 0.18) !important;
  transform: translateY(12px) scale(.985);
  transition: transform .18s ease;
}

.yx-douban-modal-mask.show .yx-douban-modal-card {
  transform: translateY(0) scale(1);
}

.yx-douban-modal-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin-bottom: 18px !important;
}

.yx-douban-modal-kicker {
  margin: 0 0 6px !important;
  color: #4f9f83 !important;
  font-family: var(--font-ui, system-ui) !important;
  font-size: 12px !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
}

.yx-douban-modal-close {
  width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  color: #617060 !important;
  background: #eef4ee !important;
  box-shadow: none !important;
  border: 1px solid #d7e4d9 !important;
  font-size: 22px !important;
  line-height: 1 !important;
}

.yx-douban-modal-close:hover {
  color: #fff !important;
  background: #4f9f83 !important;
}

.yx-douban-floating[hidden] {
  display: none !important;
}

.yx-douban-floating {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  z-index: 999850 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  min-height: 42px !important;
  padding: 10px 16px !important;
  border-radius: 999px !important;
  color: #2e5548 !important;
  background: rgba(247, 250, 247, 0.94) !important;
  border: 1px solid #d7e4d9 !important;
  box-shadow: 0 14px 34px rgba(70, 62, 45, 0.14) !important;
  backdrop-filter: blur(14px) !important;
  font-family: var(--font-ui, system-ui) !important;
  font-size: 14px !important;
  transform: translateY(10px) scale(.96) !important;
  opacity: 0 !important;
  transition: opacity .18s ease, transform .18s ease, background .18s ease !important;
}

.yx-douban-floating.show {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

.yx-douban-floating:hover {
  background: #eef7f0 !important;
  color: #20483b !important;
}

.yx-douban-floating-dot {
  width: 9px !important;
  height: 9px !important;
  border-radius: 999px !important;
  background: #4f9f83 !important;
  animation: yxDoubanPulse 1.6s ease-out infinite !important;
}

@keyframes yxDoubanPulse {
  0% { box-shadow: 0 0 0 0 rgba(79,159,131,.36); }
  100% { box-shadow: 0 0 0 10px rgba(79,159,131,0); }
}

@media (max-width: 720px) {
  .yx-douban-floating {
    right: 12px !important;
    bottom: 12px !important;
    max-width: calc(100vw - 24px) !important;
  }

  .yx-douban-modal-card {
    padding: 18px !important;
    border-radius: 20px !important;
  }
}

/* 修复弹窗按钮不可点击 */
#yx-ui-root {
  pointer-events: none !important;
}

#yx-ui-root .yx-toast-wrap,
#yx-ui-root .yx-toast,
#yx-ui-root .yx-modal-mask,
#yx-ui-root .yx-modal-card,
#yx-ui-root .yx-modal-ok,
#yx-ui-root .yx-douban-modal-mask,
#yx-ui-root .yx-douban-modal-card,
#yx-ui-root .yx-douban-modal-card *,
#yx-ui-root .yx-douban-floating {
  pointer-events: auto !important;
}

.yx-modal-mask[hidden],
.yx-douban-modal-mask[hidden],
#globalDoubanModal[hidden],
#yxModalMask[hidden] {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* 阅读历史：列筛选 + 升降序 */
.yx-records-table-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #f7faf7;
  border: 1px solid #dbe8de;
}

.yx-records-table-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.yx-records-table-search span {
  white-space: nowrap;
  color: #486456;
  font-size: 14px;
  font-weight: 700;
}

.yx-records-table-search input {
  width: min(520px, 100%);
  height: 36px;
  border-radius: 999px;
  border: 1px solid #d7e4d9;
  background: #fff;
  padding: 0 14px;
  color: #31453b;
  outline: none;
}

.yx-records-table-search input:focus,
.yx-column-filter-row input:focus {
  border-color: #4f9f83;
  box-shadow: 0 0 0 3px rgba(79, 159, 131, .12);
}

.yx-records-table-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6b766b;
  font-size: 13px;
  white-space: nowrap;
}

.yx-records-table-status button {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #d7e4d9;
  background: #fff;
  color: #486456;
  box-shadow: none;
}

.yx-records-sortable-table thead th {
  vertical-align: top;
}

.yx-sortable-th {
  cursor: pointer;
  user-select: none;
  position: relative;
  white-space: nowrap;
}

.yx-th-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.yx-sort-icon {
  display: inline-flex;
  margin-left: 5px;
  color: #8aa28f;
  font-size: 12px;
  font-weight: 700;
}

.yx-sortable-th.sort-asc,
.yx-sortable-th.sort-desc {
  color: #2e5548;
}

.yx-sortable-th.sort-asc .yx-sort-icon,
.yx-sortable-th.sort-desc .yx-sort-icon {
  color: #4f9f83;
}

.yx-column-filter-row th {
  top: auto !important;
  padding: 6px 8px !important;
  background: #f7faf7 !important;
  z-index: 3 !important;
}

.yx-column-filter-row input {
  width: 100%;
  min-width: 76px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid #d7e4d9;
  background: #fff;
  padding: 0 8px;
  color: #31453b;
  font-size: 12px;
  outline: none;
}

.yx-records-sortable-table tbody tr {
  transition: background .12s ease;
}

.yx-filter-active tbody tr:not([style*="display: none"]) {
  animation: yxFilterRowIn .14s ease both;
}

@keyframes yxFilterRowIn {
  from {
    opacity: .72;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 860px) {
  .yx-records-table-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .yx-records-table-search {
    align-items: stretch;
    flex-direction: column;
  }

  .yx-records-table-search input {
    width: 100%;
  }

  .yx-records-table-status {
    justify-content: space-between;
  }
}

/* 阅读历史：智能列宽 + 手动拖拽列宽 */
.yx-records-resizable-table {
  table-layout: fixed !important;
  width: max-content !important;
  min-width: 100% !important;
}

.yx-records-resizable-table th,
.yx-records-resizable-table td {
  position: relative !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* 序号列不允许省略 */
.yx-records-resizable-table th:first-child,
.yx-records-resizable-table td:first-child {
  min-width: 82px !important;
  width: 82px;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

/* 序号旁编辑图标保持可见 */
.yx-records-resizable-table td:first-child .record-edit-icon {
  flex: 0 0 auto !important;
  vertical-align: middle !important;
}

/* 表头拖拽手柄 */
.yx-resizable-th {
  padding-right: 16px !important;
}

.yx-col-resizer {
  position: absolute !important;
  top: 0 !important;
  right: -3px !important;
  width: 8px !important;
  height: 100% !important;
  cursor: col-resize !important;
  z-index: 20 !important;
  user-select: none !important;
}

.yx-col-resizer::before {
  content: "" !important;
  position: absolute !important;
  top: 22% !important;
  bottom: 22% !important;
  left: 3px !important;
  width: 2px !important;
  border-radius: 999px !important;
  background: transparent !important;
  transition: background .14s ease, opacity .14s ease !important;
}

.yx-resizable-th:hover .yx-col-resizer::before,
.yx-is-resizing .yx-col-resizer::before {
  background: #4f9f83 !important;
  opacity: .8 !important;
}

.yx-column-resizing {
  cursor: col-resize !important;
  user-select: none !important;
}

.yx-column-resizing * {
  cursor: col-resize !important;
}

/* 拉宽后内容仍然清爽显示 */
.yx-records-resizable-table td {
  line-height: 1.55 !important;
}

/* 书名、短评等内容鼠标悬停时方便看完整 */
.yx-records-resizable-table td:hover {
  overflow: visible !important;
}

.yx-records-resizable-table td:hover::after {
  content: attr(title);
}

/* 给单元格设置原生 title 时可查看完整内容；没有 title 不影响 */
.yx-records-resizable-table td[title]:hover {
  background: #f7faf7 !important;
}

/* 顶部和底部横向滚动配合固定宽度表格 */
.table-wrap {
  overflow-x: auto !important;
}

/* ===============================
   阅读历史：hover 上层提示窗
   取代单元格展开，避免重叠
   =============================== */

/* 彻底禁用旧的单元格展开效果 */
.yx-records-resizable-table td:hover {
  overflow: hidden !important;
}

.yx-records-resizable-table td:hover::after,
.yx-records-resizable-table td::after {
  content: none !important;
  display: none !important;
}

/* 保持表格本身干净，不展开 */
.yx-records-resizable-table th,
.yx-records-resizable-table td {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* 独立 tooltip */
.yx-cell-tooltip {
  position: fixed !important;
  z-index: 1000000 !important;
  max-width: min(520px, calc(100vw - 32px)) !important;
  max-height: 260px !important;
  overflow: auto !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  background: rgba(255, 253, 248, 0.98) !important;
  border: 1px solid rgba(79, 159, 131, 0.22) !important;
  box-shadow: 0 18px 46px rgba(45, 58, 48, 0.16) !important;
  color: #2f3f36 !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
  white-space: pre-wrap !important;
  word-break: break-word !important;
  pointer-events: none !important;
  opacity: 0 !important;
  transform: translateY(4px) scale(.985) !important;
  transition: opacity .12s ease, transform .12s ease !important;
}

.yx-cell-tooltip.show {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

.yx-cell-tooltip::before {
  content: "" !important;
  position: absolute !important;
  top: -6px !important;
  left: 18px !important;
  width: 10px !important;
  height: 10px !important;
  transform: rotate(45deg) !important;
  background: rgba(255, 253, 248, 0.98) !important;
  border-left: 1px solid rgba(79, 159, 131, 0.22) !important;
  border-top: 1px solid rgba(79, 159, 131, 0.22) !important;
}

/* 对短内容不显示 tooltip 时，hover 只轻微高亮 */
.yx-records-resizable-table tbody td:hover {
  background: #f7faf7 !important;
}

/* 豆瓣任务暂停后继续按钮 */
#globalDoubanResume {
  background: #4f9f83 !important;
  color: #fff !important;
  border-color: #4f9f83 !important;
}

#globalDoubanResume {
  background: #4f9f83 !important;
  color: #fff !important;
  border-color: #4f9f83 !important;
}

#globalDoubanRestart {
  background: #f7faf7 !important;
  color: #486456 !important;
  border: 1px solid #d7e4d9 !important;
}

/* 全站美化确认框 */
.yx-confirm-mask[hidden],
#yxConfirmMask[hidden] {
  display: none !important;
  pointer-events: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.yx-confirm-mask {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 22px !important;
  background: rgba(47, 51, 45, 0.18) !important;
  backdrop-filter: blur(10px) !important;
  opacity: 0;
  transition: opacity .18s ease;
}

.yx-confirm-mask.show {
  opacity: 1;
}

.yx-confirm-card {
  width: min(430px, 100%) !important;
  display: grid !important;
  grid-template-columns: 44px 1fr !important;
  gap: 14px !important;
  padding: 22px !important;
  border-radius: 24px !important;
  background: rgba(255, 253, 248, 0.98) !important;
  border: 1px solid rgba(79, 159, 131, 0.2) !important;
  box-shadow: 0 28px 80px rgba(70, 62, 45, 0.18) !important;
  transform: translateY(12px) scale(.985);
  transition: transform .18s ease;
  pointer-events: auto !important;
}

.yx-confirm-mask.show .yx-confirm-card {
  transform: translateY(0) scale(1);
}

.yx-confirm-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #4f9f83 !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 18px !important;
}

.yx-confirm-body h3 {
  margin: 0 0 8px !important;
  color: #2f3f36 !important;
  font-size: 18px !important;
}

.yx-confirm-body p {
  margin: 0 !important;
  color: #657066 !important;
  line-height: 1.7 !important;
  font-size: 14px !important;
}

.yx-confirm-actions {
  grid-column: 1 / -1 !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin-top: 8px !important;
}

/* 重新开始任务兜底修复：确保弹窗按钮可点 */
#yx-ui-root,
#yx-ui-root * {
  pointer-events: auto;
}

#globalDoubanRestart {
  cursor: pointer !important;
  position: relative !important;
  z-index: 10 !important;
}

/* 阅心：统一美化确认框 */
.yx-pretty-confirm-mask[hidden] {
  display: none !important;
}

.yx-pretty-confirm-mask {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000002 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 22px !important;
  background: rgba(47, 51, 45, 0.18) !important;
  backdrop-filter: blur(10px) !important;
  opacity: 0;
  transition: opacity .18s ease;
}

.yx-pretty-confirm-mask.show {
  opacity: 1;
}

.yx-pretty-confirm-card {
  width: min(430px, 100%) !important;
  display: grid !important;
  grid-template-columns: 44px 1fr !important;
  gap: 14px !important;
  padding: 22px !important;
  border-radius: 24px !important;
  background: rgba(255, 253, 248, 0.98) !important;
  border: 1px solid rgba(79, 159, 131, 0.2) !important;
  box-shadow: 0 28px 80px rgba(70, 62, 45, 0.18) !important;
  transform: translateY(12px) scale(.985);
  transition: transform .18s ease;
}

.yx-pretty-confirm-mask.show .yx-pretty-confirm-card {
  transform: translateY(0) scale(1);
}

.yx-pretty-confirm-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #4f9f83 !important;
  color: #fff !important;
  font-weight: 800 !important;
}

.yx-pretty-confirm-main h3 {
  margin: 0 0 8px !important;
  color: #2f3f36 !important;
  font-size: 18px !important;
}

.yx-pretty-confirm-main p {
  margin: 0 !important;
  color: #657066 !important;
  line-height: 1.7 !important;
  font-size: 14px !important;
}

.yx-pretty-confirm-actions {
  grid-column: 1 / -1 !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin-top: 8px !important;
}

/* 阅心：强制全站美化确认框 */
.yx-force-confirm-mask[hidden] {
  display: none !important;
}

.yx-force-confirm-mask {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 22px !important;
  background: rgba(47, 51, 45, 0.20) !important;
  backdrop-filter: blur(10px) !important;
  opacity: 0;
  transition: opacity .18s ease;
}

.yx-force-confirm-mask.show {
  opacity: 1;
}

.yx-force-confirm-card {
  width: min(430px, 100%) !important;
  display: grid !important;
  grid-template-columns: 44px 1fr !important;
  gap: 14px !important;
  padding: 22px !important;
  border-radius: 24px !important;
  background: rgba(255, 253, 248, 0.98) !important;
  border: 1px solid rgba(79, 159, 131, 0.22) !important;
  box-shadow: 0 28px 80px rgba(70, 62, 45, 0.20) !important;
  transform: translateY(12px) scale(.985);
  transition: transform .18s ease;
}

.yx-force-confirm-mask.show .yx-force-confirm-card {
  transform: translateY(0) scale(1);
}

.yx-force-confirm-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #4f9f83 !important;
  color: #fff !important;
  font-weight: 800 !important;
}

.yx-force-confirm-main h3 {
  margin: 0 0 8px !important;
  color: #2f3f36 !important;
  font-size: 18px !important;
}

.yx-force-confirm-main p {
  margin: 0 !important;
  color: #657066 !important;
  line-height: 1.7 !important;
  font-size: 14px !important;
}

.yx-force-confirm-actions {
  grid-column: 1 / -1 !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin-top: 8px !important;
}

/* 阅心：强制全站美化确认框 */
.yx-force-confirm-mask[hidden] {
  display: none !important;
}

.yx-force-confirm-mask {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 22px !important;
  background: rgba(47, 51, 45, 0.20) !important;
  backdrop-filter: blur(10px) !important;
  opacity: 0;
  transition: opacity .18s ease;
}

.yx-force-confirm-mask.show {
  opacity: 1;
}

.yx-force-confirm-card {
  width: min(430px, 100%) !important;
  display: grid !important;
  grid-template-columns: 44px 1fr !important;
  gap: 14px !important;
  padding: 22px !important;
  border-radius: 24px !important;
  background: rgba(255, 253, 248, 0.98) !important;
  border: 1px solid rgba(79, 159, 131, 0.22) !important;
  box-shadow: 0 28px 80px rgba(70, 62, 45, 0.20) !important;
  transform: translateY(12px) scale(.985);
  transition: transform .18s ease;
}

.yx-force-confirm-mask.show .yx-force-confirm-card {
  transform: translateY(0) scale(1);
}

.yx-force-confirm-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #4f9f83 !important;
  color: #fff !important;
  font-weight: 800 !important;
}

.yx-force-confirm-main h3 {
  margin: 0 0 8px !important;
  color: #2f3f36 !important;
  font-size: 18px !important;
}

.yx-force-confirm-main p {
  margin: 0 !important;
  color: #657066 !important;
  line-height: 1.7 !important;
  font-size: 14px !important;
}

.yx-force-confirm-actions {
  grid-column: 1 / -1 !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin-top: 8px !important;
}

/* 阅心：统一美化确认框 */
.yx-confirm-mask[hidden] {
  display: none !important;
}

.yx-confirm-mask {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 22px !important;
  background: rgba(47, 51, 45, 0.20) !important;
  backdrop-filter: blur(10px) !important;
  opacity: 0;
  transition: opacity .18s ease;
}

.yx-confirm-mask.show {
  opacity: 1;
}

.yx-confirm-card {
  width: min(430px, 100%) !important;
  display: grid !important;
  grid-template-columns: 44px 1fr !important;
  gap: 14px !important;
  padding: 22px !important;
  border-radius: 24px !important;
  background: rgba(255, 253, 248, 0.98) !important;
  border: 1px solid rgba(79, 159, 131, 0.22) !important;
  box-shadow: 0 28px 80px rgba(70, 62, 45, 0.20) !important;
  transform: translateY(12px) scale(.985);
  transition: transform .18s ease;
}

.yx-confirm-mask.show .yx-confirm-card {
  transform: translateY(0) scale(1);
}

.yx-confirm-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #4f9f83 !important;
  color: #fff !important;
  font-weight: 800 !important;
}

.yx-confirm-body h3 {
  margin: 0 0 8px !important;
  color: #2f3f36 !important;
  font-size: 18px !important;
}

.yx-confirm-body p {
  margin: 0 !important;
  color: #657066 !important;
  line-height: 1.7 !important;
  font-size: 14px !important;
}

.yx-confirm-actions {
  grid-column: 1 / -1 !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin-top: 8px !important;
}

/* 阅心：统一美化确认框 */
.yx-confirm-mask[hidden] {
  display: none !important;
}

.yx-confirm-mask {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 22px !important;
  background: rgba(47, 51, 45, 0.20) !important;
  backdrop-filter: blur(10px) !important;
  opacity: 0;
  transition: opacity .18s ease;
}

.yx-confirm-mask.show {
  opacity: 1;
}

.yx-confirm-card {
  width: min(430px, 100%) !important;
  display: grid !important;
  grid-template-columns: 44px 1fr !important;
  gap: 14px !important;
  padding: 22px !important;
  border-radius: 24px !important;
  background: rgba(255, 253, 248, 0.98) !important;
  border: 1px solid rgba(79, 159, 131, 0.22) !important;
  box-shadow: 0 28px 80px rgba(70, 62, 45, 0.20) !important;
  transform: translateY(12px) scale(.985);
  transition: transform .18s ease;
}

.yx-confirm-mask.show .yx-confirm-card {
  transform: translateY(0) scale(1);
}

.yx-confirm-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #4f9f83 !important;
  color: #fff !important;
  font-weight: 800 !important;
}

.yx-confirm-body h3 {
  margin: 0 0 8px !important;
  color: #2f3f36 !important;
  font-size: 18px !important;
}

.yx-confirm-body p {
  margin: 0 !important;
  color: #657066 !important;
  line-height: 1.7 !important;
  font-size: 14px !important;
}

.yx-confirm-actions {
  grid-column: 1 / -1 !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin-top: 8px !important;
}

/* 阅心：统一美化确认框 */
.yx-confirm-mask[hidden] {
  display: none !important;
}

.yx-confirm-mask {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 22px !important;
  background: rgba(47, 51, 45, 0.20) !important;
  backdrop-filter: blur(10px) !important;
  opacity: 0;
  transition: opacity .18s ease;
}

.yx-confirm-mask.show {
  opacity: 1;
}

.yx-confirm-card {
  width: min(430px, 100%) !important;
  display: grid !important;
  grid-template-columns: 44px 1fr !important;
  gap: 14px !important;
  padding: 22px !important;
  border-radius: 24px !important;
  background: rgba(255, 253, 248, 0.98) !important;
  border: 1px solid rgba(79, 159, 131, 0.22) !important;
  box-shadow: 0 28px 80px rgba(70, 62, 45, 0.20) !important;
  transform: translateY(12px) scale(.985);
  transition: transform .18s ease;
}

.yx-confirm-mask.show .yx-confirm-card {
  transform: translateY(0) scale(1);
}

.yx-confirm-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #4f9f83 !important;
  color: #fff !important;
  font-weight: 800 !important;
}

.yx-confirm-body h3 {
  margin: 0 0 8px !important;
  color: #2f3f36 !important;
  font-size: 18px !important;
}

.yx-confirm-body p {
  margin: 0 !important;
  color: #657066 !important;
  line-height: 1.7 !important;
  font-size: 14px !important;
}

.yx-confirm-actions {
  grid-column: 1 / -1 !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin-top: 8px !important;
}

/* 阅心：统一美化确认框 */
.yx-confirm-mask[hidden] {
  display: none !important;
}

.yx-confirm-mask {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 22px !important;
  background: rgba(47, 51, 45, 0.20) !important;
  backdrop-filter: blur(10px) !important;
  opacity: 0;
  transition: opacity .18s ease;
}

.yx-confirm-mask.show {
  opacity: 1;
}

.yx-confirm-card {
  width: min(430px, 100%) !important;
  display: grid !important;
  grid-template-columns: 44px 1fr !important;
  gap: 14px !important;
  padding: 22px !important;
  border-radius: 24px !important;
  background: rgba(255, 253, 248, 0.98) !important;
  border: 1px solid rgba(79, 159, 131, 0.22) !important;
  box-shadow: 0 28px 80px rgba(70, 62, 45, 0.20) !important;
  transform: translateY(12px) scale(.985);
  transition: transform .18s ease;
}

.yx-confirm-mask.show .yx-confirm-card {
  transform: translateY(0) scale(1);
}

.yx-confirm-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #4f9f83 !important;
  color: #fff !important;
  font-weight: 800 !important;
}

.yx-confirm-body h3 {
  margin: 0 0 8px !important;
  color: #2f3f36 !important;
  font-size: 18px !important;
}

.yx-confirm-body p {
  margin: 0 !important;
  color: #657066 !important;
  line-height: 1.7 !important;
  font-size: 14px !important;
}

.yx-confirm-actions {
  grid-column: 1 / -1 !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin-top: 8px !important;
}

/* 阅心：统一美化确认框 */
.yx-confirm-mask[hidden] {
  display: none !important;
}

.yx-confirm-mask {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 22px !important;
  background: rgba(47, 51, 45, 0.20) !important;
  backdrop-filter: blur(10px) !important;
  opacity: 0;
  transition: opacity .18s ease;
}

.yx-confirm-mask.show {
  opacity: 1;
}

.yx-confirm-card {
  width: min(430px, 100%) !important;
  display: grid !important;
  grid-template-columns: 44px 1fr !important;
  gap: 14px !important;
  padding: 22px !important;
  border-radius: 24px !important;
  background: rgba(255, 253, 248, 0.98) !important;
  border: 1px solid rgba(79, 159, 131, 0.22) !important;
  box-shadow: 0 28px 80px rgba(70, 62, 45, 0.20) !important;
  transform: translateY(12px) scale(.985);
  transition: transform .18s ease;
}

.yx-confirm-mask.show .yx-confirm-card {
  transform: translateY(0) scale(1);
}

.yx-confirm-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #4f9f83 !important;
  color: #fff !important;
  font-weight: 800 !important;
}

.yx-confirm-body h3 {
  margin: 0 0 8px !important;
  color: #2f3f36 !important;
  font-size: 18px !important;
}

.yx-confirm-body p {
  margin: 0 !important;
  color: #657066 !important;
  line-height: 1.7 !important;
  font-size: 14px !important;
}

.yx-confirm-actions {
  grid-column: 1 / -1 !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin-top: 8px !important;
}

/* ===== hotfix: 添加书籍按钮无反应 / 隐藏遮罩拦截点击 ===== */
#yx-ui-root {
  pointer-events: none !important;
}

#yx-ui-root [hidden],
#yx-ui-root .yx-modal-mask[hidden],
#yx-ui-root .yx-confirm-mask[hidden],
#yx-ui-root .yx-douban-modal-mask[hidden],
#yx-ui-root #yxModalMask[hidden],
#yx-ui-root #yxConfirmMask[hidden],
#yx-ui-root #globalDoubanModal[hidden],
#yx-ui-root #globalDoubanFloating[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#yx-ui-root .yx-toast-wrap,
#yx-ui-root .yx-toast,
#yx-ui-root .yx-modal-mask:not([hidden]),
#yx-ui-root .yx-confirm-mask:not([hidden]),
#yx-ui-root .yx-douban-modal-mask:not([hidden]),
#yx-ui-root #globalDoubanFloating:not([hidden]) {
  pointer-events: auto !important;
}

a.yx-add-book-link {
  position: relative !important;
  z-index: 5 !important;
  pointer-events: auto !important;
}
