/* ==========================================================================
   《步云录》官方公文与干部履历视觉样式体系
   设计哲学：当代党政机关公文红头风格 + 严肃官场档案质感 + 沉浸式决策博弈
   ========================================================================== */

:root {
  --primary-red: #b01b1b;
  --primary-red-hover: #8f1212;
  --seal-red: #c92a2a;
  --gold-accent: #d4a017;
  --gold-light: #fef3c7;
  --gov-navy: #1b2838;
  --gov-navy-light: #2c3e50;
  --paper-bg: #f8f6f0;
  --paper-card: #ffffff;
  --paper-border: #ded7c8;
  --paper-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  --ink-black: #1a1a1a;
  --ink-gray: #4a4a4a;
  --ink-muted: #767676;
  --danger-red: #e03131;
  --safe-green: #2b8a3e;
  --blue-badge: #1971c2;
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  background: #ece8df;
  color: var(--ink-black);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(176, 27, 27, 0.03) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(27, 40, 56, 0.03) 0%, transparent 25%);
}

/* ==========================================================================
   顶栏：系统党政公文风 Header
   ========================================================================== */
.app-header {
  background: var(--gov-navy);
  color: #ffffff;
  padding: 12px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--primary-red);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.emblem-seal {
  width: 40px;
  height: 40px;
  border: 2px solid var(--gold-accent);
  color: var(--gold-accent);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 900;
  background: rgba(212, 160, 23, 0.12);
  box-shadow: inset 0 0 6px rgba(212, 160, 23, 0.3);
}

.brand-titles .game-title {
  font-family: var(--font-serif);
  font-size: 24px;
  letter-spacing: 5px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
}

.brand-titles .game-subtitle {
  font-size: 11px;
  color: #adb5bd;
  letter-spacing: 1px;
}

.header-controls {
  display: flex;
  gap: 10px;
}

.ctrl-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f3f5;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
}

.ctrl-btn.danger:hover {
  background: var(--danger-red);
  border-color: var(--danger-red);
}

/* ==========================================================================
   主容器布局
   ========================================================================== */
.main-container {
  flex: 1;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  position: relative;
}

.screen-panel {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.screen-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   一、开局创建角色界面
   ========================================================================== */
.creation-wrapper {
  background: var(--paper-card);
  border: 1px solid var(--paper-border);
  border-top: 6px solid var(--primary-red);
  box-shadow: var(--paper-shadow);
  border-radius: 6px;
  padding: 32px 40px;
  max-width: 1080px;
  margin: 10px auto;
}

.creation-header {
  text-align: center;
  margin-bottom: 28px;
  border-bottom: 1px dashed var(--paper-border);
  padding-bottom: 18px;
}

.creation-header h2 {
  font-family: var(--font-serif);
  font-size: 30px;
  color: var(--primary-red);
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.creation-header .desc {
  font-size: 14px;
  color: var(--ink-muted);
}

.form-section {
  margin-bottom: 26px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--gov-navy);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  border-left: 4px solid var(--primary-red);
  padding-left: 10px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

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

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-gray);
}

.form-group input,
.form-group select {
  padding: 10px 12px;
  border: 1px solid var(--paper-border);
  border-radius: 4px;
  font-size: 14px;
  background: var(--paper-bg);
  color: var(--ink-black);
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary-red);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(176, 27, 27, 0.15);
}

/* 选项卡网格 */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.selection-card {
  border: 1.5px solid var(--paper-border);
  background: var(--paper-bg);
  border-radius: 6px;
  padding: 14px 16px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.selection-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-red);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.selection-card.selected {
  border-color: var(--primary-red);
  background: #fff8f8;
  box-shadow: 0 0 0 2px var(--primary-red);
}

.selection-card.selected::after {
  content: "✔ 已选";
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 11px;
  font-weight: bold;
  color: var(--primary-red);
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.card-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-black);
}

.card-badge {
  font-size: 11px;
  background: rgba(176, 27, 27, 0.1);
  color: var(--primary-red);
  padding: 2px 6px;
  border-radius: 3px;
}

.card-desc {
  font-size: 12px;
  color: var(--ink-gray);
  line-height: 1.5;
  margin-bottom: 10px;
}

.card-trait {
  font-size: 11px;
  color: var(--safe-green);
  background: #f4fbf6;
  border: 1px dashed #b2f2bb;
  padding: 4px 8px;
  border-radius: 4px;
}

/* 属性点分配 */
.points-allocation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  background: var(--paper-bg);
  padding: 18px;
  border-radius: 6px;
  border: 1px solid var(--paper-border);
}

.point-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 4px;
  border: 1px solid var(--paper-border);
}

.point-name {
  font-weight: 600;
  font-size: 14px;
  display: block;
}

.point-tip {
  font-size: 11px;
  color: var(--ink-muted);
  display: block;
}

.point-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-point {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--paper-border);
  background: #f8f9fa;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-point:hover {
  background: var(--primary-red);
  color: #ffffff;
  border-color: var(--primary-red);
}

.point-val {
  font-weight: 700;
  font-size: 16px;
  min-width: 24px;
  text-align: center;
  color: var(--primary-red);
}

.highlight-num {
  color: var(--primary-red);
  font-size: 19px;
  font-weight: 800;
}

.creation-submit {
  text-align: center;
  margin-top: 30px;
}

.btn-primary-large {
  background: var(--primary-red);
  color: #ffffff;
  border: none;
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 2px;
  font-weight: 700;
  padding: 14px 48px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(176, 27, 27, 0.35);
  transition: var(--transition);
}

.btn-primary-large:hover {
  background: var(--primary-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(176, 27, 27, 0.45);
}

/* ==========================================================================
   二、主游戏运行界面布局
   ========================================================================== */
#screen-game {
  display: none;
}

#screen-game.active {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
}

@media (max-width: 1080px) {
  #screen-game.active {
    grid-template-columns: 1fr;
  }
}

/* 侧边仪表盘 */
.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: var(--paper-card);
  border: 1px solid var(--paper-border);
  border-radius: 6px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card-heading {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--gov-navy);
  border-bottom: 1px solid var(--paper-border);
  padding-bottom: 8px;
  margin-bottom: 12px;
  font-weight: 700;
}

/* 身份公章卡 */
.dossier-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border-left: 5px solid var(--primary-red);
  background: linear-gradient(135deg, #ffffff 0%, #fbf8f3 100%);
}

.cadre-avatar-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px double var(--seal-red);
  background: #fff0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(201, 42, 42, 0.2);
}

