/* ==========================================================================
   RECIWO 睿物志 (www.reciwo.com) — 现代科技媒体与 AI 硬件情报站样式表
   ========================================================================== */

:root {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-elevated: rgba(255, 255, 255, 0.92);
  --bg-code: #0f172a;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;

  --brand-primary: #2563eb;
  --brand-primary-hover: #1d4ed8;
  --brand-soft: #eff6ff;
  --brand-border: #bfdbfe;

  --accent-emerald: #059669;
  --accent-emerald-soft: #ecfdf5;
  --accent-amber: #d97706;
  --accent-amber-soft: #fffbeb;
  --accent-violet: #7c3aed;
  --accent-violet-soft: #f5f3ff;
  --accent-rose: #e11d48;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, 0.16);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

html[data-theme="dark"] {
  --bg-page: #090d16;
  --bg-surface: #111827;
  --bg-subtle: #1e293b;
  --bg-elevated: rgba(17, 24, 39, 0.92);
  --bg-code: #030712;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  --border-subtle: #1e293b;
  --border-strong: #334155;

  --brand-primary: #3b82f6;
  --brand-primary-hover: #60a5fa;
  --brand-soft: rgba(59, 130, 246, 0.14);
  --brand-border: rgba(59, 130, 246, 0.35);

  --accent-emerald-soft: rgba(5, 150, 105, 0.16);
  --accent-amber-soft: rgba(217, 119, 6, 0.16);
  --accent-violet-soft: rgba(124, 58, 237, 0.16);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.65);
}

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

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

code,
pre,
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   1. 顶部实时快讯滚动条
   ========================================================================== */
.top-ticker-bar {
  background: #0f172a;
  color: #e2e8f0;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-ticker-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  gap: 14px;
}

.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.28);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #93c5fd;
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 11.5px;
  white-space: nowrap;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #cbd5e1;
  cursor: pointer;
}

.ticker-content:hover {
  color: #ffffff;
}

.storage-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  white-space: nowrap;
}

.storage-pill .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

/* ==========================================================================
   2. 主导航栏
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--bg-elevated);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 60%, #0284c7 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-cn {
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-primary);
  margin-left: 3px;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-link:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.nav-link.active {
  background: var(--brand-soft);
  color: var(--brand-primary);
}

.nav-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 99px;
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.nav-link.active .nav-count {
  background: var(--brand-primary);
  color: #ffffff;
}

.nav-count-amber {
  background: var(--accent-amber-soft);
  color: var(--accent-amber);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 11px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  width: 220px;
  padding: 7px 30px 7px 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-size: 13px;
  transition: all 0.18s ease;
}

.search-box input:focus {
  outline: none;
  width: 265px;
  background: var(--bg-surface);
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.search-kbd {
  position: absolute;
  right: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  background: var(--bg-surface);
  pointer-events: none;
}

.theme-toggle-btn {
  width: 35px;
  height: 35px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* ==========================================================================
   3. 通用按钮、徽章与表单控件
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  font-size: 13.5px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
}

.btn-xs {
  padding: 4px 9px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--brand-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--brand-primary-hover);
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn-text,
.btn-link {
  background: none;
  border: none;
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.btn-text:hover,
.btn-link:hover {
  text-decoration: underline;
}

.pill-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pill {
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.pill.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
}

.input-sm,
.select-sm {
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 13px;
}

.input-sm:focus,
.select-sm:focus {
  outline: none;
  border-color: var(--brand-primary);
}

/* ==========================================================================
   4. 全局搜索下拉面板
   ========================================================================== */
.global-search-dropdown {
  position: fixed;
  top: 103px;
  left: 0;
  right: 0;
  z-index: 95;
}

.search-dropdown-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
}

.search-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  font-weight: 600;
}

.search-dropdown-body {
  padding: 14px 18px;
  overflow-y: auto;
  display: grid;
  gap: 10px;
}

.search-hit-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.14s ease;
}

