/* ============================================================
   site-editorial-internals.css
   在 html.home-editorial 下把各内页从 Midnight Aurora 拉回与 index 一致的纸质 / 墨绿风。
   须放在各页 page-*.css 之后加载，以便覆盖深色局部样式。
   依赖：common.css、page-shell.css、page-index-editorial.css（提供 --ed-* 与顶栏）
   ============================================================ */

html.home-editorial {
  /* 与 page-shell 中 Midnight 块「同名」变量，供旧组件 var(--ink) 等 */
  --paper: rgba(252, 249, 244, 0.96);
  --paper-dot: rgba(13, 92, 77, 0.08);
  --ink: #14120f;
  --ink-light: #5c564c;
  --marker-yellow: rgba(245, 158, 11, 0.38);
  --marker-blue: rgba(13, 92, 77, 0.18);
  --marker-pink: rgba(201, 168, 130, 0.45);
  --marker-green: rgba(13, 92, 77, 0.16);
  --idx-vitrine-bg: #ffffff;
  --idx-vitrine-border: rgba(20, 18, 15, 0.1);
  --idx-vitrine-shadow: 0 20px 50px rgba(26, 18, 10, 0.07);
  --shadow-sketch: 0 20px 44px rgba(26, 18, 10, 0.08);
  --muted: #6b6560;

  /* common.css :root 极光变量 — 定价页等大量 color-mix 依赖 */
  --aurora-card: rgba(255, 255, 255, 0.96);
  --aurora-bg0: #fcf9f4;
  --aurora-bg1: #f2ebe0;
  --aurora-bg2: #e8e0d4;
  --aurora-ink: #14120f;
  --aurora-muted: #6b6560;
  --aurora-border: rgba(20, 18, 15, 0.12);
  --aurora-border-strong: rgba(13, 92, 77, 0.28);
  --aurora-indigo: #0d5c4d;
  --aurora-violet: #0d5c4d;
  --aurora-accent: #0d5c4d;
  --aurora-fuchsia: #c9a882;
  --aurora-neon: #c9a882;
  --aurora-glow: rgba(13, 92, 77, 0.12);
}

