/* cf_news v1.0.13 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f4f4f5;
  --surface: #ffffff;
  --text: #0a0a0a;
  --text-secondary: #3f3f46;
  --text-muted: #71717a;
  --border: #e4e4e7;
  --border-dark: #d4d4d8;
  --hover: #f4f4f5;
  --dark: #18181b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.12);
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --sticky-nav-h: 57px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* Lucide 图标 */
.icon, .icon svg {
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
}
.icon svg { width: 100%; height: 100%; }
.icon-xs, .icon-xs svg { width: 14px; height: 14px; }
.icon-sm, .icon-sm svg { width: 16px; height: 16px; }
.icon-md, .icon-md svg { width: 20px; height: 20px; }
.icon-lg, .icon-lg svg { width: 28px; height: 28px; }
.icon { width: 18px; height: 18px; }

.portal-topbar-left a,
.portal-topbar-right .portal-login,
.sticky-links a,
.sticky-actions .portal-login,
.sticky-brand,
.portal-badge,
.nav-categories a,
.cat-tag,
.meta-item,
.featured-badge,
.read-more,
.back-link,
.footer-brand,
.footer-copy,
.search-tip,
.search-clear,
.pagination button,
.login-box h1,
.admin-sidebar .nav-item,
.admin-brand,
.stat-card .label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-categories a { gap: 8px; }

/* 分类彩色图标 */
.cat-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.cat-ic .icon,
.cat-ic .icon svg,
.cat-ic svg {
  width: 13px;
  height: 13px;
}
.cat-ic-dny {
  background: #dcfce7;
  color: #15803d;
}
.cat-ic-baoguang {
  background: #ffedd5;
  color: #c2410c;
}
.cat-ic-mingxing {
  background: #fef9c3;
  color: #a16207;
}
.cat-ic-wanghong {
  background: #f4f4f5;
  color: #52525b;
}
.section-ic-wrap.cat-ic {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}
.section-ic-wrap.cat-ic .icon,
.section-ic-wrap.cat-ic .icon svg,
.section-ic-wrap.cat-ic svg {
  width: 18px;
  height: 18px;
}
.nav-categories a.active .cat-ic-dny {
  background: rgba(134, 239, 172, 0.25);
  color: #bbf7d0;
}
.nav-categories a.active .cat-ic-baoguang {
  background: rgba(251, 146, 60, 0.25);
  color: #fed7aa;
}
.nav-categories a.active .cat-ic-mingxing {
  background: rgba(250, 204, 21, 0.25);
  color: #fef08a;
}
.nav-categories a.active .cat-ic-wanghong {
  background: rgba(255, 255, 255, 0.15);
  color: #e4e4e7;
}

.portal-search {
  gap: 10px;
}
.icon-search-input, .icon-search-input svg {
  width: 20px;
  height: 20px;
  color: #a1a1aa;
  flex-shrink: 0;
}

.portal-search-btn .icon,
.portal-search-btn .icon svg {
  width: 20px;
  height: 20px;
}

.portal-title-mini {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.section-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.search-clear {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 4px;
}
.search-clear:hover { color: var(--text); opacity: 1; }

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.empty .icon-lg { opacity: 0.35; }

.article-meta-bar > div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.article-meta-bar .icon-sm { margin-top: 2px; opacity: 0.5; }

.admin-sidebar .nav-item,
.admin-brand {
  gap: 10px;
}
.login-box h1 {
  justify-content: center;
  gap: 10px;
}

.btn {
  gap: 6px;
}

/* ===== 门户大头部（头条风格）===== */
.portal-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-top: calc(-1 * var(--sticky-nav-h));
  padding-top: var(--sticky-nav-h);
}

.portal-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  transform: scale(1.02);
  filter: saturate(1.08);
}

.portal-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0.5) 100%),
    radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.portal-topbar {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
}

.portal-topbar-left {
  display: flex;
  align-items: center;
  gap: 28px;
}
.portal-topbar-left a {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.2s;
  white-space: nowrap;
}
.portal-topbar-left a:hover { color: #fff; opacity: 1; }

.portal-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.portal-badge {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  backdrop-filter: blur(8px);
}

.portal-login {
  padding: 8px 22px;
  background: #fff;
  color: var(--dark);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}
.portal-login:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.portal-center {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 24px 48px;
  text-align: center;
}

.portal-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.08em;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
  margin-bottom: 8px;
  line-height: 1.1;
}

