/* 患者端功能页面样式 */

.page-header {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  text-align: center;
}

.page-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.page-description {
  font-size: 1.25rem;
  opacity: 0.95;
}

/* 患者功能区域 */
.patient-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.patient-feature.reverse {
  direction: rtl;
}

.patient-feature.reverse > * {
  direction: ltr;
}

.feature-number {
  display: inline-block;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 50%;
  font-size: 1.75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.patient-feature-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.patient-feature-slogan {
  font-size: 1.125rem;
  color: var(--primary-color);
  font-weight: 600;
  font-style: italic;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(16, 185, 129, 0.1));
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary-color);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.patient-feature-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.benefit-tag {
  padding: 0.625rem 1.25rem;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.benefit-tag:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.patient-feature-details h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.patient-feature-details ul {
  list-style: none;
}

.patient-feature-details ul li {
  padding: 0.625rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.7;
}

.patient-feature-details ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.25rem;
}

/* ── App Phone 仿真框 ─────────────────────────────── */
.app-phone {
  background: #f8fafc;
  border-radius: 40px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25), 0 0 0 12px #0f172a, inset 0 0 0 4px #334155;
  overflow: hidden;
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
  font-size: 13px;
  position: relative;
  border: 1px solid #1e293b;
  aspect-ratio: 9 / 19;
  display: flex;
  flex-direction: column;
}

/* 顶部刘海屏 */
.app-phone::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 25px;
  background: #0f172a;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
}

.app-statusbar {
  background: #fff;
  color: #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px 6px;
  font-size: 12px;
  font-weight: 600;
  position: relative;
  z-index: 5;
}

.app-statusbar i { margin-left: 5px; font-size: 11px; }

.app-topbar {
  background: #fff;
  color: #1e293b;
  padding: 12px 20px 16px;
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  position: relative;
  z-index: 4;
}

.app-topbar i { color: #10b981; font-size: 18px; }

.app-body {
  padding: 20px 16px;
  background: #f1f5f9;
  flex: 1;
  overflow-y: auto;
}

.app-body::-webkit-scrollbar {
  display: none;
}

/* 底部操作条假象 */
.app-phone::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 4px;
  z-index: 10;
}

