:root {
  --bg: #eef5ef;
  --panel: #ffffff;
  --ink: #10231d;
  --muted: #5b6d64;
  --line: #d6e3da;
  --green: #1c9a68;
  --green-dark: #0d5e43;
  --green-deep: #0a241c;
  --mint: #bdebcf;
  --lime: #dff45f;
  --yellow: #dfe878;
  --blue: #2d7ea8;
  --red: #b94c4c;
  --shadow: 0 18px 50px rgba(9, 45, 31, 0.12);
  --grid-line: rgba(13, 94, 67, 0.08);
  --reading-scale: 1;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #071d17;
  --panel: #0d2a21;
  --ink: #edf8f0;
  --muted: #a7beb2;
  --line: rgba(189, 235, 207, 0.18);
  --green: #43c98d;
  --green-dark: #bdebcf;
  --grid-line: rgba(189, 235, 207, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(180deg, var(--grid-line) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(28, 154, 104, 0.11), transparent 32%),
    radial-gradient(circle at right 10%, rgba(223, 244, 95, 0.12), transparent 22%),
    linear-gradient(180deg, #f5faf5 0%, var(--bg) 30%, #f2f7f3 100%);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  color: var(--ink);
}

:root[data-theme="dark"] body {
  background:
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(180deg, var(--grid-line) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(67, 201, 141, 0.16), transparent 32%),
    linear-gradient(180deg, #071d17 0%, #0b241c 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 80;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--green-deep);
  color: #fff;
  transform: translateY(-140%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 3px;
  background: rgba(13, 94, 67, 0.12);
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--lime));
  transition: width 0.12s linear;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(238, 245, 239, 0.82);
  border-bottom: 1px solid rgba(214, 227, 218, 0.86);
  backdrop-filter: blur(14px);
}

:root[data-theme="dark"] .site-header {
  background: rgba(7, 29, 23, 0.84);
  border-bottom-color: rgba(189, 235, 207, 0.14);
}

.site-header.compact {
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(13, 94, 67, 0.18);
}

.brand-mark.large {
  width: 56px;
  height: 56px;
  font-size: 24px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #253832;
  min-width: 0;
}

:root[data-theme="dark"] .top-nav {
  color: #d9eee2;
}

.top-nav a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 8px;
}

.top-nav a:hover {
  background: #e7efe9;
}

:root[data-theme="dark"] .top-nav a:hover,
:root[data-theme="dark"] .top-nav a.active {
  background: rgba(189, 235, 207, 0.12);
}

.theme-toggle {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green-dark);
  cursor: pointer;
  font-weight: 900;
  padding: 8px 12px;
}

:root[data-theme="dark"] .theme-toggle {
  background: rgba(189, 235, 207, 0.1);
  color: #edf8f0;
}

.top-nav a.active {
  background: #e6f3ed;
  color: var(--green-dark);
  font-weight: 900;
}

.top-nav a {
  position: relative;
}

.top-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.top-nav a:hover::after {
  transform: scaleX(1);
}

.top-nav a.active::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: flex-end;
  padding: clamp(40px, 8vw, 92px) clamp(20px, 5vw, 72px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(7, 30, 23, 0.96), rgba(10, 42, 33, 0.92)),
    #142c24;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 25, 20, 0.92), rgba(7, 25, 20, 0.56), rgba(7, 25, 20, 0.18)),
    url("https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=1800&q=80") center/cover;
  transform: scale(1.02);
  filter: saturate(1.08) contrast(1.04);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 48%, rgba(223, 244, 95, 0.12) 48.5%, transparent 49%),
    linear-gradient(85deg, transparent 0 26%, rgba(28, 154, 104, 0.14) 26.5%, transparent 27%);
  opacity: 0.8;
  pointer-events: none;
}

.hero-circuit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-circuit span {
  position: absolute;
  display: block;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(223, 244, 95, 0.22);
  border-radius: 50%;
  filter: blur(0.2px);
  animation: pulse 10s ease-in-out infinite;
}

