/* =========================================================
   YIXUN template · day/night refactor
   Default theme: dark. Toggle via html[data-theme="light"].
   themecolor 接力: header.php 设置 --ls-primary, 本文件以
   var(--ls-primary, var(--yx-primary)) 桥接, 使其继续生效.
   ========================================================= */

:root,
html[data-theme="dark"],
body[data-theme="dark"] {
  --yx-bg-base: #0B0F14;
  --yx-bg-soft: #0F1620;
  --yx-surface: rgba(255, 255, 255, 0.04);
  --yx-surface-solid: #131A24;
  --yx-surface-2: rgba(255, 255, 255, 0.06);
  --yx-card-bg: rgba(255, 255, 255, 0.045);
  --yx-card-bg-hover: rgba(255, 255, 255, 0.07);

  --yx-border: rgba(255, 255, 255, 0.09);
  --yx-border-soft: rgba(255, 255, 255, 0.05);
  --yx-line: rgba(255, 255, 255, 0.08);

  --yx-primary: #10B981;
  --yx-primary-dark: #059669;
  --yx-primary-rgb: 16, 185, 129;
  --yx-accent: #F59E0B;
  --yx-accent-soft: #FBBF24;
  --yx-accent-rgb: 245, 158, 11;

  --yx-ink: #E8EDF5;
  --yx-muted: #94A3B8;
  --yx-faint: #64748B;
  --yx-ink-soft: #CBD5E1;

  --yx-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --yx-shadow-hover: 0 28px 64px rgba(0, 0, 0, 0.55);
  --yx-shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.30);
  --yx-glow: 0 0 24px rgba(16, 185, 129, 0.35);

  --yx-header-bg: rgba(15, 22, 32, 0.72);
  --yx-footer-bg: #070A0E;
  --yx-footer-ink: #A8B3C5;

  --yx-hero-ink: #ffffff;
  --yx-hero-muted: rgba(255, 255, 255, 0.86);
}

html[data-theme="light"],
body[data-theme="light"] {
  --yx-bg-base: #EEF2F6;
  --yx-bg-soft: #F8FAFC;
  --yx-surface: #FFFFFF;
  --yx-surface-solid: #FFFFFF;
  --yx-surface-2: #F1F5F9;
  --yx-card-bg: #FFFFFF;
  --yx-card-bg-hover: #FFFFFF;

  --yx-border: #E2E8F0;
  --yx-border-soft: #EDF2F7;
  --yx-line: #E6EBF1;

  --yx-primary: #059669;
  --yx-primary-dark: #047857;
  --yx-primary-rgb: 5, 150, 105;
  --yx-accent: #D97706;
  --yx-accent-soft: #F59E0B;
  --yx-accent-rgb: 217, 119, 6;

  --yx-ink: #1E293B;
  --yx-muted: #64748B;
  --yx-faint: #94A3B8;
  --yx-ink-soft: #334155;

  --yx-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --yx-shadow-hover: 0 24px 48px rgba(15, 23, 42, 0.13);
  --yx-shadow-soft: 0 8px 22px rgba(15, 23, 42, 0.06);
  --yx-glow: 0 0 24px rgba(5, 150, 105, 0.18);

  --yx-header-bg: rgba(255, 255, 255, 0.78);
  --yx-footer-bg: #0F172A;
  --yx-footer-ink: #CBD5E1;

  --yx-hero-ink: #ffffff;
  --yx-hero-muted: rgba(255, 255, 255, 0.9);
}

/* ---- 桥接 themecolor: 若后台设置 --ls-primary 则覆盖主色 ---- */
:root {
  --yx-green: var(--ls-primary, var(--yx-primary));
  --yx-green-dark: var(--ls-primary-dark, var(--yx-primary-dark));
  --yx-amber: var(--yx-accent);
  --yx-amber-soft: var(--yx-accent-soft);

  --yx-radius: 16px;
  --yx-radius-sm: 10px;
  --yx-wrap: 1200px;
  --yx-font: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;

  color-scheme: dark;
}

html[data-theme="light"] { color-scheme: light; }

