.tpk-faq-compact-section {
  width: 100%;
  padding: 44px 0 48px;
  background-color: #FFFFFF !important;
  color: #160D33;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
}

.tpk-faq-compact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* 头部排版 */
.tpk-faq-compact-header {
  text-align: center;
  margin-bottom: 30px;
}

.tpk-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #F3EFFF;
  color: #4A22A5;
  border: 1px solid #D9CDF7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.tpk-compact-title {
  font-size: 26px;
  font-weight: 900;
  color: #160D33;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.tpk-compact-sub {
  font-size: 14px;
  color: #5C5573;
  margin: 0 auto;
  max-width: 620px;
  line-height: 1.5;
}

/* 双列栅格：固定每列 50% 均分，避免展开时宽度重新计算挤压 */
.tpk-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px 20px;
  align-items: start; /* 保证卡片顶部对齐，互不影响高度拉伸 */
}

.tpk-faq-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  min-width: 0; /* 防止内容溢出撑宽列 */
}

/* 卡片容器：锁定绝对宽度 */
.tpk-smooth-card {
  width: 100% !important;
  box-sizing: border-box !important;
  background: #FFFFFF;
  border: 1px solid #E8E3F2;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(22, 13, 51, 0.02);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.tpk-smooth-card:hover {
  border-color: #CFC5E6;
  box-shadow: 0 3px 8px rgba(22, 13, 51, 0.04);
}

.tpk-smooth-card.is-active {
  border-color: #160D33;
}

/* 按钮触发栏：100% 宽度，避免文字换行造成宽度抖动 */
.tpk-smooth-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background-color: #FAF9FD;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 12px;
  margin: 0;
  box-sizing: border-box;
  transition: background-color 0.25s ease;
  outline: none;
}

.tpk-smooth-card.is-active .tpk-smooth-trigger {
  background-color: #FFFFFF;
}

.tpk-compact-q {
  font-size: 14.5px;
  font-weight: 700;
  color: #160D33;
  line-height: 1.4;
  flex: 1 1 auto;
  pointer-events: none;
}

/* 圆形微加号按钮动画 */
.tpk-circle-plus {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #F0ECF8;
  position: relative;
  display: inline-block;
  pointer-events: none;
  transition: background-color 0.25s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tpk-circle-plus::before,
.tpk-circle-plus::after {
  content: "";
  position: absolute;
  background-color: #5833B8;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.25s ease;
}

.tpk-circle-plus::before {
  width: 10px;
  height: 2px;
}

.tpk-circle-plus::after {
  width: 2px;
  height: 10px;
}

.tpk-smooth-card.is-active .tpk-circle-plus {
  background-color: #160D33;
  transform: rotate(90deg);
}

.tpk-smooth-card.is-active .tpk-circle-plus::before {
  background-color: #FFFFFF;
}

.tpk-smooth-card.is-active .tpk-circle-plus::after {
  opacity: 0;
}

/* 核心：CSS Grid 丝滑高度动画 (0fr -> 1fr) */
.tpk-smooth-collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.tpk-smooth-card.is-active .tpk-smooth-collapse {
  grid-template-rows: 1fr;
}

.tpk-smooth-inner {
  overflow: hidden;
  padding: 0 18px;
  font-size: 13.5px;
  color: #4A4260;
  line-height: 1.6;
  opacity: 0;
  transition: opacity 0.25s ease, padding 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.tpk-smooth-card.is-active .tpk-smooth-inner {
  padding: 12px 18px 18px;
  border-top: 1px solid #ECE7F5;
  opacity: 1;
}

.tpk-sub-link {
  color: #160D33;
  font-weight: 700;
  text-decoration: underline;
}

/* 底部引导文案 */
.tpk-faq-compact-footer {
  margin-top: 26px;
  text-align: center;
  font-size: 13px;
  color: #6D6682;
}

.tpk-footer-text-link {
  color: #4A22A5;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.tpk-footer-text-link:hover {
  color: #160D33;
}

/* 手机端响应式 */
@media (max-width: 768px) {
  .tpk-faq-compact-section {
    padding: 32px 0 36px;
  }
  .tpk-faq-compact-container {
    padding: 0 16px;
  }
  .tpk-compact-title {
    font-size: 21px;
  }
  .tpk-compact-sub {
    font-size: 12.5px;
  }
  .tpk-faq-grid {
    grid-template-columns: 1fr; /* 手机端单列自适应 */
    gap: 10px;
  }
  .tpk-smooth-trigger {
    padding: 14px 16px;
  }
  .tpk-compact-q {
    font-size: 13.5px;
  }
  .tpk-smooth-inner {
    font-size: 12.5px;
    padding: 0 16px;
  }
  .tpk-smooth-card.is-active .tpk-smooth-inner {
    padding: 10px 16px 14px;
  }
  .tpk-circle-plus {
    width: 22px;
    height: 22px;
  }
}
