/* 产品页公共样式 · idc / prodcim / fastosapi 引用 */

.hero {
  position: relative;
  background: linear-gradient(145deg, var(--hero-from) 0%, var(--hero-mid) 45%, var(--hero-to) 100%);
  color: #fff;
  padding: 170px 0 130px;
  overflow: hidden;
}

/* 背景图 Banner（idc 等） */
.hero--image {
  background: none;
  padding: 150px 0 90px;
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__background-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero__background-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 10, 26, .94) 0%, rgba(12, 10, 26, .88) 38%, rgba(26, 21, 53, .55) 58%, rgba(26, 21, 53, .18) 100%),
    linear-gradient(to top, rgba(12, 10, 26, .35), transparent 40%);
}

.hero--image canvas,
.hero--image .hero__grid,
.hero--image::before,
.hero--image::after {
  display: none
}

.hero--image .container {
  position: relative;
  z-index: 3;
  width: 100%
}

.hero--image .hero__layout {
  max-width: 680px
}

.hero--image .hero__content {
  max-width: 620px
}

.hero--image .tag-pill {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: .4
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(var(--brand-rgb), .22), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(var(--violet-rgb), .15), transparent 55%);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, var(--surface), transparent);
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 54px 54px;
}

.hero .container {
  position: relative;
  z-index: 2
}

.hero__content {
  max-width: 790px
}

.hero__tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .82);
}

.tag-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green)
}

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.06;
  letter-spacing: -.025em;
  margin-bottom: 24px;
}

.text-gradient {
  background: linear-gradient(100deg, #fff 10%, var(--cyan) 60%, var(--brand) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .sub {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .72);
  max-width: 640px;
  margin-bottom: 38px
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center
}

.hero.hero--product {
  padding: 150px 0 90px
}

.hero--product h1 {
  font-size: clamp(30px, 4.4vw, 52px)
}

.product-intro {
  padding: 90px 0
}

.product-intro .grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center
}

.product-intro h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -.02em;
  margin-bottom: 18px
}

.product-intro p {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.8;
  margin-bottom: 24px
}

.product-intro .img {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface-2);
  aspect-ratio: 4/3;
  display: grid;
  place-items: center;
}

.product-intro .img img {
  /* width: 100%;
  height: 100%; */
  object-fit: cover;
  display: block;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px
}

.advantage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: .25s;
}

.advantage-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: transparent
}

.advantage-card .ai {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(var(--brand-rgb), .12), rgba(var(--cyan-rgb), .12));
  color: var(--brand);
  margin-bottom: 14px;
}

.advantage-card .ai i {
  font-size: 20px
}

.advantage-card h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px
}

.advantage-card p {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.6
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px
}

.module-card {
  text-align: center;
  padding: 26px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  transition: .25s;
}

.module-card:hover {
  background: var(--ink);
  color: #fff;
  border-color: transparent;
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg)
}

.module-card i {
  font-size: 30px;
  color: var(--brand);
  transition: .25s
}

.module-card:hover i {
  color: var(--cyan)
}

.module-card p {
  margin-top: 12px;
  font-weight: 600;
  font-size: 14px
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px
}

.control-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  transition: .25s;
}

.control-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px)
}

.control-card .ci {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  flex: none;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  color: #fff;
  box-shadow: 0 8px 20px rgba(var(--brand-rgb), .3);
}

.control-card .ci i {
  font-size: 28px
}

.control-card h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px
}

.control-card h4 span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  font-weight: 400;
  margin-left: 6px
}

.control-card p {
  color: var(--text-2);
  font-size: 13px;
  margin-top: 5px
}

.pricing-table {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.pricing-table .row {
  display: grid;
  grid-template-columns: 240px 1fr;
  border-top: 1px solid var(--border)
}

.pricing-table .row:first-child {
  border-top: 0
}

.pricing-table .row::before,
.pricing-table .row::after {
  content: none !important;
  display: none !important
}

.pricing-table .k {
  background: var(--surface-2);
  padding: 18px 24px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-2);
  border-right: 1px solid var(--border);
}

