/* ========== Variables ========== */
:root {
  --primary-navy: #16264C;
  --accent-gold: #C19A5B;
  --bg-ivory: #FAF7F2;
  --text-dark: #1A1A2E;
  --text-secondary: #6B7280;
  --card-white: #FFFFFF;
  --card-border: #EAE4DB;
  --divider: #E5E1D8;
  --status-green: #16A34A;
  --status-gray: #9CA3AF;
  --danger: #D42B2B;
  --success: #16A34A;
  --warning: #D97706;
}

/* ========== Reset ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-ivory);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
}
.app-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: var(--bg-ivory);
}

/* ========== Login ========== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg-ivory);
}
.login-card {
  width: 100%;
  max-width: 360px;
  background: var(--card-white);
  border-radius: 16px;
  padding: 40px 24px;
  box-shadow: 0 4px 20px rgba(10, 18, 144, 0.08);
}
.login-brand {
  text-align: center;
  margin-bottom: 32px;
}
.login-logo-img {
  width: 120px;
  height: auto;
  display: block;
  margin: 0 auto 16px;
}
.login-brand h1 {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 8px;
}
.login-brand p {
  font-size: 13px;
  color: var(--text-secondary);
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--divider);
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.login-input:focus { border-color: var(--primary-navy); }
.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}
.login-remember input { width: 16px; height: 16px; }
.login-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary-navy);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}
.login-btn:active { opacity: 0.8; }

/* ========== Header ========== */
.app-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 52px;
  background: var(--primary-navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
}
.app-header h1 {
  font-size: 16px;
  font-weight: 500;
}
.app-header .user-name {
  font-size: 13px;
  opacity: 0.9;
}
.app-header .header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-logout {
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}
.btn-export {
  background: var(--accent-gold);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

/* ========== Pages ========== */
.page {
  display: none;
  padding: 60px 16px 80px;
  min-height: 100vh;
}
.page.active { display: block; }

/* ========== Bottom Tab ========== */
.bottom-tab {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card-white);
  border-top: 1px solid var(--divider);
  display: flex;
  height: 60px;
  z-index: 100;
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 11px;
  cursor: pointer;
  transition: color 0.2s;
}
.tab-item.active { color: var(--primary-navy); }
.tab-item svg { width: 22px; height: 22px; }
.tab-item.hidden { display: none; }

/* ========== Dashboard ========== */
.dashboard-brand-header {
  background: var(--primary-navy);
  margin: -20px -16px 16px -16px;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dashboard-brand-header .brand-left {
  display: flex;
  align-items: center;
  gap: 0;
}
.dashboard-brand-header .brand-name {
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.dashboard-brand-header .brand-divider {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: var(--accent-gold);
  margin: 0 10px;
  vertical-align: middle;
}
.dashboard-brand-header .brand-product {
  color: var(--accent-gold);
  font-size: 14px;
  font-weight: 500;
}
.dashboard-brand-header .brand-right {
  text-align: right;
}
.dashboard-brand-header .brand-user {
  color: #FFFFFF;
  font-size: 13px;
}
.dashboard-brand-header .brand-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dashboard-brand-header .brand-switch-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.85);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.dashboard-brand-header .brand-switch-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}
.dashboard-brand-header .brand-date {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  margin-top: 1px;
}

/* ========== Custom Dialog ========== */
.custom-dialog-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 150ms ease-out;
}
.custom-dialog {
  background: var(--card-white);
  border-radius: 12px;
  padding: 24px;
  width: 85%;
  max-width: 320px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.custom-dialog-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 12px;
}
.custom-dialog-msg {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}
.custom-dialog-btns {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.custom-dialog-btn {
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}
.custom-dialog-btn:active { opacity: 0.7; }
.custom-dialog-btn.cancel {
  background: #F3F0EB;
  color: var(--text-secondary);
}
.custom-dialog-btn.confirm {
  background: var(--primary-navy);
  color: #FFFFFF;
}
.dashboard-modules {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}
.module-card {
  background: var(--card-white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.module-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.module-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-navy);
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
  padding-left: 12px;
}
.module-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 4px;
  background: var(--accent-gold);
  border-radius: 2px;
}
.module-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.green { background: var(--status-green); }
.status-dot.gray { background: var(--status-gray); }
.update-time { font-size: 12px; color: #6B7280; white-space: nowrap; }
.module-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 12px;
  flex-grow: 1;
}
.module-metrics.metrics-many {
  grid-template-columns: repeat(2, 1fr);
}
.metric-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.metric-label {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
}
.metric-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.1;
  white-space: normal;
  word-break: break-all;
}
/* 数字自适应缩字号 */
.metric-value.num-size-normal { font-size: 28px; }
.metric-value.num-size-small { font-size: 22px; }
.metric-value.num-size-tiny { font-size: 18px; }
.module-card-footer {
  font-size: 12px;
  color: #6B7280;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--divider);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== Task Assign ========== */
.task-form { background: var(--card-white); border-radius: 12px; padding: 16px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--divider);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary-navy); }
.form-textarea { resize: vertical; min-height: 80px; }
.btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--primary-navy);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.btn-primary:active { opacity: 0.8; }
.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
  background: #9CA3AF !important;
  color: #E5E7EB !important;
}