/* ----------------- reset ----------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--yx-font);
  color: var(--yx-ink);
  line-height: 1.65;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 82% -8%, rgba(var(--yx-primary-rgb), 0.10), transparent 60%),
    radial-gradient(900px 520px at -4% -4%, rgba(var(--yx-accent-rgb), 0.06), transparent 55%),
    linear-gradient(180deg, var(--yx-bg-soft) 0%, var(--yx-bg-base) 260px),
    var(--yx-bg-base);
  background-attachment: fixed;
  transition: background-color .3s ease, color .3s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .25s, background .25s, border-color .25s;
}
a:hover { color: var(--yx-green); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.3; }
button { font-family: inherit; }

::selection { background: rgba(var(--yx-primary-rgb), 0.32); color: var(--yx-ink); }

/* scrollbar */
* { scrollbar-width: thin; scrollbar-color: rgba(var(--yx-primary-rgb), 0.5) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb {
  background: rgba(var(--yx-primary-rgb), 0.45);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
*::-webkit-scrollbar-track { background: transparent; }

.yx-wrap {
  width: min(100% - 32px, var(--yx-wrap));
  margin-inline: auto;
}

/* =================== Header / Nav =================== */
.yx-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--yx-header-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--yx-border);
  transition: background .3s, border-color .3s;
}

.yx-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.yx-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.yx-logo img { height: 42px; width: auto; }

.yx-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--yx-green), var(--yx-green-dark));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 4px 4px 0 var(--yx-amber), 0 8px 20px rgba(var(--yx-primary-rgb), 0.35);
}

.yx-logo strong {
  display: block;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.yx-logo em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--yx-muted);
  margin-top: 2px;
}

.yx-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yx-nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

.yx-nav > ul > li { position: relative; }

.yx-nav > ul > li > a {
  display: block;
  padding: 10px 14px;
  font-size: 0.94rem;
  color: var(--yx-ink-soft);
  border-bottom: 2px solid transparent;
  border-radius: 8px 8px 0 0;
}

.yx-nav > ul > li > a:hover,
.yx-nav > ul > li.is-active > a {
  color: var(--yx-green);
  border-bottom-color: var(--yx-amber);
}

.yx-subnav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 168px;
  padding: 8px;
  margin-top: 4px;
  background: var(--yx-surface-solid);
  border: 1px solid var(--yx-border);
  border-radius: 12px;
  box-shadow: var(--yx-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.yx-nav > ul > li.has-child:hover > .yx-subnav { display: block; }

.yx-subnav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--yx-muted);
}

.yx-subnav a:hover,
.yx-subnav .is-active a {
  background: rgba(var(--yx-primary-rgb), 0.12);
  color: var(--yx-green);
}

.yx-search {
  display: flex;
  border: 1px solid var(--yx-border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--yx-surface-2);
  transition: border-color .25s, box-shadow .25s;
}

.yx-search:focus-within {
  border-color: rgba(var(--yx-primary-rgb), 0.6);
  box-shadow: 0 0 0 4px rgba(var(--yx-primary-rgb), 0.14);
}

.yx-search input {
  width: 140px;
  border: 0;
  padding: 9px 14px;
  font-size: 0.85rem;
  outline: none;
  background: transparent;
  color: var(--yx-ink);
}

.yx-search input::placeholder { color: var(--yx-faint); }

.yx-search button {
  border: 0;
  background: linear-gradient(135deg, var(--yx-green), var(--yx-green-dark));
  color: #fff;
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter .2s;
}

.yx-search button:hover { filter: brightness(1.08); }

/* ---- theme toggle ---- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--yx-border);
  border-radius: 12px;
  background: var(--yx-surface-2);
  color: var(--yx-ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .3s, color .3s, border-color .3s, transform .2s, box-shadow .25s;
}

.theme-toggle:hover {
  color: var(--yx-amber);
  border-color: rgba(var(--yx-accent-rgb), 0.55);
  box-shadow: 0 0 0 4px rgba(var(--yx-accent-rgb), 0.12);
  transform: translateY(-1px) rotate(-8deg);
}

.theme-toggle:active { transform: translateY(0) rotate(0); }

.theme-toggle-icon { width: 20px; height: 20px; display: block; }

.theme-toggle-icon-sun { display: block; }
.theme-toggle-icon-moon { display: none; }

html[data-theme="light"] .theme-toggle-icon-sun,
body[data-theme="light"] .theme-toggle-icon-sun { display: none; }
html[data-theme="light"] .theme-toggle-icon-moon,
body[data-theme="light"] .theme-toggle-icon-moon { display: block; }

.yx-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--yx-border);
  border-radius: 12px;
  background: var(--yx-surface-2);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.yx-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--yx-ink);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}

body.nav-open .yx-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .yx-nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .yx-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.yx-nav-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 90;
}

body.nav-open .yx-nav-mask { display: block; }

/* =================== Hero =================== */
.yx-slash {
  position: relative;
  padding: 80px 0 96px;
  color: var(--yx-hero-ink);
}

