/* ==============================================================================
 * 中央军委办公厅直属单位 网上办公系统 - 全局视觉与移动端适配样式表
 * 视觉规范：军委机关政务红、国旗红、香槟金、肃穆庄严、移动优先
 * ============================================================================== */

:root {
  --primary-red: #8b151b;
  --deep-red: #6e0e14;
  --bright-red: #b31d25;
  --accent-gold: #c89544;
  --soft-gold: #f5ecd8;
  --dark-gold: #9a6d25;
  --bg-color: #f4f5f7;
  --card-bg: #ffffff;
  --text-main: #1f2329;
  --text-sub: #5f6672;
  --text-muted: #8f959e;
  --line-color: #e5e8ec;
  --line-light: #f0f2f5;
  --success-green: #2e8b57;
  --warning-orange: #d97706;
  --info-blue: #1d6fa5;
  --danger-red: #dc2626;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(139, 21, 27, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: #2d0a0d;
  background-image: radial-gradient(circle at 50% 20%, #470e13 0%, #1f0507 100%);
  color: var(--text-main);
  line-height: 1.5;
  font-size: 14px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
  position: relative;
  user-select: none;
}

/* 涉密防扩散全屏安全水印 */
#sec-watermark {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.045;
  background-repeat: repeat;
}

/* 核心移动端容器画布（适配华为、iPhone及PC响应式） */
.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: var(--bg-color);
  position: relative;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* 桌面端大屏优雅自适应 */
@media (min-width: 860px) {
  body {
    padding: 24px 0;
    align-items: center;
  }
  .app-container {
    border-radius: 28px;
    min-height: 900px;
    height: 92vh;
    border: 3px solid rgba(200, 149, 68, 0.35);
    overflow: hidden;
  }
}

/* ---------------- 顶部系统状态与导航栏 ---------------- */

.app-header {
  background: linear-gradient(135deg, var(--deep-red) 0%, var(--primary-red) 65%, var(--bright-red) 100%);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: calc(var(--safe-top) + 10px) 14px 12px;
  border-bottom: 2px solid var(--accent-gold);
  box-shadow: var(--shadow-md);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-emblem {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  flex-shrink: 0;
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-title-main {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.25;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.brand-title-sub {
  font-size: 10.5px;
  color: var(--soft-gold);
  letter-spacing: 0.8px;
  font-weight: 500;
  margin-top: 1px;
}

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

.sec-badge {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(245, 236, 216, 0.4);
  color: var(--soft-gold);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sec-dot {
  width: 6px;
  height: 6px;
  background-color: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 6px #4ade80;
}

.btn-logout {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
}

/* 子页面顶部标题栏 */
.sub-nav-bar {
  background: #ffffff;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-color);
  position: sticky;
  top: 60px;
  z-index: 90;
}

.btn-nav-back {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--primary-red);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-page-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.nav-actions {
  width: 48px;
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------------- 页面主要内容区 ---------------- */

.app-main {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px 80px;
  position: relative;
}

/* ---------------- 登录页面 ---------------- */

.login-view {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 8px;
}

.login-hero-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-color);
  box-shadow: var(--shadow-lg);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
}

.login-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-red), var(--accent-gold), var(--primary-red));
}

.login-banner {
  text-align: center;
  margin-bottom: 22px;
}

.login-emblem-large {
  width: 68px;
  height: 68px;
  margin: 0 auto 12px;
  filter: drop-shadow(0 4px 8px rgba(139, 21, 27, 0.25));
}

.login-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-red);
  letter-spacing: 0.8px;
}

.login-sub {
  font-size: 11.5px;
  color: var(--text-sub);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.login-form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  height: 44px;
  border: 1.5px solid var(--line-color);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 16px; /* 防止 iOS Safari 自动聚焦缩放 */
  color: var(--text-main);
  background: #fafbfc;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-red);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(139, 21, 27, 0.12);
}

