/* ==========================================
   AI懂我 - 心智障碍者动态可视化支持档案
   Warm Care Journal Aesthetic v1.0
   ========================================== */

/* --- CSS Variables --- */
:root {
  /* Primary - Deep Teal */
  --color-primary: #2D7A7A;
  --color-primary-dark: #1A5959;
  --color-primary-light: #E0F0F0;

  /* Accent - Warm Honey */
  --color-accent: #E8A547;
  --color-accent-light: #FDF5E6;

  /* Functional */
  --color-success: #5B9B6F;
  --color-success-bg: #F0F7F2;
  --color-warning: #E8A547;
  --color-warning-bg: #FDF5E6;
  --color-danger: #D4654A;
  --color-danger-bg: #FBF0EC;

  /* Backgrounds */
  --bg-page: #F7F4FB;
  --bg-card: #FFFFFF;

  /* Text */
  --text-primary: #3D3327;
  --text-secondary: #6B5D4F;
  --text-muted: #A39588;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Shadows */
  --shadow-card: 0 10px 30px rgba(82, 63, 113, .10);
  --shadow-card-hover: 0 12px 36px rgba(82, 63, 113, .16);
  --shadow-modal: 0 16px 48px rgba(61,51,39,0.18);

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;

  --transition: 0.3s ease;

  /* Fonts */
  --font-display: 'Noto Serif SC', 'Songti SC', serif;
  --font-body: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background:
    radial-gradient(circle at 10% 4%, rgba(195,175,226,.28), transparent 28%),
    radial-gradient(circle at 92% 24%, rgba(247,203,195,.22), transparent 27%),
    var(--bg-page);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Phone Container --- */
.phone {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 94px;
  position: relative;
  background: rgba(250,248,253,.75);
}

/* Mode: Login (full width, no phone frame) */
body.mode-login .phone {
  width: 100%;
  background: transparent;
  padding-bottom: 0;
}
body.mode-login .topbar { display: none; }
body.mode-login .bottom-nav { display: none; }

/* ---- 模块二级标签栏 ---- */
.sub-nav {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  gap: 0;
  padding: 0;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(119,98,168,.08);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sub-nav::-webkit-scrollbar { display: none; }
.sub-nav-tab {
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted, #9CA3AF);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.sub-nav-tab:hover { color: var(--text-primary, #374151); }
.sub-nav-tab.active {
  color: var(--color-primary, #6D5ACF);
  border-bottom-color: var(--color-primary, #6D5ACF);
}
body.mode-login .sub-nav { display: none !important; }

@media (min-width: 600px) {
  body { padding: 28px 0; }
  .phone {
    min-height: 860px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(55,42,74,.18);
  }
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Global Topbar --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 58px;
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
  padding: 0 14px;
  background: rgba(250,248,253,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(119,98,168,.08);
}

.topbar-back {
  font-size: 30px;
  color: var(--color-primary);
  cursor: pointer;
  font-family: var(--font-display);
  line-height: 1;
}

.topbar-title {
  text-align: center;
  font-weight: 700;
  font-size: 17px;
  color: var(--text-primary);
}

.topbar-quick {
  text-align: right;
  color: var(--color-primary);
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
}

/* --- Main Content --- */
.main-content {
  margin-top: 0;
  padding: 14px 16px 90px;
  min-height: auto;
}

.page-section {
  display: none;
  animation: fadeIn 0.35s ease;
}

.page-section.active {
  display: block;
}

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

/* --- Container --- */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-md) 0;
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-md) 0;
}

/* --- Hero Identity Card (首页) --- */
.hero-identity-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  margin: 0;
  border-radius: 24px;
  color: white;
  background: linear-gradient(135deg, #7562a6, #9b85b8 56%, #c69fc0);
  box-shadow: 0 10px 30px rgba(82, 63, 113, .10);
}

.hero-identity-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -60px;
  top: -75px;
  border-radius: 50%;
  background: rgba(255,255,255,.13);
}

.hero-identity-card .hero-avatar {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 34px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 7px 20px rgba(50,34,75,.18);
  z-index: 1;
}

.hero-identity-card .hero-info {
  flex: 1;
  z-index: 1;
  min-width: 0;
}

.hero-identity-card .hero-name {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: .5px;
  color: white;
}

.hero-identity-card .hero-meta {
  margin-top: 5px;
  font-size: 13px;
  opacity: .88;
}

.hero-identity-card .hero-intro {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  opacity: .98;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin: 14px 0 8px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  flex: 1;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border: none;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  background: white;
  color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(82, 63, 113, 0.12);
  transition: all 0.2s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(82, 63, 113, 0.18);
}

.btn-hero-secondary {
  flex: 1;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  background: rgba(255,255,255,0.15);
  color: white;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-1px);
}

/* --- Quick Action Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}
.btn-primary:hover {
  background: #3A7BC8;
  transform: translateY(-1px);
  box-shadow: var(--shadow-card-hover);
}

.btn-success {
  background: var(--color-success);
  color: white;
}
.btn-success:hover {
  background: #45A817;
}

.btn-warning {
  background: var(--color-warning);
  color: white;
}
.btn-warning:hover {
  background: #E89F0C;
}

.btn-danger {
  background: var(--color-danger);
  color: white;
}
.btn-danger:hover {
  background: #D91B26;
}

.btn-outline {
  background: white;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: rgba(0,0,0,0.04);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}

/* --- Alert Banner (今日重点) --- */
.alert-banner {
  background: linear-gradient(145deg, #fff, #fbf8ff);
  margin: 0 0 var(--space-sm);
  border-radius: 14px;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(119,98,168,0.08);
  flex-wrap: wrap;
}

.alert-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

.alert-item.danger {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  font-weight: 500;
}

.alert-item.warning {
  background: var(--color-warning-bg);
  color: #8C6A00;
}

.alert-item.info {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* --- Card Grid (导航卡片) --- */
.card-grid {
  display: flex;
  gap: var(--space-sm);
  padding: 0 0 var(--space-sm);
  overflow-x: auto;
}

.nav-card {
  background: linear-gradient(145deg, #fff, #fbf8ff);
  border-radius: 18px;
  padding: 14px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(119,98,168,0.08);
  flex: 1;
  min-width: 0;
}

.nav-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(119,98,168,0.18);
}

.nav-card .card-icon {
  font-size: 1.8rem;
  margin-bottom: 4px;
  display: block;
}

.nav-card .card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.nav-card .card-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* --- Page Header --- */
.page-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0 16px 12px;
  border-bottom: 1px solid rgba(119,98,168,0.08);
  background: transparent;
  position: static;
}

.page-header .page-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* --- Bottom Navigation (TabBar) — 像素级对齐设计稿 --- */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 20;
  width: min(100%, 430px);
  height: 76px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 9px 8px 13px;
  padding-bottom: calc(13px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(119,98,168,.10);
}

@media (min-width: 600px) {
  .bottom-nav {
    position: sticky;
    transform: none;
    left: auto;
    margin-top: -76px;
  }
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #9992a3;
  font-size: 10px;
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
}

.nav-tab .nav-tab-icon {
  display: block;
  margin-bottom: 4px;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
}

.nav-tab.active {
  color: #7762a8;
  font-weight: 700;
}

/* --- Content Cards (通用) --- */
.content-card {
  background: linear-gradient(145deg, #fff, #fbf8ff);
  border-radius: 18px;
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(119,98,168,0.08);
  border-left: none;
  transition: var(--transition);
}

.content-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(119,98,168,0.16);
}

.content-card.green {
  border-left: 4px solid var(--color-success);
  background: var(--color-success-bg);
}

.content-card.yellow {
  border-left: 4px solid var(--color-warning);
  background: var(--color-warning-bg);
}

.content-card.red {
  border-left: 4px solid var(--color-danger);
  background: var(--color-danger-bg);
}

.content-card.blue {
  border-left: 4px solid var(--color-primary);
  background: var(--color-primary-light);
}

.card-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.card-list {
  list-style: none;
}

.card-list li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card-list li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--text-muted);
  font-weight: 700;
}

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-md);
}

/* --- Emotion Flow (流程图) --- */
.flow-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: var(--space-lg) 0;
  flex-wrap: wrap;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 8px 18px;
  border-radius: var(--radius-xl);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.flow-step.red {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border-color: var(--color-danger);
}

.flow-step.yellow {
  background: var(--color-warning-bg);
  color: #8C6A00;
  border-color: var(--color-warning);
}

.flow-step.green {
  background: var(--color-success-bg);
  color: #2E7D0F;
  border-color: var(--color-success);
}