.search-hit-item:hover {
  border-color: var(--brand-primary);
  background: var(--brand-soft);
}

/* ==========================================================================
   5. 首页门户布局 (Metrics + Hero Bento + Hardware Preview + Feed)
   ========================================================================== */
.main-content {
  padding-top: 22px;
  padding-bottom: 64px;
}

.portal-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.metric-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.16s ease;
  box-shadow: var(--shadow-xs);
}

.metric-item:hover {
  border-color: var(--brand-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.metric-value-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 4px;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}

.metric-tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.metric-tag-highlight {
  background: var(--brand-soft);
  color: var(--brand-primary);
}

/* Hero Bento Grid */
.hero-bento-grid {
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}

.hero-editorial-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-main-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  color: #ffffff;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease;
}

.hero-main-card:hover {
  transform: translateY(-2px);
}

.hero-main-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}

.hero-meta-inline {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-mono);
}

.hero-main-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero-main-summary {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 92%;
}

.hero-main-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12.5px;
}

.hero-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hero-sub-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.18s ease;
  box-shadow: var(--shadow-xs);
}

.hero-sub-card:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.hero-sub-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.4;
  margin: 8px 0;
  color: var(--text-primary);
}

.hero-sub-card p {
  font-size: 13px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

/* 右侧快讯情报栏 */
.sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-title-group h3 {
  font-size: 15px;
  font-weight: 700;
}

.live-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.sidebar-flash-list {
  padding: 14px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  max-height: 410px;
}

.flash-mini-item {
  position: relative;
  padding-left: 14px;
  border-left: 2px solid var(--border-subtle);
  transition: border-color 0.15s ease;
}

.flash-mini-item.importance-high {
  border-left-color: var(--brand-primary);
}

.flash-mini-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 3px;
}

.flash-mini-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
  cursor: pointer;
}

.flash-mini-title:hover {
  color: var(--brand-primary);
}

.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   6. 通用栏目区块标题 & AI 硬件产品卡片
   ========================================================================== */
.home-section-block {
  margin-bottom: 40px;
}

.section-header-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--brand-primary);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.section-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hardware-grid {
  display: grid;
  gap: 18px;
}

.hardware-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.hardware-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.hw-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.18s ease;
  box-shadow: var(--shadow-xs);
  position: relative;
}

.hw-card:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.hw-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.hw-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  flex-shrink: 0;
}

.hw-badges-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.hw-status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
}

.hw-status-badge.status-pre {
  background: var(--accent-amber-soft);
  color: var(--accent-amber);
}

.hw-price-tag {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}

.hw-brand-line {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hw-title {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 4px 0 8px;
  line-height: 1.35;
  cursor: pointer;
}

.hw-title:hover {
  color: var(--brand-primary);
}

.hw-summary {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hw-specs-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg-subtle);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}

.hw-spec-cell {
  overflow: hidden;
}

.hw-spec-label {
  display: block;
  font-size: 10.5px;
  color: var(--text-muted);
}

.hw-spec-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hw-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.hw-rating-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-amber);
}

.hw-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-compare-toggle.selected {
  background: var(--brand-soft);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* ==========================================================================
   7. 首页资讯流与右侧边栏
   ========================================================================== */
.home-feed-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.article-list-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-row-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 20px;
  align-items: center;
  cursor: pointer;
  transition: all 0.16s ease;
  box-shadow: var(--shadow-xs);
}

.article-row-card:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.art-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.cat-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-primary);
}

.article-row-title {
  font-size: 18.5px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.38;
  margin-bottom: 8px;
}

.article-row-card:hover .article-row-title {
  color: var(--brand-primary);
}

.article-row-summary {
  font-size: 13.8px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.article-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.tag-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-chip {
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.art-cover-visual {
  height: 124px;
  border-radius: var(--radius-md);
  padding: 14px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-weight: 700;
  font-size: 12px;
}

.home-feed-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.aside-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
}

.aside-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.aside-box-header h3 {
  font-size: 15px;
  font-weight: 700;
}

.badge-subtle {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--bg-subtle);
  color: var(--text-muted);
}

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