/* ========== Supervision ========== */
.task-list { display: flex; flex-direction: column; gap: 12px; }
.task-item {
  background: var(--card-white);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(10, 18, 144, 0.06);
}
.task-item-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.task-item-title { font-size: 15px; font-weight: 500; }
.task-item-meta { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
.task-item-footer { display: flex; align-items: center; gap: 8px; }
.delete-btn {
  background: none;
  border: none;
  color: #DC2626;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  margin-left: 4px;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.delete-btn:hover { opacity: 1; }
.delete-btn.disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 500; }
.tag-high { background: #FEE2E2; color: #DC2626; }
.tag-medium { background: #FEF3C7; color: #D97706; }
.tag-low { background: #DBEAFE; color: #2563EB; }
.tag-pending { background: #DBEAFE; color: #2563EB; }
.tag-progress { background: #FEF3C7; color: #D97706; }
.tag-done { background: #DCFCE7; color: #16A34A; }

/* ========== Todo ========== */
.todo-section { margin-bottom: 20px; }
.todo-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--divider);
}
.todo-add-form {
  background: var(--card-white);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.todo-add-row { display: flex; gap: 8px; }
.todo-add-row input { flex: 1; }
.todo-add-row button {
  padding: 12px 16px;
  background: var(--primary-navy);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}
.todo-item {
  background: var(--card-white);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.todo-item.done { opacity: 0.6; }
.todo-item.done .todo-title { text-decoration: line-through; }
.todo-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--divider);
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}
.todo-checkbox.checked {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  position: relative;
}
.todo-checkbox.checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 9px;
  border: solid #FFFFFF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.todo-content { flex: 1; min-width: 0; }
.todo-title { font-size: 14px; }
.todo-deadline { font-size: 11px; color: var(--text-secondary); }

/* ========== Report ========== */
.report-form { background: var(--card-white); border-radius: 12px; padding: 16px; }

/* ========== Next Week Plans ========== */
.next-week-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--divider);
}
.next-week-section h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 12px;
}
.nwp-add-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.nwp-add-row input { flex: 1; }
.nwp-add-row button {
  padding: 10px 16px;
  background: var(--accent-gold);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.nwp-list { display: flex; flex-direction: column; gap: 8px; }
.nwp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #F9F7F2;
  border-radius: 8px;
  border-left: 3px solid var(--accent-gold);
}
.nwp-item-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: white;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nwp-item-text { flex: 1; font-size: 14px; color: var(--text-dark); }
.nwp-item-del {
  background: none;
  border: none;
  color: #DC2626;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.nwp-item-del:hover { opacity: 1; }
.nwp-empty { text-align: center; color: var(--text-secondary); font-size: 13px; padding: 12px 0; }

/* ========== Toast ========== */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
}
.toast.show { opacity: 1; }

/* ========== Drill Panel ========== */
.metric-clickable { cursor: pointer; transition: opacity 0.15s; }
.metric-clickable:active { opacity: 0.6; }
#drillPanel {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1000;
  display: none;
  flex-direction: column;
  justify-content: flex-end;
}
#drillPanel.visible { display: flex; }
.drill-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  animation: drillFadeIn 0.2s ease;
}
@keyframes drillFadeIn { from { opacity: 0; } to { opacity: 1; } }
.drill-drawer {
  position: relative;
  background: var(--card-white);
  border-radius: 16px 16px 0 0;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
  animation: drillSlideUp 0.25s ease;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}
@keyframes drillSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.drill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--divider);
}
.drill-title { font-size: 16px; font-weight: 600; color: var(--primary-navy); }
.drill-close {
  background: none; border: none;
  font-size: 24px; color: var(--text-secondary);
  cursor: pointer; padding: 4px 8px; line-height: 1;
}
.drill-close:active { opacity: 0.5; }
.drill-controls {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; border-bottom: 1px solid var(--divider);
}
.drill-date-btns { display: flex; gap: 6px; flex: 1; }
.drill-date-btn {
  padding: 6px 14px; border: 1px solid var(--divider); border-radius: 6px;
  background: transparent; font-size: 13px; color: var(--text-secondary); cursor: pointer;
}
.drill-date-btn.active { background: var(--primary-navy); color: white; border-color: var(--primary-navy); }
.drill-select { padding: 6px 10px; border: 1px solid var(--divider); border-radius: 6px; font-size: 13px; outline: none; }
.drill-content { flex: 1; overflow-y: auto; padding: 12px 20px 20px; -webkit-overflow-scrolling: touch; }
.drill-list { display: flex; flex-direction: column; gap: 10px; }
.drill-record { padding: 12px; background: #F9FAFB; border-radius: 8px; }
.drill-record-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.drill-record-value { font-size: 15px; font-weight: 600; color: var(--primary-navy); }
.drill-record-name { font-size: 13px; color: var(--text-secondary); }
.drill-record-bottom { display: flex; flex-direction: column; gap: 2px; }
.drill-record-time { font-size: 12px; color: var(--text-secondary); }
.drill-record-remark { font-size: 12px; color: var(--text-secondary); word-break: break-all; }
.drill-empty { text-align: center; padding: 40px 20px; color: var(--text-secondary); font-size: 14px; }

/* ========== 律师名单 ========== */
.lawyer-stats { padding: 12px 16px; font-size: 14px; font-weight: 600; color: var(--primary-navy); border-bottom: 1px solid #F3F4F6; }
.lawyer-list { max-height: 50vh; overflow-y: auto; }
.lawyer-item { display: flex; align-items: center; padding: 10px 16px; border-bottom: 1px solid #F9FAFB; font-size: 14px; }
.lawyer-num { width: 28px; color: #9CA3AF; font-size: 13px; flex-shrink: 0; }
.lawyer-name { flex: 1; font-weight: 500; color: #111827; }
.lawyer-date { color: #9CA3AF; font-size: 12px; margin-right: 8px; }
.lawyer-new-tag { background: #C8A97E; color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 600; }

/* ========== Sidebar (>1024px) ========== */
.sidebar {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 220px;
  height: 100vh;
  background: var(--primary-navy);
  color: var(--bg-ivory);
  z-index: 200;
  flex-direction: column;
  overflow-y: auto;
}
.sidebar-brand {
  padding: 24px 20px 16px;
  border-bottom: 1px solid var(--accent-gold);
}
.sidebar-brand h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--bg-ivory);
  letter-spacing: 1px;
}
.sidebar-brand p {
  font-size: 11px;
  color: var(--accent-gold);
  margin-top: 4px;
}
.sidebar-nav {
  flex: 1;
  padding: 16px 0;
}
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  font-size: 14px;
  color: rgba(245, 240, 230, 0.7);
  cursor: pointer;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.sidebar-nav-item:hover {
  background: rgba(245, 240, 230, 0.06);
  color: var(--bg-ivory);
}
.sidebar-nav-item.active {
  background: rgba(245, 240, 230, 0.1);
  color: var(--bg-ivory);
  border-left-color: var(--accent-gold);
  font-weight: 500;
}
.sidebar-nav-item svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  opacity: 0.8;
}
.sidebar-nav-item.active svg { opacity: 1; }
.sidebar-nav-item.hidden { display: none; }
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(200, 169, 126, 0.3);
}
.sidebar-user {
  font-size: 13px;
  color: rgba(245, 240, 230, 0.8);
  margin-bottom: 8px;
}
.sidebar-logout {
  background: none;
  border: 1px solid rgba(245, 240, 230, 0.3);
  color: rgba(245, 240, 230, 0.7);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.sidebar-logout:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* ========== Responsive: Tablet (768-1024px) ========== */
@media (min-width: 769px) and (max-width: 1024px) {
  .app-container {
    max-width: 720px;
    box-shadow: 0 0 20px rgba(10, 18, 144, 0.06);
  }
  .app-header { max-width: 720px; }
  .bottom-tab { max-width: 720px; left: 50%; transform: translateX(-50%); }
  .dashboard-brand-header {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0 24px;
  }
  .dashboard-modules {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .module-card.full-width { grid-column: 1 / -1; }
  .page#pageTaskAssign .task-form,
  .page#pageSupervision .task-list,
  .page#pageTodo .todo-add-form,
  .page#pageReport .report-form {
    max-width: 640px;
    margin: 0 auto;
  }
}

/* ========== Responsive: Desktop (>1024px) ========== */
@media (min-width: 1025px) {
  body { background: var(--bg-ivory); }
  .app-container {
    max-width: none;
    margin-left: 220px;
    margin-right: 0;
    box-shadow: none;
    box-sizing: border-box;
    width: calc(100% - 220px);
  }
  .sidebar { display: flex; }
  .app-header { display: none !important; }
  .bottom-tab { display: none !important; }
  .page {
    padding: 24px 32px 40px;
    min-height: calc(100vh);
  }
  .login-page { min-height: 100vh; }
  .dashboard-brand-header {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0 32px;
  }
  .dashboard-modules {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: none;
    margin: 0;
  }
  .module-card.full-width { grid-column: 1 / -1; }
  .page#pageTaskAssign .task-form,
  .page#pageSupervision .task-list,
  .page#pageTodo .todo-add-form,
  .page#pageReport .report-form {
    max-width: 800px;
    margin: 0 auto;
  }
  #drillPanel {
    left: 220px;
    width: calc(100% - 220px);
  }
  .global-header-inner {
    max-width: none;
    margin: 0;
    padding: 0 32px;
  }
  .global-header-left {
    display: none;
  }
}

/* ========== Todo Comments ========== */
.todo-comment-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--divider);
  display: none;
}
.todo-comment-section.show { display: block; }
.comment-list {
  max-height: 300px;
  overflow-y: auto;
  padding: 8px 0;
  background: #F9F7F2;
  border-radius: 8px;
  margin-bottom: 10px;
}
.comment-item {
  display: flex;
  margin-bottom: 10px;
  padding: 0 10px;
}
.comment-item.self {
  flex-direction: row-reverse;
}
.comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.comment-item.self .comment-avatar {
  background: var(--accent-gold);
  color: var(--primary-navy);
}
.comment-bubble {
  max-width: 75%;
  margin: 0 8px;
}
.comment-item.self .comment-bubble {
  text-align: right;
}
.comment-meta {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 3px;
}
.comment-content {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
  text-align: left;
}
.comment-item:not(.self) .comment-content {
  background: var(--card-white);
  color: var(--text-dark);
  border: 1px solid var(--divider);
  border-top-left-radius: 4px;
}
.comment-item.self .comment-content {
  background: var(--primary-navy);
  color: white;
  border-top-right-radius: 4px;
}
.comment-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.comment-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--divider);
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.comment-input:focus {
  border-color: var(--primary-navy);
}
.comment-send-btn {
  padding: 8px 14px;
  background: var(--primary-navy);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.comment-send-btn:active { opacity: 0.85; }
.comment-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: none;
  border: 1px solid var(--divider);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  margin-top: 8px;
}
.comment-toggle-btn:active { background: var(--bg-ivory); }
.comment-badge {
  display: inline-block;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  background: #DC2626;
  color: white;
  border-radius: 8px;
  font-size: 10px;
  padding: 0 4px;
}
.comment-empty {
  text-align: center;
  padding: 16px;
  color: var(--text-secondary);
  font-size: 13px;
}