.yx-slash-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(115deg, var(--yx-green-dark) 0%, var(--yx-green) 48%, #0F766E 72%, var(--yx-amber) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
}

.yx-slash-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -35deg,
      transparent,
      transparent 18px,
      rgba(255, 255, 255, 0.045) 18px,
      rgba(255, 255, 255, 0.045) 19px
    );
}

.yx-slash-bg::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 160%;
  background: radial-gradient(closest-side, rgba(var(--yx-accent-rgb), 0.28), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.yx-slash-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

.yx-eyebrow {
  margin: 0 0 14px;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  color: var(--yx-amber-soft);
  font-weight: 700;
}

.yx-slash-copy h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  max-width: 14em;
  margin: 0;
  background: linear-gradient(120deg, #ffffff 0%, var(--yx-amber-soft) 55%, var(--yx-amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--yx-hero-ink);
}

/* browsers w/o background-clip:text fallback */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .yx-slash-copy h1 { -webkit-text-fill-color: initial; color: #fff; }
}

.yx-slash-desc {
  margin: 16px 0 0;
  max-width: 34em;
  font-size: 1.06rem;
  color: var(--yx-hero-muted);
}

.yx-slash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.yx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform .2s, box-shadow .25s, background .25s, color .25s;
}

.yx-btn-primary {
  background: linear-gradient(135deg, var(--yx-amber), var(--yx-accent-soft));
  color: #1C1917;
  box-shadow: 0 10px 26px rgba(var(--yx-accent-rgb), 0.45);
}

.yx-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(var(--yx-accent-rgb), 0.55);
  color: #1C1917;
}

.yx-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.yx-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: translateY(-2px);
}

.yx-slash-panel {
  display: grid;
  gap: 12px;
}

.yx-slash-card {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .25s, background .25s;
}

.yx-slash-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.18);
}

.yx-slash-card span {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--yx-amber-soft);
  margin-bottom: 4px;
}

.yx-slash-card strong {
  font-size: 1.06rem;
  color: #fff;
}

/* =================== Board ticker =================== */
.yx-board {
  margin-top: -36px;
  position: relative;
  z-index: 2;
}

.yx-board-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--yx-surface-solid);
  border: 1px solid var(--yx-border);
  border-radius: 14px;
  box-shadow: var(--yx-shadow);
  overflow: hidden;
}

.yx-board-label {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--yx-ink), var(--yx-ink-soft));
  color: var(--yx-bg-base);
  font-size: 0.8rem;
  font-weight: 700;
}

.yx-board-track {
  flex: 1;
  min-width: 0;
  display: flex;
  overflow: hidden;
  white-space: nowrap;
}

.yx-board-flow {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  animation: yx-marquee 36s linear infinite;
}

.yx-board-track a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--yx-ink-soft);
}

.yx-board-track a i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yx-amber);
  box-shadow: 0 0 10px rgba(var(--yx-accent-rgb), 0.75);
}

.yx-board-flow:hover { animation-play-state: paused; }

@keyframes yx-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =================== Split: stack + checklist =================== */
.yx-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  margin: 40px 0 32px;
}

.yx-stack {
  display: grid;
  gap: 16px;
}

.yx-stack-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 14px;
  background: var(--yx-card-bg);
  border: 1px solid var(--yx-border);
  border-radius: var(--yx-radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--yx-shadow-soft);
  transition: transform .25s, box-shadow .25s, border-color .25s, background .25s;
}

.yx-stack-card.is-lead {
  grid-template-columns: 1fr;
}

.yx-stack-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--yx-shadow-hover);
  border-color: rgba(var(--yx-primary-rgb), 0.42);
  background: var(--yx-card-bg-hover);
  color: inherit;
}

