/* ============================================
   guide.css - 就医指南页面
   步骤流程 / FAQ 手风琴 / 预约表单 /
   地图嵌入 / 医保信息
   ============================================ */

/* ============================================
   就医指南 - 主布局
   ============================================ */
.guide-page {
  padding: var(--space-section) 0;
  background: var(--bg-white);
}

.guide-page__wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-10);
}

/* ---- 侧边导航 ---- */
.guide-sidebar-nav {
  position: sticky;
  top: 100px;
  align-self: start;
}

.guide-sidebar-nav__list {
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  overflow: hidden;
}

.guide-sidebar-nav__item {
  display: block;
}

.guide-sidebar-nav__link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-md);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  text-decoration: none;
}

.guide-sidebar-nav__link:hover {
  color: var(--primary-blue);
  background: var(--bg-white);
}

.guide-sidebar-nav__link.active {
  color: var(--primary-blue);
  background: var(--bg-white);
  font-weight: var(--font-weight-semibold);
  box-shadow: var(--shadow-sm);
}

.guide-sidebar-nav__link i {
  font-size: var(--font-size-lg);
  width: 20px;
  text-align: center;
  color: var(--primary-cyan);
}

/* ---- 内容区 ---- */
.guide-content {
  min-width: 0;
}

.guide-section {
  margin-bottom: var(--space-16);
}

.guide-section:last-child {
  margin-bottom: 0;
}

.guide-section__title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--border-color-light);
  position: relative;
}

.guide-section__title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--gradient-primary);
}

.guide-section__desc {
  font-size: var(--font-size-md);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-8);
}

/* ============================================
   1. 步骤流程 (.guide-steps)
   ============================================ */
.guide-steps {
  position: relative;
  padding-left: var(--space-10);
}

.guide-steps::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-pill);
}

.guide-step {
  position: relative;
  margin-bottom: var(--space-8);
  padding: var(--space-6);
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color-light);
  transition: all var(--transition-base);
}

.guide-step:last-child {
  margin-bottom: 0;
}

.guide-step:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateX(4px);
  border-color: rgba(0, 119, 182, 0.15);
}

.guide-step__number {
  position: absolute;
  left: calc(-1 * var(--space-10) - 1px);
  top: var(--space-6);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: var(--white);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  box-shadow: var(--shadow-primary);
  z-index: 1;
}

.guide-step__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.guide-step__content {
  font-size: var(--font-size-md);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

.guide-step__content p {
  margin-bottom: var(--space-3);
  font-size: var(--font-size-md);
}

.guide-step__tips {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: rgba(0, 119, 182, 0.04);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary-cyan);
}

.guide-step__tips-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--primary-blue);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.guide-step__tips-content {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

/* 横向步骤流程 (简洁版) */
.guide-steps-horizontal {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: var(--space-10);
  position: relative;
}

.guide-steps-horizontal::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: var(--gray-200);
}

.guide-step-h {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 var(--space-3);
}

.guide-step-h__circle {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: var(--white);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  box-shadow: var(--shadow-primary);
  position: relative;
  z-index: 1;
}

.guide-step-h__title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.guide-step-h__desc {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* ============================================
   2. FAQ 手风琴 (.guide-faq)
   ============================================ */
.guide-faq {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: rgba(0, 119, 182, 0.2);
}

.faq-item.active {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.faq-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  transition: background-color var(--transition-base);
  user-select: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.faq-item__header:hover {
  background: var(--gray-50);
}

.faq-item.active .faq-item__header {
  background: rgba(0, 119, 182, 0.04);
}

.faq-item__question {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 1;
}

.faq-item__question::before {
  content: 'Q';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: var(--white);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
}

.faq-item.active .faq-item__question {
  color: var(--primary-blue);
}

.faq-item__toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  color: var(--text-muted);
  font-size: 12px;
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.faq-item.active .faq-item__toggle {
  background: var(--gradient-primary);
  color: var(--white);
  transform: rotate(180deg);
}

.faq-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.active .faq-item__body {
  max-height: 500px;
}

.faq-item__answer {
  padding: 0 var(--space-6) var(--space-5);
  padding-left: calc(var(--space-6) + 28px + var(--space-3));
  font-size: var(--font-size-md);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

.faq-item__answer p {
  margin-bottom: var(--space-3);
  font-size: var(--font-size-md);
}

.faq-item__answer p:last-child {
  margin-bottom: 0;
}

/* ============================================
   3. 预约表单 (.appointment-form)
   ============================================ */
.appointment-form {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color-light);
}

.appointment-form__header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.appointment-form__title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.appointment-form__subtitle {
  font-size: var(--font-size-md);
  color: var(--text-muted);
}

.appointment-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.appointment-form__grid .form-group--full {
  grid-column: span 2;
}

.appointment-form__actions {
  text-align: center;
  margin-top: var(--space-6);
}

.appointment-form__disclaimer {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-4);
}

/* 预约成功 */
.appointment-success {
  text-align: center;
  padding: var(--space-10);
}

.appointment-success__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(40, 167, 69, 0.1);
}

