/* ============================================
   IPSM-Platform — Government Red Design System
   政府红 + 金色点缀 + 官方大气风格
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;510;600;700&family=Noto+Sans+SC:wght@300;400;500;600;700&family=Noto+Serif+SC:wght@600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* --- 背景色 --- */
  --bg-page:      #fafbfc;   /* 页面背景 — 浅灰白 */
  --bg-panel:     #ffffff;   /* 卡片/面板 */
  --bg-surface:   #f4f5f7;   /* 次级表面 */
  --bg-hover:     #f0f1f3;   /* hover */
  --bg-active:    #e8e9ec;   /* active */

  /* --- 文字色 --- */
  --text-primary:   #1a202c;  /* 主文字 — 深黑 */
  --text-secondary: #4a5568;  /* 次要文字 */
  --text-muted:     #718096;  /* 弱化文字 */
  --text-quiet:     #a0aec0;  /* 最弱 */

  /* --- 政府红主色 --- */
  --red-primary:   #c41e3a;  /* 中国红 */
  --red-dark:      #9b1b30;  /* 深红 */
  --red-light:     #e53e4e;  /* 亮红 */
  --red-muted:     rgba(196,30,58,0.08);
  --red-bg:        rgba(196,30,58,0.06);

  /* --- 金色点缀 --- */
  --gold:          #c9922b;  /* 古金色 */
  --gold-light:    #e8b84b;  /* 亮金 */
  --gold-muted:    rgba(201,146,43,0.12);

  /* --- 功能色 --- */
  --success:      #27a644;
  --success-bg:   rgba(39,166,68,0.08);
  --success-border: rgba(39,166,68,0.2);
  --warning:      #d97706;
  --warning-bg:   rgba(217,119,6,0.08);
  --warning-border: rgba(217,119,6,0.2);
  --error:        #e53e3e;
  --error-bg:     rgba(229,62,62,0.08);
  --error-border: rgba(229,62,62,0.2);
  --info:         #2b6cb0;
  --info-bg:      rgba(43,108,176,0.08);
  --info-border:  rgba(43,108,176,0.2);

  /* --- 层级色 --- */
  --level-national-bg:  rgba(196,30,58,0.08);
  --level-national-text: #c41e3a;
  --level-provincial-bg: rgba(39,166,68,0.08);
  --level-provincial-text: #27a644;
  --level-city-bg:      rgba(43,108,176,0.08);
  --level-city-text:    #2b6cb0;

  /* --- 边框 --- */
  --border:        rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.12);
  --border-red:    rgba(196,30,58,0.2);

  /* --- 阴影 — 官方层次感 --- */
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.06);
  --shadow-card:    0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-raised:  0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-modal:   0 20px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.08);
  --shadow-red:     0 4px 20px rgba(196,30,58,0.2);

  /* --- 圆角 --- */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  12px;
  --r-xl:  16px;
  --r-2xl: 24px;
  --r-pill: 9999px;

  /* --- 间距 --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* --- 过渡 --- */
  --t-fast: 0.15s ease;
  --t-normal: 0.25s ease;
}

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

html, body {
  height: 100%;
  font-family: 'Noto Sans SC', 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

/* 滚动条 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

::selection { background: rgba(196,30,58,0.15); color: var(--text-primary); }

/* ============================================
   登录页 — 左右双栏布局
   ============================================ */
.login-layout {
  min-height: 100vh;
  display: flex;
}

/* --- 左侧品牌区 --- */
.login-brand {
  flex: 0 0 55%;
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #1a1a2e 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Canvas 粒子背景 */
#particleCanvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* 背景几何装饰 */
.login-brand::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(196,30,58,0.25);
  border-radius: 50%;
  z-index: 3;
}

.login-brand::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 350px;
  height: 350px;
  border: 1px solid rgba(201,146,43,0.2);
  border-radius: 50%;
  z-index: 3;
}

.brand-decoration {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 3;
  background:
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(196,30,58,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 80% 20%, rgba(201,146,43,0.1) 0%, transparent 60%);
}

