:root {
  --yq-rose: #E11D48;
  --yq-rose-dark: #BE123C;
  --yq-ink: #1C1917;
  --yq-muted: #78716C;
  --yq-bg: #FFF1F2;
  --yq-paper: #FFFCFB;
  --yq-line: #FECDD3;
  --yq-graphite: #44403C;
  --yq-radius: 18px;
  --yq-wrap: 1080px;
  --yq-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --yq-display: "Songti SC", "STSong", "SimSun", "Songti SC","SimSun","Noto Serif SC", serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--yq-font);
  color: var(--yq-ink);
  background:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(244, 63, 94, 0.12), transparent 60%),
    var(--yq-bg);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; transition: color .2s, background .2s, border-color .2s, transform .2s, box-shadow .2s; }
a:hover { color: var(--yq-rose); }
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.35; }

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

/* Header */
.yq-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 252, 251, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--yq-line);
}

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

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

.yq-logo img { height: 40px; width: auto; max-width: 180px; object-fit: contain; }

.yq-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--yq-rose), #FB7185);
  color: #fff;
  font-family: var(--yq-display);
  font-size: 1.05rem;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

.yq-logo strong {
  display: block;
  font-size: 0.98rem;
  max-width: 14em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.yq-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

.yq-nav > ul > li > a {
  display: block;
  padding: 10px 13px;
  font-size: 0.92rem;
  color: var(--yq-graphite);
}

.yq-nav > ul > li > a:hover,
.yq-nav > ul > li.is-active > a {
  color: var(--yq-rose);
}

.yq-nav > ul > li.is-active > a {
  box-shadow: inset 0 -2px 0 var(--yq-rose);
}

.yq-subnav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--yq-line);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(28, 25, 23, 0.08);
}

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

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

.yq-subnav a:hover,
.yq-subnav .is-active a {
  background: rgba(225, 29, 72, 0.08);
  color: var(--yq-rose);
}

.yq-search {
  display: flex;
  border: 1px solid var(--yq-line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.yq-search input {
  width: 120px;
  border: 0;
  padding: 8px 12px;
  font-size: 0.85rem;
  outline: none;
  background: transparent;
}

.yq-search button {
  border: 0;
  background: var(--yq-rose);
  color: #fff;
  padding: 8px 14px;
  font-size: 0.82rem;
  cursor: pointer;
}

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

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

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

.yq-nav-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.4);
  z-index: 90;
}

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

/* Centered masthead */
.yq-masthead {
  padding: 56px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--yq-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent);
}

.yq-eyebrow {
  margin: 0 0 14px;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  color: var(--yq-rose);
  font-weight: 700;
}

.yq-masthead h1 {
  font-family: var(--yq-display);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 700;
  max-width: 14em;
  margin: 0 auto;
  letter-spacing: 0.04em;
}

.yq-mast-desc {
  margin: 16px auto 0;
  max-width: 32em;
  color: var(--yq-muted);
  font-size: 1.05rem;
}

.yq-mast-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.yq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
}

.yq-btn-primary {
  background: var(--yq-rose);
  color: #fff;
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.25);
}

.yq-btn-primary:hover {
  background: var(--yq-rose-dark);
  color: #fff;
}

.yq-btn-ghost {
  border: 1px solid var(--yq-line);
  background: #fff;
  color: var(--yq-graphite);
}

.yq-btn-ghost:hover {
  border-color: var(--yq-rose);
  color: var(--yq-rose);
}

/* Zigzag */
.yq-zigzag {
  margin: 40px 0 36px;
}

.yq-section-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.yq-section-hd.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 28px;
}

.yq-section-hd h2 {
  font-family: var(--yq-display);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
}

.yq-section-hd.center h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 12px auto 0;
  background: var(--yq-rose);
  border-radius: 2px;
}

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

.yq-section-hd a:hover { color: var(--yq-rose); }