.appointment-success__icon i {
  font-size: 40px;
  color: var(--color-success);
}

.appointment-success__title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.appointment-success__desc {
  font-size: var(--font-size-md);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

/* ============================================
   4. 地图嵌入 (.guide-map)
   ============================================ */
.guide-map {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--gray-100);
}

.guide-map__embed {
  position: relative;
  width: 100%;
  padding-top: 50%;
}

.guide-map__embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.guide-map__info {
  padding: var(--space-6);
  background: var(--bg-white);
}

.guide-map__info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.guide-map__info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.guide-map__info-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(0, 119, 182, 0.1), rgba(0, 204, 153, 0.1));
  flex-shrink: 0;
}

.guide-map__info-icon i {
  font-size: 18px;
  color: var(--primary-blue);
}

.guide-map__info-label {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: 2px;
}

.guide-map__info-value {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  line-height: var(--line-height-normal);
}

/* ============================================
   5. 医保信息卡片 (.insurance-cards)
   ============================================ */
.insurance-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.insurance-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color-light);
  transition: all var(--transition-base);
  text-align: center;
}

.insurance-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(0, 119, 182, 0.15);
}

.insurance-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(0, 119, 182, 0.1), rgba(0, 204, 153, 0.1));
}

.insurance-card__icon i {
  font-size: 28px;
  color: var(--primary-blue);
}

.insurance-card__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.insurance-card__desc {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-4);
}

.insurance-card__list {
  text-align: left;
}

.insurance-card__list-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  border-bottom: 1px dashed var(--border-color-light);
}

.insurance-card__list-item:last-child {
  border-bottom: none;
}

.insurance-card__list-item i {
  font-size: 14px;
  color: var(--color-success);
  flex-shrink: 0;
}

/* ============================================
   6. 就医须知 (.guide-notice)
   ============================================ */
.guide-notice {
  background: rgba(0, 119, 182, 0.04);
  border: 1px solid rgba(0, 119, 182, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.guide-notice__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--primary-blue);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.guide-notice__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.guide-notice__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--font-size-md);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

.guide-notice__item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  flex-shrink: 0;
  margin-top: 8px;
}

/* ============================================
   7. 交通指南 (.transport-info)
   ============================================ */
.transport-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.transport-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  border: 1px solid var(--border-color-light);
}

.transport-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.transport-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  flex-shrink: 0;
}

.transport-card__icon i {
  font-size: 22px;
  color: var(--white);
}

.transport-card__body {
  flex: 1;
}

.transport-card__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.transport-card__content {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

.transport-card__routes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.transport-card__route {
  padding: 2px 10px;
  background: var(--gray-100);
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

/* ============================================
   8. 就诊时间 (.visit-hours)
   ============================================ */
.visit-hours-table {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.visit-hours-table th,
.visit-hours-table td {
  padding: var(--space-4) var(--space-5);
  text-align: center;
  font-size: var(--font-size-base);
  border: 1px solid var(--border-color-light);
}

.visit-hours-table th {
  background: var(--gradient-primary);
  color: var(--white);
  font-weight: var(--font-weight-semibold);
}

.visit-hours-table tbody tr:hover {
  background: rgba(0, 119, 182, 0.02);
}

.visit-hours-table .highlight {
  color: var(--primary-blue);
  font-weight: var(--font-weight-semibold);
}