.yx-stack-cover {
  border-radius: 12px;
  overflow: hidden;
  min-height: 120px;
  background: var(--yx-surface-2);
}

.yx-stack-card.is-lead .yx-stack-cover { min-height: 220px; }

.yx-stack-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: inherit;
  transition: transform .4s ease;
}

.yx-stack-card:hover .yx-stack-cover img { transform: scale(1.05); }

.yx-stack-ph {
  min-height: inherit;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background: linear-gradient(135deg, var(--yx-green-dark), #115E59 60%, var(--yx-amber));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
}

.yx-stack-body { padding: 4px 4px 4px 0; }

.yx-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(var(--yx-primary-rgb), 0.22), rgba(var(--yx-primary-rgb), 0.10));
  color: var(--yx-green);
  border: 1px solid rgba(var(--yx-primary-rgb), 0.28);
  margin-bottom: 8px;
}

.yx-stack-body h2 {
  font-size: 1.18rem;
  margin-bottom: 8px;
  color: var(--yx-ink);
}

.yx-stack-card.is-lead h2 { font-size: 1.5rem; }

.yx-stack-body p {
  margin: 0 0 10px;
  color: var(--yx-muted);
  font-size: 0.92rem;
}

.yx-stack-body time {
  font-size: 0.8rem;
  color: var(--yx-faint);
}

.yx-checklist {
  position: relative;
  padding: 22px 20px 20px;
  background: var(--yx-card-bg);
  border: 1px solid var(--yx-border);
  border-radius: var(--yx-radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--yx-shadow-soft);
  overflow: hidden;
}

.yx-checklist::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--yx-green), var(--yx-amber));
}

.yx-section-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--yx-line);
}

.yx-section-hd h2 {
  font-size: 1.16rem;
  position: relative;
  padding-left: 14px;
  color: var(--yx-ink);
}

.yx-section-hd h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 4px;
  height: 0.95em;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--yx-green), var(--yx-amber));
  box-shadow: 0 0 8px rgba(var(--yx-primary-rgb), 0.4);
}

.yx-section-hd span,
.yx-section-hd a {
  font-size: 0.85rem;
  color: var(--yx-muted);
}

.yx-section-hd a:hover { color: var(--yx-green); }

.yx-check-list {
  counter-reset: yxcheck;
  position: relative;
}

.yx-check-list li {
  counter-increment: yxcheck;
  border-bottom: 1px solid var(--yx-line);
}

.yx-check-list li:last-child { border-bottom: 0; }

.yx-check-list a {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 14px 0;
  color: inherit;
  transition: color .2s;
}

.yx-check-list a:hover { color: var(--yx-green); }

.yx-check-list a::before {
  content: counter(yxcheck, decimal-leading-zero);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--yx-amber);
  padding-top: 2px;
}

.yx-check-list strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--yx-ink);
}

.yx-check-list span {
  font-size: 0.8rem;
  color: var(--yx-faint);
  white-space: nowrap;
}

/* =================== Asymmetric =================== */
.yx-asymmetric {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  margin: 8px 0 56px;
}

.yx-asy-main,
.yx-asy-block {
  padding: 22px;
  background: var(--yx-card-bg);
  border: 1px solid var(--yx-border);
  border-radius: var(--yx-radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--yx-shadow-soft);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.yx-asy-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--yx-shadow-hover);
  border-color: rgba(var(--yx-primary-rgb), 0.4);
}

.yx-asy-side {
  display: grid;
  gap: 16px;
}

.yx-asy-accent {
  background:
    linear-gradient(160deg, rgba(var(--yx-primary-rgb), 0.12), var(--yx-card-bg) 55%);
  border-color: rgba(var(--yx-primary-rgb), 0.26);
}

.yx-feed li {
  border-bottom: 1px solid var(--yx-line);
}

.yx-feed li:last-child { border-bottom: 0; }

.yx-feed a {
  display: block;
  padding: 14px 0;
  color: inherit;
  transition: color .2s;
}

.yx-feed a:hover { color: var(--yx-green); }

.yx-feed h3 {
  font-size: 1.06rem;
  margin-bottom: 6px;
  color: var(--yx-ink);
}

.yx-feed p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--yx-muted);
}

.yx-feed time {
  font-size: 0.8rem;
  color: var(--yx-faint);
}