.yq-zig-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 22px;
  border-radius: var(--yq-radius);
  overflow: hidden;
  background: var(--yq-paper);
  border: 1px solid var(--yq-line);
  color: inherit;
  box-shadow: 0 10px 30px rgba(225, 29, 72, 0.05);
}

.yq-zigzag > .yq-zig-item:nth-of-type(even) {
  direction: rtl;
}

.yq-zigzag > .yq-zig-item:nth-of-type(even) > * {
  direction: ltr;
}

.yq-zig-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(225, 29, 72, 0.12);
  color: inherit;
}

.yq-zig-cover {
  min-height: 240px;
  background: #FECDD3;
}

.yq-zig-cover img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.yq-zig-ph {
  min-height: 240px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(190,18,60,0.75), rgba(251,113,133,0.6) 55%, rgba(253,164,175,0.4));
}

.yq-zig-ph span {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yq-zig-body {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.yq-chip {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(225, 29, 72, 0.1);
  color: var(--yq-rose-dark);
  margin-bottom: 10px;
}

.yq-zig-body h3 {
  font-family: var(--yq-display);
  font-size: 1.25rem;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.yq-zig-body p {
  margin: 0 0 12px;
  color: var(--yq-muted);
  font-size: 0.94rem;
}

.yq-zig-body time {
  font-size: 0.8rem;
  color: var(--yq-muted);
}

/* Industry date list */
.yq-industry {
  margin-bottom: 32px;
  padding: 24px;
  background: var(--yq-paper);
  border: 1px solid var(--yq-line);
  border-radius: var(--yq-radius);
}

.yq-date-list li {
  border-bottom: 1px dashed var(--yq-line);
}

.yq-date-list li:last-child { border-bottom: 0; }

.yq-date-list a {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 18px 0;
  color: inherit;
}

.yq-date-box {
  text-align: center;
  padding: 10px 6px;
  border-radius: 14px;
  background: #FFF1F2;
  border: 1px solid var(--yq-line);
}

.yq-date-box strong {
  display: block;
  font-family: var(--yq-display);
  font-size: 1.5rem;
  color: var(--yq-rose);
  line-height: 1.1;
}

.yq-date-box span {
  font-size: 0.72rem;
  color: var(--yq-muted);
}

.yq-date-body h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.yq-date-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--yq-muted);
}

/* Duo */
.yq-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 48px;
}

.yq-duo-col {
  padding: 20px;
  background: var(--yq-paper);
  border: 1px solid var(--yq-line);
  border-radius: var(--yq-radius);
}

.yq-duo-accent {
  background: linear-gradient(165deg, rgba(225, 29, 72, 0.08), #FFFCFB 50%);
}

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

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

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

/* Inner */
.yq-crumb {
  padding: 14px 0;
  font-size: 0.88rem;
  color: var(--yq-muted);
  border-bottom: 1px solid var(--yq-line);
  background: rgba(255, 252, 251, 0.8);
}

.yq-crumb span { margin: 0 6px; color: #FDA4AF; }

.yq-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 24px;
  padding: 28px 0 48px;
}

.yq-panel {
  background: var(--yq-paper);
  border: 1px solid var(--yq-line);
  border-radius: var(--yq-radius);
  padding: 18px;
  margin-bottom: 18px;
}

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

.yq-panel-hd h3 { font-size: 1rem; }

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

.yq-page-title {
  font-family: var(--yq-display);
  font-size: 1.45rem;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--yq-line);
}

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

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

.yq-article-list img {
  width: 140px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  flex-shrink: 0;
}

.yq-article-list h2 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

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

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

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

