/* 云服务器产品页样式：只放 /ecs/ 页面专属首屏、规格、优势、功能和场景模块。 */
.site-header--product {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(217, 226, 239, 0.92);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.site-nav a.active {
  color: var(--web-primary);
  border-bottom-color: var(--web-primary);
}

.ecs-page {
  background: #f5f8fc;
}

.ecs-kicker {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  color: #1464f4;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.ecs-hero {
  position: relative;
  overflow: hidden;
  padding: 128px 0 72px;
  background:
    radial-gradient(circle at 84% 12%, rgba(20, 100, 244, 0.22), transparent 30%),
    linear-gradient(110deg, #f8fbff 0%, #edf5ff 46%, #dceaff 100%);
}

.ecs-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.36;
}

.ecs-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(248, 251, 255, 0.96) 0%, rgba(248, 251, 255, 0.82) 48%, rgba(220, 234, 255, 0.52) 100%);
}

.ecs-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 0.78fr);
  gap: 56px;
  align-items: center;
}

.ecs-hero__copy {
  max-width: 680px;
}

.ecs-hero h1 {
  margin: 14px 0 0;
  color: #0f172a;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

.ecs-hero p {
  max-width: 640px;
  margin: 22px 0 0;
  color: #475569;
  font-size: 18px;
  line-height: 1.82;
}

.ecs-hero .site-actions {
  margin-top: 30px;
}

.ecs-console {
  min-height: 360px;
  display: grid;
  align-content: space-between;
  gap: 20px;
  padding: 26px;
  border: 1px solid rgba(191, 219, 254, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 28px 70px rgba(20, 100, 244, 0.14);
  backdrop-filter: blur(14px);
}

.ecs-console__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ecs-console__head strong {
  color: #0f172a;
  font-size: 20px;
}

.ecs-console__head span {
  color: #1464f4;
  font-size: 13px;
}

.ecs-console__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ecs-console__metrics article {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.ecs-console__metrics span,
.ecs-console__status span {
  color: #64748b;
  font-size: 13px;
}

.ecs-console__metrics strong {
  color: #0b5bd3;
  font-size: 28px;
  font-weight: 600;
}

.ecs-console__status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ecs-console__status span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9e2ef;
  border-radius: 6px;
  background: #ffffff;
}

.ecs-console__status .active {
  border-color: rgba(0, 168, 112, 0.34);
  background: #ecfdf3;
  color: #00a870;
}

.ecs-anchor-nav {
  position: sticky;
  top: 56px;
  z-index: 20;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.ecs-anchor-nav .site-container {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 34px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ecs-anchor-nav .site-container::-webkit-scrollbar {
  display: none;
}

.ecs-anchor-nav a {
  color: #334155;
  font-size: 14px;
  white-space: nowrap;
}

.ecs-anchor-nav a:hover {
  color: var(--web-primary);
}

.ecs-section {
  scroll-margin-top: 128px;
  padding: 72px 0;
  background: #ffffff;
}

.ecs-section--specs {
  background: #f5f8fc;
}

.ecs-section--features {
  background:
    radial-gradient(circle at 82% 18%, rgba(0, 168, 112, 0.14), transparent 28%),
    linear-gradient(135deg, #0b1220 0%, #102a54 48%, #0f3d56 100%);
  color: #ffffff;
}

.ecs-section__head {
  max-width: 760px;
  margin-bottom: 30px;
}

.ecs-section__head h2 {
  margin: 8px 0 0;
  color: #0f172a;
  font-size: 34px;
  line-height: 1.24;
  letter-spacing: 0;
}

.ecs-section__head p {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 16px;
  line-height: 1.76;
}

.ecs-section--features .ecs-kicker {
  color: #8ff0c9;
}

.ecs-section--features .ecs-section__head h2 {
  color: #ffffff;
}

.ecs-section--features .ecs-section__head p {
  color: #cbd5e1;
}

.ecs-spec-grid,
.ecs-advantage-grid,
.ecs-scenario-grid {
  display: grid;
  gap: 16px;
}

.ecs-spec-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ecs-spec-card,
.ecs-advantage-grid article,
.ecs-scenario-grid article {
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.ecs-spec-card {
  min-height: 330px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ecs-spec-card.active,
.ecs-spec-card:hover {
  border-color: rgba(20, 100, 244, 0.42);
  box-shadow: 0 20px 46px rgba(20, 100, 244, 0.12);
  transform: translateY(-2px);
}

.ecs-spec-card span {
  width: max-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: #eaf2ff;
  color: #1464f4;
  font-size: 13px;
  font-weight: 500;
}

.ecs-spec-card h3,
.ecs-advantage-grid h3,
.ecs-scenario-grid h3 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.28;
}

.ecs-spec-card p,
.ecs-advantage-grid p,
.ecs-scenario-grid p {
  margin: 0;
  color: #64748b;
  line-height: 1.76;
}

.ecs-spec-card dl {
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
}

.ecs-spec-card dl div {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.ecs-spec-card dt,
.ecs-spec-card dd {
  margin: 0;
  font-size: 14px;
}

.ecs-spec-card dt {
  color: #64748b;
}

.ecs-spec-card dd {
  color: #0f172a;
  font-weight: 600;
}

.ecs-advantage-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ecs-advantage-grid article {
  min-height: 240px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
}

.ecs-advantage-grid span {
  width: max-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid #00a870;
  color: #1464f4;
  font-size: 15px;
  font-weight: 600;
}

.ecs-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(420px, 1fr);
  gap: 44px;
  align-items: start;
}

.ecs-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ecs-feature-list article {
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(219, 234, 254, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.ecs-feature-list strong {
  color: #ffffff;
  font-size: 18px;
}

.ecs-feature-list span {
  color: #cbd5e1;
  line-height: 1.68;
}

.ecs-scenario-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ecs-scenario-grid article {
  min-height: 190px;
  padding: 24px;
}

.ecs-scenario-grid h3 {
  margin-bottom: 12px;
}

.ecs-action-panel {
  padding: 56px 0;
  background: #f5f8fc;
}

.ecs-action-panel__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  padding: 38px 42px;
  border: 1px solid rgba(191, 219, 254, 0.78);
  border-radius: 8px;
  background:
    radial-gradient(circle at 86% 16%, rgba(0, 168, 112, 0.16), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #eef6ff 58%, #f4fbf8 100%);
  box-shadow: 0 20px 54px rgba(20, 100, 244, 0.11);
}

.ecs-action-panel h2 {
  margin: 8px 0 0;
  color: #0f172a;
  font-size: 32px;
  line-height: 1.28;
  letter-spacing: 0;
}

.ecs-action-panel p {
  max-width: 720px;
  margin: 12px 0 0;
  color: #475569;
}

@media (max-width: 980px) {
  .ecs-hero {
    padding-top: 148px;
  }

  .ecs-hero__inner,
  .ecs-feature-layout,
  .ecs-action-panel__inner {
    grid-template-columns: 1fr;
  }

  .ecs-console {
    min-height: auto;
  }

  .ecs-spec-grid,
  .ecs-advantage-grid,
  .ecs-scenario-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ecs-action-panel__inner .site-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .ecs-hero {
    padding: 144px 0 46px;
  }

  .ecs-hero h1 {
    font-size: 38px;
  }

  .ecs-hero p {
    font-size: 16px;
  }

  .ecs-console {
    padding: 16px;
  }

  .ecs-console__head,
  .ecs-console__metrics,
  .ecs-console__status,
  .ecs-spec-grid,
  .ecs-advantage-grid,
  .ecs-feature-list,
  .ecs-scenario-grid {
    grid-template-columns: 1fr;
  }

  .ecs-anchor-nav {
    top: 124px;
  }

  .ecs-anchor-nav .site-container {
    min-height: 52px;
    gap: 22px;
  }

  .ecs-section {
    scroll-margin-top: 176px;
    padding: 48px 0;
  }

  .ecs-section__head h2,
  .ecs-action-panel h2 {
    font-size: 28px;
  }

  .ecs-spec-card,
  .ecs-advantage-grid article,
  .ecs-scenario-grid article {
    min-height: auto;
  }

  .ecs-action-panel {
    padding: 42px 0;
  }

  .ecs-action-panel__inner {
    padding: 24px;
  }

  .ecs-action-panel__inner .site-btn {
    width: 100%;
  }
}
