@charset "UTF-8";

/* Homepage v3 — tech + editorial art direction (tokens in site-design.css) */

@keyframes ds-aurora-drift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.85; }
  33% { transform: translate(2%, -1.5%) scale(1.03); opacity: 1; }
  66% { transform: translate(-1.5%, 2%) scale(0.98); opacity: 0.9; }
}

@keyframes ds-orb-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes ds-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Hero ── */
.page-home .ds-hero {
  position: relative;
  min-height: clamp(520px, 82vh, 760px);
  display: flex;
  align-items: center;
  background: linear-gradient(155deg, #ffffff 0%, #f3f8ff 42%, #eef4ff 100%);
  padding: clamp(56px, 9vw, 96px) 0 clamp(48px, 7vw, 80px);
  overflow: hidden;
  border-bottom: 1px solid var(--ds-hairline);
}

.page-home .ds-hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-home .ds-hero-grid {
  position: absolute;
  inset: -20% -10%;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 65% at 58% 42%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 58% 42%, #000 20%, transparent 72%);
}

.page-home .ds-hero-aurora {
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(ellipse 52% 48% at 78% 22%, rgba(37, 99, 235, 0.14) 0%, transparent 68%),
    radial-gradient(ellipse 38% 42% at 12% 78%, rgba(37, 99, 235, 0.07) 0%, transparent 62%);
  animation: ds-aurora-drift 18s ease-in-out infinite;
}

.page-home .ds-hero-orbs {
  position: absolute;
  inset: 0;
}

.page-home .ds-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  animation: ds-orb-float 7s ease-in-out infinite;
}

.page-home .ds-hero-orb--1 {
  width: 8px;
  height: 8px;
  top: 22%;
  right: 18%;
  background: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.35);
}

.page-home .ds-hero-orb--2 {
  width: 5px;
  height: 5px;
  bottom: 28%;
  left: 12%;
  background: rgba(37, 99, 235, 0.45);
  animation-delay: -2s;
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.25);
}

.page-home .ds-hero-orb--3 {
  width: 6px;
  height: 6px;
  top: 38%;
  left: 42%;
  background: rgba(37, 99, 235, 0.35);
  animation-delay: -4s;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}

.page-home .ds-hero > .container {
  position: relative;
  z-index: 1;
}

.page-home .ds-hero-row {
  --bs-gutter-x: 2.5rem;
}

.page-home .ds-hero-eyebrow {
  font-family: var(--ds-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ds-primary);
  margin-bottom: 20px;
  animation: ds-fade-up 0.7s ease both;
}

.page-home .ds-hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--ds-primary);
  vertical-align: middle;
  margin-right: 12px;
}

.page-home .ds-hero-title {
  font-family: var(--ds-display);
  font-size: clamp(2.5rem, 5.8vw, 4.75rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--ds-ink);
  margin-bottom: 24px;
  animation: ds-fade-up 0.7s ease 0.08s both;
}

.page-home .ds-hero-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ds-body);
  max-width: 30rem;
  margin-bottom: 36px;
  animation: ds-fade-up 0.7s ease 0.16s both;
}

.page-home .ds-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  animation: ds-fade-up 0.7s ease 0.24s both;
}

.page-home .ds-btn-download {
  background: linear-gradient(135deg, var(--ds-primary) 0%, #1e40af 100%);
  color: var(--ds-on-primary);
  border: none;
  border-radius: var(--ds-radius-md);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 26px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.page-home .ds-btn-download:hover {
  color: var(--ds-on-primary);
  background: linear-gradient(135deg, var(--ds-primary-active) 0%, #1e3a8a 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.22);
  text-decoration: none;
}

.page-home .ds-hero-visual {
  position: relative;
  margin-left: clamp(0px, 3vw, 24px);
  animation: ds-fade-up 0.85s ease 0.2s both;
}

.page-home .ds-hero-visual-glow {
  position: absolute;
  inset: 8% -6% -8% -6%;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.page-home .ds-hero-visual-frame {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: calc(var(--ds-radius-lg) + 4px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  aspect-ratio: 4 / 3;
  box-shadow:
    0 0 0 1px var(--ds-hairline),
    0 24px 48px rgba(15, 23, 42, 0.08),
    0 8px 16px rgba(37, 99, 235, 0.06);
  transform: rotate(-1.2deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.page-home .ds-hero-visual-frame:hover {
  transform: rotate(0deg) scale(1.01);
  box-shadow:
    0 0 0 1px var(--ds-hairline-strong),
    0 32px 64px rgba(15, 23, 42, 0.1),
    0 12px 24px rgba(37, 99, 235, 0.1);
}

.page-home .ds-hero-visual-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Sections ── */
.page-home .ds-section {
  padding: clamp(56px, 9vw, 96px) 0;
  background: var(--ds-canvas);
  position: relative;
  overflow: hidden;
}

.page-home .ds-section > .container {
  position: relative;
  z-index: 1;
}

.page-home .ds-section--soft {
  background:
    linear-gradient(180deg, #ffffff 0%, var(--ds-canvas-soft) 55%, #f8faff 100%);
  border-top: 1px solid var(--ds-hairline);
  border-bottom: 1px solid var(--ds-hairline);
  position: relative;
}

.page-home .ds-section--soft::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.16), transparent);
  z-index: 2;
}

/* 动态区 — 全幅轻氛围，强白遮罩 */
.page-home .ds-section--soft::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.86) 50%, rgba(248, 250, 255, 0.9) 100%),
    url("../img/ambient/warm-home.jpg") center / cover no-repeat;
  opacity: 0.32;
}

/* 开发者区 — 右侧半幅氛围，左侧强遮罩保卡片可读 */
.page-home .ds-section--develop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(105deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.93) 44%, rgba(251, 252, 255, 0.8) 54%, rgba(251, 252, 255, 0.48) 66%, transparent 82%),
    url("../img/ambient/datacenter.jpg");
  background-size: 100% 100%, 50% 100%;
  background-position: 0 0, 100% center;
  background-repeat: no-repeat;
  opacity: 0.38;
}