.yq-detail > h1 {
  font-family: var(--yq-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  text-align: center;
}

.yq-richtext {
  font-size: 1.02rem;
  line-height: 1.9;
  color: #44403C;
}

.yq-richtext p { margin: 0 0 1em; }
.yq-richtext img { margin: 1em auto; border-radius: 14px; }
.yq-richtext h2, .yq-richtext h3 { margin: 1.2em 0 0.6em; }

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

.yq-pagerow a { color: var(--yq-rose); }
.yq-pagerow span { color: var(--yq-muted); }

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

.yq-rank { counter-reset: yqrank; }

.yq-rank li {
  counter-increment: yqrank;
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--yq-line);
  font-size: 0.88rem;
}

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

.yq-rank li::before {
  content: counter(yqrank);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  background: #FFF1F2;
  color: var(--yq-rose);
}

.yq-rank li:nth-child(-n+3)::before {
  background: var(--yq-rose);
  color: #fff;
}

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

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

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

.yq-tags a {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--yq-muted);
  border: 1px solid var(--yq-line);
  background: #fff;
}

.yq-tags a:hover {
  color: var(--yq-rose);
  border-color: var(--yq-rose);
}

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

.yq-pagination { margin-top: 22px; }

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

.yq-page a,
.yq-page .dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--yq-line);
  font-size: 0.88rem;
  color: var(--yq-muted);
  background: #fff;
}

.yq-page .active a,
.yq-page a:hover {
  background: var(--yq-rose);
  border-color: var(--yq-rose);
  color: #fff;
}

/* Footer */
.yq-footer {
  padding: 44px 0 26px;
  background: #1C1917;
  color: #D6D3D1;
}

.yq-footer a { color: #D6D3D1; }
.yq-footer a:hover { color: #FDA4AF; }

.yq-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 24px;
}

.yq-footer h3 {
  color: #fff;
  font-family: var(--yq-display);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.yq-footer h4 {
  color: #FDA4AF;
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.yq-footer p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #A8A29E;
}

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

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

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

.yq-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: #A8A29E;
}

/* Responsive */
@media (max-width: 960px) {
  .yq-zig-item,
  .yq-duo,
  .yq-layout { grid-template-columns: 1fr; }
  .yq-zigzag > .yq-zig-item:nth-of-type(even) { direction: ltr; }
  .yq-footer-grid { grid-template-columns: 1fr; }
  .yq-side { order: 2; }
  .yq-zig-cover,
  .yq-zig-cover img,
  .yq-zig-ph { min-height: 180px; }
}

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

  .yq-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 320px);
    height: 100vh;
    z-index: 110;
    flex-direction: column;
    align-items: stretch;
    padding: 80px 20px 24px;
    background: #FFFCFB;
    border-left: 1px solid var(--yq-line);
    transform: translateX(105%);
    transition: transform .28s ease;
    overflow-y: auto;
  }

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

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

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

  .yq-nav > ul > li.is-active > a {
    box-shadow: none;
    background: rgba(225, 29, 72, 0.08);
  }

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

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

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

  .yq-masthead { padding: 40px 0 36px; }
  .yq-logo strong { max-width: 10em; }
  .yq-industry { padding: 16px; }
  .yq-date-list a { grid-template-columns: 60px 1fr; gap: 12px; }

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

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

/* ============================================================
   Dark theme · 昼夜切换（追加段，不改动上方任何浅色规则）
   - 默认（无 data-theme / data-theme="light"）= 原浅色主题
   - html[data-theme="dark"] 覆盖为深色
   ============================================================ */
html[data-theme="dark"] {
  --yq-rose: #FB7185;
  --yq-rose-dark: #F43F5E;
  --yq-ink: #E8EDF5;
  --yq-muted: #94A3B8;
  --yq-bg: #0F1620;
  --yq-paper: rgba(26, 33, 44, 0.8);
  --yq-line: rgba(148, 163, 184, 0.18);
  --yq-graphite: #CBD5E1;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(251, 113, 133, 0.16), transparent 60%),
    #0B0F14;
}

