/*
 * 产品橱窗（首页「三大平台」区块内容区）
 * 版式参照站长提供的截图，配色 / 圆角 / 阴影沿用 idcsmart design-system。
 */

.ccs-showcase {
  position: relative;
  padding: 84px 0 92px;
  background: #fff;
  overflow: hidden;
}

.ccs-showcase::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 460px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(22, 93, 255, .055), rgba(22, 93, 255, 0) 72%);
  pointer-events: none;
}

.ccs-showcase > .content-width {
  position: relative;
}

/* ---------- 区块标题（沿用 section-title-v10，保持全站一致） ---------- */
.ccs-showcase .ccs-heading {
  margin-bottom: 34px;
}

.ccs-showcase .ccs-heading > p {
  margin-top: 12px;
  color: var(--site-text-secondary, #7d8797);
  font-size: 14px;
}

.ccs-showcase .ccs-heading > p a {
  color: var(--site-info, #2b6cff);
  text-decoration: none;
  white-space: nowrap;
}

.ccs-showcase .ccs-heading > p a:hover {
  color: var(--site-brand, #165dff);
}

.ccs-showcase .ccs-heading > p a span {
  display: inline-block;
  margin-left: 2px;
  transition: transform .2s ease;
}

.ccs-showcase .ccs-heading > p a:hover span {
  transform: translateX(3px);
}

/* ---------- 面板 ---------- */
.ccs-panel {
  position: relative;
  margin-top: 26px;
}

/* ---------- 分类页签 ---------- */
.ccs-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0;
  border-bottom: 1px solid var(--site-outline-soft, #eceef3);
}

.ccs-tab {
  position: relative;
  padding: 0 26px 15px;
  border: 0;
  background: none;
  color: var(--site-text-primary, #384257);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: color .18s ease;
}

.ccs-tab::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: var(--site-brand, #165dff);
  transform: translateX(-50%);
  transition: width .22s ease;
}

.ccs-tab:hover {
  color: var(--site-brand, #165dff);
}

.ccs-tab.is-active {
  color: var(--site-brand, #165dff);
  font-weight: 600;
}

.ccs-tab.is-active::after {
  width: calc(100% - 40px);
}

/* ---------- 二级：系列标签（一排小按钮，取代原大卡片） ---------- */
.ccs-group {
  display: none;
  margin-top: 22px;
}

.ccs-group.is-active {
  display: block;
}

.ccs-subtabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.ccs-subtab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--site-outline-soft, #eceef3);
  border-radius: var(--site-radius-compact, 2px);
  background: #fff;
  color: var(--site-text-primary, #384257);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.ccs-subtab:hover {
  border-color: rgba(22, 93, 255, .42);
  color: var(--site-brand, #165dff);
}

.ccs-subtab.is-active {
  border-color: rgba(22, 93, 255, .55);
  background: var(--site-brand-soft, #eaf2ff);
  color: var(--site-brand, #165dff);
  font-weight: 600;
}

.ccs-subtab-count {
  color: var(--site-text-secondary, #7d8797);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.ccs-subtab.is-active .ccs-subtab-count {
  color: inherit;
  opacity: .68;
}

/* 「更多需要」咨询标签 */
.ccs-subtab.is-consult {
  border-style: dashed;
  color: var(--site-text-secondary, #7d8797);
  text-decoration: none;
}

.ccs-subtab.is-consult span {
  transition: transform .2s ease;
}

.ccs-subtab.is-consult:hover span {
  transform: translateX(3px);
}

/* ---------- 三级：机型小卡片 ---------- */
.ccs-plans {
  margin-top: 18px;
}

.ccs-plans-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
}

.ccs-plans-head p {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  margin: 0;
}

.ccs-plans-head strong {
  overflow: hidden;
  color: var(--site-text-strong, #313a50);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ccs-plans-head span {
  flex: none;
  color: var(--site-text-tertiary, #9aa1ae);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ccs-plans-more {
  flex: none;
  color: var(--site-brand, #165dff);
  font-size: 12.5px;
  text-decoration: none;
}

.ccs-plans-more i {
  display: inline-block;
  margin-left: 3px;
  font-style: normal;
  transition: transform .2s ease;
}

.ccs-plans-more:hover i {
  transform: translateX(3px);
}

.ccs-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(226px, 1fr));
  gap: 12px;
}

.ccs-plan-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 12px;
  border: 1px solid var(--site-outline-soft, #eceef3);
  border-radius: var(--site-radius-structural, 4px);
  background: #fff;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ccs-plan-card:hover {
  border-color: rgba(22, 93, 255, .38);
  box-shadow: 0 8px 20px rgba(49, 59, 78, .09);
  transform: translateY(-2px);
}

.ccs-plan-card-name {
  display: -webkit-box;
  overflow: hidden;
  color: var(--site-text-strong, #313a50);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  /* 机型名常带「（有售后）」这类括号后缀，默认折行容易把末字或半截括号
     挤成一行。balance 会把两行摊平，避免「款」「后）」这类孤字行。 */
  text-wrap: balance;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* 规格用 flex 分段：窄屏换行时按整段折行，不会把数字截断、
   也不会让分隔符掉到下一行行首，所以这里只用间距不用分隔点。 */
.ccs-plan-card-spec {
  display: flex;
  flex-wrap: wrap;
  row-gap: 1px;
  column-gap: 10px;
  color: var(--site-text-tertiary, #9aa1ae);
  font-size: 12px;
  line-height: 1.55;
}

.ccs-plan-card-spec i {
  font-style: normal;
  white-space: nowrap;
}

.ccs-plan-card-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
  padding-top: 9px;
  border-top: 1px solid var(--site-outline-soft, #f2f4f8);
}

.ccs-plan-card-price {
  color: var(--site-brand, #165dff);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  /* 价格整体不可断行：窄卡里若允许折行，会把「元/月」拆成「元/」+「月」 */
  white-space: nowrap;
}

.ccs-plan-card-price small {
  margin-left: 2px;
  color: var(--site-text-tertiary, #9aa1ae);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.ccs-plan-card-price.is-free {
  color: var(--site-success, #53a985);
  font-size: 13.5px;
}

.ccs-plan-card-buy {
  flex: none;
  color: var(--site-brand, #165dff);
  font-size: 12px;
  opacity: .82;
}

.ccs-plan-card-buy i {
  display: inline-block;
  margin-left: 2px;
  font-style: normal;
  transition: transform .18s ease;
}

.ccs-plan-card:hover .ccs-plan-card-buy i {
  transform: translateX(3px);
}

.ccs-plans-empty {
  margin: 0;
  padding: 26px 0;
  color: var(--site-text-tertiary, #9aa1ae);
  font-size: 12.5px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .ccs-subtabs {
    gap: 6px;
  }

  .ccs-plans-grid {
    grid-template-columns: repeat(auto-fill, minmax(208px, 1fr));
  }
}

@media (max-width: 900px) {
  .ccs-showcase {
    padding: 64px 0 68px;
  }

  .ccs-tabs {
    gap: 0;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .ccs-tabs::-webkit-scrollbar {
    display: none;
  }

  .ccs-tab {
    padding: 0 16px 13px;
    white-space: nowrap;
  }

  .ccs-group {
    margin-top: 18px;
  }

  .ccs-subtabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-right: -24px;
    padding-right: 24px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .ccs-subtabs::-webkit-scrollbar {
    display: none;
  }

  .ccs-subtab {
    height: 32px;
    flex: none;
  }

  .ccs-plans-head {
    align-items: center;
  }

  .ccs-plans-head span {
    display: none;
  }

  .ccs-plans-grid {
    /* 平板竖屏（768 左右）用 auto-fill 自然排 3 列，比死写 2 列更饱满；
       620 以下另有 2 列的规则覆盖 */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
  }
}

/* 平板竖屏：标签条放得下就整排换行显示，不用横向滚动把「更多需要」截掉半截 */
@media (min-width: 621px) and (max-width: 900px) {
  .ccs-subtabs {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    margin-right: 0;
    padding-right: 0;
  }
}

@media (max-width: 620px) {
  /* 手机上内容区左右边距是 16px，标签条贴边要按 16px 出血 */
  .ccs-subtabs {
    margin-right: -16px;
    padding-right: 16px;
  }

  /* 手机固定两列：auto-fill 在这个宽度只会排出一列，卡片会被拉得过长 */
  .ccs-plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ccs-plan-card {
    padding: 12px 13px 11px;
  }

  .ccs-plan-card-name {
    font-size: 12.5px;
  }

  .ccs-plan-card-price {
    font-size: 16px;
  }

  /* 360 这类窄机上「¥328.50 元/月」+「选购→」一排放不下，
     让按钮整体换行并靠右，而不是把价格单位拆开 */
  .ccs-plan-card-foot {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .ccs-plan-card-buy {
    margin-left: auto;
  }
}

/* ============================================================
   合作伙伴 · 跑马灯 logo 墙（素材来自 cwcs.ccyidc.com）
   ============================================================ */
.ccp-partners {
  position: relative;
  padding: 82px 0 76px;
  background: #fff;
  overflow: hidden;
}

.ccp-partners .ccp-head {
  margin-bottom: 40px;
}

.ccp-partners .ccp-head > p {
  margin-top: 12px;
  color: var(--site-text-secondary, #7d8797);
  font-size: 14px;
}

.ccp-wall {
  display: flex;
  flex-direction: column;
  gap: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.ccp-row {
  overflow: hidden;
}

.ccp-track {
  --ccp-shift: 50%;
  display: flex;
  width: max-content;
  animation: ccp-scroll 38s linear infinite;
  will-change: transform;
}

.ccp-row:nth-child(even) .ccp-track {
  animation-direction: reverse;
}

.ccp-row:nth-child(1) .ccp-track { animation-duration: 42s; }
.ccp-row:nth-child(2) .ccp-track { animation-duration: 36s; }
.ccp-row:nth-child(3) .ccp-track { animation-duration: 46s; }
.ccp-row:nth-child(4) .ccp-track { animation-duration: 34s; }
.ccp-row:nth-child(5) .ccp-track { animation-duration: 40s; }
.ccp-row:nth-child(6) .ccp-track { animation-duration: 32s; }

.ccp-track img {
  display: block;
  width: auto;
  height: 56px;
  flex: none;
}

.ccp-partners:hover .ccp-track {
  animation-play-state: paused;
}

@keyframes ccp-scroll {
  from { transform: translate3d(0, 0, 0); }
  /* 位移 = 一整份条图宽度（脚本按实际渲染宽度写入 --ccp-shift）。
     轨道至少保留「一份 + 一屏」，滚到任意位置右侧都不会露白。 */
  to { transform: translate3d(calc(-1 * var(--ccp-shift)), 0, 0); }
}

@media (max-width: 1180px) {
  .ccp-partners {
    padding: 64px 0 60px;
  }

  .ccp-track img {
    height: 46px;
  }

  .ccp-wall {
    gap: 10px;
  }
}

@media (max-width: 620px) {
  .ccp-track img {
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ccp-track {
    animation: none;
  }
}

/* ============================================================
   平台动态（三列公告 + 数据条）
   ============================================================ */
.ccd-news {
  padding: 84px 0 0;
  background: #fff;
}

.ccd-news .ccd-head {
  margin-bottom: 40px;
}

.ccd-news .ccd-head > p {
  margin-top: 12px;
  color: var(--site-text-secondary, #7d8797);
  font-size: 14px;
}

.ccd-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ccd-card {
  padding: 20px 22px 18px;
  border: 1px solid var(--site-outline-soft, #eceef3);
  border-radius: var(--site-radius-structural, 4px);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.ccd-card:hover {
  border-color: rgba(22, 93, 255, .32);
  box-shadow: var(--site-shadow-card, 0 10px 28px rgba(49, 59, 78, .08));
}

.ccd-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.ccd-card-head h3 {
  position: relative;
  margin: 0;
  padding-left: 11px;
  color: var(--site-text-strong, #313a50);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.ccd-card-head h3::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 3px;
  height: 15px;
  border-radius: 1px;
  background: var(--site-brand, #165dff);
  transform: translateY(-50%);
}

.ccd-card-head a {
  color: var(--site-info, #2b6cff);
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.ccd-card-head a:hover {
  color: var(--site-brand, #165dff);
}

.ccd-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ccd-card li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--site-outline-soft, #f0f2f6);
}

.ccd-card li:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.ccd-card li a {
  flex: 1;
  overflow: hidden;
  color: var(--site-text-primary, #384257);
  font-size: 13px;
  line-height: 1.6;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .18s ease;
}

.ccd-card li a:hover {
  color: var(--site-brand, #165dff);
}

.ccd-card li time {
  flex: none;
  color: var(--site-text-tertiary, #9aa1ae);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* 数据条 */
.ccd-stats {
  margin-top: 56px;
  padding: 0;
  background: var(--site-surface-muted, #f7f8fb);
  border-top: 1px solid var(--site-outline-soft, #eceef3);
}

.ccd-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 34px 0 36px;
}

.ccd-stat {
  position: relative;
  text-align: center;
}

.ccd-stat + .ccd-stat::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 1px;
  background: var(--site-outline, #e2e6ed);
}

.ccd-stat strong {
  display: block;
  color: var(--site-brand, #165dff);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.ccd-stat strong sup {
  font-size: 17px;
  font-weight: 700;
  vertical-align: super;
}

.ccd-stat span {
  display: block;
  margin-top: 8px;
  color: var(--site-text-secondary, #7d8797);
  font-size: 12.5px;
}

@media (max-width: 1180px) {
  .ccd-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ccd-news {
    padding-top: 64px;
  }

  .ccd-stats-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 0;
  }

  .ccd-stat:nth-child(3)::before {
    display: none;
  }
}

@media (max-width: 620px) {
  .ccd-grid {
    /* 单列也要写 minmax(0,1fr)：裸 1fr 的最小值会被公告标题的长文本顶开，
       在 360 这类窄机上会让整页横向溢出 */
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 卡片里的实时价格行 */
.ccs-card p.ccs-card-meta {
  margin: 0 0 14px;
  color: var(--site-brand, #165dff);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.ccs-card p.ccs-card-meta.is-free {
  color: var(--site-success, #53a985);
}