.portal-desc {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.portal-search {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 680px;
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  padding: 6px 6px 6px 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  transition: box-shadow 0.3s;
}
.portal-search:focus-within {
  box-shadow: 0 8px 50px rgba(0,0,0,0.35);
}

.portal-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  padding: 12px 0;
  min-width: 0;
}
.portal-search input::placeholder { color: #a1a1aa; }

.portal-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 10px;
  background: var(--dark);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.portal-search-btn:hover {
  background: #3f3f46;
  transform: scale(1.05);
}

.portal-hotwords {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-top: 20px;
  max-width: 680px;
}

.hot-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.hot-word {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
}
.hot-word:hover {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.4);
  opacity: 1;
}

.search-tip {
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.search-tip strong { color: var(--text); }

/* 详情页迷你头部 */
.portal-hero-mini { min-height: 160px; }
.portal-center-mini { padding: 0 24px 24px; }
.portal-title-mini { font-size: 1.75rem; letter-spacing: 0.06em; }

.section-count {
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* 顶栏 */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 20%, rgba(0,0,0,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0,0,0,0.02) 0%, transparent 40%),
    var(--bg);
  pointer-events: none;
}
.page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.35;
}

/* 吸顶导航 */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 300;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  border-bottom: 1px solid transparent;
}

.sticky-nav-top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 32px;
}

.sticky-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.sticky-brand:hover { opacity: 0.8; }

.sticky-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.sticky-links::-webkit-scrollbar { display: none; }

.sticky-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s;
}
.sticky-links a:hover { color: var(--text); opacity: 1; }

.sticky-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* 分类栏：Banner 下方 */
.category-bar {
  position: sticky;
  top: var(--sticky-nav-h);
  z-index: 200;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* 顶部：透明叠在 Hero 上 */
.sticky-nav:not(.is-scrolled) {
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.25) 75%, transparent 100%);
}
.sticky-nav:not(.is-scrolled) .sticky-links a { color: rgba(255,255,255,0.88); }
.sticky-nav:not(.is-scrolled) .sticky-brand .logo-name { color: #fff; }
.sticky-nav:not(.is-scrolled) .sticky-brand .logo-mark { background: #fff; color: var(--dark); }
.sticky-nav:not(.is-scrolled) .portal-badge {
  color: rgba(255,255,255,0.65);
  border-color: rgba(255,255,255,0.25);
}
.sticky-nav:not(.is-scrolled) .portal-login {
  background: #fff;
  color: var(--dark);
}

/* 滚动后：白底吸顶 */
.sticky-nav.is-scrolled {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* 详情页：始终白底吸顶 */
.sticky-nav.sticky-nav--solid {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

/* 顶栏（旧，保留兼容） */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 12px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.75; }

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--dark);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  border-radius: 10px;
  letter-spacing: -0.05em;
}

.logo-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav-categories {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
  padding: 2px 0;
}
.nav-categories::-webkit-scrollbar { display: none; }

.nav-categories a {
  flex-shrink: 0;
  padding: 7px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 100px;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.nav-categories a:hover {
  color: var(--text);
  background: var(--hover);
  border-color: var(--border);
}
.nav-categories a.active {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
  box-shadow: var(--shadow-sm);
}

.nav-admin {
  flex-shrink: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.2s;
}
.nav-admin:hover {
  color: var(--text);
  border-color: var(--border-dark);
  background: var(--surface);
}

/* Hero */
.hero {
  padding: 48px 0 36px;
}

.hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding: 40px 48px;
  background: var(--dark);
  border-radius: 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner::after {
  content: '365';
  position: absolute;
  right: 32px;
  bottom: -20px;
  font-size: 8rem;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.05em;
}

.hero-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 12px;
}

.hero-text h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.55);
  max-width: 420px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.stat-item { text-align: center; }

.stat-num {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* 列表区 */
/* 双栏布局 + 热榜 */
.news-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  padding: 32px 24px 80px;
  align-items: start;
}

.news-main { min-width: 0; }

.hot-sidebar {
  position: sticky;
  top: 120px;
}

.hot-rank-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
}

.hot-rank-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.hot-rank-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hot-flame { color: var(--text); }

.hot-refresh {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s;
}
.hot-refresh:hover {
  color: var(--text);
  background: var(--hover);
}