.ranking-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.14s ease;
}

.ranking-item:hover {
  background: var(--bg-subtle);
}

.rank-num {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ranking-item:nth-child(-n+3) .rank-num {
  background: var(--brand-primary);
  color: #ffffff;
}

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

.tag-cloud-btn {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.tag-cloud-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--brand-soft);
}

.aside-arch-card {
  background: linear-gradient(180deg, var(--brand-soft) 0%, var(--bg-surface) 100%);
  border-color: var(--brand-border);
}

.arch-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--brand-primary);
  color: #ffffff;
  margin-bottom: 8px;
}

.aside-arch-card h4 {
  font-size: 15px;
  margin-bottom: 6px;
}

.aside-arch-card p {
  font-size: 12.8px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.arch-actions {
  display: flex;
  gap: 8px;
}

/* ==========================================================================
   8. 独立页面横幅、筛选栏、专栏网格、快讯时间轴
   ========================================================================== */
.page-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-xs);
}

.page-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.page-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

.page-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.compare-badge-count {
  background: rgba(255, 255, 255, 0.25);
  padding: 1px 7px;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.filter-toolbar,
.hardware-filter-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hardware-filter-panel {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

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

.filter-row-split {
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.filter-group-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.articles-grid-view {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* 快讯时间轴 */
.newsflash-timeline-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nf-day-group {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.nf-day-header {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-primary);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.nf-timeline-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nf-card-item {
  position: relative;
  padding-left: 18px;
  border-left: 2px solid var(--border-subtle);
}

.nf-card-item.importance-high {
  border-left-color: var(--brand-primary);
}

.nf-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.nf-time-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.nf-importance-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 4px;
  background: #fee2e2;
  color: #dc2626;
}

.nf-card-title {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.nf-card-summary {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

/* ==========================================================================
   9. 情报投递中心与后台管理 CMS Studio
   ========================================================================== */
.submit-layout-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 22px;
}

.submit-form-card,
.admin-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
}

.submit-type-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.submit-type-tab {
  text-align: left;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.15s ease;
}

.submit-type-tab strong {
  font-size: 13.5px;
  color: var(--text-primary);
}

.submit-type-tab span {
  font-size: 11.5px;
  color: var(--text-muted);
}

.submit-type-tab.active {
  background: var(--brand-soft);
  border-color: var(--brand-primary);
}

.cms-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.label-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.cms-form input[type="text"],
.cms-form input[type="url"],
.cms-form select,
.cms-form textarea {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 13.5px;
}

.cms-form textarea {
  font-family: var(--font-mono);
  line-height: 1.55;
  resize: vertical;
}

.cms-form input:focus,
.cms-form select:focus,
.cms-form textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: var(--bg-surface);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 6px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.submission-wall-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sub-wall-card {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-page);
}

/* Admin CMS Tabs & Split Layout */
.admin-tabs-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.admin-tab {
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-tab.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-split-editor {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}

.admin-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 620px;
  overflow-y: auto;
}

.admin-list-card {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ==========================================================================
   10. 弹窗 (Markdown 阅读器 / 硬件详情 / 横向对比矩阵) & 底部对比栏
   ========================================================================== */
.compare-floating-dock {
  position: fixed;
  bottom: 18px;
  left: 0;
  right: 0;
  z-index: 92;
  pointer-events: none;
}

.compare-dock-inner {
  pointer-events: auto;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.compare-dock-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.compare-dock-title {
  font-weight: 700;
  font-size: 13.5px;
}

.compare-dock-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.compare-Chip-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12px;
}

.compare-Chip-item button {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
}

/* Modal Backdrop & Dialog */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-lg {
  max-width: 860px;
}

.modal-xl {
  max-width: 1060px;
}

.modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
}

.modal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.source-file-pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--brand-primary);
}

.modal-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 700;
}

