/* ===== 小程序专题页 ===== */

.topic-page .topic-crumb-sep {
  opacity: .5;
  font-size: 10px;
  margin: 0 2px;
}

.topic-hero-accent {
  background: linear-gradient(135deg, #a8c4ff, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.topic-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.topic-hero-btn-line {
  color: #fff !important;
  border-color: rgba(255, 255, 255, .45) !important;
}

.topic-hero-btn-line:hover {
  background: rgba(255, 255, 255, .12) !important;
  border-color: #fff !important;
}

.topic-sec-hd {
  max-width: min(920px, 90%);
  margin-left: auto;
  margin-right: auto;
}

.topic-sec-hd .sh2-zh {
  font-size: clamp(28px, 3.8vw, 40px);
  line-height: 1.3;
}

/* ----- 服务优势：双列卡片 ----- */
.topic-adv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 12px;
}

.topic-adv-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 30px;
  background: #fff;
  border-radius: var(--r);
  border: 1px solid var(--border);
  box-shadow: var(--sh);
  transition: var(--tr);
  height: 100%;
}

.topic-adv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-l);
  border-color: transparent;
}

.topic-adv-card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topic-adv-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.topic-adv-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--tr);
}

.topic-adv-icon i {
  font-size: 22px;
  color: var(--blue);
  transition: var(--tr);
}

.topic-adv-card:hover .topic-adv-icon {
  background: var(--blue);
}

.topic-adv-card:hover .topic-adv-icon i {
  color: #fff;
}

.topic-adv-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.45;
  margin: 0;
}

.topic-adv-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.85;
  margin: 0;
}

/* ----- 开发流程：时间轴 ----- */
.topic-flow {
  position: relative;
  max-width: min(1200px, 100%);
  margin: 12px auto 0;
  padding-left: 8px;
}

.topic-flow::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), rgba(24, 77, 196, .15));
  border-radius: 2px;
}

.topic-flow-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 0 0 32px;
  position: relative;
}

.topic-flow-item:last-child {
  padding-bottom: 0;
}

.topic-flow-marker {
  position: relative;
  z-index: 1;
}

.topic-flow-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue);
  color: var(--blue);
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(24, 77, 196, .15);
  transition: var(--tr);
}

.topic-flow-item:hover .topic-flow-num {
  background: var(--blue);
  color: #fff;
  transform: scale(1.06);
}

.topic-flow-body {
  padding: 18px 24px;
  background: #fff;
  border-radius: var(--r);
  border: 1px solid var(--border);
  box-shadow: var(--sh);
  transition: var(--tr);
}

.topic-flow-item:hover .topic-flow-body {
  border-color: transparent;
  box-shadow: var(--sh-l);
}

.topic-flow-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.45;
  margin: 0 0 10px;
}

.topic-flow-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.85;
  margin: 0;
}

/* ----- 关于我们 ----- */
.topic-about-sec {
  background: linear-gradient(180deg, #f7f9ff 0%, #fff 100%);
}

.topic-about-panel {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 48px;
  background: #fff;
  border-radius: calc(var(--r) + 4px);
  border: 1px solid var(--border);
  box-shadow: var(--sh-l);
}

.topic-about-content {
  max-width: min(1200px, 100%);
  margin: 0 auto;
  width: 100%;
}

.topic-about-hd {
  margin-bottom: 24px;
}

.topic-about-hd .sh2-zh {
  font-size: clamp(28px, 2.8vw, 36px);
}

.topic-about-lead {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--blue);
  font-weight: 600;
}

.topic-about-text p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 2;
  margin-bottom: 12px;
}

.topic-about-text p:last-child {
  margin-bottom: 0;
}

.topic-about-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.topic-about-stat {
  padding: 16px 14px;
  background: var(--cream);
  border-radius: var(--r-s);
  border-left: 3px solid var(--blue);
  text-align: center;
}

.topic-about-stat b {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: var(--blue);
  line-height: 1.1;
}

.topic-about-stat span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
}

.topic-about-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.topic-about-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.topic-about-photo {
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh);
  border: 1px solid var(--border);
  background: var(--cream);
  transition: var(--tr);
}

.topic-about-photo:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-l);
  border-color: transparent;
}

.topic-about-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .5s ease;
}

.topic-about-photo:hover img {
  transform: scale(1.04);
}

/* ----- 案例 ----- */
.topic-case-grid {
  margin-top: 8px;
}

.topic-more-wrap {
  text-align: center;
  margin-top: 48px;
}

/* ----- 相关专题互链 ----- */
.topic-related-sec {
  padding-top: 88px;
  padding-bottom: 88px;
}

.topic-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.topic-related-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px 20px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--sh);
  text-decoration: none;
  color: inherit;
  transition: var(--tr);
  position: relative;
  overflow: hidden;
}

.topic-related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-m);
  border-color: rgba(24, 77, 196, .22);
}

.topic-related-card-top {
  display: block;
  width: 36px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), #5b8def);
  margin-bottom: 16px;
}

.topic-related-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.45;
  margin: 0 0 10px;
}

.topic-related-desc {
  flex: 1 1 auto;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.75;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.topic-related-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

.topic-related-card:hover .topic-related-more {
  text-decoration: underline;
}

/* ----- 响应式 ----- */
@media (max-width: 1100px) {
  .topic-about-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .topic-adv-grid {
    grid-template-columns: 1fr;
  }

  .topic-about-panel {
    padding: 28px 22px;
    gap: 28px;
  }

  .topic-about-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .topic-flow {
    padding-left: 0;
  }

  .topic-flow::before {
    left: 19px;
  }

  .topic-flow-item {
    grid-template-columns: 40px 1fr;
    gap: 16px;
    padding-bottom: 24px;
  }

  .topic-flow-num {
    width: 40px;
    height: 40px;
    font-size: 13px;
    border-width: 2px;
  }

  .topic-flow-body {
    padding: 16px 18px;
  }

  .topic-hero-actions {
    margin-top: 20px;
  }
}

@media (max-width: 600px) {
  .topic-about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .topic-adv-card {
    padding: 22px 18px;
  }

  .topic-related-grid {
    grid-template-columns: 1fr;
  }

  .topic-related-sec {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .topic-about-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

/* ----- 价格专题 ----- */
.topic-intro-desc {
  max-width: min(920px, 92%);
  margin-left: auto;
  margin-right: auto;
}

.topic-comp-grid .topic-adv-card {
  min-height: 100%;
}

.topic-price-wrap {
  max-width: 100%;
}

.topic-price-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.topic-price-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh);
  border: 1px solid var(--border);
}

.topic-price-table th,
.topic-price-table td {
  padding: 16px 18px;
  font-size: 14px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.65;
  text-align: left;
}

.topic-price-table thead th {
  background: var(--blue-bg);
  color: var(--dark);
  font-weight: 700;
  white-space: nowrap;
}

.topic-price-table tbody tr:last-child td {
  border-bottom: none;
}

.topic-price-table td:first-child,
.topic-price-table th:first-child {
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
}

.topic-price-highlight {
  font-weight: 700;
  color: var(--blue) !important;
  white-space: nowrap;
}

.topic-factors-flow {
  max-width: min(1100px, 100%);
}

@media (max-width: 768px) {
  .topic-price-table th,
  .topic-price-table td {
    padding: 12px 14px;
    font-size: 13px;
  }
}