.flow-step.active {
  transform: scale(1.05);
  box-shadow: var(--shadow-card-hover);
}

.flow-arrow {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin: 0 4px;
}

/* --- Timeline (时间轴) --- */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-success), var(--color-warning), var(--color-danger));
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
}

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 2px currentColor;
}

.timeline-dot.green { color: var(--color-success); background: var(--color-success); }
.timeline-dot.yellow { color: var(--color-warning); background: var(--color-warning); }
.timeline-dot.red { color: var(--color-danger); background: var(--color-danger); }

.timeline-card {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: var(--transition);
}

.timeline-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.timeline-card .tl-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.timeline-card .tl-time {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
}

.timeline-card .tl-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.timeline-card .tl-body {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-card .tl-detail {
  display: none;
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px dashed rgba(0,0,0,0.08);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.timeline-card.expanded .tl-detail {
  display: block;
}

.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.risk-badge.green { background: var(--color-success-bg); color: #2E7D0F; }
.risk-badge.yellow { background: var(--color-warning-bg); color: #8C6A00; }
.risk-badge.red { background: var(--color-danger-bg); color: var(--color-danger); }

/* --- Quick Card Modal (速读卡弹窗) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  animation: fadeInOverlay 0.25s ease;
}

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

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

.modal-content {
  background: white;
  border-radius: var(--radius-xl);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-header .modal-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-page);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(0,0,0,0.1);
}

.modal-body {
  padding: var(--space-lg);
}

/* --- Quick Card Content --- */
.quick-card {
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.quick-card-header {
  background: var(--color-primary);
  color: white;
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.quick-card-section {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.quick-card-section:last-child {
  border-bottom: none;
}

.quick-card-section .section-label {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: 6px;
}

.quick-card-section .section-label.green { color: var(--color-success); }
.quick-card-section .section-label.yellow { color: #8C6A00; }
.quick-card-section .section-label.red { color: var(--color-danger); }
.quick-card-section .section-label.blue { color: var(--color-primary); }

.quick-card-section ul {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.quick-card-section ul li {
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}

.quick-card-section ul li::before {
  content: '·';
  position: absolute;
  left: 4px;
  font-weight: 700;
}

.modal-footer {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}

/* --- Relation Map (关系地图) --- */
.relation-map {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: var(--space-xl) auto;
  aspect-ratio: 1;
}

.relation-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.relation-circle.core {
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  border-color: var(--color-primary);
  background: rgba(74,144,217,0.03);
}

.relation-circle.daily {
  width: 82%;
  height: 82%;
  top: 9%;
  left: 9%;
  border-color: var(--color-success);
  background: rgba(82,196,26,0.02);
}

.relation-circle.avoid {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-color: var(--text-muted);
  background: rgba(0,0,0,0.01);
}

.relation-center {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(74,144,217,0.3);
}

.relation-person {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: var(--transition);
}

.relation-person:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.relation-person .person-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 2px solid white;
  box-shadow: var(--shadow-card);
}

.relation-person .person-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.relation-person.core-person .person-avatar { background: var(--color-primary-light); border-color: var(--color-primary); }
.relation-person.daily-person .person-avatar { background: var(--color-success-bg); border-color: var(--color-success); }
.relation-person.avoid-person .person-avatar { background: #f0f0f0; border-color: var(--text-muted); }

/* --- Privacy Demo --- */
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.privacy-item {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.privacy-item.hidden-info {
  filter: blur(4px);
  opacity: 0.5;
  position: relative;
}

.privacy-item.hidden-info::after {
  content: '🔒 当前角色不可见';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  white-space: nowrap;
  filter: none;
  z-index: 10;
}

.privacy-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.privacy-value {
  font-size: 0.92rem;
  font-weight: 500;
}

/* --- Version Tabs (版本切换) --- */
.version-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: var(--space-md);
}

.version-tab {
  padding: 6px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.version-tab.active {
  background: white;
  color: var(--color-primary);
  box-shadow: var(--shadow-card);
}

/* --- Section Title --- */
.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

/* --- Allergy Warning (过敏警告) --- */
.allergy-warning {
  background: var(--color-danger-bg);
  border: 2px solid var(--color-danger);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  margin-bottom: var(--space-lg);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,34,45,0.2); }
  50% { box-shadow: 0 0 0 8px rgba(245,34,45,0); }
}

.allergy-warning .allergy-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.allergy-warning .allergy-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-danger);
}

.allergy-warning .allergy-detail {
  font-size: 0.88rem;
  color: var(--color-danger);
  opacity: 0.8;
  margin-top: 4px;
}

/* --- Analytics Page --- */
.analytics-hero {
  background: linear-gradient(135deg, #13C2C2, #1890FF);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  color: white;
}

.analytics-hero-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.analytics-hero-desc {
  font-size: 0.9rem;
  opacity: 0.9;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.stat-card {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.progress-bar-container {
  height: 8px;
  background: var(--bg-page);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}

.progress-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-bar-sm {
  height: 6px;
  border-radius: 3px;
}

.export-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.export-btn {
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.export-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.export-btn-primary { background: #4A90D9; color: white; }
.export-btn-success { background: #52C41A; color: white; }
.export-btn-warning { background: #FAAD14; color: white; }
.export-btn-danger { background: #EB2F96; color: white; }

.info-box {
  background: var(--color-success-bg);
  border: 1px solid var(--color-success);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.info-box-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #389E0D;
  margin-bottom: 6px;
}

.info-box ul {
  margin: 0;
  padding-left: var(--space-lg);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: var(--space-xl) 16px;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid rgba(119,98,168,0.08);
  background: transparent;
}

/* --- Print Styles --- */
@media print {
  .top-nav, .page-header, .modal-header, .modal-footer,
  .hero-actions, .card-grid, .alert-banner,
  .flow-indicator, .footer { display: none !important; }

  body { background: white; }
  .main-content { margin-top: 0; }

  .page-section { display: block !important; }
}

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

  .two-col, .three-col {
    grid-template-columns: 1fr;
  }

  .hero-identity-card .hero-name { font-size: 1.3rem; }
  .hero-identity-card .hero-intro { font-size: 0.85rem; }

  .flow-indicator {
    flex-direction: column;
    gap: 4px;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .container, .container-wide {
    padding: var(--space-sm) 0;
  }

  .login-view-container {
    max-width: 100%;
    padding: var(--space-lg);
    border-radius: 16px;
  }

  .login-title {
    font-size: 1.5rem;
  }

  .role-select-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .role-select-card {
    padding: var(--space-md);
  }

  .role-select-card .role-avatar {
    font-size: 2.2rem;
  }

  .container, .container-wide {
    padding: var(--space-sm) 0;
  }

  .modal-content {
    margin: var(--space-md);
    max-height: calc(100vh - 40px);
  }
}

@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .nav-card {
    padding: var(--space-md);
  }

  .alert-banner {
    margin: 0 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

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

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }

/* --- Tooltip --- */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  background: rgba(0,0,0,0.75);
  color: white;
  font-size: 0.72rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  margin-bottom: 6px;
}

.tooltip:hover::after {
  opacity: 1;
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: var(--space-xxl);
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.empty-state .empty-text {
  font-size: 0.92rem;
}

/* --- 登录表单 --- */
.login-form {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  max-width: none;
}

.login-form .form-group {
  margin-bottom: var(--space-md);
}

.login-form .form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.login-form .form-input {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid #e8ecf1;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: all 0.3s ease;
  background: #f8fafc;
  box-sizing: border-box;
}

.login-form .form-input:hover {
  border-color: #c4d3e8;
  background: white;
}

.login-form .form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(74,144,217,0.12);
}

.login-form .btn {
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.login-form .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(74,144,217,0.3);
}

.login-combo {
  position: relative;
}

.login-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.login-text-input {
  display: block;
}

.login-toggle-link {
  transition: opacity 0.2s;
}

.login-toggle-link:hover {
  opacity: 0.7;
}

.login-pin-hint {
  animation: loginFadeIn 0.3s ease;
}

/* --- Toast 通知 --- */
.app-toast {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.app-toast.show {
  opacity: 1;
}

/* ==========================================
   多角色记录系统 - 新增样式
   ========================================== */

/* --- 角色选择页面 --- */
.login-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  background:
    radial-gradient(circle at top left, rgba(195,175,226,0.20) 0%, transparent 50%),
    radial-gradient(circle at bottom right, rgba(247,203,195,0.15) 0%, transparent 50%),
    var(--bg-page);
}

.login-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.login-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.login-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

.login-view-container {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: var(--space-xl) var(--space-xl);
  box-shadow: 
    0 8px 32px rgba(82,63,113,0.12),
    0 1px 8px rgba(82,63,113,0.04);
  border: 1px solid rgba(119,98,168,0.10);
  max-width: 420px;
  width: 100%;
  box-sizing: border-box;
  animation: loginFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.login-header {
  animation: loginFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.role-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
  width: 100%;
  max-width: 600px;
}

.role-select-card {
  background: rgba(255,255,255,0.9);
  border-radius: 16px;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.role-select-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.role-select-card[data-role="self"]::before { background: linear-gradient(90deg, #4A90D9, #6BB5FF); }
.role-select-card[data-role="parent"]::before { background: linear-gradient(90deg, #E8684A, #F5A623); }
.role-select-card[data-role="teacher"]::before { background: linear-gradient(90deg, #52C41A, #73D13D); }
.role-select-card[data-role="caregiver"]::before { background: linear-gradient(90deg, #722ED1, #9254DE); }
.role-select-card[data-role="volunteer"]::before { background: linear-gradient(90deg, #13C2C2, #36CFC9); }
.role-select-card[data-role="temp_supporter"]::before { background: linear-gradient(90deg, #FA8C16, #FFB347); }

.role-select-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  border-color: #e0e8f0;
}

.role-select-card:hover::before {
  opacity: 1;
}

.role-select-card[data-role="self"]:hover { border-color: rgba(74,144,217,0.3); }
.role-select-card[data-role="parent"]:hover { border-color: rgba(232,104,74,0.3); }
.role-select-card[data-role="teacher"]:hover { border-color: rgba(82,196,26,0.3); }
.role-select-card[data-role="caregiver"]:hover { border-color: rgba(114,46,209,0.3); }
.role-select-card[data-role="volunteer"]:hover { border-color: rgba(19,194,194,0.3); }
.role-select-card[data-role="temp_supporter"]:hover { border-color: rgba(250,140,22,0.3); }

.role-select-card .role-avatar {
  font-size: 2.8rem;
  margin-bottom: var(--space-sm);
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}

.role-select-card .role-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.role-select-card .role-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  opacity: 0.8;
}

.role-select-card .role-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- 欢迎横幅 --- */
.welcome-banner {
  background: linear-gradient(135deg, rgba(195,175,226,0.15) 0%, white 100%);
  border-radius: 14px;
  padding: var(--space-sm) var(--space-md);
  margin: 0 0 var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(119,98,168,0.08);
}

.welcome-banner .welcome-avatar {
  font-size: 1.8rem;
}

.welcome-banner .welcome-text {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.welcome-banner .welcome-text strong {
  color: var(--color-primary);
}

/* --- 最新动态区域 --- */
.activity-section {
  margin-bottom: var(--space-lg);
}

.activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
  padding: 0;
}

.activity-header .activity-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.activity-header .activity-more {
  font-size: 0.82rem;
  color: var(--color-primary);
  cursor: pointer;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: 0;
}
.activity-card {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  cursor: pointer;
}

.activity-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.activity-card .activity-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.activity-card .activity-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.activity-card .activity-author .author-avatar {
  font-size: 1.2rem;
}

.activity-card .activity-type-tag {
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
}

.activity-card .activity-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

.activity-card .activity-content {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: 28px;
}

/* --- 浮动添加按钮 (FAB) --- */
.fab-add-record {
  position: fixed;
  bottom: 96px;
  right: 32px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(74,144,217,0.4);
  transition: var(--transition);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab-add-record:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(74,144,217,0.5);
}

.fab-add-record:active {
  transform: scale(0.95);
}

/* --- 记录类型选择 --- */
.record-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.record-type-card {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.record-type-card:hover {
  border-color: var(--color-primary);
  background: white;
}

.record-type-card .type-icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-xs);
}

.record-type-card .type-label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.record-type-card .type-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* --- 记录表单 --- */
.record-form .form-group {
  margin-bottom: var(--space-md);
}

.record-form .form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.record-form .form-input,
.record-form .form-textarea,
.record-form .form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
  background: white;
}

.record-form .form-input:focus,
.record-form .form-textarea:focus,
.record-form .form-select:focus {
  border-color: var(--color-primary);
}

.record-form .form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* --- 心情选择 --- */
.mood-selector {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.mood-option {
  padding: 8px 16px;
  border-radius: var(--radius-xl);
  border: 2px solid rgba(0,0,0,0.08);
  background: white;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mood-option:hover {
  border-color: var(--color-primary);
}

.mood-option.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  font-weight: 600;
}

/* --- 筛选器 --- */
.filter-bar {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  align-items: center;
}

.filter-bar .filter-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.filter-bar .filter-select {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,0.12);
  font-size: 0.82rem;
  font-family: var(--font-body);
  background: white;
  cursor: pointer;
}

/* --- 记录卡片（时间轴用） --- */
.record-card {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-card);
  border-left: 3px solid var(--color-primary);
  transition: var(--transition);
}

.record-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.record-card .record-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.record-card .record-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.record-card .record-type-tag {
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
}

.record-card .record-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

.record-card .record-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.record-card .record-content {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Toast 提示 --- */
.app-toast {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--text-primary);
  color: white;
  padding: 10px 24px;
  border-radius: var(--radius-xl);
  font-size: 0.88rem;
  z-index: 300;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.app-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- 个人中心 --- */
.profile-header {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background: linear-gradient(135deg, #7562a6, #9b85b8 56%, #c69fc0);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}

.profile-header .profile-avatar {
  font-size: 4rem;
  margin-bottom: var(--space-sm);
}

.profile-header .profile-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-header .profile-role {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.profile-stat {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.profile-stat .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.profile-stat .stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- 医疗信息冲突警告 --- */
.medical-conflict-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, #FFF1F0 0%, #FFCCC7 100%);
  border: 1.5px solid #F5222D;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  animation: mc-shake 0.4s ease-out;
}
@keyframes mc-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
.mc-banner-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.mc-banner-body {
  flex: 1;
  min-width: 0;
}
.mc-banner-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #CF1322;
  margin-bottom: 4px;
}
.mc-banner-detail {
  font-size: 0.8rem;
  color: #820014;
  line-height: 1.5;
  margin-bottom: 10px;
}
.mc-banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mc-btn-fix {
  padding: 6px 14px;
  background: #F5222D;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.mc-btn-fix:hover {
  background: #CF1322;
}
.mc-btn-dismiss {
  padding: 6px 14px;
  background: transparent;
  color: #820014;
  border: 1px solid #F5222D;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
}
.mc-btn-dismiss:hover {
  background: #FFF1F0;
}

/* --- 每日任务页面 — Outlook 风格 --- */

/* 进度环区域 */
.ot-progress-section {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 16px;
  margin-bottom: 4px;
}
.ot-progress-ring-wrapper {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}
.ot-progress-ring {
  width: 72px;
  height: 72px;
  transform: rotate(-90deg);
}
.ot-progress-bg {
  fill: none;
  stroke: #E5E7EB;
  stroke-width: 6;
}
.ot-progress-fill {
  fill: none;
  stroke: #4A90D9;
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dasharray 0.5s ease;
}
.ot-progress-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ot-progress-pct {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1F2937;
}
.ot-progress-meta {
  flex: 1;
}
.ot-progress-date {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 4px;
}
.ot-progress-stat {
  font-size: 0.82rem;
  color: #6B7280;
}
.ot-progress-stat strong {
  color: #4A90D9;
  font-size: 1rem;
}

/* 任务分组 */
.ot-group {
  margin: 0 12px 12px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  overflow: hidden;
}
.ot-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 8px;
  border-bottom: 1px solid #F3F4F6;
}
.ot-group-icon {
  font-size: 1rem;
}
.ot-group-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6B7280;
  flex: 1;
}
.ot-group-count {
  font-size: 0.75rem;
  color: #9CA3AF;
  background: #F3F4F6;
  padding: 2px 8px;
  border-radius: 10px;
}

/* 任务行 */
.ot-task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #F9FAFB;
  transition: background 0.15s;
}
.ot-task-row:last-child {
  border-bottom: none;
}
.ot-task-row:active {
  background: #F9FAFB;
}
.ot-task-row.ot-done .ot-task-title {
  text-decoration: line-through;
  color: #9CA3AF;
}
.ot-task-row.ot-done {
  opacity: 0.65;
}

/* 左侧分类色条 */
.ot-task-bar {
  width: 4px;
  height: 40px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* 复选框 */
.ot-task-check {
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  transition: transform 0.15s;
}
.ot-task-check:active {
  transform: scale(0.9);
}

/* 任务内容 */
.ot-task-body {
  flex: 1;
  min-width: 0;
}
.ot-task-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ot-task-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
}
.ot-task-cat {
  font-weight: 500;
}
.ot-task-time {
  color: #9CA3AF;
}
.ot-task-due {
  color: #6B7280;
}
.ot-task-due.ot-overdue {
  color: #F5222D;
  font-weight: 600;
}

/* 操作按钮 */
.ot-task-actions {
  flex-shrink: 0;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}
.ot-task-row:hover .ot-task-actions,
.ot-task-row:active .ot-task-actions {
  opacity: 1;
}
.ot-btn-progress,
.ot-btn-undo {
  width: 28px;
  height: 28px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  background: #fff;
  font-size: 0.75rem;
  cursor: pointer;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.ot-btn-progress:hover,
.ot-btn-undo:hover {
  border-color: #4A90D9;
  color: #4A90D9;
  background: #F0F5FF;
}

/* 临时任务 */
.ot-task-row.ot-adhoc .ot-check-adhoc {
  cursor: default;
}

/* 本周打卡 */
.ot-week-section {
  margin: 16px 12px;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.ot-week-grid {
  display: flex;
  justify-content: space-around;
}
.ot-week-day {
  text-align: center;
  flex: 1;
}
.ot-week-label {
  font-size: 0.72rem;
  color: #9CA3AF;
  margin-bottom: 4px;
}
.ot-week-day.ot-week-today .ot-week-label {
  color: #4A90D9;
  font-weight: 700;
}
.ot-week-ring {
  position: relative;
  width: 40px;
  height: 40px;
  margin: 0 auto 4px;
}
.ot-week-ring svg {
  width: 40px;
  height: 40px;
}
.ot-week-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
}
.ot-week-date {
  font-size: 0.65rem;
  color: #9CA3AF;
}
.ot-week-day.ot-week-today .ot-week-date {
  color: #4A90D9;
  font-weight: 600;
}

/* 添加按钮 */
.ot-add-btn {
  padding: 10px 28px;
  border: 1.5px dashed #D1D5DB;
  border-radius: 10px;
  background: transparent;
  font-size: 0.9rem;
  color: #6B7280;
  cursor: pointer;
  transition: all 0.2s;
}
.ot-add-btn:hover {
  border-color: #4A90D9;
  color: #4A90D9;
  background: #F0F5FF;
}

/* 新建弹窗 */
.ot-modal-type-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  background: #F3F4F6;
  border-radius: 10px;
  padding: 4px;
}
.ot-type-tab {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 0.85rem;
  color: #6B7280;
  cursor: pointer;
  transition: all 0.15s;
}
.ot-type-tab.active {
  background: #fff;
  color: #1F2937;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.ot-weekday-grid {
  display: flex;
  gap: 6px;
}
.ot-weekday-btn {
  width: 36px;
  height: 36px;
  border: 1.5px solid #E5E7EB;
  border-radius: 8px;
  background: #fff;
  font-size: 0.82rem;
  color: #6B7280;
  cursor: pointer;
  transition: all 0.15s;
}
.ot-weekday-btn.selected {
  background: #4A90D9;
  color: #fff;
  border-color: #4A90D9;
}

/* --- 日历页面 --- */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}
.cal-weekday {
  text-align: center;
  font-size: 0.82rem;
  color: #999;
  padding: 8px 0;
  font-weight: 600;
}
.cal-day {
  text-align: center;
  padding: 8px 4px;
  border-radius: 8px;
  cursor: pointer;
  min-height: 52px;
  transition: background 0.2s;
  position: relative;
}
.cal-day:hover { background: #f5f7fa; }
.cal-day.empty { cursor: default; }
.cal-day.cal-today { background: rgba(74,144,217,0.08); }
.cal-day.cal-today .cal-day-num { color: #4A90D9; font-weight: 700; }
.cal-day.cal-selected { background: #4A90D9; color: #fff; }
.cal-day.cal-selected .cal-day-num { color: #fff; font-weight: 700; }
.cal-day-num {
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 2px;
}
.cal-dots {
  display: flex;
  justify-content: center;
  gap: 2px;
  flex-wrap: wrap;
}
.cal-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  display: inline-block;
}
.cal-event-panel {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

@media (max-width: 768px) {
  .ot-progress-section { flex-direction: column; text-align: center; }
  .ot-week-grid { flex-wrap: wrap; }
  .calendar-grid { font-size: 0.8rem; }
  .cal-day { min-height: 40px; padding: 4px 2px; }
}

/* --- 图表页面 --- */
.chart-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* 统计卡片 hover 效果 */
.stat-card:hover {
  border-color: #4A90D9 !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  #charts-content [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr);
  }
  #charts-content [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   政府数据看板 v2.0 — Linear/Modern 深色主题
   设计原则：克制色彩、突出变化、小样本保护
   ========================================== */

/* ---- 全局容器 ---- */
.gov-dashboard {
  background: #050506;
  min-height: 100vh;
  padding: 24px 20px 40px;
  font-family: "Inter", "Geist Sans", system-ui, sans-serif;
  color: #EDEDEF;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* 背景光晕层 */
.gov-dashboard::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(94,106,210,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: gov-float-blob 10s ease-in-out infinite;
}

@keyframes gov-float-blob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-18px); }
}

.gov-dashboard > * { position: relative; z-index: 1; }

/* ---- 页面标题区 ---- */
.gov-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  flex-wrap: wrap;
  gap: 16px;
}

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

.gov-header-icon {
  font-size: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(94,106,210,0.12);
  border-radius: 12px;
  border: 1px solid rgba(94,106,210,0.2);
}

.gov-header-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #EDEDEF;
  margin: 0;
  letter-spacing: -0.01em;
  background: linear-gradient(to bottom, #EDEDEF, rgba(237,237,239,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gov-header-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin: 4px 0 0;
}

.gov-header-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 6px 14px;
}

.gov-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #52C41A;
  box-shadow: 0 0 6px rgba(82,196,26,0.4);
}

/* ---- KPI 指标卡 ---- */
.gov-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.gov-kpi-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 4px 24px rgba(0,0,0,0.3);
}

.gov-kpi-card:hover {
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 8px 32px rgba(0,0,0,0.4);
}

.gov-kpi-icon {
  font-size: 1.3rem;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}

.gov-kpi-body { flex: 1; min-width: 0; }

.gov-kpi-value {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.gov-kpi-unit {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.6;
  letter-spacing: 0;
}

.gov-kpi-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

.gov-kpi-desc {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  margin-top: 3px;
  line-height: 1.3;
}

/* 小样本保护的卡片样式 */
.gov-kpi-protected {
  opacity: 0.5;
  filter: grayscale(0.5);
}
.gov-kpi-protected .gov-kpi-value {
  font-size: 1.1rem;
  font-style: italic;
}

/* ---- 图表行 ---- */
.gov-chart-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.gov-chart-panel {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.02), 0 4px 20px rgba(0,0,0,0.25);
  transition: border-color 0.25s ease;
}

.gov-chart-panel:hover {
  border-color: rgba(255,255,255,0.08);
}

.gov-chart-wide { grid-column: span 1; }

.gov-chart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

.gov-chart-subtitle {
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255,255,255,0.35);
}

.gov-chart-body {
  position: relative;
  height: 240px;
}

/* ---- 统计口径 + 导出 ---- */
.gov-bottom-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.gov-methodology {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 20px;
}

.gov-methodology-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 14px;
}

.gov-methodology-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gov-methodology-item {
  display: flex;
  gap: 10px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

.gov-methodology-item strong {
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}

.gov-meth-icon {
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 0.9rem;
}

.gov-export-section {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gov-export-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 6px;
}

.gov-export-desc {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.gov-export-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.gov-btn-export {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(94,106,210,0.15);
  border: 1px solid rgba(94,106,210,0.3);
  border-radius: 10px;
  color: #5E6AD2;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gov-btn-export:hover:not(:disabled) {
  background: rgba(94,106,210,0.25);
  border-color: rgba(94,106,210,0.5);
}

.gov-btn-export:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.gov-export-note {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
}

/* ---- 底部 ---- */
.gov-footer {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.gov-footer-text {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
  line-height: 1.6;
}

/* ---- 响应式 ---- */
@media (max-width: 1024px) {
  .gov-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gov-chart-row,
  .gov-bottom-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .gov-dashboard {
    padding: 16px 12px 32px;
  }
  .gov-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .gov-kpi-card {
    padding: 14px;
    gap: 10px;
  }
  .gov-kpi-value {
    font-size: 1.3rem;
  }
  .gov-header {
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .gov-header-badge {
    align-self: flex-start;
  }
  .gov-chart-panel {
    padding: 14px;
  }
  .gov-chart-body {
    height: 200px;
  }
}

/* ==========================================
   v2.0 新增：以人为本 · 「认识我」卡片
   ========================================== */

/* 认识我 — 首页主卡片 */
.know-me-card {
  background: linear-gradient(145deg, #fff, #fefaf6);
  border-radius: 20px;
  margin: 0 0 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(119,98,168,0.10);
}

.know-me-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #f0ebe3, #fdf6ed);
  border-bottom: 1px solid rgba(180,150,120,0.12);
}

.know-me-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8a547, #e8c887);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(232,165,71,0.2);
}

.know-me-header-info {
  flex: 1;
  min-width: 0;
}

.know-me-header-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.know-me-header-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.know-me-first-person {
  padding: 14px 18px;
  background: rgba(232,165,71,0.06);
  border-left: 3px solid #e8a547;
  margin: 14px 16px 0;
  border-radius: 0 10px 10px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}

.know-me-first-person::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #e8a547;
  margin-right: 2px;
  line-height: 0;
  vertical-align: -4px;
}

.know-me-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 16px;
}

.know-me-mini {
  background: #fdfaf5;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(180,150,120,0.08);
}

.know-me-mini.full {
  grid-column: 1 / -1;
}

.know-me-mini-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #8b6914;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.know-me-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.know-me-tag {
  padding: 4px 10px;
  background: white;
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  border: 1px solid rgba(180,150,120,0.15);
  white-space: nowrap;
}

.know-me-tag.highlight {
  background: rgba(232,165,71,0.1);
  border-color: rgba(232,165,71,0.3);
  color: #8b6914;
  font-weight: 500;
}

.know-me-independence {
  display: flex;
  gap: 10px;
  padding: 0 16px 14px;
}

.know-me-ind-col {
  flex: 1;
  background: #fdfaf5;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(180,150,120,0.08);
}

.know-me-ind-col .ind-label {
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #8b6914;
}

.know-me-ind-col .ind-list {
  list-style: none;
  font-size: 0.76rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.know-me-ind-col .ind-list li::before {
  content: '· ';
  color: var(--text-muted);
}

.know-me-aspiration {
  margin: 0 16px 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(232,165,71,0.08), rgba(232,165,71,0.02));
  border-radius: 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.know-me-aspiration .asp-label {
  font-weight: 700;
  color: #8b6914;
  display: block;
  margin-bottom: 4px;
  font-size: 0.78rem;
}

/* ==========================================
   v2.0 新增：信息来源标签
   ========================================== */

.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 500;
}

.source-badge.self {
  background: rgba(74,144,217,0.1);
  color: #4A90D9;
  border: 1px solid rgba(74,144,217,0.2);
}

.source-badge.observer {
  background: rgba(114,46,209,0.08);
  color: #722ED1;
  border: 1px solid rgba(114,46,209,0.15);
}

.source-badge.confirmed {
  background: rgba(82,196,26,0.1);
  color: #389E0D;
  border: 1px solid rgba(82,196,26,0.2);
}

.source-legend {
  display: flex;
  gap: 12px;
  padding: 10px 16px;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(0,0,0,0.04);
}

/* ==========================================
   v2.0 新增：压力信号与支持方法卡（替代行为红线）
   ========================================== */

.stress-card {
  background: white;
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
}

.stress-category {
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stress-category.attention { background: rgba(250,173,20,0.08); color: #8C6A00; }
.stress-category.signal { background: rgba(114,46,209,0.06); color: #722ED1; }
.stress-category.safety { background: rgba(245,34,45,0.06); color: #D4654A; }

.stress-body {
  padding: 12px 14px;
}

.stress-chain {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stress-chain-item {
  display: flex;
  gap: 8px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.stress-chain-item .chain-label {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 56px;
  font-size: 0.75rem;
}

.stress-chain-item .chain-text {
  color: var(--text-secondary);
  flex: 1;
}

.stress-do-dont {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.stress-do, .stress-dont {
  flex: 1;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.78rem;
}

.stress-do {
  background: rgba(82,196,26,0.06);
  border: 1px solid rgba(82,196,26,0.12);
}

.stress-do .do-dont-label {
  color: #389E0D;
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 0.72rem;
}

.stress-dont {
  background: rgba(245,34,45,0.04);
  border: 1px solid rgba(245,34,45,0.08);
}

.stress-dont .do-dont-label {
  color: #D4654A;
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 0.72rem;
}

.stress-do li, .stress-dont li {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.5;
  padding: 1px 0;
}

/* ==========================================
   v2.0 新增：ABC 支持框架表单
   ========================================== */

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

.abc-field {
  background: #fafafa;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,0.06);
}

.abc-field-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.abc-field-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-style: italic;
}

.abc-field textarea {
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: var(--font-body);
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
  background: white;
}

.abc-field textarea:focus {
  border-color: var(--color-primary);
}

.abc-sample-toggle {
  text-align: right;
  padding: 0;
}

.abc-sample-toggle a {
  font-size: 0.78rem;
  color: var(--color-primary);
  cursor: pointer;
}

/* ==========================================
   v2.0 新增：多场景速读卡切换
   ========================================== */

.scenario-tabs {
  display: flex;
  gap: 6px;
  padding: 0 0 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.scenario-tab {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1.5px solid rgba(0,0,0,0.08);
  background: white;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  color: var(--text-secondary);
  font-family: var(--font-body);
}

.scenario-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.scenario-tab.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* ==========================================
   v2.0 新增：策略有效性评价
   ========================================== */

.effectiveness-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 0;
}

.effectiveness-option {
  padding: 6px 12px;
  border-radius: 16px;
  border: 1.5px solid rgba(0,0,0,0.1);
  background: white;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
}

.effectiveness-option:hover {
  border-color: var(--color-primary);
}

.effectiveness-option.selected {
  font-weight: 600;
}

.effectiveness-option.selected.eff-effective {
  background: rgba(82,196,26,0.1);
  border-color: #52C41A;
  color: #389E0D;
}

.effectiveness-option.selected.eff-partial {
  background: rgba(250,173,20,0.1);
  border-color: #FAAD14;
  color: #8C6A00;
}

.effectiveness-option.selected.eff-none {
  background: rgba(0,0,0,0.04);
  border-color: #999;
  color: #666;
}

.effectiveness-option.selected.eff-worse {
  background: rgba(245,34,45,0.08);
  border-color: #F5222D;
  color: #D4654A;
}

.eff-meta {
  display: flex;
  gap: 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ==========================================
   v2.0 新增：已验证策略卡片
   ========================================== */

.verified-strategy-card {
  background: white;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  border: 1px solid rgba(82,196,26,0.2);
  border-left: 4px solid #52C41A;
}

.verified-strategy-card .vs-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.verified-strategy-card .vs-steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.verified-strategy-card .vs-step {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}

.verified-strategy-card .vs-step::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #52C41A;
}

.verified-strategy-card .vs-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding-top: 8px;
  border-top: 1px solid rgba(0,0,0,0.04);
}

/* ==========================================
   v2.0 新增：AI 发现演示卡片
   ========================================== */

.ai-discovery-card {
  background: linear-gradient(135deg, rgba(114,46,209,0.04), rgba(74,144,217,0.04));
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(114,46,209,0.12);
}

.ai-discovery-card .ai-disc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.ai-discovery-card .ai-disc-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #722ED1, #9254DE);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
}

.ai-discovery-card .ai-disc-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #722ED1;
}

.ai-discovery-card .ai-disc-body {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
}

.ai-discovery-card .ai-disc-suggestion {
  background: white;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--text-primary);
  border: 1px solid rgba(114,46,209,0.15);
  line-height: 1.5;
}

.ai-disc-evidence {
  margin-top: 10px;
}

.ai-disc-evidence .evi-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.ai-disc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}

.ai-disc-table th {
  text-align: left;
  padding: 4px 6px;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.ai-disc-table td {
  padding: 4px 6px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.ai-disc-action {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.ai-disc-btn {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.ai-disc-btn.confirm {
  background: #52C41A;
  color: white;
}

.ai-disc-btn.confirm:hover {
  background: #45A817;
}

.ai-disc-btn.review {
  background: white;
  color: var(--text-secondary);
  border: 1.5px solid rgba(0,0,0,0.12);
}

.ai-disc-btn.review:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ==========================================
   v2.0 新增：演示工作链
   ========================================== */

.demo-workflow {
  background: white;
  border-radius: 16px;
  padding: 6px 0;
  margin: 16px 0;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(119,98,168,0.08);
}

.demo-workflow-header {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.demo-workflow-header .dw-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.demo-workflow-header .dw-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.demo-step {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.03);
  align-items: flex-start;
}

.demo-step:last-child {
  border-bottom: none;
}

.demo-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.demo-step-content {
  flex: 1;
  min-width: 0;
}

.demo-step-actor {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.demo-step-action {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================
   v2.0 新增：速读卡新版 "5分钟认识我"
   ========================================== */

.new-qc-hero {
  text-align: center;
  padding: 20px 16px 12px;
}

.new-qc-hero .qc-hero-emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: 8px;
}

.new-qc-hero .qc-hero-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.new-qc-hero .qc-hero-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.new-qc-section {
  padding: 14px 16px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.new-qc-section:first-of-type {
  border-top: none;
}

.new-qc-section .nqc-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nqc-icon-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nqc-icon-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #fafafa;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border: 1px solid rgba(0,0,0,0.06);
}

.nqc-icon-item .nqc-emoji {
  font-size: 1.1rem;
}

.nqc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nqc-list li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.nqc-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
}

.new-qc-avoid {
  background: rgba(245,34,45,0.03);
  border-radius: 12px;
  margin: 0 16px 14px;
  padding: 12px 14px;
  border: 1px solid rgba(245,34,45,0.08);
}

.new-qc-avoid .nqc-avoid-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #D4654A;
  margin-bottom: 6px;
}

/* ==========================================
   v2.0 新增：趋势分析改进提示
   ========================================== */

.analytics-disclaimer {
  background: rgba(250,173,20,0.06);
  border: 1px solid rgba(250,173,20,0.15);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.analytics-disclaimer .disc-title {
  font-weight: 700;
  color: #8C6A00;
  margin-bottom: 4px;
  font-size: 0.8rem;
}

.analytics-disclaimer li {
  padding: 2px 0;
}

.analytics-disclaimer li::before {
  content: '• ';
  color: #FAAD14;
}

/* ==========================================
   v2.0 新增：管理页（Admin Dashboard）
   按"人和权限"组织，不按技术模块堆菜单
   ========================================== */

/* --- 管理页身份卡 --- */
.admin-id-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border-radius: 16px;
  padding: 18px 20px;
  margin: 0 0 16px;
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--color-primary);
}

.admin-id-avatar {
  font-size: 2.5rem;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--bg-page);
}

.admin-id-info {
  flex: 1;
  min-width: 0;
}

.admin-id-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.admin-id-role {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* --- 管理权限声明 --- */
.admin-limitation-note {
  background: rgba(250,173,20,0.08);
  border: 1px solid rgba(250,173,20,0.2);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.admin-limitation-note strong {
  color: #8C6A00;
}

/* --- 统计卡片行 --- */
.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.admin-stat-card {
  background: white;
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.admin-stat-icon {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.admin-stat-num {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
}

.admin-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- 风险提示区 --- */
.admin-alert-section {
  background: rgba(245,34,45,0.04);
  border-left: 3px solid #F5222D;
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.admin-alert-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #D4654A;
  margin-bottom: 8px;
}

.admin-alert-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 4px 0;
}

.alert-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #F5222D;
  flex-shrink: 0;
}

/* --- 管理页 section --- */
.admin-section {
  margin-bottom: 20px;
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.admin-section-badge {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-page);
  padding: 2px 10px;
  border-radius: 10px;
}

/* --- 状态筛选标签 --- */
.admin-filter-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-page);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-filter-tab {
  padding: 6px 14px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.admin-filter-tab:hover {
  color: var(--color-primary);
}

.admin-filter-tab.active {
  background: white;
  color: var(--color-primary);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* --- 授权人员卡片 --- */
.admin-grant-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-person-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.2s;
}

.admin-person-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.admin-person-card.pending {
  border-left: 3px solid #FAAD14;
  background: rgba(250,173,20,0.02);
}

.admin-person-card.revoked {
  opacity: 0.6;
}

.admin-person-avatar {
  font-size: 2rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--bg-page);
}

.admin-person-body {
  flex: 1;
  min-width: 0;
}

.admin-person-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-person-expiring {
  font-size: 0.65rem;
  background: rgba(245,34,45,0.1);
  color: #F5222D;
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 500;
}

.admin-person-meta {
  display: flex;
  gap: 6px;
  margin-top: 3px;
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  align-items: center;
}

.admin-role-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  color: #fff;
  font-weight: 500;
}

/* --- 人员操作按钮 --- */
.admin-person-more {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  background: white;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-muted);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.admin-person-more:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.admin-person-approve {
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  background: var(--color-primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.admin-person-approve:hover {
  background: var(--color-primary-dark);
}

.admin-person-restore {
  padding: 6px 14px;
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  background: white;
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.admin-person-restore:hover {
  background: var(--color-primary-light);
}

/* --- 快捷操作区 --- */
.admin-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.admin-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.admin-action-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  transform: translateY(-1px);
}

.admin-action-icon {
  font-size: 1.5rem;
}

.admin-action-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-align: center;
}

.admin-action-btn:hover .admin-action-label {
  color: var(--color-primary);
}

/* --- 操作日志 --- */
.admin-log-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-log-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: white;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.03);
  transition: all 0.2s;
}

.admin-log-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.admin-log-reverted {
  opacity: 0.4;
}

.admin-log-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.admin-log-body {
  flex: 1;
  min-width: 0;
}

.admin-log-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.admin-log-text strong {
  color: var(--text-primary);
}

.admin-log-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.admin-log-undo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  background: white;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.admin-log-undo:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

/* --- 用户列表（管理员视图） --- */
.admin-user-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.03);
}

.admin-user-avatar {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-page);
}

.admin-user-info {
  flex: 1;
  min-width: 0;
}

.admin-user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.admin-user-meta {
  display: flex;
  gap: 6px;
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  align-items: center;
}

/* --- 响应式 --- */
@media (max-width: 480px) {
  .admin-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-filter-tabs {
    gap: 2px;
  }
  .admin-filter-tab {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
}

/* ==========================================
   档案模块：主题档案入口 + 档案状态（archive.js）
   ========================================== */

/* --- 主题档案入口 --- */
.at-intro {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 16px;
  padding: 4px 0;
}

.at-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 12px;
}

.at-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  border-left: 4px solid #ccc;
  cursor: pointer;
  transition: all 0.2s;
}
.at-card:active { transform: scale(0.99); }

.at-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.at-card-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.at-card-icon span { font-size: 1.4rem; }

.at-card-body { flex: 1; min-width: 0; }

.at-card-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.at-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.at-card-end {
  text-align: right;
  flex-shrink: 0;
}

.at-card-count {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.at-card-arrow {
  font-size: 1.2rem;
  color: var(--text-muted);
}

/* --- 档案状态 --- */
.as-section {
  margin-bottom: 20px;
}

.as-heading {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 10px 0;
}

.as-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.as-item-icon { font-size: 1.2rem; flex-shrink: 0; }

.as-item-text {
  flex: 1;
  font-size: 0.85rem;
  color: #555;
}

.as-item-link {
  font-size: 0.8rem;
  text-decoration: none;
  white-space: nowrap;
}

.as-warning {
  background: #FFF7E6;
}
.as-warning .as-item-link { color: #4A90D9; }

.as-danger {
  background: #FFF2F0;
}
.as-danger .as-item-link { color: #F5222D; }

.as-purple {
  background: #F6F0FF;
}
.as-purple .as-item-link { color: #722ED1; }

.as-ok {
  background: #F6FFED;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.85rem;
  color: #52C41A;
}

.as-footer {
  text-align: center;
  padding: 16px 0 32px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================
   沟通说明书四层模型（L1-L4）
   ========================================== */

.comm-four-layer {
  padding: 0 0 24px;
}

.comm-layer {
  margin-bottom: 24px;
  padding: 0;
}

.comm-layer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.comm-layer-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* --- L1 当前摘要 --- */
.comm-l1-item {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.comm-l1-text {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.comm-l1-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.78rem;
}

.comm-source-badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 500;
}
.comm-source-badge.source-self       { background: #E8F5E9; color: #2E7D32; }
.comm-source-badge.source-confirmed  { background: #E3F2FD; color: #1565C0; }
.comm-source-badge.source-observer   { background: #FFF3E0; color: #E65100; }

.comm-source-info {
  color: var(--text-muted);
  flex: 1;
}

.comm-view-evidence {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
}

/* --- L2 最近变化 --- */
.comm-time-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.comm-time-tab {
  padding: 6px 16px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #fff;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.comm-time-tab.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.comm-l2-summary {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}
.comm-l2-summary p { margin: 0; }

.comm-l2-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comm-l2-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  font-size: 0.85rem;
}

.comm-l2-item-text {
  flex: 1;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comm-l2-item-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.comm-l2-eff {
  background: #E8F5E9;
  color: #2E7D32;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  white-space: nowrap;
}

/* --- L3 关键事件 --- */
.comm-l3-item {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.comm-l3-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.comm-l3-icon { font-size: 1.1rem; }
.comm-l3-type { font-weight: 600; font-size: 0.85rem; color: var(--text-primary); }
.comm-l3-date { font-size: 0.78rem; color: var(--text-muted); margin-left: auto; }

.comm-l3-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 6px;
}

.comm-l3-source {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- L4 全部记录 --- */
.comm-l4-group {
  margin-bottom: 16px;
}

.comm-l4-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.comm-l4-group-icon { font-size: 1rem; }
.comm-l4-group-label { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.comm-l4-group-count { font-size: 0.78rem; color: var(--text-muted); flex: 1; }
.comm-l4-toggle { font-size: 0.85rem; color: var(--text-muted); }

.comm-l4-group-body { padding: 4px 0; }

.comm-l4-day {
  margin-bottom: 8px;
}

.comm-l4-day-header {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 4px 0 6px;
}

.comm-l4-record {
  display: flex;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}

.comm-l4-type {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.comm-l4-record-body {
  flex: 1;
  min-width: 0;
}

.comm-l4-record-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.comm-l4-record-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.comm-l4-record-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 通用 */
.comm-empty {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ==========================================
   Quick-Start 三步引导页
   ========================================== */
.qs-header {
  padding: 16px 16px 8px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.qs-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 6px;
}
.qs-step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 600;
  background: #e8e8e8; color: #999;
  flex-shrink: 0;
}
.qs-step-dot.active { background: #4A90D9; color: #fff; }
.qs-step-line {
  width: 40px; height: 2px;
  background: #e8e8e8;
  flex-shrink: 0;
}
.qs-step-line.active { background: #4A90D9; }
.qs-step-labels {
  display: flex; justify-content: space-between;
  font-size: 0.7rem; color: #999; padding: 0 4px;
}
.qs-step-labels span { flex: 1; text-align: center; }
.qs-user-info {
  display: flex; align-items: center; gap: 8px;
  margin-top: 6px; font-size: 0.78rem; color: #666;
}
.qs-youth-tag {
  background: #e6f4ff; color: #4A90D9;
  padding: 2px 8px; border-radius: 99px; font-size: 0.72rem;
}
.qs-step-body {
  padding: 24px 16px;
  max-width: 480px; margin: 0 auto;
}
.qs-title {
  font-size: 1.3rem; font-weight: 700; color: #1a1a1a;
  margin-bottom: 4px; text-align: center;
}
.qs-subtitle {
  font-size: 0.9rem; color: #888; text-align: center;
  margin-bottom: 20px;
}
.qs-back-row { margin-bottom: 12px; }
.qs-btn-back {
  background: none; border: none;
  color: #4A90D9; font-size: 0.9rem; cursor: pointer; padding: 4px 0;
}
.qs-role-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px; margin-bottom: 20px;
}
.qs-role-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 8px;
  border: 1.5px solid #e8e8e8; border-radius: 12px;
  background: #fff; cursor: pointer; text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 100px;
}
.qs-role-card:active, .qs-role-card.active {
  border-color: #4A90D9; box-shadow: 0 0 0 2px rgba(74,144,217,0.15);
}
.qs-role-icon { font-size: 1.8rem; margin-bottom: 4px; }
.qs-role-label { font-size: 0.85rem; font-weight: 600; color: #1a1a1a; }
.qs-role-desc { font-size: 0.72rem; color: #999; margin-top: 4px; line-height: 1.3; }
.qs-actions { text-align: center; }
.qs-back-login { text-align: center; margin-top: 20px; }
.qs-back-login a { font-size: 0.85rem; color: #999; text-decoration: none; }
.qs-back-login a:hover { color: #666; }
.qs-btn-primary {
  padding: 14px 48px; border: none; border-radius: 10px;
  background: #4A90D9; color: #fff;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  min-width: 160px;
}
.qs-btn-primary:disabled { background: #ccc; cursor: not-allowed; }
.qs-btn-primary:active { background: #3A7BC8; }
.qs-action-stack { display: flex; flex-direction: column; gap: 12px; }
.qs-btn-lg { width: 100%; padding: 16px; text-align: center; }
.qs-btn-secondary {
  padding: 14px 48px; border: 1.5px solid #d0d0d0; border-radius: 10px;
  background: #fafafa; color: #555;
  font-size: 0.95rem; cursor: pointer; text-align: center;
}
.qs-btn-secondary:active { background: #eee; }
.qs-hint {
  font-size: 0.78rem; color: #aaa; text-align: center;
  margin: -4px 0 8px; line-height: 1.5;
}
.qs-youth-confirm {
  text-align: center; padding: 12px 16px;
  background: #f6f8fa; border-radius: 10px;
  margin-bottom: 16px; font-size: 0.9rem; color: #555;
}
.qs-auth-scope {
  margin-top: 6px; font-size: 0.75rem; color: #FA8C16;
  font-weight: 500;
}
.qs-confirm-label { display: block; font-size: 0.78rem; color: #999; margin-bottom: 2px; }

/* ==========================================
   Supporter Card 临时支持者速读卡
   ========================================== */
.sc-page { padding-bottom: 40px; }
.sc-header {
  background: linear-gradient(135deg, #FA8C16, #FFA940);
  color: #fff; padding: 20px 16px;
}
.sc-header-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.sc-title { font-size: 1.1rem; font-weight: 700; }
.sc-badge {
  font-size: 0.65rem; padding: 3px 8px; border-radius: 99px;
  background: rgba(255,255,255,0.25); white-space: nowrap;
}
.sc-subtitle { font-size: 0.78rem; opacity: 0.85; margin-bottom: 10px; }
.sc-auth-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 0.7rem; opacity: 0.8;
}
.sc-blocks { padding: 12px 12px 0; }
.sc-block {
  background: #fff; border-radius: 12px;
  padding: 16px; margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.sc-block-warn { border-left: 3px solid #FAAD14; }
.sc-block-danger { border-left: 3px solid #F5222D; }
.sc-block-title {
  font-size: 0.95rem; font-weight: 700; color: #1a1a1a;
  margin-bottom: 10px;
}
.sc-block-body p { font-size: 0.88rem; color: #444; line-height: 1.6; margin-bottom: 6px; }
.sc-list { padding-left: 18px; }
.sc-list li { font-size: 0.88rem; color: #444; line-height: 1.6; margin-bottom: 4px; }
.sc-schedule { display: flex; flex-direction: column; gap: 6px; }
.sc-sched-item {
  display: flex; gap: 10px; font-size: 0.85rem; color: #444;
  padding: 6px 8px; background: #f8f9fa; border-radius: 8px;
}
.sc-time { font-weight: 600; color: #4A90D9; white-space: nowrap; min-width: 42px; }
.sc-safety-item {
  display: flex; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid #f5f5f5; font-size: 0.85rem; color: #444;
}
.sc-safety-item:last-child { border-bottom: none; }
.sc-safety-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }

/* A4: 权限拒绝身份提示条 */
.sc-denied-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; margin: 0 12px 8px;
  background: linear-gradient(135deg, #FFF2F0, #FFF7E6);
  border: 1px solid rgba(245,34,45,0.15); border-radius: 12px;
}
.sc-denied-icon { font-size: 1.3rem; flex-shrink: 0; }
.sc-denied-body { flex: 1; min-width: 0; }
.sc-denied-title { font-size: 0.82rem; font-weight: 600; color: #D4654A; }
.sc-denied-info { font-size: 0.75rem; color: #888; margin-top: 2px; }

.sc-btn-placeholder {
  width: 100%; padding: 12px; border: 1.5px dashed #d0d0d0;
  border-radius: 10px; background: #fafafa; color: #999;
  font-size: 0.9rem; cursor: pointer;
}
.sc-btn-placeholder:active { background: #f0f0f0; }
.sc-placeholder-hint {
  text-align: center; font-size: 0.75rem; color: #ccc; margin-top: 8px;
}

/* Supporter Card — 行动按钮 */
.sc-btn-action {
  width: 100%; padding: 14px 16px; border: none;
  border-radius: 12px; background: linear-gradient(135deg, #FA8C16, #FFA940);
  color: #fff; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(250,140,22,0.3);
  font-family: var(--font-body);
}
.sc-btn-action:active { transform: scale(0.98); opacity: 0.9; }

/* ==========================================
   P5：快速记录页 #quick-record
   ========================================== */
.qr-page { padding-bottom: 40px; }
.qr-header {
  background: linear-gradient(135deg, #FA8C16, #FFA940);
  color: #fff; padding: 20px 16px 16px;
}
.qr-title { font-size: 1.15rem; font-weight: 700; }
.qr-subtitle { font-size: 0.82rem; opacity: 0.85; margin-top: 4px; }
.qr-body { padding: 20px 16px; }
.qr-youth-badge {
  display: inline-block; padding: 6px 14px;
  background: rgba(250,140,22,0.08); color: #E8780A;
  border-radius: 20px; font-size: 0.82rem; font-weight: 500;
  margin-bottom: 16px;
}
.qr-textarea {
  width: 100%; min-height: 120px; padding: 14px 16px;
  border: 1.5px solid #e0e0e0; border-radius: 14px;
  font-size: 0.9rem; font-family: var(--font-body);
  resize: vertical; outline: none; transition: border-color 0.2s;
  box-sizing: border-box;
}
.qr-textarea:focus { border-color: #FA8C16; }
.qr-tags-row {
  display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap;
}
.qr-tag {
  padding: 8px 16px; border: 1.5px solid #e0e0e0;
  border-radius: 20px; background: #fff;
  font-size: 0.85rem; color: #555; cursor: pointer;
  transition: all 0.2s; font-family: var(--font-body);
}
.qr-tag.active {
  border-color: #FA8C16; background: rgba(250,140,22,0.08);
  color: #E8780A; font-weight: 600;
}
.qr-tag:active { transform: scale(0.97); }
.qr-btn-submit {
  width: 100%; padding: 14px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, #FA8C16, #FFA940);
  color: #fff; font-size: 1rem; font-weight: 600;
  cursor: pointer; margin-top: 8px;
  box-shadow: 0 4px 16px rgba(250,140,22,0.3);
  transition: all 0.2s; font-family: var(--font-body);
}
.qr-btn-submit:disabled {
  background: #e0e0e0; color: #999; box-shadow: none; cursor: not-allowed;
}
.qr-btn-submit:active:not(:disabled) { transform: scale(0.98); }
.qr-hint {
  text-align: center; font-size: 0.78rem; color: #aaa;
  margin-top: 12px; line-height: 1.5;
}
.qr-success-icon {
  text-align: center; font-size: 3rem; margin-bottom: 16px;
}
.qr-draft-card {
  background: #fff; border-radius: 14px;
  padding: 18px 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
}
.qr-draft-label {
  font-size: 0.78rem; font-weight: 700; color: #888;
  margin-bottom: 6px;
}
.qr-draft-text {
  font-size: 0.88rem; color: #333; line-height: 1.6;
}
.qr-draft-summary {
  background: rgba(250,140,22,0.04); border-radius: 8px;
  padding: 8px 10px; font-style: italic;
}
.qr-draft-divider {
  height: 1px; background: #f0f0f0; margin: 12px 0;
}
.qr-draft-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; flex-wrap: wrap; gap: 6px;
}
.qr-draft-status {
  color: #FAAD14; font-weight: 500;
}
.qr-btn-back {
  width: 100%; padding: 14px; margin-top: 16px;
  border: 1.5px solid #d0d0d0; border-radius: 12px;
  background: #fafafa; color: #555;
  font-size: 0.95rem; cursor: pointer;
  font-family: var(--font-body); transition: all 0.2s;
}
.qr-btn-back:active { background: #eee; }

/* ==========================================
   P5：待确认记录审核页 #draft-review
   ========================================== */
.dr-page { padding: 0 0 32px; }
.dr-header {
  padding: 20px 16px 12px;
  border-bottom: 1px solid #f0f0f0;
}
.dr-title { font-size: 1.1rem; font-weight: 700; color: #1a1a1a; }
.dr-count {
  font-size: 0.82rem; color: #FAAD14; margin-top: 4px;
}
.dr-empty {
  text-align: center; padding: 48px 16px;
}
.dr-empty-icon { font-size: 3rem; margin-bottom: 12px; }
.dr-empty p { font-size: 0.9rem; color: #999; }
.dr-list { padding: 12px 16px; display: flex; flex-direction: column; gap: 16px; }
.dr-card {
  background: #fff; border-radius: 14px; padding: 16px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
}
.dr-card-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.dr-card-author { font-size: 0.85rem; color: #555; }
.dr-card-module { font-size: 0.82rem; color: #888; }
.dr-card-status {
  font-size: 0.75rem; padding: 3px 10px; border-radius: 12px;
  margin-left: auto;
}
.dr-card-status.pending { background: #FFF7E6; color: #D48806; }
.dr-card-status.confirmed { background: #F6FFED; color: #52C41A; }
.dr-card-status.discarded { background: #f5f5f5; color: #999; }
.dr-section { margin-bottom: 12px; }
.dr-section-label {
  font-size: 0.78rem; font-weight: 700; color: #888; margin-bottom: 6px;
}
.dr-section-text {
  font-size: 0.88rem; color: #333; line-height: 1.6;
}
.dr-summary-edit {
  width: 100%; padding: 10px 12px; border: 1.5px solid #e0e0e0;
  border-radius: 10px; font-size: 0.85rem; font-family: var(--font-body);
  resize: vertical; min-height: 72px; outline: none; box-sizing: border-box;
}
.dr-summary-edit:focus { border-color: var(--color-primary); }
.dr-module-select {
  width: 100%; padding: 10px 12px; border: 1.5px solid #e0e0e0;
  border-radius: 10px; font-size: 0.85rem; font-family: var(--font-body);
  background: #fff; outline: none;
}
.dr-module-select:focus { border-color: var(--color-primary); }
.dr-actions {
  display: flex; gap: 8px; margin-top: 14px;
}
.dr-btn-confirm {
  flex: 1; padding: 12px; border: none; border-radius: 10px;
  background: var(--color-primary); color: #fff;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  font-family: var(--font-body); transition: all 0.2s;
}
.dr-btn-confirm:active { background: var(--color-primary-dark); transform: scale(0.98); }
.dr-btn-discard {
  flex: 1; padding: 12px; border: 1.5px solid #e0e0e0; border-radius: 10px;
  background: #fafafa; color: #999; font-size: 0.9rem; cursor: pointer;
  font-family: var(--font-body); transition: all 0.2s;
}
.dr-btn-discard:active { background: #eee; }
.dr-source {
  text-align: right; font-size: 0.72rem; color: #bbb; margin-top: 10px;
}

/* ==========================================
   P5 A5: 审核页扩展元素
   ========================================== */
.dr-tabs {
  display: flex; gap: 0; padding: 0 16px; margin-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}
.dr-tab {
  padding: 10px 16px; border: none; background: transparent;
  font-size: 0.85rem; color: #888; cursor: pointer;
  border-bottom: 2px solid transparent; transition: all 0.2s;
  font-family: var(--font-body);
}
.dr-tab.active { color: var(--color-primary); border-bottom-color: var(--color-primary); font-weight: 600; }
.dr-btn-needs-info, .dr-btn-view-record {
  flex: 1; padding: 12px; border: 1.5px solid #e0e0e0; border-radius: 10px;
  background: #fafafa; color: #666; font-size: 0.9rem; cursor: pointer;
  font-family: var(--font-body); transition: all 0.2s; text-align: center;
}
.dr-btn-needs-info:active, .dr-btn-view-record:active { background: #eee; }
.dr-btn-view-record { background: var(--color-primary); color: #fff; border: none; }
.dr-review-hint {
  font-size: 0.75rem; color: #aaa; padding: 8px 0; margin-top: 4px;
  line-height: 1.5; border-top: 1px dashed #f0f0f0;
}

/* P5 A5: 快速记录页提示 */
.qr-textarea-hint {
  font-size: 0.78rem; color: #aaa; line-height: 1.5;
  margin: 0 0 12px;
}
.qr-ai-badge {
  font-size: 0.72rem; color: #aaa; text-align: center;
  margin: 8px 0; font-style: italic;
}

/* ==========================================
   权限拒绝页
   ========================================== */
.access-denied {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 24px; text-align: center; min-height: 60vh;
}
.access-denied-icon { font-size: 3rem; margin-bottom: 16px; }
.access-denied-title { font-size: 1.1rem; font-weight: 700; color: #333; margin-bottom: 8px; }
.access-denied-text { font-size: 0.88rem; color: #999; margin-bottom: 20px; }
