/* ============================================
   保险产品信息页面样式
   ============================================ */

/* Banner */
.bxxx-list-banner {
  position: relative;
  height: 168px;
  background: var(--bg-gray-light);
  overflow: hidden;
  display: flex;
  align-items: center;
}

@media (min-width: 992px) {
  .bxxx-list-banner {
    height: 280px;
  }
}

.bxxx-list-banner__img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bxxx-list-banner__content {
  position: relative;
  z-index: 10;
  max-width: var(--max-width);
  width: 100%;
  padding: 0 16px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease-out;
}

.bxxx-list-banner__title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 8px;
}

@media (min-width: 992px) {
  .bxxx-list-banner__title {
    font-size: 48px;
  }
}

.bxxx-list-banner__title span:first-child {
  color: var(--text-main);
}

.bxxx-list-banner__title span:last-child {
  color: var(--primary);
}

.bxxx-list-banner__desc {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 2px;
}

@media (min-width: 992px) {
  .bxxx-list-banner__desc {
    font-size: 18px;
  }
}

/* Main Content */
.bxxx-list-main {
  max-width: var(--max-width);
  margin: 0 auto;
  margin-top: -42px;
  position: relative;
  z-index: 12;
  padding-bottom: 80px;
}

@media (min-width: 992px) {
  .bxxx-list-main {
    margin-top: -56px;
  }
}

/* Tab Content */
.bxxx-list-tab-content {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.bxxx-list-tab-content.active {
  display: block;
}

.bxxx-list-card__body {
  padding: 32px 40px;
  min-height: 400px;
}

@media (max-width: 991px) {
  .bxxx-list-card__body {
    padding: 16px;
  }
}

/* 产品tabs */
.bxxx-list-product-tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
  margin-bottom: 16px;
  padding-right: 140px;
}

.bxxx-list-product-tab {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 4px 0;
  cursor: pointer;
  position: relative;
  background: none;
  border: none;
}

.bxxx-list-product-tab:hover {
  color: var(--text-main);
}

.bxxx-list-product-tab.active {
  color: var(--text-main);
  font-weight: 700;
}

.bxxx-list-product-tab.active::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

.toggle-btn {
  position: absolute;
  right: 0;
  bottom: 12px;
  color: var(--text-light);
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
  background: none;
  border: none;
  font-weight: normal;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0;
}

.toggle-btn:hover {
  color: #c41e3a;
  text-decoration: underline;
}

.toggle-btn svg {
  width: 14px;
  height: 14px;
  vertical-align: middle;
}

/* 更新时间 */
.bxxx-list-update-time {
  text-align: right;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
}

/* 表格 */
.bxxx-list-table-wrap {
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  overflow: hidden;
}

.bxxx-list-data-table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
  table-layout: fixed;
}

.bxxx-list-data-table thead {
  background: #fdf3e9;
  color: var(--text-muted);
}

.bxxx-list-data-table th,
.bxxx-list-data-table td {
  padding: 10px 8px;
  border: 1px solid var(--border-light);
  text-align: center;
  word-wrap: break-word;
  white-space: normal;
  line-height: 1.5;
}

.bxxx-list-data-table th:nth-child(2),
.bxxx-list-data-table td:nth-child(2) {
  text-align: left;
}

.bxxx-list-data-table tbody tr:hover {
  background: var(--bg-gray-light);
}

.bxxx-list-data-table td:first-child,
.bxxx-list-data-table th:first-child {
  width: 50px;
}

.bxxx-list-data-table .col-link {
  width: 80px;
  white-space: nowrap;
}

.bxxx-list-product-search {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin-bottom: 16px;
}

.bxxx-list-product-search input {
  width: 100%;
  height: 32px;
  padding: 0 56px 0 16px;
  border: 1px solid var(--border-default);
  border-radius: 9999px;
  font-size: 14px;
  outline: none;
}

.bxxx-list-product-search input:focus {
  border-color: var(--primary);
}

.bxxx-list-product-search__icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  transition: color var(--transition-fast);
  right: 8px;
}

.bxxx-list-product-search__icon:hover {
  color: var(--primary);
}

.bxxx-list-product-search__icon svg {
  width: 14px;
  height: 14px;
}

.bxxx-list-product-search__clear {
  right: 32px;
}

.bxxx-list-product-search__clear.hidden {
  display: none;
}

/* 产品名称列 */
.bxxx-list-data-table .col-100 {
  width: 100px;
}

.bxxx-list-data-table .col-180 {
  width: 180px;
}


@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 表格中的链接样式 */
.bxxx-list-data-table a {
  color: #2b579a;
  text-decoration: none;
}

.bxxx-list-data-table a:hover {
  color: var(--primary);
  text-decoration: underline;
}

@media (max-width: 991px) {
  .bxxx-list-data-table {
    width: auto;
  }

  .bxxx-list-data-table th {
    min-width: 80px;
  }

  .bxxx-list-data-table td {
    min-width: 80px;
  }

  .bxxx-list-table-wrap {
    overflow-x: auto;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.bxxx-pagination {
  margin-top: 24px;
}

/* 展开/收起样式 */
.bxxx-main-row.bxxx-expandable {
  cursor: pointer;
}

.bxxx-main-row.bxxx-expanded td {
  background: #fef9f5;
}

.bxxx-child-row {
  background: #fafafa;
}

.bxxx-child-row.hidden {
  display: none;
}

.bxxx-child-cell {
  padding: 12px !important;
}

.bxxx-child-list {
  padding-left: 42px;
  /* padding-left: 30%; */
}

.bxxx-child-items {
  display: flex;
  flex-direction: column;
}

.bxxx-child-item {
  display: flex;
  align-items: center;
  padding: 6px 0;
  gap: 20px;
}

.bxxx-child-item:last-child {
  border-bottom: none;
}

.bxxx-child-link {
  color: #c41e3a;
  text-decoration: underline;
}

.bxxx-child-link:hover {
  color: var(--primary);
}

.bxxx-child-link-disabled {
  color: #999;
  text-decoration: none;
}

.bxxx-child-status {
  font-size: 12px;
  color: #333;
  flex-shrink: 0;
  margin-left: 16px;
}

/* 子tabs样式 */
.bxxx-list-product-tabs--sub {
  padding-right: 0;
  margin-bottom: 16px;
}

/* 信息/目录区域显示/隐藏 */
.bxxx-list-info-section.hidden,
.bxxx-list-catalog-section.hidden {
  display: none;
}

/* 保险产品目录表格样式 */
.bxxx-list-catalog-table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
  table-layout: fixed;
}

.bxxx-list-catalog-table thead {
  background: #fdf3e9;
  color: var(--text-muted);
}

.bxxx-list-catalog-table th,
.bxxx-list-catalog-table td {
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  text-align: center;
  word-wrap: break-word;
  white-space: normal;
  line-height: 1.5;
}

.bxxx-list-catalog-table th:first-child,
.bxxx-list-catalog-table td:first-child {
  width: 80px;
}

.bxxx-list-catalog-table th:nth-child(2),
.bxxx-list-catalog-table td:nth-child(2),
.bxxx-list-catalog-table th:nth-child(3),
.bxxx-list-catalog-table td:nth-child(3) {
  text-align: left;
}

.bxxx-list-catalog-table tbody tr:hover {
  background: var(--bg-gray-light);
}

@media (max-width: 991px) {
  .bxxx-list-catalog-table {
    width: auto;
  }

  .bxxx-list-catalog-table th,
  .bxxx-list-catalog-table td {
    min-width: 100px;
  }

  .bxxx-list-table-wrap {
    overflow-x: auto;
  }
}