/* 国徽元素 */
.brand-emblem {
  position: relative;
  z-index: 3;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--red-primary), var(--red-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  box-shadow: 0 0 60px rgba(196,30,58,0.4), 0 0 0 8px rgba(196,30,58,0.1);
  animation: emblemPulse 3s ease-in-out infinite;
}

@keyframes emblemPulse {
  0%, 100% { box-shadow: 0 0 60px rgba(196,30,58,0.4), 0 0 0 8px rgba(196,30,58,0.1); }
  50% { box-shadow: 0 0 80px rgba(196,30,58,0.5), 0 0 0 12px rgba(196,30,58,0.08); }
}

.brand-emblem svg { width: 50px; height: 50px; }

.brand-title {
  position: relative;
  z-index: 3;
  font-family: 'Noto Serif SC', serif;
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 4px;
  text-align: center;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.brand-subtitle {
  position: relative;
  z-index: 3;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 8px;
  text-align: center;
  font-weight: 300;
}

/* 底部标语 */
.brand-footer {
  position: absolute;
  bottom: 40px;
  left: 0; right: 0;
  text-align: center;
  z-index: 3;
}

.brand-slogan {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 2px;
}

/* 装饰线 */
.brand-divider {
  position: relative;
  z-index: 3;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-primary), transparent);
  margin: 20px auto;
}

/* --- 右侧表单区 --- */
.login-form-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  position: relative;
}

.login-card {
  width: 100%;
  max-width: 400px;
}

.login-header {
  margin-bottom: 40px;
}

.login-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.login-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-red);
}

.login-logo-icon svg { width: 24px; height: 24px; }

.login-logo-text {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.login-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

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

/* --- 表单样式 --- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.form-input-wrapper {
  position: relative;
}

.form-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-quiet);
  pointer-events: none;
  transition: color var(--t-fast);
}

.form-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: var(--bg-panel);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  font-size: 14px;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  -webkit-appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--red-primary);
  box-shadow: 0 0 0 4px rgba(196,30,58,0.08);
}

.form-input:focus + .form-input-icon,
.form-input-icon:focus {
  color: var(--red-primary);
}

.form-input::placeholder { color: var(--text-quiet); }

/* 密码显示切换 */
.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-quiet);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color var(--t-fast);
}

.password-toggle:hover { color: var(--text-secondary); }
.password-toggle svg { width: 16px; height: 16px; }

/* 记住我 & 忘记密码 */
.remember-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
}

.remember-me input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--red-primary);
  cursor: pointer;
  border-radius: 3px;
}

.forgot-link {
  font-size: 13px;
  color: var(--red-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--t-fast);
}

.forgot-link:hover { color: var(--red-dark); text-decoration: underline; }

/* --- 主按钮 --- */
.btn-primary {
  width: 100%;
  padding: 13px 24px;
  background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
  border: none;
  border-radius: var(--r-lg);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all var(--t-fast);
  font-family: inherit;
  letter-spacing: 1px;
  box-shadow: var(--shadow-red);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(196,30,58,0.35);
  background: linear-gradient(135deg, var(--red-light), var(--red-primary));
}

.btn-primary:hover::before { left: 100%; }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

/* --- 提示 --- */
.alert {
  padding: 12px 16px;
  border-radius: var(--r-md);
  margin-bottom: 16px;
  font-size: 13px;
  display: none;
  border: 1px solid;
  animation: fadeIn 0.2s ease;
}

.alert-success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success);
}

.alert-error {
  background: var(--error-bg);
  border-color: var(--error-border);
  color: var(--error);
}

.alert.show { display: flex; align-items: center; gap: 8px; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- 加载动画 --- */
.loading::after {
  content: '';
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --- 登录切换 --- */
.switch-text {
  text-align: center;
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-muted);
}

.switch-text a {
  color: var(--red-primary);
  text-decoration: none;
  font-weight: 600;
}

.switch-text a:hover { color: var(--red-dark); text-decoration: underline; }

/* --- 分隔线 --- */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-quiet);
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============================================
   主布局
   ============================================ */