.pricing-table .v {
  padding: 18px 24px;
  font-size: 14.5px;
  display: flex;
  align-items: center
}

.pricing-table .v .hot {
  color: #ff5533;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px
}

.pricing-table .v .orange {
  color: var(--amber);
  font-weight: 700
}

.flow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap
}

.flow-steps .step {
  text-align: center;
  flex: 1;
  min-width: 120px
}

.flow-steps .step .si {
  width: 74px;
  height: 74px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--brand);
  transition: .25s;
}

.flow-steps .step:hover .si {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
  transform: scale(1.06);
  box-shadow: 0 10px 24px rgba(var(--brand-rgb), .3);
}

.flow-steps .step .si i {
  font-size: 30px
}

.flow-steps .step p {
  font-weight: 600;
  font-size: 14px
}

.flow-steps .arrow {
  color: var(--border-2);
  font-size: 22px;
  flex: none
}

.strengths-section {
  padding: 90px 0
}

.strengths-section .hero__background-shade {
  background:
    linear-gradient(180deg, rgba(12, 10, 26, .9) 0%, rgba(12, 10, 26, .72) 45%, rgba(12, 10, 26, .88) 100%),
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(26, 21, 53, .35), transparent 70%);
}

.strengths-section .section-header {
  margin-bottom: 48px
}

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px
}

.strengths-grid .item {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  padding: 34px 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: .25s;
}

.strengths-grid .item:hover {
  background: rgba(255, 255, 255, .11);
  border-color: rgba(255, 255, 255, .2);
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .1);
}

.strengths-grid .item label {
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 700;
  color: var(--cyan);
  opacity: .5;
  display: block;
  margin-bottom: 14px;
}

.strengths-grid .item h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.4
}

.strengths-grid .item .desc {
  color: rgba(255, 255, 255, .62);
  font-size: 13.5px;
  line-height: 1.9
}

.function-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px
}

.function-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 58px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: .2s;
}

.function-grid a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(var(--brand), var(--cyan));
}

.function-grid a:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--surface-2);
  transform: translateY(-2px)
}

@media (max-width: 980px) {
  .advantage-grid {
    grid-template-columns: 1fr 1fr
  }

  .product-intro .grid {
    grid-template-columns: 1fr;
    padding: 36px;
    gap: 32px
  }

  .module-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .control-grid {
    grid-template-columns: 1fr
  }

  .strengths-grid {
    grid-template-columns: 1fr
  }

  .function-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width: 760px) {
  .hero--image {
    padding: 120px 0 72px
  }

  .strengths-section {
    padding: 64px 0
  }

  .hero--image .hero__background-image {
    object-position: 70% center
  }

  .hero--image .hero__background-shade {
    background:
      linear-gradient(180deg, rgba(12, 10, 26, .92) 0%, rgba(12, 10, 26, .78) 55%, rgba(26, 21, 53, .45) 100%),
      linear-gradient(to top, rgba(12, 10, 26, .4), transparent 35%);
  }

  .strengths-section .hero__background-shade {
    background:
      linear-gradient(180deg, rgba(12, 10, 26, .92) 0%, rgba(12, 10, 26, .8) 50%, rgba(12, 10, 26, .92) 100%);
  }

  .advantage-grid,
  .function-grid {
    grid-template-columns: 1fr
  }

  .module-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .flow-steps .arrow {
    display: none
  }
}

.product-detail-body {
  overflow: hidden;
}

.product-detail-body img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 富文本里直接插入、未包在 .img 容器内的大图 */
.product-detail-body p > img,
.product-detail-body > img {
  max-width: min(100%, 720px);
  margin: 24px auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.product-detail-body table {
  width: 100%;
  border-collapse: collapse
}

.product-detail-body table td,
.product-detail-body table th {
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 8px 12px
}