.hero-circuit span:nth-child(1) {
  top: 12%;
  right: 9%;
}

.hero-circuit span:nth-child(2) {
  bottom: 20%;
  right: 18%;
  width: 120px;
  height: 120px;
  animation-delay: -2s;
}

.hero-circuit span:nth-child(3) {
  top: 24%;
  left: 42%;
  width: 260px;
  height: 260px;
  animation-delay: -4s;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  padding-bottom: clamp(0px, 4vh, 44px);
}

.kicker {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .kicker {
  color: var(--lime);
}

.hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  width: min(680px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.7;
}

.hero-actions,
.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.18s ease, background 0.18s ease, border 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--green), #22aa77);
  color: #fff;
  box-shadow: 0 12px 24px rgba(28, 154, 104, 0.18);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  color: inherit;
}

.btn.surface {
  background: #f7fbf7;
  border-color: var(--line);
  color: var(--green-dark);
}

.btn.danger {
  background: #fff1f1;
  border-color: #f1c6c6;
  color: var(--red);
}

.ticker-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
}

:root[data-theme="dark"] .ticker-band,
:root[data-theme="dark"] .news-card,
:root[data-theme="dark"] .energy-flow article,
:root[data-theme="dark"] .pulse-metrics article,
:root[data-theme="dark"] .aside-card,
:root[data-theme="dark"] .result-bar,
:root[data-theme="dark"] .ops-summary article,
:root[data-theme="dark"] .admin-preview,
:root[data-theme="dark"] .daily-brief,
:root[data-theme="dark"] .brief-grid article {
  background: rgba(13, 42, 33, 0.86);
  color: var(--ink);
}

.ticker-band div {
  padding: 24px clamp(20px, 5vw, 72px);
  border-right: 1px solid var(--line);
}

.ticker-band strong {
  display: block;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--green-dark);
}

.ticker-band span {
  color: var(--muted);
}

.daily-brief {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  align-items: stretch;
  padding: clamp(28px, 5vw, 54px) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.brief-heading h2 {
  margin: 8px 0 10px;
  font-size: clamp(26px, 3.8vw, 42px);
}

.brief-heading p {
  margin: 0;
  color: var(--muted);
}

.brief-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr 0.7fr;
  gap: 12px;
}

.brief-grid article {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf7;
}

.brief-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.brief-grid strong {
  display: block;
  margin-top: 12px;
  color: var(--green-dark);
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.35;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--green-deep);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reader-memory {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1.4fr);
  gap: 18px;
  align-items: center;
  padding: clamp(28px, 5vw, 54px) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.reader-memory[hidden] {
  display: none;
}

.reader-memory h2 {
  margin: 8px 0 0;
  font-size: clamp(24px, 3.6vw, 40px);
}

.memory-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.memory-list a {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf7;
}

.memory-list span {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.memory-list strong {
  line-height: 1.45;
}

.memory-list i {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.signal-strip div {
  position: relative;
  min-height: 92px;
  padding: 20px clamp(16px, 2.8vw, 36px);
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.signal-strip div::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--lime), var(--green), transparent);
  transform: translateX(-100%);
  animation: signalMove 5s linear infinite;
}

.signal-strip div:nth-child(2)::before { animation-delay: -1s; }
.signal-strip div:nth-child(3)::before { animation-delay: -2s; }
.signal-strip div:nth-child(4)::before { animation-delay: -3s; }
.signal-strip div:nth-child(5)::before { animation-delay: -4s; }

.signal-strip span {
  display: block;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  text-transform: uppercase;
}

.signal-strip strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
}

.section-shell {
  padding: clamp(46px, 7vw, 86px) clamp(20px, 5vw, 72px);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading h2,
.insight-band h2,
.admin-topbar h1,
.editor-head h2,
.login-copy h1 {
  margin: 8px 0 0;
  letter-spacing: 0;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 46px);
}