@media (max-width: 767px) {
  .page-home .ds-section--soft::after,
  .page-home .ds-section--develop::after {
    opacity: 0.22;
    background-size: 100% 100%, cover;
    background-position: 0 0, center;
  }

  .page-home .ds-section--soft::after {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 255, 0.9) 100%),
      url("../img/ambient/warm-home.jpg") center / cover no-repeat;
  }

  .page-home .ds-section--develop::after {
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 255, 0.88) 100%),
      url("../img/ambient/datacenter.jpg");
  }
}

.page-home .ds-section-head {
  margin-bottom: 48px;
  max-width: 640px;
}

@media (min-width: 992px) {
  .page-home .ds-section-head {
    margin-left: 0;
    text-align: left;
  }
}

.page-home .ds-section-label {
  display: block;
  font-family: var(--ds-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ds-primary);
  margin-bottom: 12px;
}

@media (min-width: 992px) {
  .page-home .ds-section-label {
    text-align: left;
  }
}

.page-home .ds-section-title {
  font-family: var(--ds-display);
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ds-ink);
  margin-bottom: 0;
}

@media (min-width: 992px) {
  .page-home .ds-section-title {
    text-align: left;
  }
}

/* ── Product cards ── */
.page-home .ds-card {
  background: var(--ds-surface-card);
  border: 1px solid var(--ds-hairline);
  border-radius: var(--ds-radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.page-home .ds-card:hover {
  border-color: var(--ds-hairline-strong);
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px var(--ds-primary-glow),
    0 16px 40px rgba(15, 23, 42, 0.07);
}

.page-home .ds-card-img {
  height: 176px;
  object-fit: cover;
  width: 100%;
  border-bottom: 1px solid var(--ds-hairline-soft);
  background: var(--ds-canvas-soft);
  transition: transform 0.45s ease;
}

.page-home .ds-card:hover .ds-card-img {
  transform: scale(1.04);
}

.page-home .ds-card-body {
  padding: 24px 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-home .ds-card-title {
  font-family: var(--ds-display);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ds-ink);
  margin-bottom: 8px;
}

.page-home .ds-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.page-home .ds-card-title a:hover {
  color: var(--ds-primary);
}

.page-home .ds-card-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ds-muted);
  margin: 0;
  min-height: 2.5em;
}

/* ── News & feature cards — layout only; surfaces in site-surfaces.css ── */
.page-home .ds-news-card,
.page-home .ds-feature-card {
  padding: 34px 28px;
  height: 100%;
  text-align: center;
}

.page-home .ds-feature-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 20px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--ds-surface-strong) 0%, #ffffff 100%);
  color: var(--ds-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  border: 1px solid var(--ds-hairline-soft);
}

.page-home .ds-feature-title {
  font-family: var(--ds-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ds-ink);
  margin-bottom: 10px;
}

.page-home .ds-feature-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ds-body);
  margin-bottom: 22px;
  min-height: 2.8em;
}

.page-home .ds-news-card h4 {
  font-family: var(--ds-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 12px;
}

.page-home .ds-news-card h4 a {
  color: var(--ds-ink);
  text-decoration: none;
  transition: color 0.15s ease;
}

.page-home .ds-news-card h4 a:hover {
  color: var(--ds-primary);
}

.page-home .ds-empty {
  text-align: center;
  color: var(--ds-muted-soft);
  padding: 48px 0;
  font-size: 15px;
}

.page-home .ds-section .text-center.mt-5 {
  margin-top: 3rem !important;
}

@media (max-width: 991px) {
  .page-home .ds-section-head,
  .page-home .ds-section-label,
  .page-home .ds-section-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 767px) {
  .page-home .ds-hero {
    min-height: auto;
  }

  .page-home .ds-hero-visual {
    margin-left: 0;
  }

  .page-home .ds-hero-visual-frame {
    transform: none;
  }

  .page-home .ds-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-home .ds-card-body,
  .page-home .ds-news-card,
  .page-home .ds-feature-card {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .ds-hero-aurora,
  .page-home .ds-hero-orb,
  .page-home .ds-hero-eyebrow,
  .page-home .ds-hero-title,
  .page-home .ds-hero-lead,
  .page-home .ds-hero-actions,
  .page-home .ds-hero-visual {
    animation: none;
  }

  .page-home .ds-card:hover,
  .page-home .ds-card:hover .ds-card-img,
  .page-home .ds-hero-visual-frame:hover {
    transform: none;
  }
}
