/**
 * 自定义内容页样式
 * 用于 template-custom-page.php（复制自阿里云千问页 Banner + 四卡片）
 */

/* ========== Banner 区域：复用首页 banner-single / banner-content 结构 ========== */
.custom-page-banner {
  position: relative;
  background: no-repeat center top / cover;
  background-image: url(https://www.peixunguanjia.com/wp-content/themes/www-new/assets/images/banner/home2/bg.jpg);
  overflow: hidden;
}

/* 覆盖 banner-area 背景，标题和描述由 main.css .banner-content-title / .banner-content p 控制 */
.custom-page-banner .banner-single {
  min-height: 600px;
}

.custom-page-banner .banner-content-title .highlight {
  color: #1677ff;
}

.custom-page-banner-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.custom-page-banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

.custom-page-banner-btn--primary {
  background: #1677ff;
  color: #fff;
  border: 1px solid #1677ff;
}

.custom-page-banner-btn--primary:hover {
  color: #fff;
  opacity: 0.9;
}

.custom-page-banner-btn--secondary {
  background: #fff;
  color: #1677ff;
  border: 1px solid #1677ff;
}

.custom-page-banner-btn--secondary:hover {
  background: #1677ff;
  color: #fff;
}


/* ========== 四卡片区域 ========== */
.custom-page-cards {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: -32px;
  position: relative;
  z-index: 2;
}

.custom-page-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s;
}

.custom-page-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.custom-page-card-title {
  font-size: 16px !important;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
  line-height: 1.4;
}

.custom-page-card-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.65;
  margin: 0;
}

.custom-page-card,
.custom-page-card a {
  text-decoration: none !important;
  color: inherit;
}

.custom-page-card a:hover .custom-page-card-title {
  color: #1677ff;
}

@media (max-width: 991px) {
  .custom-page-cards {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -24px;
  }
}

@media (max-width: 575px) {
  .custom-page-cards {
    grid-template-columns: 1fr;
    margin-top: -16px;
    padding: 0 16px;
  }
  .custom-page-card {
    padding: 20px;
  }
}

/* ========== 大模型融合云平台：标题 + 标签切换 + 左文右图（整体卡片） ========== */
.custom-page-tabbed-section {
  background: transparent !important;
}

.custom-page-tabbed-section .section-title {
  font-size: clamp(1.5rem, 3vw, 34px);
  font-weight: 600;
  color: #1B2A52;
}

/* 标签栏：居中，参考腾讯云样式 */
.custom-page-tabs-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

.custom-page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 32px;
  justify-content: center;
  padding-bottom: 0;
}

.custom-page-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 15px;
  color: #6b7280;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}

.custom-page-tab:hover {
  color: #1f2937;
}

.custom-page-tab.is-active {
  color: #1677ff;
  font-weight: 600;
  border-bottom-color: #1677ff;
}

.custom-page-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #1677ff;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
}

.custom-page-tab:not(.is-active) .custom-page-tab-icon {
  background: #9ca3af;
}

/* 整体卡片：左侧文字 + 右侧图片，统一边框阴影 */
.custom-page-tab-card {
  max-width: 1200px;
  margin: 24px auto 0;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  background: #fff;
}

.custom-page-tab-panels {
  position: relative;
}

.custom-page-tab-panel {
  display: none;
}

.custom-page-tab-panel.is-active {
  display: block;
}

.custom-page-tab-panel .row {
  margin: 0;
  min-height: 420px;
}

.custom-page-tab-panel .col-xl-6 {
  padding: 0;
}

.custom-page-tab-content {
  padding: 40px 32px 40px 40px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid #e5e7eb;
}

.custom-page-tab-icon-lg {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1677ff;
  color: #fff;
  border-radius: 50%;
  font-size: 24px;
}

.custom-page-tab-title {
  font-size: 24px;
  font-weight: 700;
  color: #1B2A52;
}

.custom-page-tab-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-page-tab-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 14px;
}

.custom-page-tab-features li i {
  color: #1677ff;
  flex-shrink: 0;
  margin-top: 4px;
}

.custom-page-tab-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
  margin: 0;
}

.custom-page-tab-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.custom-page-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity .2s, background .2s, color .2s, border-color .2s;
}

.custom-page-tab-btn--primary {
  background: #1677ff;
  color: #fff;
  border: 1px solid #1677ff;
}