.hot-rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hot-rank-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hover);
  cursor: pointer;
  transition: opacity 0.2s;
}
.hot-rank-item:last-child { border-bottom: none; }
.hot-rank-item:hover { opacity: 0.7; }

.hot-rank-pin {
  flex-shrink: 0;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  margin-top: 2px;
}

.hot-rank-num {
  flex-shrink: 0;
  width: 20px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}
.hot-rank-num.rank-1 { color: #111; }
.hot-rank-num.rank-2 { color: #52525b; }
.hot-rank-num.rank-3 { color: #71717a; }
.hot-rank-num.rank-n { color: #a1a1aa; font-weight: 600; }

.hot-rank-text {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hot-rank-badges {
  display: inline-flex;
  gap: 4px;
  margin-left: 4px;
  vertical-align: middle;
}

.hot-badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1.4;
  vertical-align: middle;
}
.hot-badge-hot {
  background: #e4e4e7;
  color: #18181b;
  border: 1px solid #d4d4d8;
}
.hot-badge-new {
  background: #f4f4f5;
  color: #3f3f46;
  border: 1px solid #e4e4e7;
}

.hot-rank-views {
  flex-shrink: 0;
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.hot-rank-loading,
.hot-rank-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 24px 0;
}

.news-section { padding-bottom: 80px; }

.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-dark), transparent);
}

/* 头条 */
.news-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
  margin-bottom: 24px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  animation: fadeUp 0.5s var(--ease) both;
}
.news-featured:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-featured-img {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: var(--hover);
}
.news-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.news-featured:hover .news-featured-img img {
  transform: scale(1.05);
}

.news-featured-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, transparent 60%);
}

.featured-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  padding: 5px 12px;
  background: #fff;
  color: var(--dark);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 100px;
}

.news-featured-body {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-featured-body .cat-tag {
  align-self: flex-start;
  margin-bottom: 14px;
}

.news-featured-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.35;
  margin-bottom: 14px;
}

.news-featured-body .summary {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin-top: auto;
}
.read-more::after {
  content: '→';
  transition: transform 0.2s;
}
.news-featured:hover .read-more::after { transform: translateX(4px); }

/* 网格 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  animation: fadeUp 0.5s var(--ease) both;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border-dark);
}

.news-card-img {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--hover);
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.news-card:hover .news-card-img img {
  transform: scale(1.06);
}

.news-card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(0,0,0,0.15));
}

.news-card-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-body h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.45;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-body .summary {
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 100px;
  background: var(--dark);
  color: #fff;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.news-meta .meta-dot::before {
  content: '·';
  margin-right: 10px;
  color: var(--border-dark);
}

/* 骨架屏 */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.skeleton-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.skeleton-img {
  height: 180px;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.skeleton-text {
  padding: 20px;
}
.skeleton-line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 10px;
}
.skeleton-line.short { width: 60%; }

.skeleton-detail {
  padding: 40px 0;
}
.skeleton-detail .skeleton-img { height: 360px; border-radius: var(--radius); margin-bottom: 24px; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 详情页 */
.article-page { padding: 32px 0 80px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.2s;
}
.back-link:hover {
  color: var(--text);
  border-color: var(--border-dark);
  background: var(--surface);
}

.article-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 36px;
  min-height: 380px;
  background: var(--dark);
  box-shadow: var(--shadow-lg);
}
.article-hero img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  opacity: 0.92;
}
.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
}
.article-hero-overlay .cat-tag {
  align-self: flex-start;
  margin-bottom: 14px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
}
.article-hero-overlay h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.3;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.article-gallery {
  margin-bottom: 36px;
}
.article-gallery--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.article-gallery--single {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.article-gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--dark);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.article-gallery-item img,
.article-gallery-item video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  max-height: 420px;
  object-fit: cover;
  background: #111;
}
.article-gallery-item--video video {
  min-height: 240px;
  max-height: 520px;
  object-fit: contain;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 36px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.article-meta-bar strong {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
  font-weight: 600;
}
.article-meta-bar span { color: var(--text); font-weight: 500; }

.article-content {
  font-size: 1.0625rem;
  line-height: 2;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
}
.article-content::first-line {
  font-weight: 500;
  color: var(--text);
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 40px 0 0;
}
.pagination button {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s;
}
.pagination button:hover:not(:disabled) {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}
.pagination button:disabled { opacity: 0.35; cursor: not-allowed; }
.pagination .current {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
  cursor: default;
  font-weight: 600;
}

.loading, .empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* 页脚 */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--surface);
}
.footer-inner { text-align: center; }
.footer-brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== Admin ===== */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.admin-overlay.show {
  display: block;
  opacity: 1;
}

