/* 原 styles.css L6197-L7511 连续区间纯移动（UI 重构阶段 A）。内容：六个文章主题（小红书/手账/财经/咨询/杂志/经典深度）。层叠顺序由 01→12 的 <link> 顺序保持。 */
.article-preview h2 .sec-no {
  display: block;
  margin: 0 0 4px;
  font-size: 1.5em;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.1em;
}

.article-preview ul,
.article-preview ol {
  list-style: none;
  padding-left: 4px;
}

.article-preview ul li::before {
  color: var(--article-accent);
}

.article-preview ol li .oli {
  display: inline-block;
  min-width: 22px;
  margin-right: 6px;
  font: 700 1.05em/2 "JetBrains Mono", Menlo, Consolas, monospace;
  color: var(--article-accent);
}

.article-preview .article-codewin {
  margin: 0 0 24px;
  border-radius: 8px;
  overflow: hidden;
}

.article-preview .codewin-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
}

.article-preview .codewin-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.article-preview .codewin-copy {
  margin-left: auto;
  padding: 3px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: 700 11px/1.4 "JetBrains Mono", Menlo, Consolas, monospace;
  cursor: pointer;
}

/* 深色终端是经典皮肤，不是所有主题的默认。 */
.article-theme-classic .article-codewin {
  background: #0b1117;
  border: 1px solid color-mix(in srgb, var(--article-accent) 62%, #0b1117);
}

.article-theme-classic .codewin-bar {
  background: color-mix(in srgb, var(--article-accent) 18%, #0b1117);
  border-bottom: 1px solid color-mix(in srgb, var(--article-accent) 42%, transparent);
}

.article-theme-classic .codewin-dot {
  background: #ff5f56;
}

.article-theme-classic .codewin-dot:nth-child(2) {
  background: #ffbd2e;
}

.article-theme-classic .codewin-dot:nth-child(3) {
  background: #27c93f;
}

.article-theme-classic .codewin-copy {
  border-color: var(--article-accent);
  background: color-mix(in srgb, var(--article-accent) 22%, transparent);
  color: #fff;
}

.article-theme-classic .codewin-copy:hover {
  background: var(--article-accent);
  color: #fff;
}

.article-theme-classic .codewin-copy.copied {
  color: #27c93f;
  border-color: #27c93f;
  background: transparent;
}

.article-theme-classic .article-codewin code {
  color: color-mix(in srgb, var(--article-accent) 28%, #f8fafc);
}

.article-theme-classic .hljs-keyword {
  color: color-mix(in srgb, var(--article-accent), #ffffff var(--article-code-keyword, 0%));
  font-weight: 700;
}

.article-theme-classic .hljs-title,
.article-theme-classic .hljs-title.function_,
.article-theme-classic .hljs-built_in {
  color: color-mix(in srgb, var(--article-accent), var(--article-code-fn-ink, #ffffff) var(--article-code-function, 42%));
  font-weight: 700;
}

.article-theme-classic .hljs-string {
  color: #6fc2b5;
}

.article-theme-classic .hljs-comment {
  color: #8b97a3;
  font-style: italic;
}

.article-theme-classic .hljs-number,
.article-theme-classic .hljs-literal {
  color: color-mix(in srgb, #ffb86b, var(--article-accent) var(--article-code-number, 45%));
}

.article-preview .article-codewin pre {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.article-preview .article-codewin code {
  display: block;
  padding: 8px 16px 8px 12px;
  font-family: "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.78em;
  line-height: 2;
  background: transparent;
}

.article-preview .code-ln {
  display: flex;
  align-items: baseline;
  min-height: 1.9em;
  white-space: pre-wrap;
}

.article-preview pre,
.article-preview pre code {
  white-space: pre-wrap;
}

.article-preview .code-no {
  flex: none;
  width: 26px;
  margin-right: 14px;
  text-align: right;
  font: 700 0.8em/1.9 "JetBrains Mono", Menlo, Consolas, monospace;
  color: inherit;
  opacity: 0.4;
}

.article-preview .code-tx {
  flex: 1 1 auto;
  min-width: 0;
}

/* highlight.js 分类，颜色只取主题规范的五色。经典主题不进这张表。 */
.article-theme-editorial .hljs-keyword { color: #b5443c; font-weight: 700; }
.article-theme-editorial .hljs-title,
.article-theme-editorial .hljs-title.function_,
.article-theme-editorial .hljs-built_in { color: #1b1a18; font-weight: 700; }
.article-theme-editorial .hljs-string { color: #3e6b4f; }
.article-theme-editorial .hljs-comment { color: #a39a88; font-style: italic; }
.article-theme-editorial .hljs-number,
.article-theme-editorial .hljs-literal { color: #4c463d; }

.article-theme-xhs .hljs-keyword { color: #ff2e4d; font-weight: 800; }
.article-theme-xhs .hljs-title,
.article-theme-xhs .hljs-title.function_,
.article-theme-xhs .hljs-built_in { color: #26262b; font-weight: 800; }
.article-theme-xhs .hljs-string { color: #d97706; }
.article-theme-xhs .hljs-comment { color: #b6b0ba; }
.article-theme-xhs .hljs-number,
.article-theme-xhs .hljs-literal { color: #c2243a; }

.article-theme-journal .hljs-keyword { color: #d96f2b; font-weight: 700; }
.article-theme-journal .hljs-title,
.article-theme-journal .hljs-title.function_,
.article-theme-journal .hljs-built_in { color: #4a3b28; font-weight: 700; }
.article-theme-journal .hljs-string { color: #7da061; }
.article-theme-journal .hljs-comment { color: #b0a288; }
.article-theme-journal .hljs-number,
.article-theme-journal .hljs-literal { color: #6b5636; }

.article-theme-fin .hljs-keyword { color: #f2a0b3; font-weight: 700; }
.article-theme-fin .hljs-title,
.article-theme-fin .hljs-title.function_,
.article-theme-fin .hljs-built_in { color: #f5e9d5; font-weight: 700; }
.article-theme-fin .hljs-string { color: #6fc2b5; }
.article-theme-fin .hljs-comment { color: #95805f; font-style: italic; }
.article-theme-fin .hljs-number,
.article-theme-fin .hljs-literal { color: #ffb86b; }

.article-theme-con .hljs-keyword { color: #7aa2ff; font-weight: 700; }
.article-theme-con .hljs-title,
.article-theme-con .hljs-title.function_,
.article-theme-con .hljs-built_in { color: #ffffff; font-weight: 700; }
.article-theme-con .hljs-string { color: #58c9a5; }
.article-theme-con .hljs-comment { color: #5f7186; }
.article-theme-con .hljs-number,
.article-theme-con .hljs-literal { color: #ffb86b; }

/* 栏眉 / 页脚在预览中点击直接编辑（悬停出现虚线提示），不设右侧表单 */

.pages.article-mode {
  overflow-x: auto;
  justify-content: safe center;
}

.pages.article-mode .article-preview {
  width: min(100%, 864px);
  margin: 0 auto;
}

.article-page {
  width: 864px;
  height: 1152px;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

.article-page:has(.article-theme-fin) {
  background: #fbf0e4;
}

.article-page:has(.article-theme-journal) {
  background: #b98d5f;
}

/* ================= 小红书 ================= */
.article-preview.article-theme-xhs {
  --article-accent: #ff2e4d;
  --article-underline-color: #ff8a00;
  background: #fff;
  color: #26262b;
  padding: 46px 42px;
}

.article-theme-xhs .article-kicker {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 5px 14px;
  background: #fff0f3;
  border-radius: 999px;
  color: var(--article-accent);
  font-size: 0.75em;
  font-weight: 700;
}

.article-theme-xhs h1 {
  text-align: left;
  font-weight: 900;
}

.article-theme-xhs h1::after {
  display: none;
}

.article-theme-xhs h2 {
  display: inline-block;
  position: relative;
  margin-top: 1.8em;
  padding: 7px 18px;
  background: var(--article-accent);
  border-radius: 12px 12px 12px 2px;
  color: #fff;
  font-weight: 900;
}

.article-theme-xhs h2::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: -9px;
  border: 5px solid transparent;
  border-top-color: var(--article-accent);
  border-left-color: var(--article-accent);
}

.article-theme-xhs h3 {
  color: #c2243a;
}

.article-theme-xhs h3::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 4px;
  margin-right: 10px;
  border-radius: 2px;
  background: #ff8a00;
  vertical-align: 3px;
}

.article-theme-xhs strong {
  background: linear-gradient(transparent 58%, #ffd94a 58%);
}

.article-theme-xhs em {
  color: var(--article-accent);
  font-style: normal;
  font-weight: 700;
}

.article-preview.article-theme-xhs a {
  color: var(--article-accent) !important;
  font-weight: 800;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

.article-theme-xhs blockquote {
  position: relative;
  padding: 16px 20px;
  background: #fff5f6;
  border: 0;
  border-radius: 16px 16px 16px 4px;
  color: #c2243a;
  font-weight: 700;
}

.article-theme-xhs blockquote::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: -10px;
  border: 6px solid transparent;
  border-top-color: #fff5f6;
  border-left-color: #fff5f6;
}

.article-theme-xhs ul li::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 11px;
  background: #ff8a00;
  transform: rotate(45deg);
}

.article-theme-xhs ol li .oli {
  display: inline-grid;
  width: 21px;
  height: 21px;
  margin-right: 10px;
  background: var(--article-accent);
  border-radius: 50%;
  color: #fff;
  font: 900 12px/21px sans-serif;
  place-items: center;
  vertical-align: 1px;
}

.article-theme-xhs figure img,
.article-theme-xhs .article-live-stage {
  border: 6px solid #ffc9d4;
  border-radius: 14px;
}

.article-theme-xhs .article-live-stage {
  background: #26262b;
}

.article-theme-xhs .article-live-badge,
.article-theme-xhs .article-live-action {
  color: #fff;
  background: #ff2e4d;
  border-color: #ff2e4d;
}

.article-theme-xhs hr {
  border-top: 2px dashed #ffd94a;
}

.article-theme-xhs .article-codewin {
  background: #fff;
  border: 2px solid #26262b;
  box-shadow: 5px 5px 0 #ffd94a;
}

.article-theme-xhs .article-codewin code {
  color: #3d382f;
}

.article-theme-xhs .codewin-bar {
  background: #fff0f3;
  border-bottom: 2px solid #26262b;
}

.article-theme-xhs .codewin-dot { background: #ff5f56; }
.article-theme-xhs .codewin-dot:nth-child(2) { background: #ffbd2e; }
.article-theme-xhs .codewin-dot:nth-child(3) { background: #27c93f; }

.article-theme-xhs .codewin-copy {
  color: #c2243a;
  background: #fff;
  border-color: #26262b;
}

.article-theme-xhs .article-table-wrap {
  border: 2px solid #26262b;
  border-radius: 12px;
}

.article-theme-xhs th {
  background: #ffe9ec;
  color: #c2243a;
  font-weight: 900;
}

.article-theme-xhs td {
  border-top: 1px solid #ffe9ec;
  border-right: 0;
  border-bottom: 0;
}

/* ================= 手账 ================= */
.article-preview.article-theme-journal {
  --article-accent: #d96f2b;
  --article-underline-color: #d96f2b;
  background: #b98d5f;
  color: #5b4a36;
  padding: 16px;
}

.article-theme-journal .article-page-sheet {
  border: 2px dashed rgba(122, 82, 40, 0.55);
  border-radius: 12px;
  background-color: #fdf9ee;
  background-image:
    linear-gradient(rgba(214, 197, 160, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 197, 160, 0.22) 1px, transparent 1px);
  background-size: 24px 24px;
  padding: 28px;
}

.article-theme-journal h1 {
  text-align: left;
  color: #4a3b28;
}

.article-theme-journal h1::before {
  content: "";
  display: block;
  width: 150px;
  height: 28px;
  margin: 0 auto 12px;
  background: rgba(232, 131, 58, 0.42);
  transform: rotate(-4deg);
}

.article-theme-journal h1::after {
  display: none;
}

.article-theme-journal h2 {
  display: inline-block;
  border-bottom: 2px dashed #d9c49a;
  color: #4a3b28;
}

.article-theme-journal h2::before {
  content: "✿ ";
  color: var(--article-accent);
}

.article-theme-journal h3 {
  color: #4a3b28;
}

.article-theme-journal h3::before {
  content: "✿ ";
  color: #7da061;
  font-size: 0.75em;
}

.article-theme-journal strong {
  color: var(--article-accent);
  background: transparent;
}

.article-preview.article-theme-journal a {
  color: var(--article-accent) !important;
  text-decoration: underline wavy !important;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.article-theme-journal blockquote {
  background: #fff7d1;
  border: 0;
  box-shadow: 2px 4px 8px rgba(90, 70, 40, 0.16);
}

.article-theme-journal ul li::before {
  content: "✓";
  margin-right: 10px;
  color: #7da061;
}

.article-theme-journal hr {
  border-top: 2px dashed #d9c49a;
}

.article-theme-journal .article-codewin {
  background: rgba(255, 255, 255, 0.75);
  border: 2px dashed #d9b98a;
}

.article-theme-journal .article-codewin code {
  color: #3d382f;
}

.article-theme-journal .codewin-bar {
  background: #fff7d1;
  border-bottom: 2px dashed #d9b98a;
}

.article-theme-journal .codewin-copy {
  color: #6b5636;
  background: rgba(255, 255, 255, 0.75);
  border-color: #d9b98a;
}

.article-theme-journal figure {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 10px 10px 6px;
  background: #fff;
  box-shadow: 2px 4px 8px rgba(90, 70, 40, 0.18);
}

.article-theme-journal figure img,
.article-theme-journal .article-live-stage {
  border-radius: 0;
}

.article-theme-journal .article-live-stage {
  background: rgba(255, 255, 255, 0.7);
  border: 2px dashed #d9b98a;
  border-radius: 12px;
}

.article-theme-journal .article-live-action {
  color: #fff;
  background: #e8833a;
  border-color: #e8833a;
}

.article-theme-journal .article-table-wrap {
  border: 0;
}

.article-theme-journal th,
.article-theme-journal td {
  border: 2px dashed #d9c49a;
}

.article-theme-journal th:last-child,
.article-theme-journal td:last-child {
  border-right: 2px dashed #d9c49a;
}

.article-theme-journal tbody tr:last-child td {
  border-bottom: 2px dashed #d9c49a;
}

.article-theme-journal th {
  color: #4a3b28;
  font-weight: 700;
  background: rgba(255, 247, 209, 0.5);
}

.article-theme-journal .codewin-dot { background: #e8833a; }
.article-theme-journal .codewin-dot:nth-child(2) { background: #7da061; }
.article-theme-journal .codewin-dot:nth-child(3) { background: #c9a35a; }

/* ================= 财经 ================= */
.article-preview.article-theme-fin {
  --article-accent: #990f3d;
  --article-underline-color: #0d7680;
  background: #fbf0e4;
  color: #33302e;
  padding: 0 0 36px;
}

.article-theme-fin .article-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 30px;
  padding: 14px 40px;
  background: #33302e;
  color: #fbf0e4;
}

.article-theme-fin .article-masthead span:first-child {
  font-weight: 900;
  letter-spacing: 0.3em;
}

.article-theme-fin .article-masthead span:last-child {
  font: 400 11px "JetBrains Mono", monospace;
  letter-spacing: 0.12em;
  opacity: 0.75;
}

.article-theme-fin h1,
.article-theme-fin h2,
.article-theme-fin h3,
.article-theme-fin p,
.article-theme-fin ul,
.article-theme-fin ol,
.article-theme-fin blockquote,
.article-theme-fin figure,
.article-theme-fin .article-codewin,
.article-theme-fin .article-table-wrap,
.article-theme-fin .article-endrow {
  margin-right: 40px;
  margin-left: 40px;
}

.article-theme-fin h1 {
  padding-top: 16px;
  border-top: 3px solid #33302e;
  text-align: left;
}

.article-theme-fin h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 12px;
  background: var(--article-accent);
}

.article-preview.article-theme-fin a {
  color: #0d7680 !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

.article-theme-fin h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d9c9b4;
}

.article-theme-fin h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0d7680;
}

.article-theme-fin h3::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #0d7680;
}

.article-theme-fin h2 .sec-no {
  display: inline-block;
  margin: 0;
  padding: 0.2em 0.5em;
  background: #33302e;
  color: #fbf0e4;
  /* 角标语义保持小巧，但改比例字号：文章字号调大时不再显得更小。 */
  font: 700 0.6em/1 "JetBrains Mono", monospace;
  letter-spacing: 0;
  vertical-align: baseline;
}

.article-theme-fin strong {
  color: var(--article-accent);
  background: transparent;
}

.article-theme-fin blockquote {
  border-width: 3px 0 1px;
  border-style: solid;
  border-color: #33302e;
}

.article-theme-fin .article-quote-label {
  display: block;
  margin-bottom: 8px;
  color: var(--article-accent);
  font: 700 11px sans-serif;
  letter-spacing: 0.4em;
}

.article-theme-fin ul li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 12px;
  background: var(--article-accent);
}

.article-theme-fin figure img,
.article-theme-fin .article-live-stage {
  border: 6px solid #4a433c;
  border-radius: 0;
}

.article-theme-fin .article-live-stage {
  background: #33302e;
}

.article-theme-fin .article-live-badge {
  color: #33302e;
  background: #fbf0e4;
  border-color: #fbf0e4;
}

.article-theme-fin .article-live-action {
  color: #33302e;
  background: #fbf0e4;
  border-color: #fbf0e4;
}

.article-theme-fin .article-codewin {
  background: #211e1b;
  border: 1px solid #33302e;
}

.article-theme-fin .codewin-bar {
  background: #2f2b27;
  border-bottom: 1px solid #45403a;
}

.article-theme-fin .article-codewin code {
  color: #f3e2cc;
}

.article-theme-fin .codewin-dot { background: #ff6f61; }
.article-theme-fin .codewin-dot:nth-child(2) { background: #ffc24d; }
.article-theme-fin .codewin-dot:nth-child(3) { background: #34d058; }

.article-theme-fin .codewin-copy {
  color: #f3e2cc;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.article-theme-fin .article-table-wrap {
  border: 0;
}

.article-theme-fin th,
.article-theme-fin td {
  border-right: 0;
}

.article-theme-fin th {
  border-top: 2px solid #33302e;
  border-bottom: 1px solid #33302e;
  color: var(--article-accent);
  font-weight: 800;
}

.article-theme-fin td {
  border-bottom: 1px solid #e2d3bc;
}

.article-theme-fin .article-endrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid #d9c9b4;
  color: #6f675c;
  font: 400 11px "JetBrains Mono", monospace;
}

/* ================= 咨询 ================= */
.article-preview.article-theme-con {
  --article-accent: #2251ff;
  --article-underline-color: #2251ff;
  background: #fff;
  color: #051c2c;
  padding: 0 0 36px;
}

.article-theme-con .article-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 28px;
  padding: 15px 40px;
  border-bottom: 1px solid #e3e8ee;
}

.article-theme-con .article-masthead span:first-child {
  font-weight: 900;
  letter-spacing: 0.14em;
}

.article-theme-con .article-masthead span:last-child {
  color: #8395a7;
  font: 400 11px "JetBrains Mono", monospace;
}

.article-theme-con h1,
.article-theme-con h2,
.article-theme-con h3,
.article-theme-con p,
.article-theme-con ul,
.article-theme-con ol,
.article-theme-con blockquote,
.article-theme-con figure,
.article-theme-con .article-codewin,
.article-theme-con .article-table-wrap,
.article-theme-con .article-endrow {
  margin-right: 40px;
  margin-left: 40px;
}

.article-theme-con h1 {
  font-family: "Noto Serif SC", Georgia, "Songti SC", serif;
  text-align: left;
}

.article-theme-con h1::after {
  /* 伪元素必须带 content 才会渲染（此前缺失导致标题蓝条从未显示）；
     用常规流内块而不是绝对定位，避免依赖父级 position。 */
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin-top: 10px;
  /* 亮蓝与 h2 下线、引用条统一色温（原深藏青 #051c2c）。 */
  background: var(--article-accent);
}

.article-theme-con h2 {
  padding-bottom: 8px;
  border-bottom: 2px solid var(--article-accent);
}

.article-theme-con h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--article-accent);
}

.article-theme-con h3::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--article-accent);
}

.article-theme-con h2 .sec-no {
  display: inline;
  margin: 0 12px 0 0;
  color: var(--article-accent);
  /* 随标题字号缩放。0.95em（em 相对 h2 = 正文×1.16）≈ 正文×1.1，
     略强于有序列表数字（正文×1.05），弱于标题正文本身，层级才对。 */
  font: 700 0.95em "JetBrains Mono", monospace;
  letter-spacing: 0;
}

.article-theme-con h2 .sec-no::after {
  content: " |";
}

.article-preview.article-theme-con a {
  color: var(--article-accent) !important;
  font-weight: 700;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

.article-theme-con blockquote {
  background: #f1f5fa;
  border-left: 4px solid var(--article-accent);
  font-weight: 700;
}

.article-theme-con .article-quote-label {
  display: block;
  margin-bottom: 6px;
  color: var(--article-accent);
  font: 800 11px sans-serif;
  letter-spacing: 0.3em;
}

.article-theme-con ul li::before {
  content: "–";
  margin-right: 11px;
  color: var(--article-accent);
  font-weight: 800;
}

.article-theme-con th {
  background: #051c2c;
  color: #fff;
}

/* 图片不再带主题色边框：作者配图多为白底手绘/截图，加框反而抢戏（预览与导出端已同步去掉）。 */

.article-theme-con .article-live-stage {
  background: #051c2c;
}

.article-theme-con .article-live-badge {
  color: #fff;
  background: #2251ff;
  border-color: #2251ff;
}

.article-theme-con .article-live-action {
  color: #fff;
  background: #2251ff;
  border-color: #2251ff;
}

.article-theme-con .article-codewin {
  background: #0a1e30;
  border: 1px solid #051c2c;
}

.article-theme-con .codewin-bar {
  background: #0f2942;
  border-bottom: 1px solid #1d3a57;
}

.article-theme-con .article-codewin code {
  color: #dbe7f4;
}

.article-theme-con .codewin-dot { background: #2251ff; }
.article-theme-con .codewin-dot:nth-child(2) { background: #5b85ff; }
.article-theme-con .codewin-dot:nth-child(3) { background: #a8c0ff; }

.article-theme-con .codewin-copy {
  color: #dbe7f4;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.article-theme-con .article-table-wrap {
  border: 0;
}

.article-theme-con th,
.article-theme-con td {
  border-right: 0;
}

.article-theme-con td {
  border-bottom: 1px solid #e3e8ee;
}

.article-theme-con tbody tr:nth-child(even) td {
  background: #f7fafc;
}

.article-theme-con .article-endrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid #e3e8ee;
  font: 400 11px "JetBrains Mono", monospace;
}

.article-theme-fin .article-footer-note,
.article-theme-con .article-footer-note {
  flex: none;
  white-space: nowrap;
}

.article-page .article-preview {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.article-page .article-preview:not(:has(.article-masthead)) {
  padding-top: 36px;
}

.article-page .article-endrow {
  position: absolute;
  right: 48px;
  bottom: 28px;
  left: 48px;
  margin-top: 0;
}

/* ================= 杂志 Editorial 主题 ================= */
/* 规范来源：docs/design-explorations/theme-element-spec.html
   兼容改写：编号用真实文字节点；终端红绿灯用 span 圆点；下划线标注颜色走 CSS。 */
.article-preview.article-theme-editorial {
  --article-serif: "Noto Serif SC", Georgia, "Songti SC", "STSong", SimSun, serif;
  --article-accent: #b5443c;
  --article-underline-color: #b5443c;
  position: relative;
  background-color: #fbfaf7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  color: #1b1a18;
  font-family: var(--article-serif);
  padding: 52px 50px 36px;
}

/* 双线页框 */
.article-preview.article-theme-editorial::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid #ddd3c0;
  pointer-events: none;
}

.article-preview.article-theme-editorial::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid #e9e2d2;
  pointer-events: none;
}

.article-preview.article-theme-editorial > * {
  position: relative;
}

.article-theme-editorial .article-orn {
  text-align: center;
  color: var(--article-accent);
  font-size: 0.85em;
  margin: 0 0 18px;
}

.article-preview.article-theme-editorial .article-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 26px;
  color: var(--article-accent);
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.35em;
}

.article-preview.article-theme-editorial .article-kicker::before,
.article-preview.article-theme-editorial .article-kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ddd6c9;
}

.article-preview.article-theme-editorial h1 {
  color: #1b1a18;
  text-align: left;
  letter-spacing: 0.02em;
}

.article-preview.article-theme-editorial h1::after {
  display: none;
}

.article-preview.article-theme-editorial h2 {
  display: block;
  padding: 0 0 12px;
  color: #1b1a18;
  background: transparent;
  text-align: left;
  border-bottom: 1px solid #ddd6c9;
}

.article-theme-editorial h2 .sec-no {
  color: var(--article-accent);
}

.article-preview.article-theme-editorial h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1b1a18;
}

.article-theme-editorial h3::before {
  content: "";
  flex: none;
  width: 20px;
  height: 2px;
  background: var(--article-accent);
}

.article-theme-editorial u {
  text-decoration-color: var(--article-accent);
}

/* 渲染器给链接写了内联 color:inherit/text-decoration:none，各主题用重要级恢复自己的链接色 */
.article-preview.article-theme-editorial a {
  color: var(--article-accent) !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.article-theme-editorial blockquote {
  border-left: 3px solid var(--article-accent);
  background: transparent;
  border-radius: 0;
  font-style: normal;
  color: #4c463d;
  font-size: 1.02em;
  padding: 4px 0 4px 20px;
}

.article-theme-editorial blockquote::before {
  content: "\201C";
  color: var(--article-accent);
  font-size: 1.6em;
  font-weight: 900;
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: 6px;
}

.article-theme-editorial blockquote::after {
  content: "\201D";
  color: var(--article-accent);
  font-size: 1.6em;
  font-weight: 900;
  line-height: 0;
  vertical-align: -0.3em;
  margin-left: 6px;
}

.article-theme-editorial ul {
  padding-left: 4px;
}

.article-theme-editorial ul li::before {
  content: "■";
  font-size: 0.5em;
  color: var(--article-accent);
  margin-right: 12px;
  vertical-align: 3px;
}

.article-theme-editorial ol {
  padding-left: 4px;
}

.article-theme-editorial ol li .oli {
  min-width: 26px;
}

.article-theme-editorial figure img,
.article-theme-editorial .article-live-stage {
  border: 6px solid #e4dccb;
  border-radius: 0;
}

.article-theme-editorial .article-live-stage {
  background: #26231e;
  border-color: #e4dccb;
}

.article-theme-editorial .article-live-badge {
  color: #26231e;
  background: #f1ede4;
  border-color: #f1ede4;
}

.article-theme-editorial .article-live-action {
  color: #26231e;
  background: #f1ede4;
  border-color: #f1ede4;
}

/* 米色代码窗。圆点、行号和复制按钮的结构在公共层。 */
.article-theme-editorial .article-codewin {
  background: #fffdf8;
  border: 1px solid #ddd3c0;
  border-radius: 10px;
}

.article-theme-editorial .codewin-bar {
  background: #f1ede4;
  border-bottom: 1px solid #e2dac8;
}

.article-theme-editorial .codewin-dot {
  background: #cf7968;
}

.article-theme-editorial .codewin-dot:nth-child(2) {
  background: #d8b25c;
}

.article-theme-editorial .codewin-dot:nth-child(3) {
  background: #6f9e64;
}

.article-theme-editorial .codewin-copy {
  color: #6f6a60;
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
}

.article-theme-editorial .codewin-copy:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #1b1a18;
}

.article-theme-editorial .codewin-copy.copied {
  color: #1f8a63;
  border-color: #1f8a63;
  background: transparent;
}

.article-theme-editorial .article-codewin code {
  padding-left: 6px;
  color: #3d382f;
}

.article-theme-editorial .article-endrow {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 10px;
  border-top: 1px solid #ddd6c9;
  font-size: 0.68em;
  letter-spacing: 0.18em;
  color: #8a857b;
}

.article-theme-editorial table {
  border-collapse: collapse;
}

.article-theme-editorial strong {
  background: transparent;
  font-weight: 700;
}

/* 基础主题的 .article-table-wrap 边框用了 color-mix，导出时会变成 color(srgb …) 使 html2canvas 崩溃，
   杂志主题统一覆写为纯色。 */
.article-theme-editorial .article-table-wrap {
  border: 1px solid #ddd3c0;
  background: transparent;
}

.article-theme-editorial th {
  color: var(--article-accent);
  background: transparent;
  font-size: 1em;
  letter-spacing: 0.2em;
  border-top: 2px solid #1b1a18;
  border-bottom: 1px solid #1b1a18;
}

.article-theme-editorial td {
  border-bottom: 1px solid #e5ddcb;
}

.article-theme-editorial hr {
  border: 0;
  border-top: 1px solid #ddd6c9;
}

.article-theme-editorial [contenteditable="true"] {
  cursor: text;
  border-bottom: 1px dashed transparent;
}

.article-theme-editorial [contenteditable="true"]:hover {
  border-bottom-color: rgba(181, 68, 60, 0.55);
}

.article-theme-editorial [contenteditable="true"]:focus {
  outline: 1.5px dashed rgba(181, 68, 60, 0.8);
  outline-offset: 3px;
  border-bottom-color: transparent;
}