.yx-plain-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--yx-line);
  font-size: 0.9rem;
}

.yx-plain-list li:last-child { border-bottom: 0; }

.yx-plain-list span {
  flex-shrink: 0;
  color: var(--yx-faint);
  font-size: 0.8rem;
}

/* =================== Inner pages =================== */
.yx-crumb {
  padding: 16px 0;
  font-size: 0.88rem;
  color: var(--yx-muted);
  border-bottom: 1px solid var(--yx-border);
  background: var(--yx-surface);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.yx-crumb span { margin: 0 6px; color: var(--yx-faint); }
.yx-crumb a:hover { color: var(--yx-green); }

.yx-layout {
  display: grid;
  grid-template-columns: 1fr 312px;
  gap: 26px;
  padding: 30px 0 56px;
}

.yx-panel {
  background: var(--yx-card-bg);
  border: 1px solid var(--yx-border);
  border-radius: var(--yx-radius);
  padding: 22px;
  margin-bottom: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--yx-shadow-soft);
}

.yx-panel-hd {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--yx-line);
}

.yx-panel-hd h3 { font-size: 1rem; color: var(--yx-ink); }

.yx-list-panel,
.yx-detail { margin-bottom: 0; }

.yx-page-title {
  font-size: 1.5rem;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--yx-line);
  color: var(--yx-ink);
  position: relative;
  padding-left: 14px;
}

.yx-page-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 4px;
  height: 0.9em;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--yx-green), var(--yx-amber));
}

.yx-article-list li { border-bottom: 1px solid var(--yx-line); }
.yx-article-list li:last-child { border-bottom: 0; }

.yx-article-list a {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  align-items: flex-start;
  color: inherit;
  transition: color .2s;
}

.yx-article-list a:hover { color: var(--yx-green); }

.yx-article-list img {
  width: 144px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  background: var(--yx-surface-2);
}

.yx-article-list h2 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--yx-ink);
  transition: color .2s;
}

.yx-article-list a:hover h2 { color: var(--yx-green); }

.yx-article-list p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--yx-muted);
}

.yx-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--yx-faint);
}

.yx-meta.center {
  justify-content: center;
  margin: 14px 0 22px;
}

.yx-detail > h1 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  text-align: center;
  color: var(--yx-ink);
  margin-bottom: 6px;
}

.yx-richtext {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--yx-ink-soft);
}

.yx-richtext p { margin: 0 0 1em; }
.yx-richtext img { margin: 1em auto; border-radius: 12px; }
.yx-richtext h2, .yx-richtext h3 { margin: 1.2em 0 0.6em; color: var(--yx-ink); }
.yx-richtext a { color: var(--yx-green); border-bottom: 1px dashed rgba(var(--yx-primary-rgb), 0.4); }
.yx-richtext a:hover { border-bottom-color: var(--yx-green); }
.yx-richtext blockquote {
  margin: 1em 0;
  padding: 10px 16px;
  border-left: 4px solid var(--yx-green);
  background: var(--yx-surface-2);
  border-radius: 0 8px 8px 0;
  color: var(--yx-muted);
}
.yx-richtext code {
  background: var(--yx-surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.yx-pagerow {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--yx-line);
  font-size: 0.92rem;
}

.yx-pagerow a { color: var(--yx-green); }
.yx-pagerow span { color: var(--yx-muted); }

.yx-empty {
  padding: 48px 0;
  text-align: center;
  color: var(--yx-muted);
}

.yx-rank { counter-reset: yxrank; }

.yx-rank li {
  counter-increment: yxrank;
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--yx-line);
  font-size: 0.9rem;
}

.yx-rank li:last-child { border-bottom: 0; }

.yx-rank li::before {
  content: counter(yxrank);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(var(--yx-primary-rgb), 0.14);
  color: var(--yx-green);
}

.yx-rank li:nth-child(-n+3)::before {
  background: linear-gradient(135deg, var(--yx-amber), var(--yx-accent-soft));
  color: #1C1917;
  box-shadow: 0 0 10px rgba(var(--yx-accent-rgb), 0.55);
}

.yx-side-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--yx-line);
  font-size: 0.9rem;
}

.yx-side-list li:last-child { border-bottom: 0; }