.admin-sidebar {
  width: 260px;
  background: linear-gradient(180deg, #0a0a0a 0%, #18181b 100%);
  color: #fff;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 22px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.admin-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.admin-brand-icon .icon { color: #fff; opacity: 0.95; }
.admin-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.admin-brand-text strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.admin-brand-text span {
  font-size: 0.7rem;
  color: #a1a1aa;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-nav {
  flex: 1;
  overflow-y: auto;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.admin-nav::-webkit-scrollbar { width: 4px; }
.admin-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.admin-nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-nav-label {
  display: block;
  padding: 0 12px 6px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #71717a;
}

.admin-sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #a1a1aa;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.22s var(--ease);
  position: relative;
  text-decoration: none;
}
.admin-sidebar .nav-item span {
  flex: 1;
  line-height: 1.3;
}
.admin-sidebar .nav-item .icon {
  width: 18px;
  height: 18px;
  opacity: 0.75;
  transition: opacity 0.22s;
}
.admin-sidebar .nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.admin-sidebar .nav-item:hover .icon { opacity: 1; }
.admin-sidebar .nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.admin-sidebar .nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: 0 3px 3px 0;
  background: #fff;
}
.admin-sidebar .nav-item.active .icon { opacity: 1; }

.admin-sidebar-foot {
  padding: 16px 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-sidebar .nav-logout:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
}
.admin-sidebar .nav-link:hover {
  color: #fff;
}

.admin-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
  height: 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.admin-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s;
}
.admin-menu-toggle:hover { background: var(--hover); }
.admin-page-title {
  flex: 1;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}
.admin-topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.admin-topbar-link:hover {
  background: var(--hover);
  color: var(--text);
  border-color: var(--border-dark);
}

.admin-main {
  flex: 1;
  padding: 24px 32px 48px;
  overflow-y: auto;
  background: var(--bg);
  max-width: 1200px;
}