.modal-body {
  padding: 28px 32px;
  overflow-y: auto;
}

/* Markdown Article Typography */
.article-reader-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-reader-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  margin: 10px 0 12px;
}

.article-prose {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
}

.article-prose h2 {
  font-size: 21px;
  font-weight: 800;
  margin: 28px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-prose h3 {
  font-size: 17.5px;
  font-weight: 700;
  margin: 20px 0 8px;
}

.article-prose p {
  margin-bottom: 14px;
}

.article-prose ul,
.article-prose ol {
  margin: 10px 0 16px 22px;
}

.article-prose li {
  margin-bottom: 6px;
}

.article-prose blockquote {
  margin: 16px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--brand-primary);
  background: var(--brand-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 15px;
}

.article-prose pre {
  background: var(--bg-code);
  color: #e2e8f0;
  padding: 16px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.5;
}

.article-prose table,
.compare-matrix-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 13.5px;
}

.article-prose th,
.article-prose td,
.compare-matrix-table th,
.compare-matrix-table td {
  border: 1px solid var(--border-subtle);
  padding: 10px 14px;
  text-align: left;
}

.article-prose th,
.compare-matrix-table th {
  background: var(--bg-subtle);
  font-weight: 700;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-item {
  background: #0f172a;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 13.5px;
  font-weight: 600;
  border-left: 4px solid #3b82f6;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 44px 0;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 10px 0 14px;
  max-width: 440px;
}

.footer-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links-col h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-col a {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-links-col a:hover {
  color: var(--brand-primary);
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
  .hardware-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .hardware-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-bento-grid,
  .home-feed-layout,
  .submit-layout-grid,
  .admin-split-editor {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .portal-metrics-strip,
  .hardware-grid-4,
  .hardware-grid-3,
  .articles-grid-view,
  .hero-sub-grid,
  .submit-type-tabs,
  .form-row-2,
  .form-row-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .article-row-card {
    grid-template-columns: 1fr;
  }
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 0;
  }
}


/* ==========================================================================
   11. Admin Analytics Dashboard & Live Markdown Studio Styles
   ========================================================================== */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.admin-kpi-card {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.admin-kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-kpi-val {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 6px 0 4px;
}

.admin-kpi-sub {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-charts-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
}

.admin-chart-card {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.traffic-bars-wrap {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  align-items: end;
  height: 188px;
  padding-top: 24px;
}

.traffic-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}

.traffic-bar-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.traffic-bar-fill {
  width: 100%;
  max-width: 38px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  transition: height 0.3s ease;
}

.traffic-bar-day {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.cat-dist-row {
  margin-bottom: 12px;
}

.cat-dist-top {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cat-dist-track {
  height: 8px;
  background: var(--border-subtle);
  border-radius: 99px;
  overflow: hidden;
}

.cat-dist-bar {
  height: 100%;
  background: var(--brand-primary);
  border-radius: 99px;
}

.admin-article-selector-bar {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.admin-article-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-art-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}

.admin-art-chip:hover,
.admin-art-chip.active {
  border-color: var(--brand-primary);
  background: var(--brand-soft);
  color: var(--brand-primary);
}

.md-toolbar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.md-tool-btn {
  padding: 4px 9px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.md-tool-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.admin-live-preview-box {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  max-height: 620px;
  overflow-y: auto;
}

@media (max-width: 1024px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-charts-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   12. Article Pagination Bar Styles (SEO/GEO + Interactive Pagination)
   ========================================================================== */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.pagination-info {
  font-size: 13px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.pagination-info strong {
  color: var(--text-primary);
  font-weight: 700;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  user-select: none;
}

.page-btn:hover:not(.disabled):not(:disabled) {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--brand-soft);
}

.page-btn.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
  pointer-events: none;
}

.page-btn.disabled,
.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.page-ellipsis {
  padding: 0 4px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

@media (max-width: 640px) {
  .pagination-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