.custom-page-tab-btn--primary:hover {
  color: #fff;
  opacity: 0.9;
}

.custom-page-tab-btn--ghost {
  background: transparent;
  color: #374151;
  border: 1px solid #d1d5db;
}

.custom-page-tab-btn--ghost:hover {
  background: #f9fafb;
  color: #1f2937;
  border-color: #9ca3af;
}

.custom-page-tab-figure {
  position: relative;
  padding: 32px 40px 32px 32px;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafbfc;
}

/* 图片：宽度 100% 随右侧容器（约卡片 50% 宽），高度自适应，无固定尺寸限制 */
.custom-page-tab-img {
  display: none;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  object-fit: contain;
}

.custom-page-tab-img.is-active {
  display: block;
}

@media (max-width: 991px) {
  .custom-page-tab-content {
    padding: 32px 24px;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    min-height: auto;
  }
  .custom-page-tab-panel .row {
    min-height: auto;
  }
  .custom-page-tab-figure {
    padding: 24px;
    min-height: auto;
  }
  .custom-page-tabs {
    gap: 0 20px;
  }
}

@media (max-width: 575px) {
  .custom-page-tab-content {
    padding: 24px 20px;
  }
  .custom-page-tab-figure {
    padding: 20px;
  }
}

/* ========== Skills 功能全面升级：标题+描述在上，下方左文右图 ========== */
.custom-page-skills-section {
  background: #fff;
}

.custom-page-skills-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

/* 顶部：标题+描述，居中 */
.custom-page-skills-header {
  margin-bottom: 32px;
  text-align: center;
}

.custom-page-skills-title {
  font-size: clamp(1.5rem, 2.5vw, 28px);
  font-weight: 700;
  color: #1B2A52;
  margin-bottom: 12px;
}

.custom-page-skills-desc {
  font-size: 16px;
  line-height: 1.75;
  color: #4b5563;
  margin: 0;
}

/* 下方：白底卡片，左文右图 */
.custom-page-skills-card {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.custom-page-skills-left {
  flex: 0 0 50%;
  padding: 40px 40px 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.custom-page-skills-features {
  list-style: disc;
  padding-left: 20px;
  margin: 0 0 24px;
}

.custom-page-skills-features li {
  font-size: 15px;
  line-height: 1.75;
  color: #4b5563;
  margin-bottom: 16px;
}

.custom-page-skills-features li strong {
  color: #1f2937;
}

.custom-page-skills-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: #1677ff;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
  align-self: flex-start;
}

.custom-page-skills-btn:hover {
  color: #fff;
  opacity: 0.9;
}

.custom-page-skills-right {
  flex: 0 0 50%;
  padding: 24px 48px 24px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
}

.custom-page-skills-right img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  object-fit: contain;
}

@media (max-width: 991px) {
  .custom-page-skills-left {
    flex: 0 0 100%;
    padding: 32px 24px;
  }
  .custom-page-skills-right {
    flex: 0 0 100%;
    padding: 24px;
    order: -1;
  }
}

/* ========== 多维度迁移场景及其收益：标题+介绍+三步标签+左文右图 ========== */
.custom-page-migration-section {
  background: #fff;
}

.custom-page-migration-header {
  margin-bottom: 32px;
  text-align: center;
}

.custom-page-migration-title {
  font-size: clamp(1.5rem, 2.5vw, 28px);
  font-weight: 700;
  color: #1B2A52;
  margin-bottom: 12px;
}

.custom-page-migration-desc {
  font-size: 16px;
  line-height: 1.75;
  color: #4b5563;
  margin: 0 auto;
  max-width: 800px;
}

.custom-page-migration-tabs-wrap {
  display: flex;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid #e5e7eb;
}

.custom-page-migration-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 32px;
  justify-content: center;
  padding-bottom: 0;
}

.custom-page-migration-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  font-size: 15px;
  color: #9ca3af;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}

.custom-page-migration-tab:hover {
  color: #4b5563;
}

.custom-page-migration-tab.is-active {
  color: #1677ff;
  font-weight: 600;
  border-bottom-color: #1677ff;
}

.custom-page-migration-tab-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #9ca3af;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  transition: background .2s;
}

.custom-page-migration-tab.is-active .custom-page-migration-tab-num {
  background: #1677ff;
}