.main-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- 顶部导航 --- */
.navbar {
  height: 60px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

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

.navbar-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(196,30,58,0.25);
}

.navbar-logo svg { width: 20px; height: 20px; }

.navbar-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar-clock {
  font-size: 13px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.navbar-username {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.btn-logout {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-fast);
  font-family: inherit;
}

.btn-logout:hover {
  background: var(--error-bg);
  border-color: var(--error-border);
  color: var(--error);
}

/* --- 主内容区 --- */
.main-content {
  flex: 1;
  padding: 32px 40px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* ============================================
   Hero 统计区
   ============================================ */
.hero-section { margin-bottom: 32px; }

.hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red-primary);
  border-radius: var(--r-xl);
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 300px;
  height: 100%;
  background: radial-gradient(ellipse at right, rgba(196,30,58,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 28px;
  letter-spacing: 0.5px;
  position: relative;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.stat-item { text-align: center; }

.stat-value {
  font-size: 34px;
  font-weight: 700;
  color: var(--red-primary);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* 统计卡片悬停红线 */
.stat-item::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--red-primary);
  margin: 8px auto 0;
  transform: scaleX(0);
  transition: transform var(--t-normal);
}

.stat-item:hover::after { transform: scaleX(1); }

/* ============================================
   筛选栏
   ============================================ */
.filter-section { margin-bottom: 24px; }

.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

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

.filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.filter-select,
.filter-input {
  padding: 8px 32px 8px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--text-primary);
  font-family: inherit;
  min-width: 110px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.filter-select:focus,
.filter-input:focus {
  outline: none;
  border-color: var(--red-primary);
  box-shadow: 0 0 0 3px rgba(196,30,58,0.08);
}

.filter-input {
  min-width: 180px;
}

.filter-input::placeholder { color: var(--text-quiet); }

/* 搜索按钮 */
.btn-search {
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
  border: none;
  border-radius: var(--r-md);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
  font-family: inherit;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(196,30,58,0.2);
}

.btn-search:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(196,30,58,0.3);
}

.btn-search svg { width: 14px; height: 14px; }

/* --- 排序/计数栏 --- */
.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sort-count {
  font-size: 13px;
  color: var(--text-muted);
}

.sort-count strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================================
   政策卡片网格
   ============================================ */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.policy-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 20px;
  cursor: pointer;
  transition: all var(--t-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.policy-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--red-primary);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform var(--t-normal);
}

.policy-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-raised);
  transform: translateY(-2px);
}

.policy-card:hover::before { transform: scaleY(1); }

.policy-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.policy-level {
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--r-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.level-national {
  background: var(--level-national-bg);
  color: var(--level-national-text);
}

.level-provincial {
  background: var(--level-provincial-bg);
  color: var(--level-provincial-text);
}

.level-city {
  background: var(--level-city-bg);
  color: var(--level-city-text);
}

.policy-level:not(.level-national):not(.level-provincial):not(.level-city) {
  background: var(--bg-surface);
  color: var(--text-muted);
}

/* 卡片顶部红色渐变条 */
.card-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-primary), var(--gold));
  opacity: 0;
  transition: opacity var(--t-normal);
}

.policy-card:hover .card-accent { opacity: 1; }

.policy-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.policy-tag {
  padding: 3px 8px;
  font-size: 11px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-muted);
}

.policy-reward {
  font-size: 18px;
  font-weight: 700;
  color: var(--red-primary);
  margin-bottom: 6px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.5px;
}

.policy-reward small {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  font-family: 'Noto Sans SC', sans-serif;
}

.policy-date {
  font-size: 12px;
  color: var(--text-quiet);
}

.policy-deadline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--r-md);
  font-size: 11px;
  font-weight: 600;
  color: var(--warning);
  margin-top: 10px;
}

.policy-deadline.urgent {
  background: var(--error-bg);
  border-color: var(--error-border);
  color: var(--error);
}

.policy-deadline svg { width: 12px; height: 12px; flex-shrink: 0; }