/* ========== UI Visual Upgrade ========== */
/* Header */
.app-header {
  background: var(--primary-navy);
}

/* Sidebar */
.sidebar {
  background: var(--primary-navy);
}

/* Card frosted glass (web only) */
@media (min-width: 769px) {
  .card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  
  /* Comment section frosted glass */
  .comment-list {
    background: rgba(249, 247, 242, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  
  /* Drill panel frosted glass */
  .drill-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}

/* ========== UI Visual Upgrade - Micro Animations ========== */
/* Page transition */
.page {
  animation: pageFadeIn 200ms ease-out;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Card hover effect (web only) */
@media (min-width: 769px) {
  .card {
    transition: transform 200ms ease, box-shadow 200ms ease;
  }
  
  .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 18, 144, 0.12);
  }
  
  /* Task item hover */
  .task-item {
    transition: transform 200ms ease, background 200ms ease;
  }
  
  .task-item:hover {
    background: rgba(200, 169, 126, 0.05);
    transform: translateX(4px);
  }
}

/* Button hover - simplified */
.btn-primary,
.btn-flow,
.comment-send-btn {
  transition: background 200ms ease, transform 100ms ease;
}

.btn-primary:hover {
  background: #131a9e;
}

.btn-primary:active,
.btn-flow:active,
.comment-send-btn:active {
  transform: scale(0.96);
}

/* Comment send bounce */
@keyframes commentBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.92); }
}

.comment-send-btn:active {
  animation: commentBounce 200ms ease;
}

/* Staggered list item animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.task-item,
.todo-item,
.metric-item {
  animation: fadeInUp 300ms ease-out backwards;
}

.task-item:nth-child(1), .metric-item:nth-child(1) { animation-delay: 0ms; }
.task-item:nth-child(2), .metric-item:nth-child(2) { animation-delay: 50ms; }
.task-item:nth-child(3), .metric-item:nth-child(3) { animation-delay: 100ms; }
.task-item:nth-child(4), .metric-item:nth-child(4) { animation-delay: 150ms; }
.task-item:nth-child(5) { animation-delay: 200ms; }
.task-item:nth-child(6) { animation-delay: 250ms; }
.task-item:nth-child(7) { animation-delay: 300ms; }
.task-item:nth-child(8) { animation-delay: 350ms; }

/* ========== UI Visual Upgrade - Refined Details ========== */
/* Card radius upgrade */
.card {
  border-radius: 12px;
}

@media (max-width: 768px) {
  .card {
    border-radius: 8px;
  }
}

/* Gold gradient divider */
.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  margin: 12px 0;
}

/* Input focus glow */
.form-input:focus,
.form-textarea:focus,
.comment-input:focus {
  border-color: var(--primary-navy);
  box-shadow: 0 0 0 3px rgba(10, 18, 144, 0.08);
}

/* Selected state */
.tab-item.active,
.report-tab.active {
  color: var(--primary-navy);
  font-weight: 600;
}

/* Sidebar nav hover underline */
.sidebar-nav-item {
  position: relative;
  transition: background 200ms ease;
}

.sidebar-nav-item::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--accent-gold);
  transition: transform 200ms ease;
}

.sidebar-nav-item:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Brand color for primary button */
.btn-primary {
  background: var(--primary-navy);
}

/* Success/warning colors for indicators */
.metric-item.success .metric-value {
  color: #2D8B4E;
}

.metric-item.danger .metric-value {
  color: #D4763A;
}

