/**
 * @file guide/style.css
 * @purpose 就医指南页面样式
 * @author 重庆嘉华医院
 * @datetime 2026-08-04 12:00:00
 */

/* ===== 页面 Banner ===== */
.page-banner {
  position: relative;
  height: 280px;
  background: linear-gradient(135deg, #00B4D8 0%, #0096C7 50%, #0077A8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-banner__title {
  position: relative;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.page-banner__breadcrumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

.page-banner__breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s;
}

.page-banner__breadcrumb a:hover {
  color: #fff;
}

.page-banner__breadcrumb i {
  font-size: 12px;
  opacity: 0.7;
}

/* ===== 页面主内容 ===== */
.page-content {
  padding: 60px 0;
  min-height: 600px;
}

/* ===== 侧边栏导航 ===== */
.guide-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
}

.guide-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.guide-sidebar__title {
  padding: 20px 24px;
  background: linear-gradient(135deg, #00B4D8 0%, #0096C7 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-sidebar__title i {
  font-size: 20px;
}

.guide-sidebar__menu {
  list-style: none;
  margin: 0;
  padding: 12px 0;
}

.guide-sidebar__item {
  border-bottom: 1px solid #f1f5f9;
}

.guide-sidebar__item:last-child {
  border-bottom: none;
}

.guide-sidebar__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: #475569;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s;
  position: relative;
}

.guide-sidebar__link:hover {
  background: #f0f9ff;
  color: #00B4D8;
  padding-left: 28px;
}

.guide-sidebar__link.active {
  background: linear-gradient(90deg, #f0f9ff 0%, #fff 100%);
  color: #00B4D8;
  font-weight: 600;
}

.guide-sidebar__link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: #00B4D8;
  border-radius: 0 3px 3px 0;
}

.guide-sidebar__link i {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

/* ===== 内容区域 ===== */
.guide-content {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.guide-content__header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 2px solid #f1f5f9;
}

.guide-content__title {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.guide-content__title i {
  color: #00B4D8;
  font-size: 28px;
}

.guide-content__desc {
  font-size: 15px;
  color: #64748b;
  line-height: 1.7;
}

/* ===== 流程步骤 ===== */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.process-step {
  display: flex;
  gap: 20px;
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 32px;
  top: 64px;
  bottom: -24px;
  width: 2px;
  background: linear-gradient(180deg, #00B4D8 0%, #e2e8f0 100%);
}

.process-step__number {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #00B4D8 0%, #0096C7 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

.process-step__content {
  flex: 1;
  padding: 16px 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s;
}

.process-step__content:hover {
  background: #fff;
  border-color: #00B4D8;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateX(4px);
}

.process-step__title {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.process-step__title i {
  color: #00B4D8;
}

.process-step__desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
  margin: 0;
}

/* ===== 信息卡片 ===== */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.info-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #00B4D8 0%, #0096C7 100%);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s;
}

.info-card:hover {
  border-color: #00B4D8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.info-card:hover::before {
  transform: scaleY(1);
}

.info-card__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00B4D8;
  font-size: 24px;
  margin-bottom: 16px;
}

.info-card__title {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}

.info-card__content {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
}

.info-card__content ul {
  margin: 8px 0;
  padding-left: 20px;
}

.info-card__content li {
  margin-bottom: 4px;
}

/* ===== 提示框 ===== */
.tips-box {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #fcd34d;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 32px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.tips-box--info {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-color: #93c5fd;
}

.tips-box--success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-color: #6ee7b7;
}

.tips-box--warning {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-color: #fca5a5;
}

.tips-box__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.tips-box--info .tips-box__icon {
  color: #3b82f6;
}

.tips-box--success .tips-box__icon {
  color: #10b981;
}

.tips-box--warning .tips-box__icon {
  color: #ef4444;
}

.tips-box__content {
  flex: 1;
}

.tips-box__title {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
}

.tips-box__text {
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
}

/* ===== 联系卡片 ===== */
.contact-inline {
  display: flex;
  gap: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 12px;
  margin-top: 32px;
  align-items: center;
}

.contact-inline__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #00B4D8 0%, #0096C7 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  flex-shrink: 0;
}

.contact-inline__content {
  flex: 1;
}

.contact-inline__title {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.contact-inline__text {
  font-size: 14px;
  color: #64748b;
}

.contact-inline__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #00B4D8 0%, #0096C7 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  flex-shrink: 0;
}

.contact-inline__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4);
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-sidebar {
    position: static;
  }

  .page-banner {
    height: 220px;
  }

  .page-banner__title {
    font-size: 28px;
  }

  .guide-content {
    padding: 28px;
  }

  .process-step:not(:last-child)::after {
    left: 24px;
  }

  .process-step__number {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-content {
    padding: 30px 0;
  }

  .guide-content {
    padding: 20px;
    border-radius: 8px;
  }

  .guide-content__title {
    font-size: 22px;
  }

  .process-step {
    gap: 12px;
  }

  .process-step__content {
    padding: 12px 16px;
  }

  .info-cards {
    grid-template-columns: 1fr;
  }

  .contact-inline {
    flex-direction: column;
    text-align: center;
  }

  .guide-sidebar__link {
    padding: 12px 16px;
    font-size: 14px;
  }

  .guide-sidebar__title {
    padding: 16px 20px;
    font-size: 16px;
  }
}