.cadre-rank-seal {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 900;
  color: var(--seal-red);
  text-align: center;
  line-height: 1.1;
  padding: 4px;
}

.cadre-identity {
  flex: 1;
}

.cadre-name-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cadre-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-black);
}

.cadre-age {
  font-size: 12px;
  color: var(--ink-muted);
}

.cadre-post {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-red);
  margin-top: 2px;
}

.cadre-location {
  font-size: 11px;
  color: var(--ink-muted);
}

.cadre-level-tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  background: var(--gov-navy);
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 3px;
}

/* 状态条 */
.stat-meter-box {
  margin-bottom: 12px;
}

.meter-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.meter-track {
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.meter-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.fill-power {
  background: linear-gradient(90deg, #f59f00, #d9480f);
}

.fill-danger {
  background: linear-gradient(90deg, #fab005, #e03131);
}

.fill-health {
  background: linear-gradient(90deg, #40c057, #2f9e44);
}

.fill-governance {
  background: linear-gradient(90deg, #228be6, #1971c2);
}

.fill-sense {
  background: linear-gradient(90deg, #845ef7, #5f3dc4);
}

.stat-subtext {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 3px;
}

.text-gold {
  color: #d9480f;
  font-weight: 700;
}

.text-red {
  color: #e03131;
  font-weight: 700;
}

.text-blue {
  color: #1971c2;
  font-weight: 700;
}

.text-green {
  color: #2b8a3e;
  font-weight: 700;
}

/* 资产卡 */
.wealth-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--paper-border);
}

.wealth-tip {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 8px;
  font-style: italic;
}

/* 人脉网络 */
.network-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.net-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.net-title {
  width: 90px;
  font-size: 11px;
  color: var(--ink-gray);
  flex-shrink: 0;
}

.net-track {
  flex: 1;
  height: 6px;
  background: #e9ecef;
  border-radius: 3px;
  overflow: hidden;
}

.net-fill {
  height: 100%;
  background: var(--gov-navy-light);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.net-num {
  width: 24px;
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  color: var(--gov-navy);
}

/* 任期与考察按钮 */
.tenure-card {
  text-align: center;
  background: #fbfbf9;
}

.tenure-info {
  margin-bottom: 10px;
}

.tenure-label {
  font-size: 12px;
  color: var(--ink-muted);
}

.tenure-years {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-black);
  display: block;
  margin-top: 2px;
}

.btn-promotion {
  width: 100%;
  padding: 10px;
  background: var(--gold-accent);
  color: #1a1a1a;
  border: 1px solid #c69500;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(212, 160, 23, 0.25);
}

.btn-promotion:hover:not(:disabled) {
  background: #e5b11c;
  transform: translateY(-1px);
}

.btn-promotion:disabled {
  background: #ced4da;
  border-color: #adb5bd;
  color: #868e96;
  cursor: not-allowed;
  box-shadow: none;
}

/* ==========================================================================
   舞台区域：时令横幅、公文事件、决策卡
   ========================================================================== */
.game-stage {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 岁月日历 Banner */
.calendar-banner {
  background: var(--paper-card);
  border: 1px solid var(--paper-border);
  border-radius: 6px;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.calendar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cal-badge {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-red);
}

.cal-quarter {
  font-size: 13px;
  color: var(--ink-gray);
  border-left: 2px solid var(--paper-border);
  padding-left: 10px;
}

.climate-tag {
  font-size: 12px;
  background: #e7f5ff;
  color: var(--blue-badge);
  border: 1px solid #a5d8ff;
  padding: 3px 8px;
  border-radius: 3px;
}

/* 红头公文档案纸 */
.event-dossier-paper {
  background: #fffefb;
  border: 1px solid #dcd4c0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  border-radius: 4px;
  padding: 28px 36px;
  position: relative;
  background-image:
    linear-gradient(rgba(220, 212, 192, 0.25) 1px, transparent 1px);
  background-size: 100% 28px;
}

.document-header {
  text-align: center;
  margin-bottom: 20px;
}

.doc-org-header {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 900;
  color: var(--primary-red);
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.doc-divider {
  height: 3px;
  background: var(--primary-red);
  position: relative;
  margin: 6px 0 10px 0;
}

.doc-divider::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--primary-red);
}

.doc-code-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 14px;
}

.doc-security {
  color: var(--primary-red);
  font-weight: 700;
  border: 1px solid var(--primary-red);
  padding: 1px 6px;
  border-radius: 2px;
}

.document-body {
  margin-bottom: 26px;
}

.document-subject {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink-black);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.4;
}

.document-content {
  font-size: 15px;
  line-height: 1.8;
  color: #2b2b2b;
  text-indent: 2em;
  text-align: justify;
}

/* 四选一选项容器 */
.choices-container {
  border-top: 1px dashed #dcd4c0;
  padding-top: 18px;
}

.choices-prompt {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--primary-red);
  margin-bottom: 14px;
}

.choices-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.choice-card {
  border: 1.5px solid #ded7c8;
  background: #ffffff;
  border-radius: 6px;
  padding: 14px 18px;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  outline: none;
}

.choice-card:hover {
  border-color: var(--primary-red);
  transform: translateX(4px);
  background: #fff8f8;
  box-shadow: 0 4px 12px rgba(176, 27, 27, 0.1);
}

.choice-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-black);
  line-height: 1.5;
}

.choice-effect {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.4;
}

.choice-tag {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 700;
}

.tag-safe {
  background: #ebfbee;
  color: #2b8a3e;
}

.tag-bold {
  background: #e7f5ff;
  color: #1971c2;
}

.tag-cunning {
  background: #fff4e6;
  color: #d9480f;
}

.tag-corrupt {
  background: #fff0f6;
  color: #c2255c;
}

/* 日常政务操作底栏 */
.actions-dock {
  background: var(--paper-card);
  border: 1px solid var(--paper-border);
  border-radius: 6px;
  padding: 14px 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.dock-title {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--gov-navy);
  margin-bottom: 10px;
}

.dock-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.dock-btn {
  background: var(--paper-bg);
  border: 1px solid var(--paper-border);
  border-radius: 4px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.dock-btn:hover {
  background: #ffffff;
  border-color: var(--primary-red);
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.btn-icon {
  font-size: 20px;
}

.btn-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-black);
}

/* 履历纪事流 */
.chronicle-log-panel {
  background: var(--paper-card);
  border: 1px solid var(--paper-border);
  border-radius: 6px;
  padding: 14px 18px;
}