.section-note {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.search-box {
  width: min(360px, 100%);
}

.search-box span {
  color: var(--muted);
}

.search-box input {
  background: rgba(255, 255, 255, 0.9);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-block {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.filter-block > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.filter-chip {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #24433a;
  cursor: pointer;
  font-weight: 700;
}

:root[data-theme="dark"] .filter-chip,
:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select {
  background: rgba(13, 42, 33, 0.9);
  border-color: var(--line);
  color: var(--ink);
}

.filter-chip.active {
  border-color: var(--green);
  background: #e6f3ed;
  color: var(--green-dark);
}

.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.result-bar button {
  border: 0;
  border-radius: 8px;
  background: #e6f3ed;
  color: var(--green-dark);
  cursor: pointer;
  font-weight: 900;
  padding: 8px 12px;
}

.result-bar button[hidden] {
  display: none;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.news-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 246, 0.98));
  box-shadow: 0 8px 24px rgba(17, 40, 32, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.news-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--lime));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.news-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--topic-color, var(--green));
  z-index: 1;
}

.topic-solar { --topic-color: #d6e84f; }
.topic-storage { --topic-color: #1c9a68; }
.topic-battery { --topic-color: #2d7ea8; }
.topic-charge { --topic-color: #43c98d; }
.topic-hydrogen { --topic-color: #bdebcf; }
.topic-general { --topic-color: var(--green); }

.news-card:hover {
  border-color: rgba(28, 154, 104, 0.48);
  box-shadow: 0 18px 42px rgba(9, 45, 31, 0.13);
  transform: translateY(-3px);
}

.news-card:hover::after {
  transform: scaleX(1);
}

.news-card.featured {
  grid-column: span 2;
}

.news-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #dce5df;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.news-card:hover img {
  filter: saturate(1.08);
  transform: scale(1.02);
}

.news-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.category {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #e6f3ed;
  color: var(--green-dark);
  font-weight: 800;
}

.live-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #10231d;
  color: var(--lime);
  font-weight: 900;
}

.news-card h3 {
  margin: 14px 0 10px;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.25;
}

.news-card:not(.featured) h3 {
  font-size: 21px;
}

.news-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.75;
}

.card-insight {
  margin: 0 0 12px;
  padding: 12px;
  border-left: 3px solid var(--green);
  border-radius: 6px;
  background: #edf6f0;
  color: #23443a;
  line-height: 1.6;
}

.card-audience {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.read-more {
  margin-top: auto;
  color: var(--green-dark);
  font-weight: 900;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 42px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
}

.skeleton-card {
  pointer-events: none;
}

.skeleton-media,
.skeleton-line {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(214, 227, 218, 0.56), rgba(255, 255, 255, 0.82), rgba(214, 227, 218, 0.56));
  background-size: 220% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-media {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.skeleton-line {
  width: 72%;
  height: 14px;
  margin: 8px 0;
}

.skeleton-line.short {
  width: 38%;
}

.skeleton-line.wide {
  width: 92%;
}

.insight-band {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 32px;
  align-items: center;
  padding: clamp(42px, 7vw, 84px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(7, 30, 23, 0.98), rgba(9, 46, 34, 0.98)),
    #10201b;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.insight-band::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(223, 244, 95, 0.14);
  border-radius: 16px;
  pointer-events: none;
}

.innovation-stack {
  position: relative;
  z-index: 1;
}

.innovation-rail {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.innovation-rail span,
.dashboard-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}

.hero-dashboard {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  bottom: clamp(20px, 5vw, 72px);
  width: min(280px, calc(100% - 40px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(8, 28, 21, 0.52);
  backdrop-filter: blur(16px);
  z-index: 2;
}

.dashboard-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.dashboard-line span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.dashboard-line strong {
  font-size: 18px;
}

.energy-meter {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 16px 0;
}

.energy-meter i {
  height: 54px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, rgba(223, 244, 95, 0.18), rgba(28, 154, 104, 0.95));
  transform-origin: bottom;
  animation: barPulse 2.8s ease-in-out infinite;
}

.energy-meter i:nth-child(2) { animation-delay: .2s; }
.energy-meter i:nth-child(3) { animation-delay: .4s; }
.energy-meter i:nth-child(4) { animation-delay: .6s; }
.energy-meter i:nth-child(5) { animation-delay: .8s; }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.energy-map {
  padding: clamp(42px, 7vw, 84px) clamp(20px, 5vw, 72px);
}

.energy-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.energy-flow article {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 247, 243, 0.96));
  box-shadow: 0 10px 24px rgba(17, 40, 32, 0.06);
  overflow: hidden;
}

.energy-flow article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  width: 44px;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--lime));
}