.auto-scan-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.auto-scan-last {
  color: var(--text-muted);
  font-size: 0.75rem;
  padding-left: 8px;
  border-left: 1px solid var(--border);
}
.panel-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.panel { display: none; animation: adminFadeIn 0.25s var(--ease); }
.panel.active { display: block; }
@keyframes adminFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 卡片 */
.admin-layout .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.admin-layout .card > form,
.admin-layout .card > .form-inline,
.admin-layout .card > .form-group,
.admin-layout .card > .form-row,
.admin-layout .card > .form-actions,
.admin-layout .card > .card-desc {
  padding-left: 24px;
  padding-right: 24px;
}
.admin-layout .card > form { padding-bottom: 24px; padding-top: 4px; }
.admin-layout .card > .form-inline { padding: 4px 24px 24px; }
.admin-layout .card > .form-actions { padding: 0 24px 24px; }
.admin-layout .card > .form-group:first-of-type { padding-top: 4px; }
.admin-layout .card > .form-group:last-child { padding-bottom: 24px; }
.admin-layout .card > .card-desc { padding-bottom: 20px; margin-top: -8px; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.015);
}
.card-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
.card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.card-status .card-head { border-bottom: none; padding-bottom: 8px; }

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--hover);
  color: var(--text-muted);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.status-badge.is-on {
  background: #18181b;
  color: #fff;
  border-color: #18181b;
}
.status-badge.is-off {
  background: #f4f4f5;
  color: #71717a;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.admin-grid-2 .card { margin-bottom: 0; }

/* 统计卡片 */
.stats-admin {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card-icon {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.stat-card-icon:hover { box-shadow: var(--shadow); }
.stat-card-icon .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--hover);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-secondary);
}
.stat-card-icon .stat-body { min-width: 0; }
.stat-card-icon .num {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stat-card-icon .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 表单 */
.form-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.form-inline {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.form-inline .input {
  flex: 1;
  min-width: 140px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}
.form-inline .input:focus {
  outline: none;
  border-color: var(--dark);
}
.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.btn-block { width: 100%; }
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-icon:hover {
  background: var(--hover);
  color: var(--text);
}

.admin-layout .form-group { margin-bottom: 16px; }
.admin-layout .form-group label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.admin-layout .form-group input,
.admin-layout .form-group textarea,
.admin-layout .form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}
.admin-layout .form-group input:focus,
.admin-layout .form-group textarea:focus,
.admin-layout .form-group select:focus {
  outline: none;
  border-color: var(--dark);
}
.admin-layout .form-group textarea { min-height: 120px; resize: vertical; }

.admin-layout .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.admin-layout .btn:hover { opacity: 0.88; }
.admin-layout .btn-primary { background: var(--dark); color: #fff; }
.admin-layout .btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.admin-layout .btn-danger { background: #3f3f46; color: #fff; }
.admin-layout .btn-sm { padding: 6px 12px; font-size: 0.75rem; }

/* 表格 */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-admin { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table-admin th,
.table-admin td {
  padding: 14px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table-admin th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.02);
  white-space: nowrap;
}
.table-admin tbody tr:hover { background: rgba(0, 0, 0, 0.02); }
.table-admin tbody tr:last-child td { border-bottom: none; }
.table-empty td {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 24px !important;
}
.table-thumb {
  width: 52px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
}
.table-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-layout .tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  background: var(--hover);
  color: var(--text-muted);
  font-weight: 500;
}
.admin-layout .tag-ok { background: #e4e4e7; color: #3f3f46; }
.admin-layout .tag-err { background: #d4d4d8; color: #18181b; }
.admin-layout .tag-pub { background: #18181b; color: #fff; }

/* 弹窗 */
.admin-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.admin-modal.show { display: flex; }
.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}
.admin-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  margin: 0;
  animation: adminModalIn 0.25s var(--ease);
}
.admin-modal-dialog form { padding: 0 24px 24px; }
@keyframes adminModalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* 登录页 */
.admin-page-body { background: var(--bg); }
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(0,0,0,0.03) 0%, transparent 50%),
    var(--bg);
}
.login-box {
  width: 100%;
  max-width: 400px;
  padding: 40px 36px 32px;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.login-brand {
  text-align: center;
  margin-bottom: 32px;
}
.login-brand-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-brand h1 {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.login-brand p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.login-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  width: 100%;
  justify-content: center;
  transition: color 0.2s;
}
.login-back:hover { color: var(--text); opacity: 1; }

.login-box .form-group { margin-bottom: 16px; }
.login-box .form-group label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.login-box .form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}
.login-box .form-group input:focus {
  outline: none;
  border-color: var(--dark);
}
.login-box .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}
.login-box .btn-primary { background: var(--dark); color: #fff; }

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; }

.flex { display: flex; gap: 8px; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

@media (max-width: 900px) {
  :root { --sticky-nav-h: 96px; }
  .sticky-nav-top { flex-wrap: wrap; padding: 10px 20px; gap: 10px; }
  .sticky-links { order: 3; width: 100%; gap: 16px; }
  .portal-hero { min-height: 380px; }
  .news-layout {
    grid-template-columns: 1fr;
  }
  .hot-sidebar {
    position: static;
    order: -1;
  }
  .news-featured { grid-template-columns: 1fr; }
  .news-featured-img { min-height: 220px; }
  .hero-inner { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
  .hero-stats { width: 100%; justify-content: flex-start; }
}

@media (max-width: 640px) {
  .portal-hero { min-height: 360px; }
  .portal-topbar { flex-direction: column; gap: 12px; align-items: flex-start; padding: 16px 20px; }
  .portal-topbar-left { gap: 16px; flex-wrap: wrap; }
  .portal-title { letter-spacing: 0.04em; }
  .portal-search { border-radius: 10px; padding-left: 14px; }
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .category-bar { padding: 12px 0; }
  .news-grid, .skeleton-grid { grid-template-columns: 1fr; }
  .article-hero img { height: 260px; }
  .article-hero-overlay { padding: 24px; }
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.32s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-menu-toggle { display: inline-flex; }
  .admin-topbar { padding: 0 20px; }
  .admin-main { padding: 16px; max-width: none; }
  .stats-admin { grid-template-columns: 1fr; }
  .admin-grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .table-admin th, .table-admin td { padding: 12px 16px; }
  .admin-topbar-link span { display: none; }
}
