/* ===== Poll ===== */
.poll-modal{ position:fixed; left:0; top:0; right:0; bottom:0; z-index:10050; overflow-y:auto; }
.poll-modal-backdrop{ position:fixed; inset:0; background:rgba(0,0,0,.35); }
.poll-modal-card{ position:relative; width:min(720px, calc(100vw - 32px)); margin:40px auto; background:#fff; border-radius:14px; box-shadow:0 20px 60px rgba(0,0,0,.25); overflow:hidden; }
@media(max-width:480px){
  .poll-modal-card{ margin:16px auto; border-radius:12px; }
  .poll-opt-row{ flex-wrap:wrap; }
  .poll-opt-row .poll-opt-input{ min-width:0; }
}
.poll-modal-head{ display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid rgba(0,0,0,.08); }
.poll-modal-title{ font-weight:700; }
.poll-modal-close{ border:0; background:transparent; font-size:22px; line-height:1; cursor:pointer; padding:4px 10px; }
.poll-modal-body{ padding:16px; }
.poll-modal-foot{ padding:14px 16px; border-top:1px solid rgba(0,0,0,.08); display:flex; justify-content:center; }
.poll-options{ display:flex; flex-direction:column; gap:10px; }
.poll-opt-row{ display:flex; gap:8px; align-items:center; }
.poll-opt-row .poll-opt-input{ flex:1; }
.poll-opt-row .button{ padding:0 10px; }
.poll-options-actions{ margin-top:10px; }

.pollbox{ margin:12px 0; }
.pollbox-inner{ border:1px solid var(--border,rgba(0,0,0,.10)); border-radius:14px; padding:14px; background:var(--card-bg,rgba(255,255,255,.9)); }
.pollbox-title{ font-weight:700; margin-bottom:10px; }
.pollbox-meta{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin:-6px 0 10px; font-size:12px; opacity:.8; }
.pollbox-closed{ display:inline-block; padding:2px 8px; border-radius:999px; background:rgba(239,68,68,.1); color:#ef4444; }
.pollbox-ended-tip{ font-size:12px; opacity:.8; }
.pollbox-opt{ position:relative; display:flex; align-items:center; gap:10px; padding:10px 10px; border-radius:12px; border:1px solid var(--border,rgba(0,0,0,.06)); margin-bottom:10px; overflow:hidden; cursor:pointer; }
.pollbox-opt:hover{ border-color:rgba(96,165,250,.3); }
.pollbox-opt input{ position:relative; z-index:2; }
.pollbox-label{ flex:1; position:relative; z-index:2; }
.pollbox-count{ font-variant-numeric:tabular-nums; opacity:.75; position:relative; z-index:2; font-weight:600; }
.pollbox-bar{ position:absolute; left:0; top:0; bottom:0; background:rgba(96,165,250,.12); z-index:1; transition:width .3s ease; }
.pollbox-voters{ margin:-4px 0 10px; padding-left:6px; font-size:12px; opacity:.85; }
.pollbox-voter{ display:inline-block; margin:0 6px 6px 0; padding:2px 8px; border-radius:999px; background:rgba(0,0,0,.05); text-decoration:none; }
.pollbox-voter:hover{ background:rgba(0,0,0,.08); }
.pollbox-actions{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.pollbox-total{ opacity:.75; font-size:12px; }

:root {
  --md-border: #334155;
  --md-bg-light: rgba(51, 65, 85, 0.1);
  --md-bg-quote: rgba(37, 99, 235, 0.08);
  --md-border-quote: #2563eb;
  --md-bg-table-header: rgba(51, 65, 85, 0.2);
  --md-bg-table-row-alt: rgba(51, 65, 85, 0.05);
}

/* ===== 引用块样式增强 ===== */
/* ===== 引用块字体改进 ===== */

.post-content blockquote,
.markdown blockquote,
.topic-body blockquote {
  margin: 12px 0;
  padding: 10px 14px;
  border-left: 4px solid rgba(0,0,0,.15);
  background: rgba(0,0,0,.03);
  border-radius: 10px;
  color: #1a1a1a;  /* 深黑色 */
}

.post-content blockquote p,
.markdown blockquote p,
.topic-body blockquote p {
  margin: 0;
  color: #1a1a1a;  /* 深黑色 */
}

.post-content blockquote strong,
.markdown blockquote strong,
.topic-body blockquote strong {
  color: #000000;  /* 纯黑色 */
  font-weight: 700;
}

.post-content blockquote em,
.markdown blockquote em,
.topic-body blockquote em {
  color: #1a1a1a;  /* 深黑色 */
}

.post-content blockquote a,
.markdown blockquote a,
.topic-body blockquote a {
  color: #0066cc;  /* 蓝色链接 */
}

.post-content blockquote code,
.markdown blockquote code,
.topic-body blockquote code {
  color: #000000;  /* 黑色代码 */
  background: rgba(0,0,0,.1);
}

/* ===== 无序列表样式增强 ===== */
.post-content ul,
.markdown ul,
.topic-body ul {
  margin: 12px 0 12px 28px;
  padding: 0;
  list-style: none;
}

.post-content ul li,
.markdown ul li,
.topic-body ul li {
  margin: 8px 0;
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.post-content ul li::before,
.markdown ul li::before,
.topic-body ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #2563eb;
  font-weight: bold;
  font-size: 16px;
  line-height: 1.4;
}

/* 嵌套列表 */
.post-content ul ul,
.markdown ul ul,
.topic-body ul ul {
  margin: 8px 0 8px 20px;
}

.post-content ul ul li::before,
.markdown ul ul li::before,
.topic-body ul ul li::before {
  content: '◦';
  color: #60a5fa;
}

.post-content ul ul ul li::before,
.markdown ul ul ul li::before,
.topic-body ul ul ul li::before {
  content: '•';
  color: #93c5fd;
}

/* ===== 有序列表样式增强 ===== */
.post-content ol,
.markdown ol,
.topic-body ol {
  margin: 12px 0 12px 28px;
  padding: 0;
  list-style: none;
  counter-reset: item;
}

.post-content ol li,
.markdown ol li,
.topic-body ol li {
  margin: 8px 0;
  padding-left: 32px;
  position: relative;
  line-height: 1.6;
  counter-increment: item;
}

.post-content ol li::before,
.markdown ol li::before,
.topic-body ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

/* 嵌套有序列表 */
.post-content ol ol,
.markdown ol ol,
.topic-body ol ol {
  margin: 8px 0 8px 20px;
}

.post-content ol ol li::before,
.markdown ol ol li::before,
.topic-body ol ol li::before {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  width: 22px;
  height: 22px;
  font-size: 11px;
}

/* ===== 表格容器 ===== */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
  border-radius: 0;
}

/* ===== 表格基础样式 ===== */
.table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  margin: 0;
}

/* ===== 表头样式 ===== */
.table thead {
  background: #1e3a8a;  /* 深蓝色 */
}

.table th {
  background: #1e3a8a;  /* 深蓝色 */
  color: #ffffff;       /* 白色文字 */
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 3px solid #2563eb;  /* 蓝色分界线 */
  white-space: nowrap;
}

/* ===== 表格内容 ===== */
.table tbody {
  background: #ffffff;
}

.table td {
  color: #000000;       /* 黑色文字 */
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;  /* 浅灰色分隔线 */
  font-size: 14px;
  line-height: 1.5;
}

/* ===== 表格行 ===== */
.table tbody tr {
  background: #ffffff;
}

.table tbody tr:hover {
  background: #f9fafb;  /* 悬停时浅灰色 */
  transition: background 0.2s ease;
}

/* ===== 表格最后一行 ===== */
.table tbody tr:last-child td {
  border-bottom: 1px solid #e5e7eb;
}

/* ===== 表格文本对齐 ===== */
.table th[style*="text-align: center"],
.table td[style*="text-align: center"] {
  text-align: center;
}

.table th[style*="text-align: right"],
.table td[style*="text-align: right"] {
  text-align: right;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
  .table th,
  .table td {
    padding: 12px 14px;
    font-size: 13px;
  }

  .table th {
    border-bottom: 2px solid #2563eb;
  }
}

@media (max-width: 480px) {
  .table th,
  .table td {
    padding: 10px 12px;
    font-size: 12px;
  }

  .table th {
    border-bottom: 2px solid #2563eb;
  }
}

.md-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 2px solid #2563eb;  /* 蓝色边框 */
}