.log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--gov-navy);
  border-bottom: 1px solid var(--paper-border);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.text-btn {
  background: none;
  border: none;
  font-size: 11px;
  color: var(--ink-muted);
  cursor: pointer;
}

.text-btn:hover {
  color: var(--primary-red);
}

.log-stream {
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 6px;
}

.log-entry {
  font-size: 12px;
  line-height: 1.5;
  padding: 6px 10px;
  background: var(--paper-bg);
  border-radius: 4px;
  border-left: 3px solid var(--ink-muted);
}

.log-entry.log-promo {
  border-left-color: var(--gold-accent);
  background: #fefce8;
}

.log-entry.log-danger {
  border-left-color: var(--danger-red);
  background: #fff5f5;
}

.log-entry.log-gain {
  border-left-color: var(--safe-green);
  background: #f4fbf6;
}

.log-time {
  font-size: 11px;
  color: var(--ink-muted);
  margin-right: 6px;
}

/* ==========================================================================
   弹窗体系：组织部考察 / 干部档案 / 结局
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-in-out;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid var(--paper-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-card.modal-large {
  max-width: 820px;
}

.modal-header {
  background: var(--gov-navy);
  color: #ffffff;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--primary-red);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: 1px;
}

.modal-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 24px;
  font-size: 14px;
  line-height: 1.7;
}

.modal-footer {
  padding: 14px 24px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-footer.center {
  justify-content: center;
}

.btn-primary {
  background: var(--primary-red);
  color: #ffffff;
  border: none;
  padding: 8px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

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

/* 结局弹窗特殊公章与样式 */
.modal-ending {
  text-align: center;
  position: relative;
  padding: 20px 0;
  border-top: 8px solid var(--seal-red);
}

.ending-seal {
  position: absolute;
  top: 20px;
  right: 30px;
  width: 90px;
  height: 90px;
  border: 3px double var(--seal-red);
  color: var(--seal-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 900;
  transform: rotate(-15deg);
  opacity: 0.85;
  box-shadow: 0 0 10px rgba(201, 42, 42, 0.2);
}

.ending-title {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--gov-navy);
  margin-bottom: 8px;
}

.ending-rank-badge {
  display: inline-block;
  background: var(--gold-light);
  color: #b45309;
  border: 1px solid #fde68a;
  padding: 4px 14px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 20px;
}

.ending-narrative {
  text-align: justify;
  text-indent: 2em;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-black);
  margin: 0 36px 24px 36px;
  background: #fdfbf7;
  padding: 20px;
  border: 1px solid #eee7db;
  border-radius: 4px;
  white-space: pre-wrap;
}

.ending-stats-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 0 36px;
}

.ending-stat-box {
  background: #f8f9fa;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #e9ecef;
}

.ending-stat-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-red);
  display: block;
}

.ending-stat-label {
  font-size: 11px;
  color: var(--ink-muted);
}

/* 组织考察公文卡片 */
.promo-step-card {
  border: 1px solid var(--paper-border);
  background: var(--paper-bg);
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.promo-step-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--gov-navy);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.promo-status-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
}

.badge-pass {
  background: #d3f9d8;
  color: #2b8a3e;
}

.badge-fail {
  background: #ffe3e3;
  color: #e03131;
}

/* 干部履历表格式 */
.dossier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 10px;
}

.dossier-table th,
.dossier-table td {
  border: 1px solid #c8c2b5;
  padding: 10px 14px;
}

.dossier-table th {
  background: #f2ece0;
  font-weight: 700;
  color: var(--gov-navy);
  width: 25%;
}

.dossier-table td {
  background: #ffffff;
}

/* 批办报告与执行实况卡片 */
.outcome-resolution-box {
  background: #fdfbf7;
  border: 1.5px solid #d4a017;
  border-radius: 6px;
  padding: 20px 24px;
  position: relative;
  box-shadow: 0 4px 14px rgba(212, 160, 23, 0.15);
  animation: fadeIn 0.3s ease-out;
}

.outcome-seal {
  position: absolute;
  top: 15px;
  right: 20px;
  width: 76px;
  height: 76px;
  border: 3px double var(--seal-red);
  color: var(--seal-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 900;
  transform: rotate(-12deg);
  opacity: 0.85;
}

.outcome-title {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--gov-navy);
  font-weight: 800;
  margin-bottom: 8px;
}

.outcome-choice-made {
  font-size: 14px;
  color: var(--ink-black);
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #ffffff;
  border-left: 4px solid var(--primary-red);
  border-radius: 3px;
}

.outcome-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #2b2b2b;
  margin-bottom: 16px;
}

.outcome-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.outcome-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-stat-gain {
  background: #ebfbee;
  color: #2b8a3e;
  border: 1px solid #b2f2bb;
}

.badge-stat-loss {
  background: #fff5f5;
  color: #e03131;
  border: 1px solid #ffc9c9;
}

.badge-stat-risk {
  background: #fff0f6;
  color: #c2255c;
  border: 1px solid #fcc2d7;
}

.badge-stat-wealth {
  background: #fff9db;
  color: #e67700;
  border: 1px solid #ffe066;
}

.outcome-next-btn {
  background: var(--primary-red);
  color: #ffffff;
  border: none;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 10px 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(176, 27, 27, 0.25);
}

.outcome-next-btn:hover {
  background: var(--primary-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(176, 27, 27, 0.35);
}

/* ==========================================================================
   新增扩展模块样式：区划级联、决策限次、房车商城、家庭人脉、三槽位存档
   ========================================================================== */

/* 区划级联选择与卡片 */
.division-selector-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.division-info-card {
  margin-top: 14px;
  background: #fdfbf7;
  border: 1.5px solid #d4a017;
  border-radius: 6px;
  padding: 12px 18px;
}

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

.div-full-path {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-red);
}

.div-badge {
  font-size: 11px;
  background: var(--gov-navy);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
}

.div-spec-desc {
  font-size: 12px;
  color: #555;
  line-height: 1.5;
}

/* 决策节奏与行动点徽章 */
.pacing-badge {
  font-size: 12px;
  background: #fff4e6;
  color: #d9480f;
  border: 1px solid #ffd8a8;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
}

.ap-badge {
  font-size: 12px;
  background: #e7f5ff;
  color: #1971c2;
  border: 1px solid #a5d8ff;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
  margin-right: 8px;
}

