/* 产品功能页面样式 */

/* 页面标题 */
.page-header {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 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;
  max-width: 700px;
  margin: 0 auto;
}

/* 功能导航 */
.feature-nav-section {
  position: sticky;
  top: 70px;
  background: white;
  box-shadow: var(--shadow-sm);
  z-index: 100;
  padding: 1rem 0;
}

.feature-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.feature-nav-item {
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  position: relative;
}

.feature-nav-item:hover {
  color: var(--primary-color);
  background-color: rgba(45, 141, 123, 0.1);
}

.feature-nav-item.active {
  color: white;
  background-color: var(--primary-color);
}

/* 功能详情 */
.feature-detail-section {
  scroll-margin-top: 150px;
}

.feature-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

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

.feature-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(45, 141, 123, 0.1), rgba(16, 185, 129, 0.1));
  color: var(--primary-color);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

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

.feature-detail-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-list-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.feature-list-content h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.feature-list-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 视觉展示框 */
.feature-detail-visual {
  position: relative;
}

.visual-box {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.visual-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
  border-bottom: 1px solid var(--border-color);
}

.visual-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.visual-content {
  padding: 2rem;
}

/* 预约管理视觉 */
.visual-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.visual-stat:last-child {
  margin-bottom: 0;
}

.visual-stat-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.visual-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-color);
}

/* 健康档案视觉 */
.archive-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.archive-item:hover {
  background: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  transform: translateX(5px);
}

.archive-item:last-child {
  margin-bottom: 0;
}

.archive-icon {
  font-size: 1.75rem;
}

.archive-text {
  font-weight: 600;
  color: var(--text-primary);
}

/* 随访流程视觉 */
.followup-flow {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.flow-step:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(16, 185, 129, 0.1));
  transform: scale(1.02);
}