.btn-primary {
  width: 100%;
  height: 46px;
  background: linear-gradient(135deg, var(--bright-red) 0%, var(--primary-red) 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(139, 21, 27, 0.25);
  margin-top: 8px;
  transition: transform 0.1s, opacity 0.2s;
}

.btn-primary:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.login-presets {
  margin-top: 20px;
  background: #fbfbfd;
  border: 1px dashed #d5d9df;
  border-radius: var(--radius-sm);
  padding: 12px;
}

.login-preset-title {
  font-size: 11.5px;
  color: var(--text-sub);
  margin-bottom: 8px;
  font-weight: 600;
}

.login-preset-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-preset {
  background: #ffffff;
  border: 1px solid #c9d0d8;
  border-radius: 4px;
  padding: 6px 4px;
  font-size: 11px;
  color: var(--text-main);
  text-align: center;
  cursor: pointer;
}

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

.login-security-notice {
  margin-top: 18px;
  font-size: 11px;
  color: var(--dark-gold);
  background: #fffbf2;
  border: 1px solid #fae8c6;
  border-radius: 6px;
  padding: 9px 12px;
  line-height: 1.45;
}

/* ---------------- 门户首页 (工作台) ---------------- */

/* 顶部干事身份简报卡片 */
.user-profile-banner {
  background: linear-gradient(135deg, #811319 0%, #a41a22 60%, #c42932 100%);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 12px;
  border: 1px solid rgba(200, 149, 68, 0.35);
}

.user-profile-banner::after {
  content: "";
  position: absolute;
  right: -25px;
  bottom: -35px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.user-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 235, 200, 0.35);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  color: var(--soft-gold);
  margin-bottom: 8px;
}

.user-banner-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.user-banner-details {
  font-size: 12px;
  color: #fceceb;
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* 滚动通知条 */
.sec-ticker {
  background: #ffffff;
  border: 1px solid #ebd9c2;
  border-left: 3.5px solid var(--primary-red);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 11.5px;
  color: #7c4b14;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sec-ticker-tag {
  background: #fdf2e2;
  color: #9a5307;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 10.5px;
  flex-shrink: 0;
}

/* 工作台数字概览统计 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 14px;
}

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: center;
  border: 1px solid var(--line-color);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.15s;
}

.stat-card:active {
  transform: scale(0.97);
}

.stat-value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.stat-value.red {
  color: var(--primary-red);
}

.stat-value.blue {
  color: var(--info-blue);
}

.stat-value.green {
  color: var(--success-green);
}

.stat-label {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 2px;
}

/* 办事板块标题 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 2px 8px;
}

.section-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-title::before {
  content: "";
  width: 3.5px;
  height: 14px;
  background: var(--primary-red);
  border-radius: 2px;
}

.section-link {
  font-size: 11.5px;
  color: var(--primary-red);
  cursor: pointer;
}

/* 办事入口九宫格网格 */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-bottom: 16px;
}

.portal-item {
  background: var(--card-bg);
  border: 1px solid var(--line-color);
  border-radius: var(--radius-md);
  padding: 12px 4px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s;
  position: relative;
}

.portal-item:active {
  background: #f7f8fa;
  transform: scale(0.96);
}

.portal-item.featured {
  border-color: rgba(139, 21, 27, 0.25);
  background: #ffffff;
}

.portal-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 6px;
}

.icon-red {
  background: #fdebed;
  color: var(--primary-red);
}

.icon-blue {
  background: #edf5fc;
  color: var(--info-blue);
}

.icon-gold {
  background: #fbf5e6;
  color: var(--dark-gold);
}

.icon-green {
  background: #edf8f2;
  color: var(--success-green);
}

.icon-gray {
  background: #f0f2f5;
  color: #64748b;
}

.portal-item-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.portal-item-desc {
  font-size: 9.5px;
  color: var(--text-muted);
  margin-top: 2px;
  transform: scale(0.95);
}

.tag-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 8.5px;
  background: #fde8e8;
  color: var(--primary-red);
  padding: 0 4px;
  border-radius: 6px;
  font-weight: 600;
}

/* 待办及近况卡片 */
.todo-card {
  background: var(--card-bg);
  border: 1px solid var(--line-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.todo-card:active {
  background: #f9fafb;
}

.todo-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--soft-gold), #e8cd9c);
  color: var(--deep-red);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.todo-info {
  flex: 1;
}

.todo-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.todo-desc {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 2px;
}

.status-badge {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.status-pending {
  background: #fef3c7;
  color: #b45309;
}

.status-reviewing {
  background: #e0f2fe;
  color: #0369a1;
}

.status-approved {
  background: #dcfce7;
  color: #15803d;
}

.status-rejected {
  background: #fee2e2;
  color: #b91c1c;
}

.status-returned {
  background: #f3e8ff;
  color: #7e22ce;
}

/* ---------------- 表单通用卡片与输入控件 ---------------- */

.form-card {
  background: var(--card-bg);
  border: 1px solid var(--line-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.form-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-group {
  margin-bottom: 13px;
}

.form-group:last-child {
  margin-bottom: 0;
}

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

.req-star {
  color: var(--primary-red);
  margin-left: 2px;
}

.form-textarea {
  width: 100%;
  min-height: 72px;
  border: 1.5px solid var(--line-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text-main);
  background: #fafbfc;
  resize: vertical;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--primary-red);
  background: #ffffff;
}

.form-select {
  width: 100%;
  height: 44px;
  border: 1.5px solid var(--line-color);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  font-size: 16px;
  color: var(--text-main);
  background: #fafbfc;
}

/* 同行人员动态项卡片 */
.companion-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 10px;
  position: relative;
}

.companion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.companion-index {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-red);
}

.btn-delete-companion {
  background: none;
  border: none;
  color: var(--danger-red);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 6px;
}

.btn-add-companion {
  width: 100%;
  height: 38px;
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  color: var(--primary-red);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-add-companion:active {
  background: #fbf5f5;
  border-color: var(--primary-red);
}

/* ---------------- 触控手写签名板 ---------------- */

.signature-box {
  background: #ffffff;
  border: 1.5px dashed #d6a19f;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  margin-top: 6px;
}

.signature-canvas {
  width: 100%;
  height: 140px;
  display: block;
  touch-action: none; /* 禁止画布默认滚动，支持流畅签名 */
  background: #fffdfd;
}

.signature-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #a4abb5;
  font-size: 13px;
  pointer-events: none;
  letter-spacing: 1px;
}

.signature-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: #fdf5f5;
  border-top: 1px solid #f2dede;
}