.flow-index {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.energy-flow h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.energy-flow p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.editor-observatory {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 24px;
  align-items: stretch;
  padding: clamp(42px, 7vw, 84px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(237, 246, 240, 0.78));
}

.observatory-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.observatory-copy h2 {
  margin: 8px 0 16px;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.12;
}

.observatory-copy p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.observatory-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1fr);
  gap: 16px;
  min-height: 320px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(circle at 22% 34%, rgba(223, 244, 95, 0.18), transparent 22%),
    linear-gradient(135deg, #0b2a21, #123d2e);
  box-shadow: 0 22px 56px rgba(9, 45, 31, 0.16);
}

.radar {
  position: relative;
  min-height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background:
    radial-gradient(circle, transparent 0 24%, rgba(255, 255, 255, 0.08) 24.5% 25%, transparent 25.5% 49%, rgba(255, 255, 255, 0.08) 49.5% 50%, transparent 50.5%),
    linear-gradient(90deg, transparent 49.5%, rgba(255, 255, 255, 0.12) 50%, transparent 50.5%),
    linear-gradient(180deg, transparent 49.5%, rgba(255, 255, 255, 0.12) 50%, transparent 50.5%);
  overflow: hidden;
}

.radar::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 46%;
  height: 2px;
  background: linear-gradient(90deg, var(--lime), transparent);
  transform-origin: left center;
  animation: radarSweep 5.2s linear infinite;
}

.radar span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 20px rgba(223, 244, 95, 0.7);
}

.radar span:nth-child(1) { top: 28%; left: 62%; }
.radar span:nth-child(2) { top: 58%; left: 32%; }
.radar span:nth-child(3) { top: 68%; left: 70%; }

.radar i {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(223, 244, 95, 0.16);
  border-radius: 10px;
}

.watch-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.watch-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.watch-item span {
  color: var(--lime);
  font-weight: 900;
}

.watch-item strong {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.watch-item p {
  margin: 0;
  line-height: 1.55;
}

.pulse-lab {
  padding: clamp(42px, 7vw, 84px) clamp(20px, 5vw, 72px);
  background: #f7fbf7;
}

.pulse-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.pulse-header h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4.6vw, 58px);
}

.pulse-header p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.pulse-board {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: 18px;
  align-items: stretch;
}

.pulse-orbit {
  position: relative;
  min-height: 380px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(circle at center, rgba(223, 244, 95, 0.2), transparent 18%),
    radial-gradient(circle at center, transparent 0 28%, rgba(28, 154, 104, 0.12) 28.5% 29%, transparent 29.5% 52%, rgba(28, 154, 104, 0.12) 52.5% 53%, transparent 53.5%),
    linear-gradient(135deg, #0b2a21, #123d2e);
  overflow: hidden;
}

.pulse-orbit::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 38%;
  height: 2px;
  background: linear-gradient(90deg, var(--lime), transparent);
  transform-origin: left center;
  animation: radarSweep 7s linear infinite;
}

.pulse-orbit span {
  position: absolute;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 800;
}

