/* ============================================
   投保指引页面样式
   ============================================ */

/* Banner */
.tbzy-banner {
  position: relative;
  height: 168px;
  background: var(--bg-gray-light);
  overflow: hidden;
  display: flex;
  align-items: center;
}

@media (min-width: 992px) {
  .tbzy-banner {
    height: 280px;
  }
}

.tbzy-banner__img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tbzy-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;
}

.tbzy-banner__title {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-main);
}

@media (min-width: 992px) {
  .tbzy-banner__title {
    font-size: 48px;
  }
}

/* Main Content */
.tbzy-main {
  max-width: var(--max-width);
  margin: 0 auto;
  margin-top: -42px;
  position: relative;
  z-index: 12;
  padding-bottom: 80px;
}

@media (min-width: 992px) {
  .tbzy-main {
    margin-top: -56px;
  }
}

/* Tab Content */
.tbzy-tab-content {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.tbzy-tab-content.active {
  display: block;
}

.tbzy-card__body {
  padding: 32px;
}

@media (max-width: 991px) {
  .tbzy-card__body {
    padding: 16px;
  }
}

/* ============================================
   投保指南 - 侧边栏布局
   ============================================ */
.tbzy-special-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 992px) {
  .tbzy-special-layout {
    flex-direction: row;
    gap: 32px;
  }
}

/* 左侧菜单 */
/* 左侧菜单（统一一套，PC垂直/移动端横向滚动） */
.tbzy-special-menu {
  width: 100%;
}

@media (min-width: 992px) {
  .tbzy-special-menu {
    width: 180px;
    flex-shrink: 0;
  }
}

.tbzy-special-menu__scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tbzy-special-menu__scroll::-webkit-scrollbar {
  display: none;
}

@media (min-width: 992px) {
  .tbzy-special-menu__scroll {
    flex-direction: column;
    overflow-x: visible;
    padding-bottom: 0;
    gap: 6px;
  }
}

.tbzy-special-menu__btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-gray-light);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-align: left;
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .tbzy-special-menu__btn {
    padding: 10px 16px;
  }
}

.tbzy-special-menu__btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.tbzy-special-menu__btn.active {
  color: white;
  background: var(--primary);
  border-color: var(--primary);
}

.tbzy-special-menu__btn i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* 右侧内容区 */
.tbzy-special-content {
  flex: 1;
  min-width: 0;
}

.tbzy-special-content__panel {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.tbzy-special-content__panel.active {
  display: block;
}

/* ============================================
   购买途径 - 四卡片布局
   ============================================ */
.tbzy-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 1200px) {
  .tbzy-channel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tbzy-channel-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* 占满整行的卡片 */
.tbzy-channel-card--full {
  grid-column: 1 / -1;
}

.tbzy-channel-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(201, 21, 30, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.tbzy-channel-card__icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.5;
}

.tbzy-channel-card__content {
  flex: 1;
  min-width: 0;
}

.tbzy-channel-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.tbzy-channel-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: justify;
  text-wrap: pretty;
  word-break: break-all;
}

.tbzy-channel-card__desc strong {
  color: var(--primary);
  font-weight: 600;
}

/* ============================================
   投保流程 - 步骤流程图
   ============================================ */
.tbzy-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 0;
}

.tbzy-flow-step {
  display: flex;
  gap: 20px;
  position: relative;
}

.tbzy-flow-step__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.tbzy-flow-step__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(201, 21, 30, 0.3);
  position: relative;
  z-index: 2;
}

.tbzy-flow-step__line {
  width: 3px;
  flex: 1;
  background: linear-gradient(180deg, var(--primary) 0%, rgba(201, 21, 30, 0.2) 100%);
  margin: 6px 0;
  min-height: 40px;
  border-radius: 2px;
}

.tbzy-flow-step:last-child .tbzy-flow-step__line {
  display: none;
}

.tbzy-flow-step__content {
  flex: 1;
  padding-bottom: 28px;
  min-width: 0;
}

.tbzy-flow-step:last-child .tbzy-flow-step__content {
  padding-bottom: 0;
}

.tbzy-flow-step__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tbzy-flow-step__icon {
  width: 22px;
  height: 22px;
  color: var(--primary);
  flex-shrink: 0;
}

.tbzy-flow-step__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.tbzy-flow-step__body {
  background: var(--bg-gray-light);
  border-radius: var(--radius);
  padding: 16px 20px;
  border-left: 4px solid var(--primary);
  margin-left: 2px;
}

.tbzy-flow-step__body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
  text-align: justify;
  text-wrap: pretty;
  word-break: break-all;
}

.tbzy-flow-step__body strong {
  color: var(--primary);
  font-weight: 600;
}

/* 移动端适配 */
@media (max-width: 640px) {
  .tbzy-channel-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tbzy-channel-card {
    padding: 20px;
    gap: 16px;
  }

  .tbzy-channel-card__icon {
    width: 48px;
    height: 48px;
  }

  .tbzy-channel-card__icon svg {
    width: 22px;
    height: 22px;
  }

  .tbzy-channel-card__title {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .tbzy-channel-card__desc {
    font-size: 13px;
    line-height: 1.6;
  }

  .tbzy-flow-step__marker {
    display: none;
  }

  .tbzy-flow-step__header {
    gap: 10px;
  }

  .tbzy-flow-step__title {
    font-size: 16px;
  }

  .tbzy-flow-step__body {
    padding: 14px 16px;
  }

  .tbzy-flow-step__body p {
    font-size: 13px;
  }
}

/* ============================================
   PDF 预览区
   ============================================ */
.tbzy-pdf-wrap {
  width: 100%;
  height: 80vh;
  min-height: 600px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  background: #f5f5f5;
}

.tbzy-pdf-wrap__frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media (max-width: 991px) {
  .tbzy-pdf-wrap {
    height: 60vh;
    min-height: 400px;
  }
}

/* ============================================
   Animation
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease-out;
}