/* 资产面板快捷入口与月薪明细 */
.card-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--paper-border);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.card-heading-row .card-heading {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.mini-tag-btn {
  background: var(--gold-accent);
  color: #1a1a1a;
  border: none;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: var(--transition);
}

.mini-tag-btn:hover {
  background: #e5b11c;
  transform: translateY(-1px);
}

.salary-row {
  background: #fbf8f0;
  padding: 6px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* 日常政务操作底栏精力条说明 */
.dock-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.dock-ap-tip {
  font-size: 12px;
  color: var(--blue-badge);
  font-weight: 700;
}

/* 家庭人脉谱系模态框 */
.family-tree-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.family-member-card {
  background: #fdfbf7;
  border: 1.5px solid var(--paper-border);
  border-radius: 6px;
  padding: 16px;
  position: relative;
  transition: var(--transition);
}

.family-member-card:hover {
  border-color: var(--primary-red);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.fam-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  border-bottom: 1px dashed var(--paper-border);
  padding-bottom: 6px;
}

.fam-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 800;
  color: var(--gov-navy);
}

.fam-rel-tag {
  font-size: 11px;
  background: rgba(176, 27, 27, 0.1);
  color: var(--primary-red);
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 700;
}

.fam-meta-row {
  font-size: 13px;
  line-height: 1.8;
  color: #333;
}

.fam-meta-label {
  color: #777;
}

.fam-buff-box {
  background: #f4fbf6;
  border: 1px dashed #b2f2bb;
  padding: 12px 16px;
  border-radius: 6px;
  color: #2b8a3e;
  font-size: 13px;
  font-weight: 600;
}

/* 房车选配商城 */
.market-nav-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid var(--paper-border);
  margin-bottom: 16px;
}

.market-tab-btn {
  background: none;
  border: none;
  padding: 8px 18px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: #666;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.market-tab-btn.active {
  color: var(--primary-red);
}

.market-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-red);
}

.market-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.market-item-card {
  background: #ffffff;
  border: 1.5px solid var(--paper-border);
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
}

.market-item-card:hover {
  border-color: var(--primary-red);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.market-item-card.owned {
  background: #fcfbf9;
  border-color: #2b8a3e;
}

.market-card-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-black);
  margin-bottom: 4px;
}

.market-price-tag {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-red);
  margin-bottom: 8px;
}

.market-desc {
  font-size: 12px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 10px;
}

.market-risk-warning {
  font-size: 11px;
  background: #fff5f5;
  color: #e03131;
  padding: 3px 6px;
  border-radius: 3px;
  margin-bottom: 12px;
  border: 1px dashed #ffc9c9;
}

.market-btn-buy {
  background: var(--gov-navy);
  color: #ffffff;
  border: none;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.market-btn-buy:hover:not(:disabled) {
  background: var(--primary-red);
}

.market-btn-buy:disabled {
  background: #ced4da;
  cursor: not-allowed;
}

.market-owned-badge {
  display: inline-block;
  text-align: center;
  background: #ebfbee;
  color: #2b8a3e;
  border: 1px solid #b2f2bb;
  font-weight: 700;
  font-size: 12px;
  padding: 6px;
  border-radius: 4px;
  width: 100%;
}

/* 三槽位存档与调阅界面 */
.save-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.save-slot-card {
  border: 2px solid var(--paper-border);
  border-radius: 6px;
  background: #fdfbf7;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  transition: var(--transition);
}

.save-slot-card.has-data {
  border-color: #d4a017;
  background: #ffffff;
}

.save-slot-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.slot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--paper-border);
  padding-bottom: 6px;
}

.slot-num {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 800;
  color: var(--gov-navy);
}

.slot-time {
  font-size: 11px;
  color: #888;
}

.slot-empty-notice {
  text-align: center;
  color: #aaa;
  margin: auto 0;
  font-size: 14px;
  font-style: italic;
}

.slot-data-body {
  margin-bottom: 12px;
}

.slot-name-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.slot-char-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-red);
}

.slot-char-age {
  font-size: 12px;
  color: #666;
}