.pulse-orbit span:nth-child(1) { top: 18%; left: 56%; }
.pulse-orbit span:nth-child(2) { top: 48%; left: 18%; }
.pulse-orbit span:nth-child(3) { right: 14%; bottom: 22%; }
.pulse-orbit span:nth-child(4) { left: 38%; bottom: 12%; }

.pulse-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pulse-metrics article {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 242, 0.96));
  box-shadow: 0 10px 24px rgba(17, 40, 32, 0.06);
}

.pulse-metrics strong {
  display: block;
  margin-bottom: 10px;
  color: var(--green-dark);
  font-size: 22px;
}

.pulse-metrics p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.heatmap-lab {
  padding: clamp(42px, 7vw, 84px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(180deg, rgba(11, 42, 33, 0.96), rgba(18, 61, 46, 0.96));
  color: #fff;
}

.heatmap-lab .kicker {
  color: var(--lime);
}

.heatmap-lab .section-note {
  color: rgba(255, 255, 255, 0.68);
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.heat-cell {
  display: grid;
  min-height: 132px;
  align-content: space-between;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.heat-cell:hover {
  border-color: rgba(223, 244, 95, 0.48);
  transform: translateY(-2px);
}

.heat-cell span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-weight: 900;
}

.heat-cell strong {
  font-size: 24px;
}

.heat-cell i {
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
}

.heat-cell.level-1 { background: rgba(255, 255, 255, 0.08); }
.heat-cell.level-2 { background: rgba(28, 154, 104, 0.18); }
.heat-cell.level-3 { background: rgba(28, 154, 104, 0.28); }
.heat-cell.level-4 { background: rgba(28, 154, 104, 0.38); }
.heat-cell.level-5 {
  background:
    radial-gradient(circle at top right, rgba(223, 244, 95, 0.28), transparent 34%),
    rgba(28, 154, 104, 0.48);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.insight-band h2 {
  max-width: 880px;
  font-size: clamp(28px, 4.4vw, 54px);
  line-height: 1.14;
}

.insight-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.8;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}

:root[data-theme="dark"] .site-footer {
  background: #071d17;
  border-top-color: var(--line);
}

.quick-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(214, 227, 218, 0.88);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(9, 45, 31, 0.16);
  backdrop-filter: blur(14px);
}

.quick-dock a {
  display: inline-flex;
  min-width: 54px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f7fbf7;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.quick-dock a:hover {
  background: #e6f3ed;
}

.article-page {
  padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 72px);
  position: relative;
}

.article-detail {
  width: min(1180px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 28px;
  align-items: start;
}

.article-main {
  min-width: 0;
}

.article-hero-image {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #dce5df;
  box-shadow: 0 20px 42px rgba(9, 45, 31, 0.12);
}

.article-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(28, 154, 104, 0.08), transparent 30%),
    radial-gradient(circle at right top, rgba(223, 244, 95, 0.08), transparent 22%);
  pointer-events: none;
}

.article-detail h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: 0;
}

.article-detail .lead {
  color: #39524a;
  font-size: 20px;
  line-height: 1.8;
}

.key-points {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.article-brief {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 16px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(28, 154, 104, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(223, 244, 95, 0.15), transparent 32%),
    rgba(255, 255, 255, 0.84);
}

.article-brief strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.5;
}

.article-brief dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.article-brief dl div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 251, 247, 0.78);
}

.article-brief dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.article-brief dd {
  margin: 6px 0 0;
  line-height: 1.55;
}

.article-brief a,
.source-box a {
  color: var(--green-dark);
  font-weight: 900;
}

.key-points ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 20px;
}

.key-points li {
  line-height: 1.75;
}

:root[data-theme="dark"] .key-points,
:root[data-theme="dark"] .reader-memory,
:root[data-theme="dark"] .memory-list a {
  background: rgba(13, 42, 33, 0.86);
}