.no-data {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  color: var(--text-quiet);
  font-size: 14px;
}

/* ============================================
   分页
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 40px;
}

.pagination-btn {
  min-width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast);
  font-family: inherit;
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--red-primary);
  color: var(--red-primary);
  background: var(--red-bg);
}

.pagination-btn.active {
  background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
  border-color: var(--red-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(196,30,58,0.2);
}

.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pagination-dots {
  padding: 0 8px;
  color: var(--text-quiet);
  font-size: 13px;
}

/* ============================================
   政策详情页
   ============================================ */
.detail-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 40px;
}

.detail-header { margin-bottom: 24px; }

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--t-fast);
  font-family: inherit;
  box-shadow: var(--shadow-sm);
}

.btn-back:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
  background: var(--red-bg);
}

.btn-back svg { width: 14px; height: 14px; }

.simulated-badge {
  display: inline-block;
  background: #ff3b30;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255,59,48,0.4);
}

.detail-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--red-primary);
}

.detail-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.4;
  letter-spacing: 0.3px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

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

.detail-meta-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.detail-meta-item strong { color: var(--text-secondary); font-weight: 500; }

/* 奖补金额 */
.detail-reward {
  background: linear-gradient(135deg, rgba(196,30,58,0.04), rgba(201,146,43,0.04));
  border: 1px solid var(--border-red);
  border-radius: var(--r-xl);
  padding: 28px;
  text-align: center;
  margin-bottom: 28px;
}

.detail-reward-amount {
  font-size: 40px;
  font-weight: 700;
  color: var(--red-primary);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -1px;
  margin-bottom: 6px;
}

.detail-reward-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* 内容区块 */
.detail-section { margin-bottom: 24px; }

.detail-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--red-primary);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-section-title svg { width: 16px; height: 16px; flex-shrink: 0; }

.detail-section-content {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.9;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 申报时间 */
.detail-deadline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--r-lg);
  margin-top: 24px;
}

.detail-deadline-label {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-deadline-label svg { width: 14px; height: 14px; }

.detail-deadline-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--warning);
}

.detail-deadline-value.urgent { color: var(--error); }
.detail-deadline-value.expired { color: var(--text-quiet); }

/* 原文链接 */
.btn-source {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--t-fast);
  margin-top: 28px;
  font-family: inherit;
}

.btn-source:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
  background: var(--red-bg);
}

.btn-source svg { width: 14px; height: 14px; }

/* ============================================
   管理后台
   ============================================ */
.admin-layout {
  min-height: 100vh;
  display: flex;
  background: var(--bg-page);
}

.admin-sidebar {
  width: 230px;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
}

.admin-sidebar-header {
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 16px;
}

.admin-sidebar-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
}

.admin-nav { list-style: none; }

.admin-nav-item { margin-bottom: 2px; }

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: all var(--t-fast);
  border-left: 3px solid transparent;
}

.admin-nav-link:hover {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.8);
}

.admin-nav-link.active {
  background: rgba(196,30,58,0.2);
  color: #ffffff;
  border-left-color: var(--red-primary);
}

.admin-nav-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.admin-main {
  flex: 1;
  margin-left: 230px;
  padding: 28px 32px;
  min-height: 100vh;
}

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

.admin-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.admin-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.admin-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* 表格 */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-quiet);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg-surface);
}

.data-table td {
  font-size: 13px;
  color: var(--text-secondary);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-surface); }

.user-status {
  display: inline-block;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--r-sm);
}

.status-pending {
  background: var(--warning-bg);
  color: var(--warning);
}

.status-approved {
  background: var(--success-bg);
  color: var(--success);
}

.status-rejected {
  background: var(--error-bg);
  color: var(--error);
}

/* 操作按钮 */
.btn-group { display: flex; gap: 8px; }

.btn-approve,
.btn-reject,
.btn-edit,
.btn-delete {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--t-fast);
  font-family: inherit;
  border: 1px solid;
}

.btn-approve {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success);
}

.btn-approve:hover { background: rgba(39,166,68,0.15); }