.slot-post-text {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.slot-stats-row {
  font-size: 11px;
  color: #666;
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

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

.slot-btn {
  flex: 1;
  padding: 6px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.slot-btn-save {
  background: var(--gold-accent);
  color: #1a1a1a;
}
.slot-btn-save:hover { background: #e5b11c; }

.slot-btn-load {
  background: var(--gov-navy);
  color: #ffffff;
}
.slot-btn-load:hover { background: var(--primary-red); }

.slot-btn-del {
  background: #fff5f5;
  color: #e03131;
  border-color: #ffc9c9;
  flex: 0 0 32px;
}
.slot-btn-del:hover { background: #ffe3e3; }

.save-file-ops {
  border-top: 1px dashed var(--paper-border);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.file-ops-tip {
  font-size: 12px;
  color: #666;
}

.file-ops-btns {
  display: flex;
  gap: 10px;
}

.import-btn-label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

/* ==========================================================================
   新增扩展模块样式：随机家庭预览、机关班子、婚恋联姻、官宦子嗣与传承
   ========================================================================== */

/* 随机家庭档案预览 */
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.family-preview-box {
  margin-top: 14px;
  background: #fdfbf7;
  border: 1.5px dashed #d4a017;
  border-radius: 6px;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.fam-prev-item {
  font-size: 13px;
  line-height: 1.6;
}

.fam-prev-title {
  font-weight: 700;
  color: var(--gov-navy);
  margin-bottom: 4px;
}

/* 机关领导班子与同僚心腹卡片 */
.workplace-card {
  background: var(--paper-card);
}

.mini-tag-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  background: #e9ecef;
  color: #666;
}

.mini-tag-badge.active {
  background: #ebfbee;
  color: #2b8a3e;
  border: 1px solid #b2f2bb;
  font-weight: 700;
}

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

.wp-person-item {
  background: #fdfbf7;
  border: 1px solid var(--paper-border);
  border-radius: 4px;
  padding: 8px 10px;
}

.wp-person-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.wp-role-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 2px;
}

.role-sup { background: #ffe3e3; color: #c92a2a; }
.role-peer { background: #e7f5ff; color: #1971c2; }
.role-sub { background: #fff3bf; color: #d9480f; }

.wp-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-black);
  flex: 1;
}

.wp-affinity {
  font-size: 11px;
  font-weight: 700;
  color: #666;
}

.wp-tip {
  font-size: 10px;
  color: #888;
  margin-top: 4px;
  line-height: 1.3;
}

/* 婚恋相亲与联姻大厅 */
.marriage-candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.marriage-card {
  background: #ffffff;
  border: 1.5px solid var(--paper-border);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
}

.marriage-card:hover {
  border-color: #f783ac;
  box-shadow: 0 4px 14px rgba(247, 131, 172, 0.15);
}

.marriage-card.married-active {
  border-color: #e03131;
  background: #fff8f8;
}

.marriage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #ded7c8;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.marriage-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 800;
  color: #c2255c;
}

.marriage-tier-tag {
  font-size: 11px;
  background: #fff0f6;
  color: #c2255c;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 700;
}

.marriage-meta-row {
  font-size: 12px;
  line-height: 1.7;
  color: #333;
}

.marriage-req-box {
  background: #f8f9fa;
  border: 1px dashed #ced4da;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 11px;
  color: #495057;
  margin: 10px 0;
}

.marriage-buff-box {
  background: #f4fbf6;
  border: 1px dashed #b2f2bb;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 11px;
  color: #2b8a3e;
  margin-bottom: 6px;
}

.marriage-debuff-box {
  background: #fff5f5;
  border: 1px dashed #ffc9c9;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 11px;
  color: #e03131;
  margin-bottom: 12px;
}

.btn-courtship {
  background: #d6336c;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.btn-courtship:hover:not(:disabled) {
  background: #c2255c;
  transform: translateY(-1px);
}

.btn-courtship:disabled {
  background: #ced4da;
  cursor: not-allowed;
}

.married-hero-box {
  background: #fff0f6;
  border: 2px solid #f783ac;
  border-radius: 6px;
  padding: 18px 24px;
  margin-bottom: 20px;
}

/* 官宦子嗣培育中心 */
.children-summary-box {
  background: #f8f9fa;
  border: 1px solid var(--paper-border);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-birth {
  background: var(--gold-accent);
  color: #1a1a1a;
  border: none;
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-birth:hover {
  background: #e5b11c;
}

.children-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.child-card {
  background: #ffffff;
  border: 1.5px solid var(--paper-border);
  border-radius: 6px;
  padding: 16px;
}

.child-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--paper-border);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.child-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 800;
  color: var(--gov-navy);
}

.child-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}

.child-stat-pill {
  background: #fdfbf7;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 12px;
  border: 1px solid #eee;
  display: flex;
  justify-content: space-between;
}

.child-edu-options {
  border-top: 1px dashed var(--paper-border);
  padding-top: 10px;
}

.edu-btn {
  background: #f1f3f5;
  border: 1px solid #ced4da;
  padding: 5px 8px;
  font-size: 11px;
  border-radius: 3px;
  cursor: pointer;
  margin: 2px;
}

.edu-btn.active {
  background: var(--primary-red);
  color: #ffffff;
  border-color: var(--primary-red);
}

/* 传承按钮 */
.btn-succession {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1ede4;
}

::-webkit-scrollbar-thumb {
  background: #c8c2b5;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a89f8f;
}

/* ==========================================
 * 实时原生家庭档案预览
 * ========================================== */
.family-preview-box {
  background: #fdfbf7;
  border: 1.5px dashed var(--gold-accent);
  border-radius: 6px;
  padding: 14px 18px;
  margin-top: 14px;
}

.fam-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #ded7c8;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.preview-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--gov-navy);
}

.preview-tag {
  font-size: 11px;
  background: #fff0f6;
  color: #c2255c;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 600;
}

.fam-preview-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .fam-preview-body {
    grid-template-columns: 1fr;
  }
}

.fam-preview-person {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.6;
}

.person-role {
  font-size: 13px;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.person-job {
  color: var(--primary-red);
  font-weight: 600;
}

.person-income {
  color: #2b8a3e;
  font-weight: 600;
}

.person-desc {
  color: #666;
  margin-top: 4px;
  font-size: 11px;
}

/* ==========================================
 * 婚恋候选池卡片与配偶档案
 * ========================================== */
.candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.candidate-card {
  background: #ffffff;
  border: 1.5px solid var(--paper-border);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.candidate-card:hover {
  border-color: #f783ac;
  box-shadow: 0 4px 12px rgba(247, 131, 172, 0.15);
}

.cand-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #ded7c8;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.cand-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 800;
  color: #c2255c;
}

.cand-badge {
  font-size: 11px;
  background: #fff0f6;
  color: #c2255c;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  font-weight: 600;
}

.cand-age {
  font-size: 12px;
  color: #888;
}

.cand-meta {
  font-size: 12px;
  line-height: 1.6;
  color: #333;
}

.cand-desc {
  font-size: 12px;
  color: #666;
  margin: 8px 0;
  line-height: 1.5;
}

.cand-buff {
  background: #f4fbf6;
  border: 1px dashed #b2f2bb;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 11px;
  color: #2b8a3e;
  margin-bottom: 8px;
}

.cand-req-box {
  background: #f8f9fa;
  border: 1px dashed #ced4da;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 11px;
  color: #495057;
  margin-bottom: 12px;
}

.cand-req-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0 0;
}

.cand-req-list li {
  margin-bottom: 2px;
}

.req-met {
  color: #2b8a3e;
  font-weight: 600;
}

.req-unmet {
  color: #e03131;
}

.btn-marry {
  width: 100%;
  background: #d6336c;
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
}

.btn-marry.disabled {
  background: #ced4da;
  cursor: not-allowed;
}

.spouse-profile-card {
  background: #fff0f6;
  border: 2px solid #f783ac;
  border-radius: 6px;
  padding: 20px;
}

.spouse-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #fcc2d7;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.spouse-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 800;
  color: #c2255c;
}

.spouse-status {
  font-size: 12px;
  background: #d6336c;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-weight: 500;
  margin-left: 8px;
}

.spouse-tag {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

.spouse-income-box {
  text-align: right;
}

.spouse-income-box .val {
  font-weight: 800;
  color: #2b8a3e;
  font-size: 15px;
}

.spouse-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 13px;
  color: #333;
  margin-bottom: 14px;
}

.spouse-buff-box {
  background: #ffffff;
  border: 1px solid #fcc2d7;
  border-radius: 4px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.6;
}

/* ==========================================
 * 子嗣培优中心
 * ========================================== */
.children-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #ded7c8;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.child-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #eee;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.child-gender-tag {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  font-weight: 600;
}

.child-gender-tag.boy {
  background: #e7f5ff;
  color: #1971c2;
}

.child-gender-tag.girl {
  background: #fff0f6;
  color: #c2255c;
}

.child-stage-tag {
  font-size: 11px;
  color: #888;
}

