/**
 * 语义正文：正文根节点使用 <div class="article-semantic">…</div>
 * 由站点 CSS 统一排版；图标与表格装饰均为纯 CSS（无需正文内 SVG/图片）。
 */

.detailContent .article-semantic {
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei",
    sans-serif;
  color: #334155;
  line-height: 1.75;
  font-size: 16px;
  max-width: 100%;
}

.detailContent .article-semantic > *:first-child {
  margin-top: 0;
}

.detailContent .article-semantic > *:last-child {
  margin-bottom: 0;
}

/* —— 标题：左侧色条 + 小图标块 —— */
.detailContent .article-semantic h1 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  margin: 1.5rem 0 0.75rem;
  line-height: 1.3;
  padding: 0.35rem 0 0.35rem 0.85rem;
  border-left: 4px solid #f59e0b;
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.35) 0%, transparent 55%);
  border-radius: 0 8px 8px 0;
}

.detailContent .article-semantic h1::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(234, 88, 12, 0.35);
}

.detailContent .article-semantic h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e3a5f;
  margin: 1.75rem 0 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #fde68a;
  line-height: 1.35;
}

.detailContent .article-semantic h2::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 1.15em;
  border-radius: 3px;
  background: linear-gradient(180deg, #38bdf8, #0f6da8);
  box-shadow: 0 1px 2px rgba(15, 109, 168, 0.25);
}

.detailContent .article-semantic h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.12rem;
  font-weight: 700;
  color: #334155;
  margin: 1.25rem 0 0.5rem;
}

.detailContent .article-semantic h3::before {
  content: "▸";
  flex-shrink: 0;
  color: #0f6da8;
  font-weight: 900;
  font-size: 0.95em;
  line-height: 1;
}

/* —— 区块：左侧线 + 淡底 —— */
.detailContent .article-semantic section {
  margin: 1.25rem 0;
  padding: 0.65rem 1rem 0.85rem;
  border-left: 3px solid #cbd5e1;
  background: linear-gradient(90deg, rgba(241, 245, 249, 0.75) 0%, transparent 70%);
  border-radius: 0 10px 10px 0;
}

.detailContent .article-semantic section > h2:first-child,
.detailContent .article-semantic section > h3:first-child {
  margin-top: 0.25rem;
}

.detailContent .article-semantic p {
  margin: 0.65rem 0;
}

.detailContent .article-semantic a {
  color: #0f6da8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.detailContent .article-semantic a:hover {
  color: #c2410c;
}

.detailContent .article-semantic a[href^="http"]::after,
.detailContent .article-semantic a[href^="//"]::after {
  content: " ↗";
  font-size: 0.75em;
  opacity: 0.75;
  text-decoration: none;
}

/* —— 列表：自定义符号色 —— */
.detailContent .article-semantic ul,
.detailContent .article-semantic ol {
  margin: 0.65rem 0;
  padding-left: 0;
}

.detailContent .article-semantic ul li {
  list-style: none;
  margin: 0.35rem 0;
  padding-left: 1.35rem;
  position: relative;
}

.detailContent .article-semantic ul li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.detailContent .article-semantic ol {
  counter-reset: as-semantic-ol;
  padding-left: 0;
}

.detailContent .article-semantic ol li {
  list-style: none;
  counter-increment: as-semantic-ol;
  margin: 0.35rem 0;
  padding-left: 2rem;
  position: relative;
}

.detailContent .article-semantic ol li::before {
  content: counter(as-semantic-ol);
  position: absolute;
  left: 0;
  top: 0.1em;
  min-width: 1.45rem;
  height: 1.45rem;
  line-height: 1.45rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #0f6da8, #1e4a6e);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(15, 109, 168, 0.3);
}

.detailContent .article-semantic strong {
  font-weight: 700;
  color: #0f172a;
}

.detailContent .article-semantic blockquote {
  position: relative;
  margin: 1.15rem 0;
  padding: 0.85rem 1rem 0.85rem 1.15rem;
  border-left: 4px solid #94a3b8;
  background: #f8fafc;
  color: #475569;
  border-radius: 0 8px 8px 0;
}

.detailContent .article-semantic blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0.5rem;
  top: 0.15rem;
  font-size: 2.2rem;
  line-height: 1;
  color: #e2e8f0;
  font-family: Georgia, "Times New Roman", serif;
  pointer-events: none;
}

.detailContent .article-semantic hr {
  border: 0;
  height: 1px;
  margin: 1.75rem 0;
  background: linear-gradient(90deg, transparent, #cbd5e1 15%, #cbd5e1 85%, transparent);
}

/* —— 表格：标题行、斑马纹、悬停、caption —— */
.detailContent .article-semantic table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.15rem 0;
  font-size: 0.95rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.detailContent .article-semantic caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  font-size: 0.92rem;
  color: #1e3a5f;
  padding: 0.5rem 0.75rem 0.65rem;
  background: linear-gradient(90deg, rgba(241, 245, 249, 0.9), transparent);
  border-bottom: 1px solid #e2e8f0;
}

.detailContent .article-semantic caption::before {
  content: "\25A6";
  display: inline-block;
  margin-right: 0.4rem;
  color: #f59e0b;
  font-size: 0.95em;
  vertical-align: middle;
}

.detailContent .article-semantic th,
.detailContent .article-semantic td {
  border: 1px solid #e2e8f0;
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
}

.detailContent .article-semantic thead th {
  background: linear-gradient(180deg, #1e4a6e 0%, #163a52 100%);
  color: #fff;
  font-weight: 700;
  border-color: #1a3550;
  white-space: nowrap;
}

.detailContent .article-semantic thead th:first-child {
  border-top-left-radius: 0;
}

.detailContent .article-semantic tbody th {
  background: #f1f5f9;
  font-weight: 700;
  color: #1e3a5f;
}

.detailContent .article-semantic tbody tr:nth-child(even) td {
  background: #fafafa;
}

.detailContent .article-semantic tbody tr:hover td,
.detailContent .article-semantic tbody tr:hover th {
  background: #fffbeb;
  transition: background 0.15s ease;
}

.detailContent .article-semantic tfoot td,
.detailContent .article-semantic tfoot th {
  background: #f8fafc;
  font-weight: 600;
  color: #475569;
}

.detailContent .article-semantic figure {
  margin: 1rem 0;
}

.detailContent .article-semantic figcaption {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 0.35rem;
}

.detailContent .article-semantic img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.detailContent .article-semantic pre {
  margin: 1rem 0;
  padding: 12px 14px;
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.5;
}

.detailContent .article-semantic code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.9em;
  background: #f1f5f9;
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.detailContent .article-semantic pre code {
  background: transparent;
  padding: 0;
}

@media (max-width: 600px) {
  .detailContent .article-semantic {
    font-size: 15px;
  }

  .detailContent .article-semantic h1 {
    font-size: 1.4rem;
  }

  .detailContent .article-semantic h2 {
    font-size: 1.2rem;
  }

  .detailContent .article-semantic th,
  .detailContent .article-semantic td {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .detailContent .article-semantic thead th {
    white-space: normal;
  }
}