/* ========== UI Visual Upgrade - Web Layout Enhancement ========== */
@media (min-width: 1025px) {
  /* Dashboard 2x2 metric grid */
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  /* Task 2-column grid */
  #taskList,
  #todoList,
  #todoInProgress,
  #todoPending,
  #todoCompleted {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  #taskList .task-item,
  #todoList .todo-item,
  #todoInProgress .task-item,
  #todoPending .task-item,
  #todoCompleted .task-item {
    margin: 0;
    border-bottom: none;
    border: 1px solid var(--divider);
    border-radius: 10px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.6);
  }
  
  #taskList .task-item:hover,
  #todoList .todo-item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--accent-gold);
  }
  
  /* Report form 2-column layout */
  .report-form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  
  .report-form-container .form-group:first-child {
    grid-column: 1;
  }
  
  .report-form-container .form-group:nth-child(2) {
    grid-column: 2;
  }
  
  .next-week-plan-section {
    grid-column: 1 / -1;
  }
  
  /* Skeleton loading */
  .skeleton {
    background: linear-gradient(90deg, 
      rgba(200, 169, 126, 0.1) 25%, 
      rgba(200, 169, 126, 0.2) 50%, 
      rgba(200, 169, 126, 0.1) 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
    border-radius: 8px;
  }
  
  @keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }
  
  .skeleton-card {
    height: 140px;
    margin-bottom: 12px;
  }
  
  .skeleton-line {
    height: 16px;
    margin-bottom: 8px;
  }
  
  .skeleton-line.short {
    width: 60%;
  }
}