.md-table th,
.md-table td {
  border: 1px solid #2563eb;  /* 蓝色边框 */
  padding: 12px 14px;
  vertical-align: middle;
}

.md-table th {
  background: #1e3a8a;        /* 深蓝色 */
  color: #ffffff;             /* 白色文字 */
  font-weight: 700;
  border-bottom: 3px solid #2563eb;  /* 蓝色分界线 */
}

.md-table td {
  color: #000000;             /* 黑色文字 */
  background: #ffffff;
}

.md-table tbody tr:hover td {
  background: #f9fafb;        /* 悬停浅灰色 */
}

/* 普通表格 */
.table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 2px solid #2563eb;  /* 蓝色边框 */
}

.table th,
.table td {
  border: 1px solid #2563eb;  /* 蓝色边框 */
  padding: 12px 14px;
  vertical-align: middle;
}

.table th {
  background: #1e3a8a;        /* 深蓝色 */
  color: #ffffff;             /* 白色文字 */
  font-weight: 700;
  border-bottom: 3px solid #2563eb;  /* 蓝色分界线 */
}

.table td {
  color: #000000;             /* 黑色文字 */
  background: #ffffff;
}

.table tbody tr:hover td {
  background: #f9fafb;        /* 悬停浅灰色 */
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
  .md-table th,
  .md-table td,
  .table th,
  .table td {
    padding: 10px 12px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .md-table th,
  .md-table td,
  .table th,
  .table td {
    padding: 8px 10px;
    font-size: 12px;
  }
}



/* ===== 打印样式 ===== */
@media print {
  .table {
    background: #ffffff;
  }

  .table th {
    background: #1e3a8a;
    color: #ffffff;
  }

  .table td {
    color: #000000;
  }