.article-content {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #263b34;
  font-size: calc(18px * var(--reading-scale));
  line-height: 2;
  white-space: pre-wrap;
}

.comfort-reading .article-main {
  max-width: 760px;
}

.comfort-reading .article-content {
  line-height: 2.15;
}

:root[data-theme="dark"] .article-content {
  color: #d8eadf;
}

.article-aside {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}

.aside-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(17, 40, 32, 0.06);
}

.aside-card.dark {
  background:
    radial-gradient(circle at top right, rgba(223, 244, 95, 0.16), transparent 30%),
    linear-gradient(135deg, #0b2a21, #123d2e);
  color: #fff;
}

.aside-card.dark .kicker {
  color: var(--lime);
}

.aside-card.dark strong {
  display: block;
  margin: 12px 0 10px;
  font-size: 24px;
}

.aside-card.dark p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-cloud span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  background: #e6f3ed;
  color: var(--green-dark);
  font-weight: 800;
}

.tag-cloud.compact {
  margin-top: 12px;
}

.tag-cloud.compact span {
  min-height: 26px;
  font-size: 12px;
}

.source-box {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.source-box strong {
  line-height: 1.45;
}

.source-box span {
  color: var(--muted);
}

.related-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.related-list a {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf7;
}

.related-list a:hover {
  border-color: rgba(28, 154, 104, 0.48);
}

.related-list strong {
  display: block;
  margin-bottom: 6px;
  line-height: 1.45;
}

.related-list span {
  color: var(--muted);
  font-size: 13px;
}

.article-neighbors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 26px;
}

.article-neighbors a,
.neighbor-empty {
  display: grid;
  gap: 6px;
  min-height: 92px;
  align-content: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.article-neighbors span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.article-neighbors strong {
  line-height: 1.45;
}

.neighbor-empty {
  color: var(--muted);
}

.article-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  max-width: min(360px, calc(100vw - 44px));
  padding: 12px 14px;
  border: 1px solid rgba(223, 244, 95, 0.26);
  border-radius: 8px;
  background: #0b2a21;
  color: #fff;
  box-shadow: 0 18px 42px rgba(9, 45, 31, 0.2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.admin-body {
  min-height: 100vh;
  background: #ecf2ee;
}

.admin-layout,
.dashboard {
  min-height: 100vh;
}

.login-panel {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  align-items: center;
  gap: 36px;
  padding: clamp(24px, 6vw, 78px);
}

.login-copy {
  max-width: 620px;
}

.login-copy h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
}

.login-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.login-form,
.editor-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.login-form {
  padding: 28px;
}

label span {
  display: block;
  margin-bottom: 8px;
  color: #30443e;
  font-size: 14px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #cfdad4;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 11px 12px;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 139, 95, 0.14);
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
}

.form-message.error {
  color: var(--red);
}

.form-message.success {
  color: var(--green-dark);
}

.hidden {
  display: none !important;
}

.dashboard {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.admin-sidebar .brand {
  margin-bottom: 16px;
}

.admin-sidebar .btn {
  width: 100%;
}

.admin-tools {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf8;
}

.filter-drawer {
  display: grid;
  gap: 12px;
}

.filter-drawer summary,
.compact-section summary,
.publish-summary {
  list-style: none;
  cursor: pointer;
}

.filter-drawer summary::-webkit-details-marker,
.compact-section summary::-webkit-details-marker,
.publish-summary::-webkit-details-marker {
  display: none;
}

.filter-drawer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 2px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 900;
}

.filter-drawer summary::after,
.compact-section summary::after {
  content: "展开";
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.filter-drawer[open] summary::after,
.compact-section[open] summary::after {
  content: "收起";
}

.filter-drawer label {
  margin-top: 10px;
}

.admin-sidebar .btn.ghost,
.editor-actions .btn.ghost {
  background: #f6f8f5;
  border-color: var(--line);
  color: #213b34;
}

.admin-stat {
  margin-top: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8f5;
}

.admin-stat strong {
  display: block;
  font-size: 34px;
  color: var(--green-dark);
}

.admin-stat span {
  color: var(--muted);
}

.admin-content {
  min-width: 0;
  padding: 28px;
}

.admin-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.admin-topbar h1 {
  font-size: clamp(30px, 4vw, 46px);
}

.ops-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.ops-summary article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 242, 0.96));
}