.custom-page-migration-card {
  max-width: 1200px;
  margin: 0 auto;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  background: #fff;
}

.custom-page-migration-panel {
  display: none;
}

.custom-page-migration-panel.is-active {
  display: block;
}

.custom-page-migration-body {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  min-height: 360px;
}

.custom-page-migration-left {
  flex: 0 0 50%;
  padding: 40px 40px 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.custom-page-migration-left--bg {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.custom-page-migration-left--bg::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(22, 119, 255, 0.06);
  pointer-events: none;
}

.custom-page-migration-left--bg::after {
  content: '';
  position: absolute;
  bottom: 15%;
  left: 5%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(22, 119, 255, 0.05);
  pointer-events: none;
}

.custom-page-migration-subtitle {
  font-size: 24px;
  font-weight: 700;
  color: #1B2A52;
  margin: 0 0 16px;
  position: relative;
  z-index: 1;
}

.custom-page-migration-text {
  font-size: 15px;
  line-height: 1.75;
  color: #4b5563;
  margin: 0;
  position: relative;
  z-index: 1;
}

.custom-page-migration-right {
  flex: 0 0 50%;
  padding: 32px 48px 32px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
}

.custom-page-migration-right img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  object-fit: contain;
}

@media (max-width: 991px) {
  .custom-page-migration-left {
    flex: 0 0 100%;
    padding: 32px 24px;
  }
  .custom-page-migration-right {
    flex: 0 0 100%;
    padding: 24px;
    order: -1;
  }
  .custom-page-migration-body {
    min-height: auto;
  }
}

@media (max-width: 575px) {
  .custom-page-migration-tabs {
    gap: 0 16px;
  }
  .custom-page-migration-tab {
    font-size: 14px;
    padding: 12px 0;
  }
  .custom-page-migration-tab-num {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
}

/* ========== 使用轻量对象存储：标题居中，下方左文右图 ========== */
.custom-page-storage-section {
  background: #f9fafb;
}

.custom-page-storage-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.custom-page-storage-header {
  margin-bottom: 32px;
  text-align: center;
}

.custom-page-storage-title {
  font-size: clamp(1.5rem, 2.5vw, 28px);
  font-weight: 700;
  color: #1B2A52;
  margin-bottom: 16px;
}

.custom-page-storage-desc {
  font-size: 16px;
  line-height: 1.75;
  color: #4b5563;
  margin: 0 auto;
  max-width: 800px;
}

.custom-page-storage-card {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.custom-page-storage-left {
  flex: 0 0 50%;
  padding: 40px 40px 40px 48px;
}

.custom-page-storage-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: #1B2A52;
  margin-bottom: 16px;
}

.custom-page-storage-steps {
  padding-left: 20px;
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.75;
  color: #4b5563;
}

.custom-page-storage-steps li {
  margin-bottom: 12px;
}

.custom-page-storage-text {
  font-size: 15px;
  line-height: 1.75;
  color: #4b5563;
  margin: 0 0 24px;
}

.custom-page-storage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: #1677ff;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.custom-page-storage-btn:hover {
  color: #fff;
  opacity: 0.9;
}

.custom-page-storage-right {
  flex: 0 0 50%;
  padding: 24px 48px 24px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
}

.custom-page-storage-right img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  object-fit: contain;
}

@media (max-width: 991px) {
  .custom-page-storage-left {
    flex: 0 0 100%;
    padding: 32px 24px;
  }
  .custom-page-storage-right {
    flex: 0 0 100%;
    padding: 24px;
    order: -1;
  }
}

/* ========== 热门行业解决方案：6 卡片网格 ========== */
.custom-page-solutions-section {
  background: #fff;
}

.custom-page-solutions-title {
  font-size: clamp(1.5rem, 2.5vw, 28px);
  font-weight: 700;
  color: #1B2A52;
  text-align: center;
  margin-bottom: 48px;
}

.custom-page-solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.custom-page-solution-card {
  display: block;
  position: relative;
  min-height: 200px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  background-color: #1e3a5f;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.custom-page-solution-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.custom-page-solution-card-inner {
  position: relative;
  z-index: 1;
  padding: 28px 24px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
  user-select: text;
}

.custom-page-solution-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}

.custom-page-solution-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}

@media (max-width: 991px) {
  .custom-page-solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .custom-page-solutions-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