/* —— 硬编码颜色元素覆盖 —— */
html[data-theme="dark"] .yq-header { background: rgba(15, 22, 32, 0.92); }
html[data-theme="dark"] .yq-subnav { background: #1A2128; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45); }
html[data-theme="dark"] .yq-search { background: #1A2128; }
html[data-theme="dark"] .yq-search input { color: var(--yq-ink); }
html[data-theme="dark"] .yq-search input::placeholder { color: var(--yq-muted); }
html[data-theme="dark"] .yq-nav-toggle { background: #1A2128; }
html[data-theme="dark"] .yq-masthead { background: linear-gradient(180deg, rgba(26, 33, 44, 0.6), transparent); }
html[data-theme="dark"] .yq-btn-ghost { background: #1A2128; color: var(--yq-graphite); }
html[data-theme="dark"] .yq-zig-cover { background: #1A2128; }
html[data-theme="dark"] .yq-date-box { background: rgba(251, 113, 133, 0.12); }
html[data-theme="dark"] .yq-duo-accent { background: linear-gradient(165deg, rgba(251, 113, 133, 0.12), rgba(26, 33, 44, 0.6) 50%); }
html[data-theme="dark"] .yq-crumb { background: rgba(15, 22, 32, 0.8); }
html[data-theme="dark"] .yq-richtext { color: #CBD5E1; }
html[data-theme="dark"] .yq-rank li::before { background: rgba(251, 113, 133, 0.14); color: var(--yq-rose); }
html[data-theme="dark"] .yq-tags a { background: #1A2128; }
html[data-theme="dark"] .yq-page a,
html[data-theme="dark"] .yq-page .dots { background: #1A2128; }

html[data-theme="dark"] .yq-footer { background: #060A10; color: #94A3B8; }
html[data-theme="dark"] .yq-footer a { color: #94A3B8; }
html[data-theme="dark"] .yq-footer a:hover { color: var(--yq-rose); }
html[data-theme="dark"] .yq-footer h3 { color: #fff; }
html[data-theme="dark"] .yq-footer h4 { color: var(--yq-rose); }
html[data-theme="dark"] .yq-footer p { color: #94A3B8; }

/* 卡片半透明 + 毛玻璃 */
html[data-theme="dark"] .yq-zig-item,
html[data-theme="dark"] .yq-industry,
html[data-theme="dark"] .yq-duo-col,
html[data-theme="dark"] .yq-panel {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 移动端抽屉深色 */
@media (max-width: 768px) {
  html[data-theme="dark"] .yq-nav {
    background: #0F1620;
    border-left-color: rgba(148, 163, 184, 0.18);
  }
}

/* —— 主题切换平滑过渡（全局，data-theme 始终存在） —— */
html[data-theme] *,
html[data-theme] *::before,
html[data-theme] *::after {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
/* 恢复既有过渡（被上方全局规则以更高优先级覆盖，这里原样恢复，不改动原规则） */
html[data-theme] a {
  transition: color .2s, background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
html[data-theme] .yq-nav-toggle span {
  transition: transform .2s, opacity .2s, background-color .3s ease;
}
@media (max-width: 768px) {
  html[data-theme] .yq-nav {
    transition: transform .28s ease, background-color .3s ease, color .3s ease, border-color .3s ease;
  }
}

/* —— 主题切换按钮 —— */
.yq-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid var(--yq-line);
  border-radius: 12px;
  background: #fff;
  color: var(--yq-graphite);
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}
.yq-theme-toggle:hover { color: var(--yq-rose); border-color: var(--yq-rose); }
.yq-theme-toggle svg { width: 20px; height: 20px; display: block; }

.yq-theme-toggle .yq-icon-sun { display: none; }
.yq-theme-toggle .yq-icon-moon { display: block; }
html[data-theme="dark"] .yq-theme-toggle { background: #1A2128; }
html[data-theme="dark"] .yq-theme-toggle .yq-icon-sun { display: block; }
html[data-theme="dark"] .yq-theme-toggle .yq-icon-moon { display: none; }