.yx-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.yx-tags a {
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--yx-muted);
  border: 1px solid var(--yx-border);
  background: var(--yx-surface-2);
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}

.yx-tags a:hover {
  color: var(--yx-green);
  border-color: rgba(var(--yx-primary-rgb), 0.55);
  background: linear-gradient(135deg, rgba(var(--yx-primary-rgb), 0.16), rgba(var(--yx-primary-rgb), 0.04));
  transform: translateY(-1px);
}

.yx-ad {
  font-size: 0.9rem;
  color: var(--yx-muted);
}

.yx-pagination { margin-top: 24px; }

.yx-page {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.yx-page a,
.yx-page .dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--yx-border);
  font-size: 0.88rem;
  color: var(--yx-muted);
  background: var(--yx-surface-2);
  transition: color .2s, background .2s, border-color .2s, transform .2s;
}

.yx-page .active a,
.yx-page a:hover {
  background: linear-gradient(135deg, var(--yx-green), var(--yx-green-dark));
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--yx-primary-rgb), 0.4);
}

/* =================== Footer =================== */
.yx-footer {
  padding: 48px 0 28px;
  background:
    radial-gradient(800px 400px at 85% -20%, rgba(var(--yx-primary-rgb), 0.12), transparent 60%),
    var(--yx-footer-bg);
  color: var(--yx-footer-ink);
}

.yx-footer a { color: var(--yx-footer-ink); }
.yx-footer a:hover { color: var(--yx-amber-soft); }

.yx-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 26px;
}

.yx-footer h3 {
  color: #fff;
  font-size: 1.12rem;
  margin-bottom: 12px;
}

.yx-footer h4 {
  color: var(--yx-amber-soft);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.yx-footer p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #94A3B8;
}

.yx-foot-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yx-foot-links a { font-size: 0.9rem; }

.yx-friendlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.yx-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: #94A3B8;
}

/* =================== Responsive =================== */
@media (max-width: 960px) {
  .yx-slash-inner,
  .yx-split,
  .yx-asymmetric,
  .yx-layout { grid-template-columns: 1fr; }
  .yx-slash-panel { grid-template-columns: repeat(3, 1fr); }
  .yx-footer-grid { grid-template-columns: 1fr; }
  .yx-side { order: 2; }
}

@media (max-width: 768px) {
  .yx-nav-toggle { display: flex; }

  .yx-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 320px);
    height: 100vh;
    z-index: 110;
    flex-direction: column;
    align-items: stretch;
    padding: 84px 20px 24px;
    background: var(--yx-surface-solid);
    border-left: 1px solid var(--yx-border);
    transform: translateX(105%);
    transition: transform .3s ease;
    overflow-y: auto;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
  }

  .yx-nav.is-open { transform: translateX(0); }

  .yx-nav > ul {
    flex-direction: column;
    align-items: stretch;
  }

  .yx-nav > ul > li > a {
    border-bottom: 0;
    border-radius: 10px;
    padding: 12px 14px;
  }

  .yx-nav > ul > li.is-active > a,
  .yx-nav > ul > li > a:hover {
    background: rgba(var(--yx-primary-rgb), 0.12);
  }

  .yx-subnav {
    position: static;
    display: none;
    margin: 0 0 4px 10px;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0;
  }

  .yx-nav > ul > li.has-child.is-open > .yx-subnav,
  .yx-nav > ul > li.has-child:hover > .yx-subnav { display: block; }

  .yx-search { width: 100%; margin-top: 14px; }
  .yx-search input { width: 100%; flex: 1; }

  .yx-slash { padding: 52px 0 76px; }
  .yx-slash-bg { clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%); }
  .yx-slash-panel { grid-template-columns: 1fr; }

  .yx-stack-card { grid-template-columns: 1fr; }
  .yx-stack-card.is-lead .yx-stack-cover,
  .yx-stack-cover { min-height: 168px; }

  .yx-article-list a { flex-direction: column; }
  .yx-article-list img {
    width: 100%;
    height: 168px;
  }

  .yx-detail > h1 { text-align: left; }
  .yx-meta.center { justify-content: flex-start; }

  .yx-board-flow { animation-duration: 28s; }
}

@media (prefers-reduced-motion: reduce) {
  .yx-board-flow { animation: none; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