.btn-clear-sign {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11.5px;
  color: var(--text-sub);
  cursor: pointer;
}

.btn-confirm-sign {
  background: var(--primary-red);
  border: none;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 11.5px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 600;
}

.signed-preview {
  display: none;
  text-align: center;
  padding: 10px;
}

.signed-img {
  max-height: 80px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #ffffff;
}

/* 底部操作固定条 */
.sticky-actions-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-top: 1px solid var(--line-color);
  padding: 10px 14px calc(var(--safe-bottom) + 10px);
  display: flex;
  gap: 10px;
  z-index: 95;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.05);
}

.btn-secondary {
  flex: 1;
  height: 44px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-submit-form {
  flex: 2;
  height: 44px;
  background: linear-gradient(135deg, var(--bright-red) 0%, var(--primary-red) 100%);
  border: none;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

/* ---------------- 底部标签导航栏 (Tabbar) ---------------- */

.app-tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-top: 1px solid var(--line-color);
  display: flex;
  justify-content: space-around;
  padding: 6px 0 calc(var(--safe-bottom) + 4px);
  z-index: 100;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
}

.tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: #64748b;
  font-size: 10.5px;
  cursor: pointer;
  transition: color 0.15s;
}

.tabbar-item.active {
  color: var(--primary-red);
  font-weight: 700;
}

.tabbar-icon {
  font-size: 19px;
  line-height: 22px;
}

/* ---------------- 申请列表与详情 ---------------- */

.filter-tabs {
  display: flex;
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-color);
  margin-bottom: 12px;
  overflow: hidden;
}

.filter-tab {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  font-size: 12.5px;
  color: var(--text-sub);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.filter-tab.active {
  color: var(--primary-red);
  font-weight: 700;
  border-bottom-color: var(--primary-red);
  background: #fff8f8;
}

.app-list-card {
  background: var(--card-bg);
  border: 1px solid var(--line-color);
  border-radius: var(--radius-md);
  padding: 13px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.app-list-card:active {
  background: #fbfbfc;
}

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

.app-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.app-card-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}

.app-card-step {
  font-size: 11.5px;
  color: var(--primary-red);
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--line-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 审批时间轴 Timeline */
.timeline {
  margin-top: 12px;
  position: relative;
  padding-left: 20px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: 2px;
  background: #e2e8f0;
}

.timeline-item {
  position: relative;
  margin-bottom: 16px;
}

.timeline-dot {
  position: absolute;
  left: -20px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-red);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px var(--primary-red);
}

.timeline-content {
  font-size: 12px;
}

.timeline-title {
  font-weight: 700;
  color: var(--text-main);
}

.timeline-time {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

.timeline-opinion {
  background: #f8fafc;
  border-left: 3px solid var(--accent-gold);
  padding: 6px 8px;
  margin-top: 4px;
  border-radius: 0 4px 4px 0;
  color: #334155;
  font-size: 11.5px;
}

/* ---------------- 模态弹窗与警示层 ---------------- */

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 999999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-backdrop.show {
  display: flex;
}

#modal-screenshot-alert {
  display: none !important;
}

.modal-box {
  background: #ffffff;
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-header-danger {
  text-align: center;
  margin-bottom: 14px;
}

.modal-icon-danger {
  width: 52px;
  height: 52px;
  background: #fef2f2;
  border: 2px solid #fecaca;
  color: var(--danger-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  margin: 0 auto 10px;
}

.modal-title-danger {
  font-size: 16px;
  font-weight: 800;
  color: var(--danger-red);
  letter-spacing: 0.5px;
}

.modal-body {
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.6;
  text-align: center;
  margin-bottom: 18px;
}

.modal-body.audit-note {
  font-size: 11.5px;
  color: #991b1b;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  padding: 8px 10px;
  border-radius: 6px;
  margin-top: 10px;
}

.btn-modal-close {
  width: 100%;
  height: 42px;
  background: var(--danger-red);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* 权限限制提示弹窗 */
.modal-header-info {
  text-align: center;
  margin-bottom: 12px;
}

.modal-icon-info {
  width: 48px;
  height: 48px;
  background: #eff6ff;
  border: 2px solid #bfdbfe;
  color: var(--info-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 10px;
}

.modal-title-info {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.btn-modal-info {
  width: 100%;
  height: 42px;
  background: var(--primary-red);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