.ops-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.ops-summary strong {
  display: block;
  margin-top: 8px;
  color: var(--green-dark);
  font-size: 34px;
}

.muted {
  color: var(--muted);
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(520px, 1.28fr);
  gap: 18px;
  align-items: start;
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(260px, 0.58fr);
  gap: 18px;
  align-items: start;
}

.article-list-shell,
.article-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-pagination span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.admin-pagination .btn {
  min-height: 36px;
  padding: 8px 12px;
}

.admin-pagination .btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.admin-item {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-item:hover,
.admin-item.active {
  border-color: var(--green);
  box-shadow: 0 8px 24px rgba(17, 40, 32, 0.08);
}

.admin-item h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.admin-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-item-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.admin-item-foot span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f6f2;
}

.quality-bar {
  height: 7px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf4f0;
}

.quality-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.quality-bar.good span,
.quality-pill.good {
  background: #e6f3ed;
  color: var(--green-dark);
}

.quality-bar.good span {
  background: linear-gradient(90deg, var(--green), #43c98d);
}

.quality-bar.warn span {
  background: #d8a600;
}

.quality-pill.warn {
  background: #fff5d8;
  color: #7c5a03;
}

.quality-bar.bad span {
  background: var(--red);
}

.quality-pill.bad {
  background: #fff1f1;
  color: var(--red);
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

.status.published {
  background: #e6f3ed;
  color: var(--green-dark);
}

.status.draft {
  background: #fff5d8;
  color: #7c5a03;
}

.editor-panel {
  padding: 22px;
}

.editor-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.primary-editor {
  border-color: rgba(15, 139, 95, 0.24);
  background: #fff;
}

.compact-section {
  display: block;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.compact-section summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
}

.compact-section summary span {
  color: var(--green-dark);
  font-weight: 900;
}

.compact-section summary small {
  color: var(--muted);
  line-height: 1.45;
}

.compact-section > label,
.compact-section > .two-col,
.compact-section > .upload-row,
.compact-section > .check-row {
  margin: 0 16px 14px;
}

.compact-section > label:first-of-type,
.compact-section > .two-col:first-of-type,
.compact-section > .upload-row:first-of-type,
.compact-section > .check-row:first-of-type {
  margin-top: 2px;
}

.section-mini-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.section-mini-head span,
.section-mini-head strong {
  color: var(--green-dark);
  font-weight: 900;
}

.section-mini-head small {
  color: var(--muted);
  line-height: 1.5;
}

.admin-preview {
  position: sticky;
  top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(223, 244, 95, 0.16), transparent 30%),
    #fff;
  box-shadow: 0 18px 42px rgba(17, 40, 32, 0.08);
}

.preview-card {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #edf4f0, #dce5df);
}

.admin-preview img:not([src]) {
  display: none;
}

.admin-preview h3 {
  margin: 14px 0 10px;
  font-size: 22px;
  line-height: 1.3;
}

.admin-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.preview-note {
  margin-top: 12px !important;
  padding: 12px;
  border-left: 3px solid var(--green);
  border-radius: 6px;
  background: #edf6f0;
  color: #23443a !important;
}

.publish-check {
  padding-top: 16px;
}

.publish-summary {
  align-items: center;
  justify-content: flex-start;
  padding: 0;
}

.publish-summary strong {
  margin-left: auto;
}

.publish-summary::after {
  content: "详情";
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8faf8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.publish-check[open] .publish-summary::after {
  content: "收起";
}

.publish-check .article-health,
.publish-check .check-list,
.publish-check .surface {
  margin-top: 12px;
}

.article-health {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.article-health div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf7;
}

.article-health span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.article-health strong {
  display: block;
  margin-top: 5px;
  color: var(--green-dark);
  font-size: 22px;
}

#qualityScore.good {
  color: var(--green-dark);
}

#qualityScore.warn {
  color: #7c5a03;
}