.child-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 10px 0;
}

.c-stat-box {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 6px 4px;
  text-align: center;
}

.c-lbl {
  font-size: 10px;
  color: #666;
  display: block;
}

.c-val {
  font-size: 13px;
  font-weight: 800;
  color: #1a1a1a;
}

.child-edu-section {
  border-top: 1px dashed #eee;
  padding-top: 10px;
  margin-top: 10px;
}

.child-edu-select {
  width: 100%;
  padding: 6px 10px;
  font-size: 12px;
  border: 1.5px solid var(--paper-border);
  border-radius: 4px;
  background: #fff;
  margin-top: 4px;
  outline: none;
}

/* ==========================================
 * 姓名拆分与兄弟姐妹档案
 * ========================================== */
.form-name-split-group {
  display: flex !important;
  gap: 8px;
}

.split-name-box {
  flex: 1;
}

.siblings-box {
  background: #fdfbf7;
  border: 1px dashed #d0c8b8;
  border-radius: 4px;
  padding: 10px 14px;
  margin-top: 10px;
}

.sibling-item {
  font-size: 12px;
  color: #495057;
  margin-top: 4px;
  padding: 4px 0;
  border-bottom: 1px dotted #e9ecef;
}

.sibling-item:last-child {
  border-bottom: none;
}

.sibling-tag {
  background: #e7f5ff;
  color: #1971c2;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
  margin-right: 6px;
}

/* ==========================================
 * 机关领导班子与同僚人事大厅
 * ========================================== */
.wp-hall-btn {
  width: 100%;
  margin-top: 10px;
  background: var(--gov-navy);
  color: #ffffff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.wp-hall-btn:hover {
  background: #182838;
}

.role-chief {
  background: #fff3bf;
  color: #d9480f;
  border: 1px solid #ffe066;
}

.role-disc {
  background: #ffe3e3;
  color: #c92a2a;
  border: 1px solid #ffc9c9;
}

.workplace-hall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.wp-hall-card {
  background: #ffffff;
  border: 1.5px solid var(--paper-border);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wp-hall-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border-color: #adb5bd;
}

.wp-hall-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #ded7c8;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.wp-hall-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 800;
  color: var(--gov-navy);
}

.wp-hall-post {
  font-size: 13px;
  color: var(--primary-red);
  font-weight: 600;
  margin-bottom: 6px;
}

.wp-hall-trait {
  background: #f8f9fa;
  border-left: 3px solid var(--gold-accent);
  padding: 6px 10px;
  font-size: 11px;
  color: #495057;
  margin: 10px 0;
  line-height: 1.5;
}

.wp-hall-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.btn-wp-act {
  background: #f1f3f5;
  border: 1px solid #ced4da;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  color: #333;
  transition: var(--transition);
}

.btn-wp-act:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

/* ==========================================
 * 婚恋系统多标签与外室红颜
 * ========================================== */
.marriage-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid var(--paper-border);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.m-tab-btn {
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: #666;
  padding: 6px 14px;
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition);
}

.m-tab-btn.active {
  background: #d6336c;
  color: #ffffff;
}

.mistress-card {
  background: #fff9db;
  border: 1.5px solid #fcc419;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 14px;
}

.mistress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  border-bottom: 1px dashed #fab005;
  padding-bottom: 6px;
}

.mistress-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 800;
  color: #d9480f;
}



/* ==========================================================================
   V3.5 功勋成就系统、父母深度互动、纪检留置对抗与官方公文裁决样式
   ========================================================================== */

/* 1. 浮动成就通知弹窗 (Toasts) */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-card {
  pointer-events: auto;
  background: rgba(26, 29, 32, 0.95);
  border: 1.5px solid #fab005;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 12px rgba(250, 176, 5, 0.25);
  border-radius: 8px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 300px;
  max-width: 400px;
  color: #ffffff;
  animation: toastSlideUp 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
  transition: all 0.3s ease;
}

@keyframes toastSlideUp {
  from {
    transform: translateY(40px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.toast-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.toast-body {
  flex: 1;
}

.toast-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 800;
  color: #ffd43b;
  margin-bottom: 3px;
}

.toast-desc {
  font-size: 12px;
  color: #ced4da;
  line-height: 1.4;
}

/* 2. 功勋成就荣誉大厅 */
.achieve-summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
  border: 1px solid var(--paper-border);
  border-radius: 6px;
  padding: 14px 20px;
  margin-bottom: 16px;
}

.achieve-stats-box {
  display: flex;
  gap: 24px;
}

.achieve-stat-item {
  display: flex;
  flex-direction: column;
}

.achieve-stat-num {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 800;
  color: #c92a2a;
}

.achieve-stat-label {
  font-size: 12px;
  color: #868e96;
}

.achieve-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--paper-border);
  padding-bottom: 8px;
}

.achieve-tab-btn {
  background: transparent;
  border: 1px solid #ced4da;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.achieve-tab-btn.active {
  background: #c92a2a;
  border-color: #c92a2a;
  color: #ffffff;
}

.achieve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
}

.achieve-card {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 14px;
  background: #ffffff;
  display: flex;
  gap: 12px;
  transition: var(--transition);
}

.achieve-card.unlocked {
  background: #fffdf5;
  border-color: #fcc419;
  box-shadow: 0 2px 8px rgba(250, 176, 5, 0.15);
}

.achieve-card.locked {
  background: #f8f9fa;
  border-color: #e9ecef;
  opacity: 0.65;
}

.achieve-card-icon {
  font-size: 26px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #f1f3f5;
  border-radius: 50%;
}

.achieve-card.unlocked .achieve-card-icon {
  background: #fff3bf;
}

.achieve-card-info {
  flex: 1;
}

.achieve-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.achieve-card-name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: #212529;
}

.achieve-card.unlocked .achieve-card-name {
  color: #d9480f;
}

.achieve-card-cat {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  background: #e9ecef;
  color: #495057;
}

.achieve-card-desc {
  font-size: 12px;
  color: #495057;
  line-height: 1.4;
  margin-bottom: 6px;
}

.achieve-card-time {
  font-size: 11px;
  color: #2b8a3e;
  font-weight: 600;
}

/* 3. 父母深度互动与府邸生活 */
.parent-interactive-dock {
  background: #fcfbf9;
  border: 1.5px solid #d0bfff;
  border-radius: 8px;
  padding: 16px;
  margin-top: 18px;
}

.dock-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 800;
  color: #5f3dc4;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.parent-power-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: #e5dbff;
  color: #5f3dc4;
}