/* —— 玻璃卡片 / 马克笔高亮 —— */
html.home-editorial .sketch-box {
  background: var(--idx-vitrine-bg);
  border: 1px solid var(--idx-vitrine-border);
  border-radius: 18px;
  box-shadow: var(--idx-vitrine-shadow);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html.home-editorial .sketch-box:hover {
  transform: translateY(-3px);
  border-color: rgba(13, 92, 77, 0.22);
  box-shadow: 0 28px 56px rgba(26, 18, 10, 0.1);
}

html.home-editorial .hl-blue {
  background: linear-gradient(
    104deg,
    transparent 0%,
    rgba(13, 92, 77, 0.12) 8%,
    rgba(13, 92, 77, 0.18) 50%,
    rgba(13, 92, 77, 0.12) 92%,
    transparent 100%
  );
  padding: 0.08em 0.45em;
  border-radius: 8px;
}

html.home-editorial .hl-yellow {
  background: linear-gradient(
    104deg,
    transparent 0%,
    rgba(245, 158, 11, 0.22) 8%,
    rgba(245, 158, 11, 0.28) 50%,
    rgba(245, 158, 11, 0.18) 92%,
    transparent 100%
  );
  padding: 0.08em 0.45em;
  border-radius: 8px;
}

html.home-editorial .hl-pink {
  background: linear-gradient(
    104deg,
    transparent 0%,
    rgba(201, 168, 130, 0.22) 8%,
    rgba(201, 168, 130, 0.3) 50%,
    rgba(201, 168, 130, 0.2) 92%,
    transparent 100%
  );
  padding: 0.08em 0.45em;
  border-radius: 8px;
}

html.home-editorial .section-header p {
  color: var(--ed-muted, #5c564c);
}

html.home-editorial .section-header h2::after {
  background: linear-gradient(90deg, rgba(13, 92, 77, 0.45), rgba(245, 158, 11, 0.5));
  height: 4px;
  bottom: -3px;
}

/* —— shell 内页首屏 —— */
html.home-editorial .shell-hero__aurora {
  display: none;
}

html.home-editorial .shell-hero {
  background: linear-gradient(145deg, #faf6ef 0%, #efe6d8 48%, #e8dcc8 100%);
  border-bottom: 1px solid rgba(20, 18, 15, 0.06);
}

html.home-editorial .shell-kicker {
  color: var(--ed-accent, #0d5c4d);
}

html.home-editorial .page-shell .title-metal,
html.home-editorial .shell-hero .title-metal {
  font-family: 'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;
  font-weight: 700;
  color: var(--ed-ink, #14120f);
  text-shadow: none;
}

html.home-editorial .shell-hero .title-metal--sub {
  background: linear-gradient(135deg, #0d5c4d 0%, #1a6b5c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: none;
}

html.home-editorial .shell-lead {
  color: var(--ed-muted, #5c564c);
  font-weight: 500;
}

html.home-editorial .help-quick-links a {
  background: #fff;
  border: 1px solid rgba(20, 18, 15, 0.1);
  color: var(--ed-ink, #14120f);
  box-shadow: 0 8px 24px rgba(26, 18, 10, 0.06);
}

html.home-editorial .help-quick-links a:hover {
  background: rgba(13, 92, 77, 0.06);
  border-color: rgba(13, 92, 77, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(26, 18, 10, 0.08);
}

html.home-editorial .help-toc {
  background: rgba(255, 255, 255, 0.85);
  border: 1px dashed rgba(20, 18, 15, 0.12);
}

/* —— 定价 / 下单 psc-* —— */
html.home-editorial .psc-hero__aurora,
html.home-editorial .psc-hero__mesh {
  display: none;
}

html.home-editorial .psc-hero {
  background: linear-gradient(145deg, #faf6ef 0%, #efe6d8 48%, #e8dcc8 100%);
  border-bottom: 1px solid rgba(20, 18, 15, 0.06);
}

html.home-editorial .psc-kicker {
  color: var(--ed-accent, #0d5c4d);
}

html.home-editorial .psc-hero-title {
  font-family: 'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;
  font-weight: 700;
  color: var(--ed-ink, #14120f);
}

html.home-editorial .psc-hero-lead {
  color: var(--ed-muted, #5c564c);
}

html.home-editorial .psc-hero-lead--muted {
  color: rgba(92, 86, 76, 0.82);
}

html.home-editorial .psc-trust-row li {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(20, 18, 15, 0.08);
  color: var(--ed-ink, #14120f);
}

html.home-editorial .psc-glass {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html.home-editorial .psc-cycle-tile.toggle-btn.active .psc-cycle-tile__label {
  color: #faf8f5;
}

html.home-editorial .psc-cycle-tile.toggle-btn.active .psc-cycle-tile__note {
  color: rgba(250, 248, 245, 0.85);
}

html.home-editorial .psc-cycle-tile.toggle-btn.active .psc-cycle-tile__ico {
  background: rgba(13, 92, 77, 0.35);
  color: #fff;
  border-color: rgba(245, 158, 11, 0.35);
}

html.home-editorial .psc-order-panel__title,
html.home-editorial .psc-rail-line-v,
html.home-editorial .psc-rail-total-num {
  color: var(--ed-ink, #14120f);
}

html.home-editorial .psc-rail-dc {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ed-ink, #14120f);
  border: 1px solid rgba(20, 18, 15, 0.1);
}

html.home-editorial .psc-rail-cta {
  color: #faf8f5;
  text-shadow: none;
  background: linear-gradient(180deg, #1a1816 0%, #14120f 100%);
  border: 1px solid rgba(20, 18, 15, 0.2);
  box-shadow: 0 14px 32px rgba(26, 18, 10, 0.14);
}

html.home-editorial .psc-rail-cta:hover:not(:disabled) {
  background: var(--ed-accent, #0d5c4d);
  filter: none;
  box-shadow: 0 16px 36px rgba(13, 92, 77, 0.25);
}

/* —— 套餐详情 pxd-shell —— */
html.home-editorial .pxd-shell {
  --pxd-ink: #14120f;
  --pxd-white: #14120f;
  --pxd-muted: #5c564c;
  --pxd-surface: #ffffff;
  --pxd-surface-2: #fcf9f4;
  --pxd-border: rgba(20, 18, 15, 0.1);
  --pxd-border-hv: rgba(13, 92, 77, 0.28);
  --pxd-indigo: #0d5c4d;
  --pxd-violet: #0d5c4d;
  --pxd-violet-dim: #0a4a3e;
  --pxd-violet-soft: rgba(13, 92, 77, 0.12);
  --pxd-pink: #c9a882;
  --pxd-rose: #c9a882;
  --pxd-fuchsia: #c9a882;
  --pxd-amber: #f59e0b;
  background: var(--ed-paper, #fcf9f4);
  color: var(--pxd-ink);
}

html.home-editorial .pxd-hero__aurora {
  display: none;
}

html.home-editorial .pxd-hero {
  background: linear-gradient(145deg, #faf6ef 0%, #efe6d8 48%, #e8dcc8 100%);
  border-bottom: 1px solid rgba(20, 18, 15, 0.06);
}

html.home-editorial .pxd-eyebrow {
  color: var(--ed-accent, #0d5c4d);
}

html.home-editorial .pxd-display-title,
html.home-editorial .pxd-title {
  font-family: 'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;
  color: var(--ed-ink, #14120f);
}

/* —— 博客 / 文章 —— */
html.home-editorial[data-layout-no-nav] .blog-article-topbar {
  border-bottom-color: rgba(20, 18, 15, 0.1);
}

html.home-editorial[data-layout-no-nav] .blog-article-head {
  border-bottom-color: rgba(20, 18, 15, 0.08);
}

html.home-editorial[data-layout-no-nav] .blog-article-body h2 {
  border-left-color: rgba(13, 92, 77, 0.45);
}

/* —— 账户页 wx 顶栏与侧栏（覆盖 #page-wode-zhanghao 块末高优先级规则） —— */
html.home-editorial #page-wode-zhanghao .wx-console-top {
  background: linear-gradient(145deg, #faf6ef 0%, #efe6d8 55%, #e8dcc8 100%);
  border: 1px solid rgba(20, 18, 15, 0.08);
  box-shadow: 0 18px 40px rgba(26, 18, 10, 0.06);
}

html.home-editorial #page-wode-zhanghao .wx-console-top::before {
  opacity: 0;
}

html.home-editorial #page-wode-zhanghao .wx-console-top__title {
  color: var(--ed-ink, #14120f);
  font-family: 'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;
}

html.home-editorial #page-wode-zhanghao .wx-console-top__subtitle,
html.home-editorial #page-wode-zhanghao .wx-console-top__tag {
  color: var(--ed-muted, #5c564c);
}

html.home-editorial #page-wode-zhanghao .wx-console-top__label {
  color: var(--ed-muted, #5c564c);
}

html.home-editorial #page-wode-zhanghao .wx-console-top__ring {
  border-color: rgba(13, 92, 77, 0.35);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.25);
}

html.home-editorial #page-wode-zhanghao .sidebar.wx-console-rail {
  background: #fff;
  border: 1px solid rgba(20, 18, 15, 0.08);
  box-shadow: 0 14px 36px rgba(26, 18, 10, 0.06);
}

html.home-editorial #page-wode-zhanghao .wx-console-rail .sidebar-menu li a {
  color: var(--ed-ink, #14120f);
}

html.home-editorial #page-wode-zhanghao .wx-console-rail .sidebar-menu li a.active {
  background: rgba(13, 92, 77, 0.1);
  border-color: rgba(13, 92, 77, 0.35);
  box-shadow: none;
}

html.home-editorial #page-wode-zhanghao .wx-dash-surface.dash-panel .dash-header h2 {
  color: var(--ed-ink, #14120f);
  font-family: 'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;
}