.btn-reject {
  background: var(--error-bg);
  border-color: var(--error-border);
  color: var(--error);
}

.btn-reject:hover { background: rgba(229,62,62,0.15); }

.btn-edit {
  background: var(--info-bg);
  border-color: var(--info-border);
  color: var(--info);
}

.btn-edit:hover { background: rgba(43,108,176,0.15); }

.btn-delete {
  background: var(--error-bg);
  border-color: var(--error-border);
  color: var(--error);
}

.btn-delete:hover { background: rgba(229,62,62,0.15); }

/* 表单 */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.form-row-full { grid-column: 1 / -1; }

.form-textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px 14px;
  background: var(--bg-panel);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--text-primary);
  font-family: inherit;
  resize: vertical;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  -webkit-appearance: none;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--red-primary);
  box-shadow: 0 0 0 3px rgba(196,30,58,0.08);
}

/* 配置项 */
.config-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 10px;
}

.config-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.config-value {
  font-size: 12px;
  color: var(--text-quiet);
  font-family: 'JetBrains Mono', monospace;
}

.btn-trigger {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
  border: none;
  border-radius: var(--r-md);
  color: #fff;
  cursor: pointer;
  transition: all var(--t-fast);
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(196,30,58,0.2);
}

.btn-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(196,30,58,0.3);
}

.btn-trigger:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1100px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .policy-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .login-brand { flex: 0 0 45%; }
}