.parent-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.btn-parent-act {
  background: #ffffff;
  border: 1.5px solid #b197fc;
  border-radius: 6px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.btn-parent-act:hover:not(:disabled) {
  background: #f3f0ff;
  border-color: #7950f2;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(112, 72, 232, 0.15);
}

.btn-parent-act:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: #dee2e6;
}

.act-title {
  font-weight: 700;
  font-size: 14px;
  color: #495057;
}

.act-desc {
  font-size: 11px;
  color: #868e96;
  line-height: 1.3;
}

.act-cost {
  font-size: 11px;
  color: #7950f2;
  font-weight: 600;
}

.parent-timeline-box {
  background: #ffffff;
  border: 1px dashed #ced4da;
  border-radius: 6px;
  padding: 10px 14px;
  max-height: 120px;
  overflow-y: auto;
  font-size: 12px;
  color: #495057;
}

.parent-log-item {
  margin-bottom: 4px;
  line-height: 1.4;
}

/* 4. 纪检监察留置审查特别专案大厅 */
.modal-investigation-card {
  background: #1e2227;
  color: #e9ecef;
  border: 2px solid #c92a2a;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.65);
  position: relative;
  overflow: hidden;
}

.investigation-seal {
  position: absolute;
  top: 14px;
  right: 20px;
  border: 2px solid #c92a2a;
  color: #ff6b6b;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 900;
  padding: 2px 10px;
  border-radius: 4px;
  letter-spacing: 2px;
  transform: rotate(3deg);
  background: rgba(201, 42, 42, 0.15);
}

.interrogation-brief {
  background: #14171a;
  border: 1px solid #343a40;
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 14px;
}

.interrogation-brief-header {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: #ff8787;
  margin-bottom: 6px;
}

.interrogation-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #ced4da;
  margin-bottom: 10px;
}

.interrogation-meters-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 12px;
}

.meter-col label {
  font-size: 12px;
  color: #adb5bd;
  display: block;
  margin-bottom: 4px;
}

.meter-track {
  height: 10px;
  background: #343a40;
  border-radius: 5px;
  overflow: hidden;
}

.meter-fill-evidence {
  height: 100%;
  background: linear-gradient(90deg, #fd7e14, #fa5252);
  transition: width 0.3s;
}

.meter-fill-fortitude {
  height: 100%;
  background: linear-gradient(90deg, #20c997, #12b886);
  transition: width 0.3s;
}

.interrogation-dialog-stream {
  background: #0f1113;
  border: 1px solid #2b3035;
  border-radius: 6px;
  padding: 12px;
  max-height: 140px;
  overflow-y: auto;
  font-family: "Courier New", monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #adb5bd;
  margin-bottom: 14px;
}

.dialog-msg-inspector {
  color: #ffa8a8;
  margin-bottom: 6px;
}

.dialog-msg-player {
  color: #74c0fc;
  margin-bottom: 6px;
}

.investigation-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.btn-investigation-opt {
  background: #2b3035;
  border: 1.5px solid #495057;
  border-radius: 6px;
  padding: 10px 12px;
  text-align: left;
  color: #f8f9fa;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.btn-investigation-opt:hover:not(:disabled) {
  background: #343a40;
  border-color: #ffd43b;
  transform: translateY(-2px);
}

.btn-investigation-opt:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: #343a40;
}

.opt-name {
  font-weight: 700;
  font-size: 14px;
  color: #ffd43b;
}

.opt-tip {
  font-size: 11px;
  color: #adb5bd;
  line-height: 1.3;
}

.opt-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  align-self: flex-start;
  margin-top: 2px;
}

.badge-opt-ready {
  background: rgba(32, 201, 151, 0.2);
  color: #20c997;
  border: 1px solid #20c997;
}

.badge-opt-locked {
  background: rgba(240, 62, 62, 0.2);
  color: #ff8787;
  border: 1px solid #ff8787;
}

/* 5. 司法裁判文书与组织任免公文终局纸张样式 */
.judicial-paper {
  background: #fffefb;
  border: 2px solid #c92a2a;
  border-radius: 6px;
  padding: 24px 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  font-family: var(--font-serif);
  color: #212529;
  text-align: left;
  position: relative;
  line-height: 1.8;
  max-height: 480px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.judicial-header-line {
  border-bottom: 3px double #c92a2a;
  padding-bottom: 12px;
  margin-bottom: 16px;
  text-align: center;
}

.judicial-court-title {
  font-size: 22px;
  font-weight: 900;
  color: #c92a2a;
  letter-spacing: 3px;
  margin-bottom: 6px;
}

.judicial-doc-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #212529;
  margin-bottom: 4px;
}

.judicial-docket {
  font-size: 13px;
  font-family: "Courier New", monospace;
  color: #495057;
}

.judicial-stamp-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
  padding-right: 30px;
  position: relative;
}

.judicial-stamp {
  width: 90px;
  height: 90px;
  border: 3px solid #c92a2a;
  border-radius: 50%;
  color: #c92a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  transform: rotate(-10deg);
  opacity: 0.85;
  box-shadow: inset 0 0 6px rgba(201, 42, 42, 0.2);
  user-select: none;
}

/* ==========================================
   V4.0 机关人事大厅：三联标签页、送礼公关、门生故旧与部门专属特权
   ========================================== */

/* 部门特权微章与HUD按钮 */
.badge-track {
  display: inline-block;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid #ced4da;
  background: #f1f3f5;
  color: #495057;
}