/* ── 健康档案 ── */
.app-report-tag {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 16px;
  padding: 6px 12px;
  background: #fff;
  border-radius: 20px;
  display: inline-block;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.app-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.app-metric {
  background: #fff;
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.app-metric-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  font-size: 14px;
  color: #fff;
}

.app-metric-label { font-size: 12px; color: #64748b; margin-bottom: 4px; font-weight: 500; }
.app-metric-val { font-size: 18px; font-weight: 800; color: #1e293b; line-height: 1; margin-bottom: 4px; }
.app-metric-val.ok { color: #10b981; }
.app-metric-val.warn { color: #f59e0b; }
.app-metric-unit { font-size: 10px; color: #94a3b8; margin-bottom: 8px; }

.app-metric-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  display: inline-block;
}
.app-metric-badge.ok { background: #d1fae5; color: #059669; }
.app-metric-badge.warn { background: #fef3c7; color: #d97706; }

.app-alert-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 12px;
  margin-bottom: 16px;
  font-weight: 500;
}
.app-alert-bar.warn { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.app-alert-action { margin-left: auto; font-weight: 700; cursor: pointer; color: #d97706; }

.app-chart-row { background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.app-chart-title { font-size: 12px; font-weight: 600; color: #475569; margin-bottom: 12px; }
.app-mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 50px;
}
.app-mini-chart .bar {
  flex: 1;
  background: #cbd5e1;
  border-radius: 4px 4px 0 0;
  transition: background 0.3s;
}
.app-mini-chart .bar.ok { background: #10b981; }

/* ── AI 方案 ── */
.app-ai-badge {
  background: linear-gradient(135deg, rgba(37,99,235,0.05), rgba(16,185,129,0.05));
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  color: #1d4ed8;
  font-weight: 500;
  margin-bottom: 16px;
  display: inline-block;
}

.app-plan-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}
.app-plan-card.active-plan { 
  border-left: 4px solid #2563eb; 
  box-shadow: 0 4px 12px rgba(37,99,235,0.1);
}

.app-plan-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}

.app-plan-body { flex: 1; min-width: 0; }
.app-plan-name { font-size: 14px; font-weight: 800; color: #1e293b; margin-bottom: 4px; }
.app-plan-meta { font-size: 11px; color: #64748b; }

.app-plan-progress { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11px; color: #475569; font-weight: 600; }
.progress-bar { flex: 1; height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #3b82f6, #2563eb); border-radius: 3px; }

.app-plan-grade {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  font-size: 14px;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.app-plan-grade.ok { background: #ecfdf5; color: #059669; }
.app-plan-new {
  background: #fef2f2; color: #dc2626;
  font-size: 11px; font-weight: 800;
  padding: 3px 8px; border-radius: 12px;
  flex-shrink: 0;
}

/* ── 打卡 ── */
.app-streak-bar {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-streak-bar strong { font-size: 16px; font-weight: 900; }
.app-streak-bar i { font-size: 18px; color: #fef3c7; }

.app-checkin-item {
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.2s;
}
.app-checkin-item:hover { transform: translateX(4px); }

.ci-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
}

.ci-body { flex: 1; min-width: 0; }
.ci-name { font-size: 14px; font-weight: 800; color: #1e293b; margin-bottom: 4px; }
.ci-detail { font-size: 11px; color: #64748b; }

.ci-status {
  font-size: 11px; font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ci-status.done { background: #ecfdf5; color: #059669; }
.ci-status.pending { background: #f1f5f9; color: #64748b; }

/* ── 团队 ── */
.app-team-member {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.team-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.team-info { flex: 1; min-width: 0; }
.team-name { font-size: 15px; font-weight: 800; color: #1e293b; margin-bottom: 4px; }
.team-role { font-size: 11px; color: #475569; margin-bottom: 4px; }
.team-tag {
  font-size: 11px; font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.team-tag.online { color: #059669; }
.team-tag.away { color: #d97706; }
.team-tag i { font-size: 8px; }

.team-msg-btn {
  width: 36px; height: 36px;
  background: #eff6ff;
  border-radius: 10px;
  color: #2563eb;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 16px;
  transition: all 0.2s;
}
.team-msg-btn:hover { background: #2563eb; color: #fff; }

.app-msg-preview {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #475569;
  border-left: 4px solid #2563eb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  line-height: 1.6;
}
.msg-dot {
  width: 8px; height: 8px;
  background: #ef4444;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.msg-from { color: #1e293b; font-weight: 800; }

/* ── 家人 ── */
.app-family-member {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.family-avatar-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}

.family-body { flex: 1; min-width: 0; }
.family-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.family-name { font-size: 15px; font-weight: 800; color: #1e293b; }
.family-status-badge {
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 12px;
  display: inline-flex; align-items: center; gap: 4px;
}
.family-status-badge.ok { background: #d1fae5; color: #059669; }
.family-status-badge.warn { background: #fef3c7; color: #d97706; }
.family-detail { font-size: 12px; color: #64748b; }

.family-view-btn {
  font-size: 13px; color: #2563eb; font-weight: 800;
  cursor: pointer; flex-shrink: 0;
  padding: 6px 12px; background: #eff6ff; border-radius: 8px;
  transition: all 0.2s;
}
.family-view-btn:hover { background: #2563eb; color: #fff; }

.app-notify-bar {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-notify-bar i { font-size: 14px; }

/* ── 状态栏电量 ── */
.sb-bat { color: #10b981; font-weight: 700; font-size: 11px; }

/* ── 健康档案 - 报告列表 ── */
.app-report-list {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.app-report-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
}
.app-report-item:last-child { border-bottom: none; }
.app-report-item.warn-row { background: #fffbeb; }

.rpt-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
}

.rpt-name { font-size: 12px; color: #64748b; font-weight: 600; flex: 1; }
.rpt-val { font-size: 13px; font-weight: 800; color: #1e293b; }
.rpt-val em { font-style: normal; font-size: 10px; color: #94a3b8; font-weight: 400; }
.rpt-val.ok { color: #10b981; }
.rpt-val.warn { color: #f59e0b; }

.rpt-badge {
  font-size: 10px; font-weight: 700;
  padding: 3px 7px; border-radius: 10px;
  flex-shrink: 0;
}
.rpt-badge.ok { background: #d1fae5; color: #059669; }
.rpt-badge.warn { background: #fef3c7; color: #d97706; }

/* ── 趋势标签 ── */
.chart-trend {
  font-size: 10px;
  font-weight: 700;
  color: #10b981;
  background: #d1fae5;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: 4px;
}

/* ── AI 方案 - 今日饮食建议 ── */
.app-today-tip {
  background: linear-gradient(135deg, #eff6ff, #ecfdf5);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(37,99,235,0.1);
}
.tip-title {
  font-size: 12px;
  font-weight: 800;
  color: #1d4ed8;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tip-body {
  font-size: 11px;
  color: #475569;
  line-height: 1.9;
}
.tip-meal {
  display: inline-block;
  width: 18px; height: 18px;
  background: #2563eb;
  color: #fff;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  line-height: 18px;
  margin-right: 4px;
  flex-shrink: 0;
}

/* ── 打卡 - 热量摘要 ── */
.app-cal-summary {
  background: #fff;
  border-radius: 14px;
  padding: 14px 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.cal-item { text-align: center; }
.cal-val {
  font-size: 18px;
  font-weight: 900;
  color: #1e293b;
  line-height: 1;
  margin-bottom: 4px;
}
.cal-target { color: #64748b; }
.cal-burn { color: #10b981; }
.cal-label { font-size: 10px; color: #94a3b8; font-weight: 500; }
.cal-divider { width: 1px; height: 36px; background: #e2e8f0; }

/* ── 团队 - 随访标签 ── */
.app-followup-tag {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #15803d;
  font-weight: 600;
  margin-top: 4px;
}
.app-followup-tag i { color: #16a34a; font-size: 13px; }
.followup-days {
  margin-left: auto;
  font-size: 11px;
  color: #86efac;
  background: #166534;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
}

/* ── 家人 - 共享计划 ── */
.app-shared-plan {
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #1e40af;
  font-weight: 600;
  margin-top: 4px;
}
.app-shared-plan i { color: #2563eb; font-size: 14px; }
.app-shared-plan strong { color: #059669; }
.shared-go {
  margin-left: auto;
  font-size: 16px;
  font-weight: 900;
  color: #2563eb;
}

/* ── 公共背景色 ── */
.bg-green { background: #10b981; }
.bg-blue { background: #2563eb; }
.bg-orange { background: #f59e0b; }
.bg-purple { background: #7c3aed; }
.bg-pink { background: #ec4899; }
.bg-teal { background: #0d9488; }
.bg-gray { background: #94a3b8; }

/* CTA区域 */
.cta-section {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .patient-feature {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .patient-feature.reverse {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 120px 0 60px;
  }

  .page-title {
    font-size: 2.25rem;
  }

  .patient-feature-title {
    font-size: 1.875rem;
  }

  .patient-feature-slogan {
    font-size: 1rem;
  }

  .patient-feature-benefits {
    flex-direction: column;
  }

  .benefit-tag {
    width: 100%;
    text-align: center;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.875rem;
  }

  .patient-feature-title {
    font-size: 1.5rem;
  }

  .feature-number {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .mockup-content {
    padding: 1.5rem;
  }
}