.flow-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.flow-text {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

.flow-arrow {
  text-align: center;
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: bold;
}

/* 复查时间线视觉 */
.recheck-timeline {
  position: relative;
  padding-left: 2rem;
}

.recheck-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 5px;
  width: 18px;
  height: 18px;
  background: white;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.timeline-content {
  background: var(--bg-secondary);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  background: white;
  box-shadow: var(--shadow-md);
}

.timeline-title {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* 图表占位符 */
.chart-placeholder {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 200px;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.chart-bar {
  width: 40px;
  background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: all 0.3s ease;
}

.chart-bar:hover {
  opacity: 0.8;
  transform: scaleY(1.05);
}

.chart-legend {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.legend-item {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* 呼叫中心视觉 */
.callcenter-modes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.mode-card {
  flex: 1;
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.mode-card:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(16, 185, 129, 0.1));
  transform: translateY(-5px);
}

.mode-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.mode-title {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.mode-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.mode-divider {
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: bold;
}

/* CTA区域 */
.cta-section {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 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) {
  .feature-detail {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .feature-nav {
    gap: 1rem;
  }

  .feature-nav-item {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
  }
}

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

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

  .page-description {
    font-size: 1.125rem;
  }

  .feature-nav-section {
    top: 60px;
  }

  .feature-nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .feature-nav-item {
    text-align: center;
  }

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

  .feature-detail-description {
    font-size: 1rem;
  }

  .followup-flow {
    gap: 0.5rem;
  }

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

  .callcenter-modes {
    flex-direction: column;
  }

  .mode-divider {
    transform: rotate(90deg);
  }

  .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;
  }

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

  .visual-box {
    margin: 0 -20px;
    border-radius: 0;
  }
}

/* 系统界面模拟样式 */
.system-mockup {
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.mockup-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-title {
  color: white;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-actions {
  display: flex;
  gap: 6px;
}

.mockup-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}

.mockup-content {
  padding: 20px;
  background: white;
}

.mockup-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.mockup-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.mockup-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.mockup-card-title {
  font-weight: 600;
  color: #333;
  font-size: 15px;
}

.mockup-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.badge-warning {
  background: #fff3cd;
  color: #856404;
}

.badge-danger {
  background: #f8d7da;
  color: #721c24;
}

.badge-success {
  background: #d1e7dd;
  color: #0f5132;
}

.mockup-data-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.mockup-data-label {
  color: #666;
}

.mockup-data-value {
  font-weight: 600;
  color: #333;
}

.value-high {
  color: #dc3545;
}

.value-normal {
  color: #28a745;
}

.mockup-recommendation {
  background: #e7f3ff;
  border-left: 3px solid #2196F3;
  padding: 12px;
  margin-top: 12px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.6;
}

.mockup-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.mockup-tab {
  padding: 10px 20px;
  background: none;
  border: none;
  color: #666;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.mockup-tab.active {
  color: #667eea;
}

.mockup-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #667eea;
}

.mockup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.mockup-table th {
  background: #f8f9fa;
  padding: 10px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e0e0e0;
}

.mockup-table td {
  padding: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.mockup-table tr:hover {
  background: #f8f9fa;
}

.risk-indicator {
  display: inline-block;
  width: 60px;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.risk-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.risk-low { background: #28a745; width: 30%; }
.risk-medium { background: #ffc107; width: 60%; }
.risk-high { background: #dc3545; width: 90%; }

/* 通话录音样式 */
.call-recording {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

.recording-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.recording-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.recording-info {
  flex: 1;
}

.recording-title {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.recording-meta {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

.audio-player {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.play-btn {
  width: 36px;
  height: 36px;
  background: #667eea;
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.play-btn:hover {
  background: #5568d3;
  transform: scale(1.05);
}

.audio-progress {
  flex: 1;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.audio-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  width: 45%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.audio-time {
  font-size: 12px;
  color: #666;
  min-width: 80px;
  text-align: right;
}

/* 对话气泡样式 */
.chat-container {
  background: white;
  border-radius: 8px;
  padding: 15px;
  max-height: 400px;
  overflow-y: auto;
}

.chat-message {
  display: flex;
  margin-bottom: 15px;
  animation: fadeInUp 0.3s ease;
}

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

.chat-message.customer {
  justify-content: flex-start;
}

.chat-message.agent {
  justify-content: flex-end;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.chat-message.customer .chat-avatar {
  background: #e3f2fd;
  margin-right: 10px;
}

.chat-message.agent .chat-avatar {
  background: #f3e5f5;
  margin-left: 10px;
  order: 2;
}

.chat-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  position: relative;
}

.chat-message.customer .chat-bubble {
  background: #f0f0f0;
  color: #333;
  border-bottom-left-radius: 4px;
}

.chat-message.agent .chat-bubble {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-time {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
  text-align: center;
}

/* 健康方案样式 */
.health-plan-preview {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.health-plan-preview:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
}

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

.plan-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-icon {
  font-size: 24px;
}

.plan-arrow {
  font-size: 20px;
  color: #667eea;
}

.plan-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 15px;
}

.plan-stat {
  text-align: center;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
}

.plan-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 4px;
}

.plan-stat-label {
  font-size: 12px;
  color: #666;
}

.plan-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.plan-tag {
  padding: 4px 12px;
  background: #e7f3ff;
  color: #2196F3;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.plan-detail {
  display: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
  animation: fadeIn 0.3s ease;
}

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

.plan-detail.active {
  display: block;
}

.plan-section {
  margin-bottom: 20px;
}

.plan-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-section-content {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.8;
  color: #555;
}

.plan-list {
  list-style: none;
  padding: 0;
}

.plan-list li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
}

.plan-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: 700;
}

/* 可点击卡片hover效果 */
.clickable-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
  border-color: #667eea !important;
}

.clickable-card .plan-arrow {
  transition: transform 0.3s ease;
}

.clickable-card.active .plan-arrow {
  transform: rotate(180deg);
}

/* 健康档案Tab切换 */
.health-tab-content {
  display: none;
}

.health-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

.mockup-tab {
  cursor: pointer;
  transition: all 0.3s ease;
}

.mockup-tab:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
}