/* ========== UI Visual Upgrade - Mobile Frosted Glass ========== */
@media (max-width: 768px) {
  /* Mobile card frosted glass */
  .card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  
  /* Mobile header frosted glass */
  .app-header {
    background: rgba(10, 18, 144, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  
  /* Mobile bottom tab frosted glass */
  .bottom-tab {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/* ========== Module 1: Mobile Responsive (max-width: 480px) ========== */
@media (max-width: 480px) {
  .app-header { height: 44px; padding: 0 12px; }
  .app-header h1 { font-size: 14px; }
  .app-header .user-name { font-size: 11px; }
  .app-header .header-right { gap: 6px; }
  .btn-logout { padding: 3px 8px; font-size: 11px; }
  .btn-export { padding: 4px 8px; font-size: 11px; }

  .page { padding: 50px 10px 56px; }

  .bottom-tab { height: 48px; }
  .tab-item { font-size: 10px; gap: 2px; }
  .tab-item svg { width: 18px; height: 18px; }

  .dashboard-brand-header {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0 12px;
    height: 52px;
  }
  .dashboard-brand-header .brand-name { font-size: 14px; }
  .dashboard-brand-header .brand-product { font-size: 12px; }
  .dashboard-brand-header .brand-user { font-size: 12px; }
  .dashboard-brand-header .brand-date { font-size: 11px; }
  .module-card { padding: 14px; border-radius: 10px; }
  .module-header { margin-bottom: 12px; gap: 6px; }
  .module-title { font-size: 14px; padding-left: 10px; }
  .module-title::before { width: 3px; }
  .module-metrics { grid-template-columns: repeat(2, 1fr); gap: 10px 8px; }
  .metric-value { font-size: 22px; }
  .metric-label { font-size: 12px; }
  .update-time { font-size: 11px; }
  .module-card-footer { font-size: 11px; margin-top: 10px; padding-top: 8px; }

  .login-card { padding: 28px 16px; border-radius: 14px; }
  .login-logo-img { width: 100px; }
  .login-brand h1 { font-size: 18px; }
  .login-brand p { font-size: 12px; }
  .login-input { padding: 12px 14px; font-size: 14px; }

  .form-input, .form-select, .form-textarea { padding: 10px; font-size: 13px; }
  .form-label { font-size: 12px; }
  .btn-primary { padding: 12px; font-size: 14px; }
  .task-form { padding: 12px; }

  .todo-add-row input { font-size: 13px; }
  .todo-add-row button { padding: 10px 12px; font-size: 13px; }
  .todo-item { padding: 10px 12px; gap: 10px; }
  .todo-title { font-size: 13px; }
  .todo-section-title { font-size: 13px; }

  .comment-bubble { max-width: 70%; }
  .comment-content { font-size: 12px; padding: 6px 10px; }
  .comment-avatar { width: 24px; height: 24px; font-size: 11px; }
  .comment-input { font-size: 12px; padding: 6px 10px; }
  .comment-send-btn { padding: 6px 10px; font-size: 12px; }

  .drill-title { font-size: 14px; }
  .drill-record-value { font-size: 14px; }

  .flow-record-section { padding: 12px; }
  .flow-form select, .flow-form input { padding: 8px; font-size: 12px; }
  .btn-flow { padding: 8px 12px; font-size: 12px; }
  .flow-item { padding: 6px 10px; }
  .flow-item-text { font-size: 12px; }
}

/* ==========================================================
   iOS-Inspired Premium Design System
   保持万竞品牌配色（藏蓝+金+象牙白）
   参考 Apple Human Interface Guidelines
   ========================================================== */

:root {
  --ios-bg-grouped: #F2EFE8;
  --ios-fill-tertiary: rgba(10, 18, 144, 0.05);
  --ios-fill-quaternary: rgba(10, 18, 144, 0.03);
  --ios-separator: rgba(10, 18, 144, 0.08);
  --ios-green: #34C759;
  --ios-red: #FF3B30;
  --ios-gray: #8E8E93;
  --ios-radius-xs: 6px;
  --ios-radius-sm: 8px;
  --ios-radius-md: 10px;
  --ios-radius-lg: 14px;
  --ios-radius-xl: 16px;
  --ios-radius-2xl: 20px;
  --ios-radius-pill: 9999px;
  --ios-shadow-sm: 0 0.5px 1px rgba(10,18,144,0.03), 0 2px 6px rgba(10,18,144,0.04);
  --ios-shadow-md: 0 1px 3px rgba(10,18,144,0.04), 0 4px 14px rgba(10,18,144,0.06);
  --ios-shadow-lg: 0 2px 6px rgba(10,18,144,0.05), 0 8px 28px rgba(10,18,144,0.08);
  --ios-shadow-xl: 0 4px 12px rgba(10,18,144,0.06), 0 16px 48px rgba(10,18,144,0.1);
  --ios-text-caption2: 10px;
  --ios-text-caption: 11px;
  --ios-text-footnote: 12px;
  --ios-text-subhead: 13px;
  --ios-text-callout: 14px;
  --ios-text-body: 15px;
  --ios-text-headline: 16px;
  --ios-text-title3: 18px;
  --ios-text-title2: 20px;
  --ios-text-title1: 24px;
  --ios-text-large: 28px;
  --ios-space-1: 4px;
  --ios-space-2: 8px;
  --ios-space-3: 12px;
  --ios-space-4: 16px;
  --ios-space-5: 20px;
  --ios-space-6: 24px;
  --ios-space-8: 32px;
  --ios-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ios-duration-fast: 150ms;
  --ios-duration-normal: 250ms;
  --ios-duration-slow: 350ms;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
  letter-spacing: 0.01em;
}

/* Universal Card System */
.module-card,
.task-form,
.todo-add-form,
.report-form,
.flow-record-section,
.task-item,
.todo-item,
.login-card,
.drill-record {
  border-radius: var(--ios-radius-xl) !important;
  box-shadow: var(--ios-shadow-md) !important;
  border: 0.5px solid var(--ios-separator) !important;
  background: var(--card-white) !important;
  transition: box-shadow var(--ios-duration-normal) var(--ios-ease),
              transform var(--ios-duration-normal) var(--ios-ease) !important;
}

@media (min-width: 769px) {
  .module-card:hover,
  .task-item:hover {
    box-shadow: var(--ios-shadow-lg) !important;
    transform: translateY(-1px) !important;
  }
  .task-item:hover {
    background: rgba(200, 169, 126, 0.04) !important;
    transform: translateX(3px) !important;
  }
}

/* Header - iOS Navigation Bar */
.app-header {
  background: rgba(10, 18, 144, 0.87) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  height: 56px !important;
  border-bottom: 0.5px solid rgba(200, 169, 126, 0.25) !important;
  padding: 0 20px !important;
}
.app-header h1 {
  font-size: var(--ios-text-headline) !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px !important;
}
.app-header .user-name {
  font-size: var(--ios-text-footnote) !important;
  opacity: 0.85 !important;
}
.btn-logout {
  border-radius: var(--ios-radius-sm) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  font-size: var(--ios-text-caption) !important;
  padding: 5px 12px !important;
  transition: all var(--ios-duration-fast) var(--ios-ease) !important;
}
.btn-logout:active { background: rgba(255,255,255,0.1) !important; }
.btn-export {
  border-radius: var(--ios-radius-sm) !important;
  font-size: var(--ios-text-caption) !important;
  font-weight: 600 !important;
  padding: 6px 14px !important;
  box-shadow: 0 1px 4px rgba(200, 169, 126, 0.3) !important;
  transition: all var(--ios-duration-fast) var(--ios-ease) !important;
}
.btn-export:active { transform: scale(0.95) !important; }

/* Bottom Tab - iOS Tab Bar */
.bottom-tab {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-top: 0.5px solid var(--divider) !important;
  height: 64px !important;
  padding-bottom: env(safe-area-inset-bottom, 0) !important;
}
.tab-item {
  transition: color var(--ios-duration-fast) var(--ios-ease),
              transform var(--ios-duration-fast) var(--ios-ease) !important;
  font-size: var(--ios-text-caption2) !important;
  font-weight: 500 !important;
  letter-spacing: 0.2px !important;
}
.tab-item:active { transform: scale(0.92) !important; }
.tab-item.active {
  color: var(--primary-navy) !important;
  font-weight: 600 !important;
}
.tab-item svg { width: 24px !important; height: 24px !important; }

/* Buttons - iOS Style */
.btn-primary,
.login-btn,
.todo-add-row button,
.comment-send-btn {
  border-radius: var(--ios-radius-md) !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px !important;
  transition: opacity var(--ios-duration-fast) var(--ios-ease),
              transform var(--ios-duration-fast) var(--ios-ease),
              box-shadow var(--ios-duration-fast) var(--ios-ease) !important;
}
.btn-primary:active,
.login-btn:active,
.todo-add-row button:active,
.comment-send-btn:active {
  transform: scale(0.97) !important;
  opacity: 0.85 !important;
}
.btn-primary:hover {
  background: #0D16A8 !important;
  box-shadow: 0 2px 12px rgba(10, 18, 144, 0.3) !important;
}
.btn-flow,
.nwp-add-row button {
  border-radius: var(--ios-radius-md) !important;
  font-weight: 600 !important;
  transition: opacity var(--ios-duration-fast) var(--ios-ease),
              transform var(--ios-duration-fast) var(--ios-ease) !important;
}
.btn-flow:active,
.nwp-add-row button:active {
  transform: scale(0.95) !important;
  opacity: 0.85 !important;
}

/* Inputs - iOS Style */
.form-input,
.form-select,
.form-textarea,
.login-input,
.comment-input,
.todo-add-row input {
  border-radius: var(--ios-radius-md) !important;
  border: 1px solid var(--ios-separator) !important;
  background: var(--ios-fill-quaternary) !important;
  transition: border-color var(--ios-duration-fast) var(--ios-ease),
              box-shadow var(--ios-duration-fast) var(--ios-ease),
              background var(--ios-duration-fast) var(--ios-ease) !important;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.login-input:focus,
.comment-input:focus,
.todo-add-row input:focus {
  border-color: var(--primary-navy) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(10, 18, 144, 0.08) !important;
}

/* Login Page - iOS Style */
.login-card {
  border-radius: var(--ios-radius-2xl) !important;
  box-shadow: var(--ios-shadow-xl) !important;
}
.login-brand h1 {
  font-size: var(--ios-text-title2) !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
}
.login-brand p {
  font-size: var(--ios-text-footnote) !important;
  opacity: 0.7 !important;
}

/* Sidebar - iOS Style */
@media (min-width: 1025px) {
  .sidebar {
    background: var(--primary-navy) !important;
    border-right: 0.5px solid rgba(193, 154, 91, 0.2) !important;
  }
  .sidebar-nav-item {
    border-radius: var(--ios-radius-md) !important;
    margin: 2px 12px !important;
    transition: background var(--ios-duration-fast) var(--ios-ease) !important;
  }
  .sidebar-nav-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
  }
  .sidebar-nav-item.active {
    background: rgba(200, 169, 126, 0.15) !important;
  }
}

/* Comments - iOS Style */
.todo-comment-section {
  border-radius: var(--ios-radius-lg) !important;
  background: var(--ios-bg-grouped) !important;
  border: 0.5px solid var(--ios-separator) !important;
}
.comment-bubble {
  border-radius: var(--ios-radius-lg) !important;
  box-shadow: var(--ios-shadow-sm) !important;
}
.comment-bubble.self {
  background: var(--primary-navy) !important;
  border-radius: var(--ios-radius-lg) var(--ios-radius-xs) var(--ios-radius-lg) var(--ios-radius-lg) !important;
}
.comment-bubble.other {
  background: #fff !important;
  border-radius: var(--ios-radius-xs) var(--ios-radius-lg) var(--ios-radius-lg) var(--ios-radius-lg) !important;
}
.comment-avatar {
  border-radius: var(--ios-radius-pill) !important;
  font-weight: 600 !important;
}

/* Report History - iOS Style */
.report-history-item {
  border-radius: var(--ios-radius-lg) !important;
  box-shadow: var(--ios-shadow-sm) !important;
  border: 0.5px solid var(--ios-separator) !important;
  transition: box-shadow var(--ios-duration-fast) var(--ios-ease),
              transform var(--ios-duration-fast) var(--ios-ease) !important;
}
.report-history-item:active {
  transform: scale(0.98) !important;
}

/* Status Badges - iOS Style */
.status-badge {
  border-radius: var(--ios-radius-pill) !important;
  font-size: var(--ios-text-caption2) !important;
  font-weight: 600 !important;
  padding: 3px 10px !important;
}

/* Toast/Loading - iOS Style */
.toast {
  border-radius: var(--ios-radius-lg) !important;
  box-shadow: var(--ios-shadow-lg) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}
.loading-overlay {
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
}

/* Drill Panel - iOS Style */
.drill-panel {
  border-radius: var(--ios-radius-2xl) var(--ios-radius-2xl) 0 0 !important;
  box-shadow: var(--ios-shadow-xl) !important;
}
.drill-header {
  border-radius: var(--ios-radius-2xl) var(--ios-radius-2xl) 0 0 !important;
}

/* Drill Panel Overlay - Complete Styles */
.drill-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.drill-panel {
  background: var(--bg-ivory, #F8F6F0);
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.drill-panel-header {
  background: var(--primary-navy, #16264C);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  border-radius: 20px 20px 0 0;
}

.drill-panel-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.drill-panel-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.drill-panel-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.drill-panel-content {
  padding: 20px;
  min-height: 200px;
}

/* Employee Roster Pill */
.employee-roster-pill {
  display: inline-block;
  padding: 6px 12px;
  margin: 4px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 16px;
  font-size: 13px;
  color: var(--text-primary, #1f2937);
  cursor: pointer;
  transition: all 0.2s;
}

.employee-roster-pill:hover {
  background: var(--primary-navy, #16264C);
  color: #fff;
  border-color: var(--primary-navy, #16264C);
}

/* Read Count Grid */
.read-count-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.read-count-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.read-count-card .label {
  font-size: 13px;
  color: var(--text-secondary, #6b7280);
  margin-bottom: 8px;
}

.read-count-card .value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-navy, #16264C);
}

.read-count-card.full-width {
  grid-column: 1 / -1;
}

/* Desktop Responsive */
@media (min-width: 768px) {
  .drill-panel-overlay {
    align-items: center;
  }
  
  .drill-panel {
    max-width: 520px;
    border-radius: 16px;
    max-height: 80vh;
  }
  
  .drill-panel-header {
    border-radius: 16px 16px 0 0;
  }
}

/* Smooth Scroll */
.page {
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Selection Color */
::selection {
  background: rgba(10, 18, 144, 0.15) !important;
  color: var(--primary-navy) !important;
}

/* Focus Visible - Accessibility */
:focus-visible {
  outline: 2px solid var(--primary-navy) !important;
  outline-offset: 2px !important;
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================
   Frosted Glass (毛玻璃) Enhancements — Phase 2
   iOS signature backdrop-filter blur on key surfaces
   ========================================================== */

/* ========== 1. Drill Overlay - iOS Modal Backdrop Blur ========== */
.drill-overlay {
  background: rgba(0, 0, 0, 0.22) !important;
  backdrop-filter: blur(12px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
}

/* ========== 2. Drill Drawer - iOS Bottom Sheet Frosted Glass ========== */
.drill-drawer {
  background: rgba(255, 255, 255, 0.90) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
}

/* ========== 3. Login Card - Frosted Glass on Gradient ========== */
.login-card {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
}

/* ========== 4. Module Cards - Clean White ========== */
.module-card {
  background: var(--card-white) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ========== 5. Comment Bubbles - Frosted Glass ========== */
.comment-item:not(.self) .comment-content {
  background: rgba(245, 240, 230, 0.72) !important;
  backdrop-filter: blur(12px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(160%) !important;
}

/* ========== 6. Sidebar Nav Item Active - Frosted Glass Highlight ========== */
.sidebar-nav-item.active {
  background: rgba(200, 169, 126, 0.18) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

/* ========== 7. Drill Header - Frosted Glass ========== */
.drill-header {
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
}

/* ===== E3+E4: 督办本周度滚动 + UI 优化 ===== */
/* 上周遗留任务卡片 - 红边框 */
.task-item-warning{
  border-left:3px solid #D64545;
  background:rgba(214,69,69,.04);
}

/* 任务标签容器 */
.task-item-tags{display:flex;gap:4px;flex-wrap:wrap;align-items:center;}

/* 逾期/上周遗留标签 */
.tag-overdue{
  background:rgba(214,69,69,.12);
  color:#D64545;
  font-size:11px;
  padding:2px 8px;
  border-radius:4px;
  font-weight:500;
}

/* 任务描述 */
.task-item-desc{
  font-size:13px;
  color:#6B7280;
  margin-bottom:8px;
  line-height:1.4;
}

/* Deadline 日期输入框 */
.task-deadline-input{
  font-size:12px;
  padding:2px 6px;
  border:1px solid rgba(10,18,144,.15);
  border-radius:6px;
  background:rgba(255,255,255,.8);
  color:#0A1290;
  font-family:inherit;
  outline:none;
  transition:border-color .2s;
}
.task-deadline-input:focus{
  border-color:#0A1290;
}

/* 待办逾期样式 */
.todo-deadline{
  font-size:12px;
  color:#6B7280;
  margin-top:4px;
}
.todo-deadline-overdue{
  color:#D64545;
  font-weight:500;
}

/* ===== F1: Export Preview Overlay ===== */
.export-preview-overlay{
  position:fixed;inset:0;z-index:9999;
  background:#F5F0E6;
  opacity:0;transition:opacity .3s;
  display:flex;flex-direction:column;
  overflow:hidden;
}
.export-preview-overlay.show{opacity:1;}
.export-preview-toolbar{
  position:sticky;top:0;z-index:10;
  background:rgba(245,240,230,.95);
  -webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);
  border-bottom:1px solid rgba(200,169,126,.3);
  padding:12px 16px;
  display:flex;align-items:center;gap:10px;
  flex-shrink:0;
}
.export-preview-toolbar-title{
  font-size:14px;font-weight:600;color:#0A1290;
  margin-right:auto;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.export-preview-btn{
  padding:8px 16px;
  background:#0A1290;color:white;
  border:none;border-radius:8px;
  font-size:13px;font-weight:500;
  cursor:pointer;transition:all .2s;
  white-space:nowrap;
}
.export-preview-btn:hover{background:#1a1fa0;transform:translateY(-1px);}
.export-preview-btn:active{transform:translateY(0);}
.export-preview-btn:disabled{opacity:.6;cursor:not-allowed;}
.export-preview-btn-close{
  background:transparent;color:#0A1290;
  border:1px solid rgba(10,18,144,.2);
}
.export-preview-btn-close:hover{background:rgba(10,18,144,.05);}
.export-preview-content{
  flex:1;overflow-y:auto;
  padding:20px;
  -webkit-overflow-scrolling:touch;
}
.export-preview-content .container{
  max-width:800px;margin:0 auto;
  background:white;border-radius:12px;
  overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,.1);
}
.export-preview-content .header{background:#0A1290;color:white;padding:24px;text-align:center;}
.export-preview-content .header h1{margin:0;font-size:20px;}
.export-preview-content .header p{margin:8px 0 0;font-size:14px;opacity:.8;}
.export-preview-content .section{padding:20px 24px;border-bottom:1px solid #E5E1D8;}
.export-preview-content .section-title{font-size:16px;font-weight:600;color:#0A1290;margin-bottom:12px;padding-bottom:8px;border-bottom:2px solid #C8A97E;}
.export-preview-content .field-row{display:flex;justify-content:space-between;padding:6px 0;font-size:14px;}
.export-preview-content .field-label{color:#6B7280;}
.export-preview-content .field-value{font-weight:500;color:#1A1A2E;}
.export-preview-content .remark{background:#F9F7F2;padding:12px;border-radius:8px;margin-top:8px;font-size:13px;color:#6B7280;}
.export-preview-content .footer{padding:16px 24px;text-align:center;font-size:12px;color:#6B7280;}
@media (max-width:600px){
  .export-preview-toolbar{padding:10px 12px;gap:8px;flex-wrap:wrap;}
  .export-preview-toolbar-title{font-size:12px;width:100%;margin-bottom:4px;}
  .export-preview-btn{padding:6px 12px;font-size:12px;}
  .export-preview-content{padding:12px;}
}

/* J2: deadline 标签式日期选择器 */
.deadline-picker-wrap{
  position:relative;
  display:inline-block;
}
.deadline-picker-wrap input[type="date"]{
  position:absolute;
  top:0;left:0;
  width:100%;height:100%;
  opacity:0;
  cursor:pointer;
  z-index:1;
}
.deadline-tag,
.deadline-tag-empty,
.deadline-tag-overdue{
  display:inline-block;
  padding:3px 10px;
  border-radius:4px;
  font-size:12px;
  line-height:1.5;
  white-space:nowrap;
  cursor:pointer;
  transition:all .15s ease;
}
.deadline-tag{
  background:rgba(10,18,144,.06);
  color:#0A1290;
  border:1px solid rgba(10,18,144,.25);
}
.deadline-tag:hover{
  background:rgba(10,18,144,.12);
}
.deadline-tag-empty{
  background:transparent;
  color:#6B7280;
  border:1px dashed rgba(107,114,128,.4);
}
.deadline-tag-empty:hover{
  background:rgba(107,114,128,.06);
  border-color:rgba(107,114,128,.6);
}
.deadline-tag-overdue{
  background:rgba(214,69,69,.08);
  color:#D64545;
  border:1px solid rgba(214,69,69,.3);
}
.deadline-tag-overdue:hover{
  background:rgba(214,69,69,.15);
}

/* P2: Debug Banner (impersonate mode) */
.debug-banner{
  position:fixed;
  top:0;left:0;right:0;
  z-index:9999;
  background:#C8A97E;
  color:#0A1290;
  padding:6px 16px;
  font-size:13px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  box-shadow:0 2px 8px rgba(0,0,0,.1);
}
.debug-banner-btn{
  background:#0A1290;
  color:#fff;
  border:none;
  padding:4px 12px;
  border-radius:4px;
  font-size:12px;
  cursor:pointer;
  white-space:nowrap;
}
.debug-banner-btn:hover{
  background:#1a2ab0;
}

/* P2: Impersonate Button */
.btn-impersonate{
  background:transparent;
  color:#C8A97E;
  border:1px solid #C8A97E;
  padding:4px 10px;
  border-radius:4px;
  font-size:12px;
  cursor:pointer;
  margin-right:8px;
}
.btn-impersonate:hover{
  background:rgba(200,169,126,.1);
}

/* P2: Impersonate Panel */
.impersonate-panel{
  position:fixed;
  top:0;left:0;right:0;bottom:0;
  z-index:10000;
  background:rgba(0,0,0,.5);
  display:flex;
  align-items:center;
  justify-content:center;
}
.impersonate-panel-content{
  background:#fff;
  border-radius:12px;
  width:90%;
  max-width:360px;
  max-height:80vh;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.impersonate-panel-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px;
  border-bottom:1px solid #E5E1D8;
}
.impersonate-panel-header h3{
  margin:0;
  font-size:16px;
  color:#0A1290;
}
.impersonate-panel-close{
  background:none;
  border:none;
  font-size:24px;
  color:#6B7280;
  cursor:pointer;
  line-height:1;
}
.impersonate-panel-list{
  overflow-y:auto;
  padding:8px 0;
}
.impersonate-panel-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 16px;
  cursor:pointer;
  transition:background .15s;
}
.impersonate-panel-item:hover{
  background:rgba(10,18,144,.04);
}
.impersonate-panel-item-info{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.impersonate-panel-item-name{
  font-size:14px;
  color:#1A1A2E;
  font-weight:500;
}
.impersonate-panel-item-role{
  font-size:12px;
  color:#6B7280;
}
.impersonate-panel-item-arrow{
  color:#C8A97E;
  font-size:16px;
}

/* ========== 招聘漏斗日报表单 ========== */
.funnel-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.funnel-form-header {
  text-align: center;
  padding: 16px 0 8px;
}
.funnel-form-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 0;
}
.funnel-form-date {
  font-size: 13px;
  color: var(--text-light);
  margin: 4px 0 0;
}
.funnel-group {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px;
}
.funnel-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--divider);
}
.funnel-group-icon {
  font-size: 18px;
}
.funnel-group-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-navy);
}
.funnel-group-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.funnel-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.funnel-field-full {
  grid-column: 1 / -1;
}
.funnel-field-label {
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
}
.funnel-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-navy);
  text-align: center;
  background: var(--bg-ivory);
  transition: border-color 0.15s;
}
.funnel-input:focus {
  outline: none;
  border-color: var(--primary-navy);
}
.funnel-input-text {
  text-align: left;
  font-size: 14px;
  font-weight: 400;
}
.btn-funnel-submit {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  margin-top: 8px;
}
.funnel-today-group {
  margin-bottom: 10px;
}
.funnel-today-group-name {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-navy);
  background: rgba(22, 38, 76, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}
.funnel-today-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  font-size: 13px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--divider);
}
.funnel-today-item:last-child {
  border-bottom: none;
}
.funnel-today-value {
  font-weight: 600;
  color: var(--primary-navy);
}
@media (max-width: 480px) {
  .funnel-group-fields {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .funnel-input {
    font-size: 15px;
    padding: 8px 10px;
  }
}

/* ========== 招聘漏斗卡片 ========== */
.recruit-funnel-card {
  grid-column: span 1;
}
.recruit-funnel-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.funnel-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  background: var(--bg-ivory);
  border-radius: 8px;
}
.funnel-metric-label {
  font-size: 11px;
  color: var(--text-light);
  white-space: nowrap;
}
.funnel-metric-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-navy);
  cursor: pointer;
}
.funnel-rate {
  font-size: 10px;
  color: var(--success);
  font-weight: 600;
}
.funnel-rate.rate-below-base {
  color: var(--danger);
}
.funnel-sublabel {
  font-size: 9px;
  color: var(--text-light);
  margin-top: 2px;
}
.recruit-progress-bar {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--divider);
}
.recruit-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.recruit-progress-track {
  height: 8px;
  background: var(--bg-ivory);
  border-radius: 4px;
  overflow: hidden;
}
.recruit-progress-fill {
  height: 100%;
  background: var(--primary-navy);
  border-radius: 4px;
  transition: width 0.3s ease;
}
@media (max-width: 768px) {
  .recruit-funnel-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
  .funnel-metric-value {
    font-size: 18px;
  }
}
@media (max-width: 480px) {
  .recruit-funnel-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== 通知铃铛与面板 ========== */
.btn-notification {
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  color: #fff;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-notification:hover {
  background: rgba(255, 255, 255, 0.12);
}
.notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: #DC2626;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

.notification-panel {
  position: fixed;
  top: 56px;
  right: 16px;
  width: 340px;
  max-height: 480px;
  background: var(--card-white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(22, 38, 76, 0.12);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.notification-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--divider);
}
.notification-panel-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-navy);
}
.notification-mark-all-read {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--primary-navy);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.notification-mark-all-read:hover {
  background: rgba(22, 38, 76, 0.06);
}
.notification-panel-list {
  overflow-y: auto;
  flex: 1;
  max-height: 400px;
}
.notification-item {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--divider);
  cursor: pointer;
  transition: background 0.15s;
}
.notification-item:hover {
  background: rgba(22, 38, 76, 0.03);
}
.notification-item.unread {
  background: rgba(193, 154, 91, 0.06);
}
.notification-item.unread::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
  margin-top: 6px;
}
.notification-item-content {
  flex: 1;
  min-width: 0;
}
.notification-item-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notification-item-text {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notification-item-time {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}
.notification-empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--text-light);
  font-size: 13px;
}

@media (max-width: 480px) {
  .notification-panel {
    right: 8px;
    left: 8px;
    width: auto;
  }
}

/* ========== 全局页头（替代旧 appHeader） ========== */
#globalHeaderContainer {
  display: block;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary-navy);
  color: #fff;
}
#globalHeader {
  display: block;
  background: var(--primary-navy);
  color: #fff;
}
.global-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 56px;
  max-width: 1400px;
  margin: 0 auto;
}
.global-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.global-header-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.global-header-divider {
  width: 1px;
  height: 16px;
  background: var(--accent-gold);
  opacity: 0.6;
}
.global-header-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.global-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.global-header-user {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
}
.global-header-date {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}
.btn-switch-account {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-switch-account:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}
.btn-export {
  background: var(--accent-gold);
  color: var(--primary-navy);
  border: none;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-export:hover {
  opacity: 0.9;
}
.btn-logout {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-logout:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .global-header-inner {
    padding: 0 12px;
    height: 52px;
  }
  .global-header-title {
    font-size: 15px;
  }
  .global-header-subtitle {
    font-size: 13px;
  }
  .global-header-date {
    display: none;
  }
  .global-header-user {
    font-size: 12px;
  }
  .btn-export {
    padding: 5px 10px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .global-header-inner {
    padding: 0 10px;
    height: 48px;
    gap: 8px;
  }
  .global-header-left {
    gap: 6px;
  }
  .global-header-title {
    font-size: 14px;
  }
  .global-header-divider {
    height: 14px;
  }
  .global-header-subtitle {
    font-size: 12px;
  }
  .global-header-right {
    gap: 8px;
  }
  .btn-switch-account {
    padding: 3px 8px;
    font-size: 11px;
  }
  .btn-logout {
    padding: 3px 8px;
    font-size: 11px;
  }
}

/* 图片上传按钮和列表样式 */
.btn-add-image, .btn-add-contact {
  display: block;
  width: 100%;
  padding: 12px 16px;
  margin-top: 8px;
  background: var(--bg-ivory, #FFFEF9);
  border: 1.5px dashed var(--primary-navy, #16264C);
  color: var(--primary-navy, #16264C);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-image:hover, .btn-add-contact:hover {
  background: rgba(15, 43, 84, 0.06);
  border-style: solid;
}

.btn-add-image:active, .btn-add-contact:active {
  transform: scale(0.98);
}

.image-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.images-upload-preview {
  width: 100%;
}

/* ========== Risk Personal Dashboard (马子涵) ========== */
.risk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.risk-card {
  background: var(--card-white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.risk-card:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 2px 8px rgba(193, 154, 91, 0.15);
}

.risk-card:active {
  transform: scale(0.98);
}

.risk-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.risk-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-navy);
  font-family: 'DIN Alternate', 'Helvetica Neue', sans-serif;
}

/* ========== Invoice Grid ========== */
.invoice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.invoice-card {
  background: var(--card-white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.invoice-card.highlight {
  background: linear-gradient(135deg, #FFF8E7 0%, #FFFFFF 100%);
  border-color: var(--accent-gold);
}

.invoice-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.invoice-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-navy);
  font-family: 'DIN Alternate', 'Helvetica Neue', sans-serif;
}

.invoice-card.highlight .invoice-value {
  color: var(--accent-gold);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .risk-grid,
  .invoice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== Recruiter Personal Dashboard (戴林) ========== */
.recruitment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.recruitment-card {
  background: var(--card-white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.recruitment-card:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 2px 8px rgba(193, 154, 91, 0.15);
}

.recruitment-card:active {
  transform: scale(0.98);
}

.recruit-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.recruit-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-navy);
  font-family: 'DIN Alternate', 'Helvetica Neue', sans-serif;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .recruitment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