#qualityScore.bad {
  color: var(--red);
}

.check-list {
  display: grid;
  gap: 8px;
}

.check-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f6f8f5;
}

.check-item span {
  display: inline-flex;
  min-width: 42px;
  justify-content: center;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.check-item.ok span {
  background: #e6f3ed;
  color: var(--green-dark);
}

.check-item.missing span {
  background: #fff5d8;
  color: #7c5a03;
}

.check-item strong {
  text-align: right;
  font-size: 13px;
  line-height: 1.4;
}

.upload-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(180px, 1fr);
  gap: 12px;
  align-items: stretch;
}

.file-picker {
  display: grid;
  align-content: center;
  min-height: 120px;
  padding: 14px;
  border: 1px dashed #b9c9c1;
  border-radius: 8px;
  background: #f8faf8;
}

.file-picker input {
  padding: 8px;
  background: #fff;
}

.cover-preview {
  width: 100%;
  min-height: 120px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #edf4f0, #dce5df);
}

.cover-preview[src=""],
.cover-preview:not([src]) {
  display: none;
}

.editor-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.editor-state-stack {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.editor-state-stack small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 6px;
  padding: 5px 9px;
  background: #edf4f0;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.pill.dirty {
  background: #fff5d8;
  color: #7c5a03;
}

.two-col,
.three-col,
.editor-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.editor-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  align-items: center;
  margin: 6px -22px -22px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.editor-actions .btn.primary {
  flex: 1 1 180px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf8;
}

.check-row input {
  width: auto;
}

.check-row span {
  margin: 0;
}

@media (max-width: 980px) {
  .news-grid,
  .admin-workspace,
  .login-panel,
  .insight-band,
  .daily-brief,
  .brief-grid,
  .article-neighbors,
  .dashboard,
  .energy-flow,
  .editor-observatory,
  .observatory-panel,
  .signal-strip,
  .reader-memory,
  .memory-list,
  .pulse-board,
  .pulse-metrics,
  .heatmap-grid,
  .ops-summary,
  .editor-grid,
  .article-shell {
    grid-template-columns: 1fr;
  }

  .news-card.featured {
    grid-column: auto;
  }

  .admin-sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .article-aside {
    position: static;
  }

  .admin-preview {
    position: static;
  }
}

@media (max-width: 700px) {
  .site-header,
  .site-footer,
  .admin-topbar,
  .editor-head,
  .section-heading,
  .pulse-header,
  .result-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    display: block;
    min-height: 640px;
  }

  .hero-copy {
    padding-top: 96px;
  }

  .hero-dashboard {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 24px;
  }

  .ticker-band,
  .two-col,
  .three-col,
  .editor-options,
  .upload-row {
    grid-template-columns: 1fr;
  }

  .editor-actions {
    position: static;
    margin: 6px 0 0;
    padding: 0;
    border-top: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .ticker-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-content {
    padding: 18px;
  }

  .login-panel {
    padding: 20px;
  }

  .radar {
    min-height: 220px;
  }

  .pulse-orbit {
    min-height: 280px;
  }

  .quick-dock {
    left: 50%;
    right: auto;
    bottom: 12px;
    grid-template-columns: repeat(3, 1fr);
    transform: translateX(-50%);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(0.96); opacity: 0.72; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes barPulse {
  0%, 100% { transform: scaleY(0.72); opacity: 0.72; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes signalMove {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes radarSweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes shimmer {
  0% { background-position: 0% 0; }
  100% { background-position: -220% 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