.badge-track-discipline { background: #ffe3e3; color: #c92a2a; border-color: #ffa8a8; }
.badge-track-organization { background: #f3f0ff; color: #6741d9; border-color: #d0bfff; }
.badge-track-economic { background: #e7f5ff; color: #1971c2; border-color: #a5d8ff; }
.badge-track-construction { background: #fff4e6; color: #d9480f; border-color: #ffd8a8; }
.badge-track-police { background: #edf2ff; color: #364fc7; border-color: #bac8ff; }
.badge-track-office { background: #fff5f5; color: #a61e4d; border-color: #fcc2d7; }
.badge-track-grassroots { background: #ebfbee; color: #2b8a3e; border-color: #b2f2bb; }

.btn-dept-power-mini {
  background: linear-gradient(135deg, #e67700, #d9480f);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(217, 72, 15, 0.25);
  transition: all 0.2s ease;
}

.btn-dept-power-mini:hover {
  background: linear-gradient(135deg, #d9480f, #c92a2a);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(217, 72, 15, 0.35);
}

/* 机关人事大厅标签页导航 */
.wp-tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #dee2e6;
  margin-bottom: 16px;
  padding-bottom: 4px;
}

.wp-tab-btn {
  background: transparent;
  border: none;
  outline: none;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #495057;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wp-tab-btn:hover {
  color: var(--gov-navy);
  background: #f8f9fa;
  border-radius: 4px 4px 0 0;
}

.wp-tab-btn.active {
  color: var(--primary-red);
  border-bottom-color: var(--primary-red);
  background: #fff;
}

.wp-tab-badge {
  background: #dee2e6;
  color: #212529;
  border-radius: 10px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 600;
}

.wp-tab-btn.active .wp-tab-badge {
  background: #ffe3e3;
  color: #c92a2a;
}

/* 送礼与社交运作区块 */
.wp-gift-container {
  background: #fdfbf7;
  border: 1px solid #ebdcb9;
  border-radius: 6px;
  padding: 8px 10px;
  margin-top: 10px;
}

.wp-gift-title {
  font-size: 11px;
  font-weight: 700;
  color: #8c6b2d;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.wp-gift-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.btn-gift-opt {
  background: #ffffff;
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 11px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.btn-gift-opt:hover {
  border-color: #8c6b2d;
  background: #fff9db;
  transform: translateY(-1px);
}

.btn-gift-opt span {
  display: block;
}

.btn-gift-opt .gift-cost {
  font-size: 9px;
  color: #868e96;
}

/* 人事任免与弹劾操作区 */
.wp-personnel-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #dee2e6;
}

.btn-act-sub {
  flex: 1;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  text-align: center;
}

.btn-fire-sub {
  background: #fff5f5;
  color: #e03131;
  border-color: #ffc9c9;
}
.btn-fire-sub:hover {
  background: #ffe3e3;
  border-color: #ffa8a8;
}

.btn-impeach {
  background: #fff9db;
  color: #f08c00;
  border-color: #ffec99;
}
.btn-impeach:hover {
  background: #fff3bf;
  border-color: #ffe066;
}

.btn-promote-alumni {
  background: #e6fcf5;
  color: #0ca678;
  border-color: #96f2d7;
}
.btn-promote-alumni:hover {
  background: #c3fae8;
  border-color: #63e6be;
}

/* 故旧门生库卡片 */
.alumni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.alumni-card {
  background: #ffffff;
  border: 1.5px solid #dee2e6;
  border-radius: 6px;
  padding: 14px;
  position: relative;
  transition: all 0.2s;
}

.alumni-card:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  border-color: var(--gold-accent);
}

.alumni-tag-origin {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  background: #f1f3f5;
  padding: 2px 6px;
  border-radius: 3px;
  color: #495057;
}

/* 外联跨部门大官卡片 */
.external-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.external-card {
  background: #ffffff;
  border: 1.5px solid #d0ebff;
  border-radius: 6px;
  padding: 16px;
  transition: all 0.2s;
}

.external-card:hover {
  border-color: #339af0;
  box-shadow: 0 4px 12px rgba(24, 100, 171, 0.08);
}

/* ==========================================
   政务风居中模态对话框 (替换全部原生 alert & confirm)
   ========================================== */
.gov-dialog-card {
  max-width: 560px;
  width: 90%;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  border: 2px solid #c92a2a;
  overflow: hidden;
  animation: govModalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes govModalFadeIn {
  from { opacity: 0; transform: scale(0.92) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.gov-dialog-header {
  background: linear-gradient(135deg, #c92a2a 0%, #862e2e 100%);
  color: #ffffff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid #fcc2d7;
}

.gov-dialog-seal-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.15);
}

.gov-dialog-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  flex: 1;
}

.gov-dialog-body {
  padding: 20px 24px;
  background: #faf8f5;
  color: #212529;
}

.gov-dialog-narrative {
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 1.8;
  color: #2b2d42;
  text-align: justify;
}

.gov-dialog-narrative p {
  text-indent: 2em;
  margin-bottom: 8px;
}

.gov-dialog-effects {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1.5px dashed #ded7c8;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.gov-effect-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.gov-effect-badge.badge-danger {
  background: #ffe3e3;
  color: #c92a2a;
  border-color: #ffa8a8;
}

.gov-effect-badge.badge-warning {
  background: #fff3bf;
  color: #d9480f;
  border-color: #ffd43b;
}

.gov-effect-badge.badge-success {
  background: #ebfbee;
  color: #2b8a3e;
  border-color: #b2f2bb;
}

.gov-effect-badge.badge-info {
  background: #e7f5ff;
  color: #1971c2;
  border-color: #a5d8ff;
}

.gov-effect-badge.badge-gold {
  background: #fff9db;
  color: #f08c00;
  border-color: #ffe066;
}

.gov-dialog-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 14px 20px;
  background: #f1f3f5;
  border-top: 1px solid #dee2e6;
}

.btn-gov-dialog {
  padding: 8px 22px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-gov-confirm {
  background: linear-gradient(135deg, #c92a2a, #a61e4d);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(201, 42, 42, 0.3);
}

.btn-gov-confirm:hover {
  background: linear-gradient(135deg, #a61e4d, #862e2e);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(201, 42, 42, 0.4);
}

.btn-gov-cancel {
  background: #ffffff;
  color: #495057;
  border-color: #ced4da;
}

.btn-gov-cancel:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

/* 退休申请按钮 */
.btn-retirement {
  width: 100%;
  padding: 8px 12px;
  background: linear-gradient(135deg, #f59f00, #d9480f);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(217, 72, 15, 0.25);
  transition: all 0.2s;
}

.btn-retirement:hover {
  background: linear-gradient(135deg, #d9480f, #c92a2a);
  transform: translateY(-1px);
}

/* 子女公务员仕途卡片操作 */
.child-office-badge {
  display: inline-block;
  background: #e7f5ff;
  color: #1971c2;
  border: 1px solid #74c0fc;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
}

.child-office-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #ded7c8;
}

.btn-child-act {
  flex: 1;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-align: center;
}

.btn-child-promote {
  background: #e7f5ff;
  color: #1971c2;
  border-color: #74c0fc;
}

.btn-child-promote:hover {
  background: #d0ebff;
  border-color: #339af0;
}

.btn-child-protect {
  background: #ebfbee;
  color: #2b8a3e;
  border-color: #8ce99a;
}

.btn-child-protect:hover {
  background: #d3f9d8;
  border-color: #51cf66;
}



