/* ============================================
   臺灣健保核退服務页面样式
   ============================================ */

/* Banner */
.ytjbhtfw-banner {
  position: relative;
  height: 168px;
  background: var(--bg-gray-light);
  overflow: hidden;
  display: flex;
  align-items: center;
}

@media (min-width: 992px) {
  .ytjbhtfw-banner {
    height: 280px;
  }
}

.ytjbhtfw-banner__img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ytjbhtfw-banner__content {
  position: relative;
  z-index: 10;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  animation: fadeInUp 0.6s ease-out;
}

.ytjbhtfw-banner__title {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-main);
}

@media (min-width: 992px) {
  .ytjbhtfw-banner__title {
    font-size: 48px;
  }
}

/* Main Content */
.ytjbhtfw-main {
  max-width: var(--max-width);
  margin: 0 auto;
  margin-top: -42px;
  position: relative;
  z-index: 12;
  padding-bottom: 80px;
}

@media (min-width: 992px) {
  .ytjbhtfw-main {
    margin-top: -56px;
  }
}

/* Tab Content */
.ytjbhtfw-tab-content {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.ytjbhtfw-tab-content.active {
  display: block;
}

.ytjbhtfw-card__body {
  padding: 32px;
}

@media (max-width: 991px) {
  .ytjbhtfw-card__body {
    padding: 16px;
  }
}

/* ============================================
   服務介紹
   ============================================ */
.ytjbhtfw-intro {
  margin-bottom: 24px;
}

.ytjbhtfw-intro p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: justify;
  text-wrap: pretty;
  text-indent: 2em;
}

/* ============================================
   服務區塊
   ============================================ */
.ytjbhtfw-section {
  margin-bottom: 24px;
}

.ytjbhtfw-section:last-child {
  margin-bottom: 0;
}

.ytjbhtfw-section__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.ytjbhtfw-section__title svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

/* ============================================
   注意事项列表 - 与bdfw保持一致
   ============================================ */
.ytjbhtfw-notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ytjbhtfw-notes-list li {
  position: relative;
  padding: 10px 0 10px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  border-bottom: 1px solid var(--border-light);
}

.ytjbhtfw-notes-list li:last-child {
  border-bottom: none;
}

.ytjbhtfw-notes-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ============================================
   申請表格區塊
   ============================================ */
.ytjbhtfw-form-section {
  background: var(--bg-gray-light);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.ytjbhtfw-form-subsection {
  margin-bottom: 16px;
}

.ytjbhtfw-form-subsection:last-child {
  margin-bottom: 0;
}

.ytjbhtfw-form-subsection__title {
  font-size: 14px;
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 10px;
}

.ytjbhtfw-form-list {
  margin: 0;
  padding-left: 20px;
  list-style: decimal;
}

.ytjbhtfw-form-list li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 6px;
}

.ytjbhtfw-form-list li:last-child {
  margin-bottom: 0;
}

.ytjbhtfw-form-note {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   服務流程圖
   ============================================ */
.ytjbhtfw-flow__img {
  width: 600px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   服務網點卡片
   ============================================ */
.ytjbhtfw-location-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ytjbhtfw-location-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.ytjbhtfw-location-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(201, 21, 30, 0.08);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

.ytjbhtfw-location-card__header svg {
  width: 16px;
  height: 16px;
}

.ytjbhtfw-location-card__body {
  padding: 16px;
}

.ytjbhtfw-location-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.ytjbhtfw-location-item {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border-light);
}

.ytjbhtfw-location-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.ytjbhtfw-location-item__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.ytjbhtfw-location-item__info {
  margin-bottom: 8px;
}

.ytjbhtfw-location-item__info p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 4px;
}

.ytjbhtfw-location-item__info p:last-child {
  margin-bottom: 0;
}

.ytjbhtfw-location-item__info strong {
  color: var(--text-main);
  font-weight: 600;
}

.ytjbhtfw-location-item__note {
  font-size: 13px;
  color: var(--primary);
  line-height: 1.6;
  padding: 10px;
  background: rgba(201, 21, 30, 0.05);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}

/* ============================================
   Animation
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 768px) {
  .ytjbhtfw-location-card__header {
    font-size: 13px;
  }

  .ytjbhtfw-location-item__name {
    font-size: 13px;
  }
}