:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef3ff;
  --text: #0b1220;
  --text-muted: #5b6473;
  --primary: #1f6bff;
  --primary-600: #1959d2;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --line: #dbe3ee;
  --radius-card: 12px;
  --radius-btn: 10px;
  --shadow-card: 0 8px 24px rgba(11, 18, 32, 0.08);
  --maxw: 1200px;
  --font-title: "Plus Jakarta Sans", "Inter", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1200px 500px at 10% -10%, #dbe7ff 0%, transparent 60%), var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--maxw), calc(100vw - 32px)); margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.btn {
  border: 0;
  border-radius: var(--radius-btn);
  padding: 11px 16px;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-ghost { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn-danger { background: var(--danger); color: #fff; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.input, .textarea, .select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 14px;
  background: #fff;
}
.textarea { min-height: 120px; resize: vertical; }
.label { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; display: block; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid transparent;
}
.badge-success { color: #0c7a35; background: #e8f7ee; border-color: #c0efcf; }
.badge-warning { color: #a96b09; background: #fff3dd; border-color: #ffe0a8; }
.badge-danger { color: #ab1d1d; background: #fde7e7; border-color: #fac5c5; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.table th { font-size: 12px; color: var(--text-muted); text-transform: uppercase; }
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(246, 248, 251, 0.8);
  border-bottom: 1px solid rgba(219, 227, 238, 0.8);
}
.topnav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: var(--font-title); font-weight: 800; letter-spacing: 0.1px; }
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}
.nav-links { display: flex; gap: 18px; align-items: center; color: var(--text-muted); }
.hero {
  padding: 56px 0 28px;
}
.hero-panel {
  min-height: 420px;
  border-radius: 18px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  background:
    linear-gradient(135deg, rgba(31, 107, 255, 0.1), rgba(11, 18, 32, 0.02)),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.placeholder-16x9,
.placeholder-1x1,
.placeholder-1200x480,
.placeholder-1200x800,
.placeholder-320x180,
.placeholder-avatar {
  position: relative;
  background: linear-gradient(130deg, #dde8ff, #f2f6ff 50%, #e5f8f3);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.hero-banner {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #eaf1ff;
}
.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.placeholder-16x9 { aspect-ratio: 16 / 9; }
.placeholder-1x1 { aspect-ratio: 1 / 1; }
.placeholder-1200x480 { aspect-ratio: 1200 / 480; }
.placeholder-1200x800 { aspect-ratio: 1200 / 800; }
.placeholder-320x180 { aspect-ratio: 320 / 180; }
.placeholder-avatar { width: 96px; height: 96px; border-radius: 50%; }
.placeholder-16x9 img,
.placeholder-1x1 img,
.placeholder-1200x480 img,
.placeholder-1200x800 img,
.placeholder-320x180 img,
.placeholder-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.placeholder-label {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 12px;
  color: #2f3a4f;
  background: rgba(255, 255, 255, 0.8);
  padding: 3px 8px;
  border-radius: 999px;
}
.section { padding: 40px 0; }
.section-title { font-family: var(--font-title); margin: 0 0 14px; font-size: 34px; }
.section-sub { margin: 0; color: var(--text-muted); }
.footer { margin-top: 48px; padding: 28px 0 46px; color: var(--text-muted); }
.footer-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.beian-bar {
  margin-top: 16px;
  padding: 10px 16px 24px;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
}
.beian-bar a {
  color: #4b5563;
  text-decoration: underline;
}
.kpi { font-size: 12px; color: var(--text-muted); }
.modal-mask {
  position: fixed; inset: 0; background: rgba(11, 18, 32, 0.45);
  display: none; align-items: center; justify-content: center; z-index: 1000;
}
.modal { width: min(520px, calc(100vw - 24px)); padding: 18px; }
.toast-wrap { position: fixed; right: 16px; top: 16px; z-index: 1200; display: grid; gap: 8px; }
.toast { background: #0b1220; color: #fff; padding: 11px 13px; border-radius: 10px; font-size: 13px; }
.page-head { margin: 28px 0 16px; }
.page-head h1 { margin: 0 0 8px; font-family: var(--font-title); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.split-main { display: grid; grid-template-columns: 240px 1fr; gap: 20px; }
.sidenav { padding: 12px; }
.sidenav a { display: block; padding: 10px 11px; border-radius: 8px; color: var(--text-muted); }
.sidenav a.active, .sidenav a:hover { background: #eaf0ff; color: var(--primary); }
.update-list {
  display: grid;
  gap: 0;
}
.update-item {
  border-bottom: 1px solid var(--line);
  padding: 12px 4px;
  overflow: hidden;
}
.update-item:last-child {
  border-bottom: 0;
}
.update-item-line1 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}
.update-item-line2 {
  margin-top: 5px;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}
.update-category {
  color: var(--primary);
  font-weight: 700;
}
.update-title {
  font-weight: 700;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.update-title:hover,
.update-category:hover {
  text-decoration: underline;
}
.update-published-at {
  white-space: nowrap;
  margin-left: auto;
  flex: 0 0 auto;
  color: #6b7280;
  font-size: 12px;
}
.update-summary {
  color: var(--text-muted);
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.hide { display: none !important; }
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .hero-panel { grid-template-columns: 1fr; }
  .split-main { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section-title { font-size: 28px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .topnav-inner { height: 64px; }
  .nav-links { gap: 10px; font-size: 14px; }
}