@media (max-width: 900px) {
  .login-layout { flex-direction: column; }
  .login-brand {
    flex: none;
    min-height: 260px;
  }
  .brand-title { font-size: 22px; letter-spacing: 2px; }
  .login-form-area { padding: 40px 24px; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .navbar-title { display: none; }
  .navbar-clock { display: none; }
  .main-content { padding: 20px; }
  .hero-card { padding: 24px; }
  .hero-title { font-size: 16px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-value { font-size: 26px; }
  .filter-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .filter-group { width: 100%; }
  .filter-select, .filter-input { width: 100%; min-width: unset; }
  .btn-search { margin-left: 0; width: 100%; justify-content: center; }
  .policy-grid { grid-template-columns: 1fr; }
  .admin-sidebar { width: 190px; }
  .admin-main { margin-left: 190px; }
  .detail-container { padding: 20px; }
  .detail-card { padding: 24px; }
  .detail-title { font-size: 18px; }
  .detail-reward-amount { font-size: 30px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================
   登录页 — 响应式布局
   ============================================ */

/* 平板竖屏 768px - 1024px */
@media (max-width: 1024px) {
  .login-layout {
    flex-direction: column;
    min-height: 100vh;
  }

  /* 左侧品牌区 → 顶部横条 */
  .login-brand {
    flex: none;
    min-height: 220px;
    padding: 32px 24px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0 32px;
  }

  #particleCanvas {
    display: none; /* 平板隐藏粒子减轻负担 */
  }

  /* 隐藏装饰性元素，保留核心信息 */
  .login-brand::before,
  .login-brand::after,
  .brand-decoration {
    display: none;
  }

  .brand-emblem {
    width: 80px;
    height: 80px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .brand-emblem svg { width: 40px; height: 40px; }

  .brand-title {
    font-size: 22px;
    margin-bottom: 0;
    text-align: left;
  }

  .brand-divider { display: none; }

  .brand-subtitle {
    font-size: 12px;
    letter-spacing: 4px;
    margin-top: 4px;
    text-align: left;
  }

  /* 隐藏数据亮点和底部标语 */
  .login-brand > div[style*="position: relative; z-index: 2"] { display: none; }
  .brand-footer { display: none; }

  /* 右侧表单 */
  .login-form-area {
    flex: 1;
    padding: 40px 32px;
  }

  .login-card {
    max-width: 420px;
    margin: 0 auto;
  }

  .login-header { margin-bottom: 28px; }
  .login-title { font-size: 22px; }
}

/* 手机 480px - 768px */
@media (max-width: 768px) {
  .login-brand {
    min-height: 180px;
    padding: 24px 20px;
    gap: 0 20px;
  }

  .brand-emblem {
    width: 64px;
    height: 64px;
  }

  .brand-emblem svg { width: 32px; height: 32px; }

  .brand-title {
    font-size: 18px;
    letter-spacing: 2px;
  }

  .brand-subtitle {
    font-size: 11px;
    letter-spacing: 3px;
  }

  .login-form-area {
    padding: 32px 20px;
  }

  .login-card { max-width: 100%; }

  .login-header { margin-bottom: 24px; }

  .login-logo-icon {
    width: 36px;
    height: 36px;
  }

  .login-logo-icon svg { width: 20px; height: 20px; }

  .login-logo-text { font-size: 15px; }

  .login-title { font-size: 20px; }
  .login-desc { font-size: 13px; }

  .form-group { margin-bottom: 18px; }
  .form-label { font-size: 13px; }
  .form-input { height: 42px; font-size: 14px; }

  .remember-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .btn-primary {
    height: 44px;
    font-size: 15px;
  }
}

/* 小屏手机 < 480px */
@media (max-width: 480px) {
  .login-brand {
    min-height: 140px;
    padding: 20px 16px;
    gap: 0 14px;
  }

  .brand-emblem {
    width: 52px;
    height: 52px;
  }

  .brand-emblem svg { width: 26px; height: 26px; }

  .brand-title {
    font-size: 15px;
    letter-spacing: 1px;
  }

  .brand-subtitle {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .login-form-area {
    padding: 24px 16px;
  }

  .login-logo-row { margin-bottom: 18px; }

  .login-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .login-logo-icon svg { width: 18px; height: 18px; }

  .login-logo-text { font-size: 14px; }

  .login-title { font-size: 18px; }
  .login-desc { font-size: 12px; }

  .login-header { margin-bottom: 20px; }

  .form-group { margin-bottom: 16px; }
  .form-label { font-size: 12px; margin-bottom: 6px; }
  .form-input {
    height: 40px;
    font-size: 14px;
    padding: 0 12px;
    border-radius: var(--r-md);
  }
  .form-input-icon { display: none; }

  .password-toggle { display: flex; }

  .remember-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
  }

  .remember-me span { font-size: 12px; }
  .forgot-link { font-size: 12px; }

  .btn-primary {
    height: 42px;
    font-size: 14px;
    border-radius: var(--r-md);
  }

  .divider {
    margin: 18px 0;
    font-size: 12px;
  }

  .switch-text { font-size: 13px; }
  .switch-text a { font-size: 13px; }

  .alert {
    font-size: 12px;
    padding: 10px 14px;
    border-radius: var(--r-md);
  }
}

/* 极小屏 < 360px */
@media (max-width: 360px) {
  .login-brand {
    min-height: 110px;
    padding: 16px 12px;
  }

  .brand-emblem { width: 44px; height: 44px; }
  .brand-emblem svg { width: 22px; height: 22px; }

  .brand-title { font-size: 13px; }
  .brand-subtitle { font-size: 9px; }

  .login-form-area { padding: 20px 12px; }
  .login-title { font-size: 16px; }
}

/* 平板横屏 (landscape) 调节高度 */
@media (max-height: 600px) and (orientation: landscape) {
  .login-brand {
    min-height: auto;
    padding: 20px 24px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 24px;
  }

  .brand-emblem {
    width: 60px;
    height: 60px;
    margin-bottom: 0;
  }

  .brand-title { font-size: 18px; }
  .login-brand > div[style*="position: relative; z-index: 2"] { display: none; }
  .brand-footer { display: none; }

  .login-form-area {
    padding: 20px 32px;
  }

  .login-card { max-width: 380px; }
  .login-header { margin-bottom: 20px; }
}

/* ============================================
   通用响应式工具
   ============================================ */

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-value { font-size: 22px; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .detail-deadline { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* 工具类 */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }

:focus-visible {
  outline: 2px solid var(--red-primary);
  outline-offset: 2px;
}

html { scroll-behavior: smooth; }
