/* ============================================================
   产品更新日志页面样式
   ============================================================ */

:root {
  --pu-ink: var(--color-text-primary);
  --pu-ink-2: var(--color-text-secondary);
  --pu-ink-3: var(--color-text-tertiary);
  --pu-line: rgba(24, 45, 92, 0.10);
  --pu-line-strong: rgba(24, 45, 92, 0.16);
  --pu-rail: rgba(36, 84, 255, 0.20);
  --pu-dot: var(--color-primary);
  --pu-dot-ring: rgba(36, 84, 255, 0.14);
  --pu-chip-bg: var(--color-primary-light);
  --pu-chip-ink: var(--color-primary);
  --pu-surface: var(--card-surface-bg, #FFFFFF);
  --pu-marker: rgba(36, 84, 255, 0.42);

  --home-text: #172033;
  --home-text-2: #556176;
  --home-primary: #2454ff;
  --home-success: #0ca678;
}

html[data-theme="dark"] {
  --pu-line: rgba(153, 181, 226, 0.15);
  --pu-line-strong: rgba(153, 181, 226, 0.24);
  --pu-rail: rgba(118, 168, 255, 0.32);
  --pu-dot: #78b8ff;
  --pu-dot-ring: rgba(118, 168, 255, 0.18);
  --pu-chip-bg: rgba(64, 124, 255, 0.18);
  --pu-chip-ink: #9dc2ff;
  --pu-surface: #0d1a2f;
  --pu-marker: rgba(118, 168, 255, 0.55);
}

/* ============ Timeline ============ */
.pu-timeline {
  margin: 0 auto;
  max-width: var(--container-main);
  padding-left: var(--container-padding-inline);
  padding-right: var(--container-padding-inline);
}

.product-updates { position: relative; }
.product-updates::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: var(--pu-rail);
}
.product-updates--empty::before,
.product-updates--error::before { display: none; }

.product-update {
  position: relative;
  display: grid;
  grid-template-columns: minmax(112px, 168px) minmax(0, 1fr);
  column-gap: clamp(20px, 2.6vw, 44px);
  padding: clamp(26px, 2.6vw, 40px) 0 clamp(26px, 2.6vw, 40px) 48px;
  min-width: 0;
}
.product-update + .product-update { border-top: 1px solid var(--pu-line); }
.product-update::before {
  content: "";
  position: absolute;
  left: 0;
  top: clamp(30px, 2.7vw, 42px);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pu-surface);
  border: 2px solid var(--pu-dot);
  box-shadow: 0 0 0 4px var(--pu-dot-ring);
  z-index: 1;
}

.product-update__meta {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  min-width: 0;
}
.product-update__version {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.5vw, 26px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--pu-ink);
  font-variant-numeric: tabular-nums;
}
.product-update__date {
  font-size: 14px;
  line-height: 1.5;
  color: var(--pu-ink-3);
  font-variant-numeric: tabular-nums;
}

.product-update__title {
  grid-column: 2;
  margin: 0 0 clamp(12px, 1.4vw, 18px);
  font-family: var(--font-display);
  font-size: clamp(19px, 1.5vw, 25px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--pu-ink);
  min-width: 0;
  overflow-wrap: anywhere;
}
.product-update__summary {
  grid-column: 2;
  margin: 0 0 clamp(16px, 1.8vw, 22px);
  font-size: 16px;
  line-height: 1.7;
  color: var(--pu-ink-2);
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-update__group { grid-column: 2; min-width: 0; }
.product-update__group + .product-update__group { margin-top: clamp(12px, 1.4vw, 18px); }
.product-update__groupLabel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 3px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--pu-chip-ink);
  background: var(--pu-chip-bg);
  border-radius: 999px;
}
.product-update__groupLabel::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: currentColor;
}

.product-update__changes {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-update__change {
  position: relative;
  padding-left: 18px;
  font-size: clamp(15px, 1.05vw, 16px);
  line-height: 1.75;
  color: var(--pu-ink-2);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.product-update__change::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--pu-marker);
}

/* 展开 / 收起（渐进增强，仅在脚本就绪后出现） */
.product-update__toggle {
  grid-column: 2;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 clamp(12px, 1.4vw, 18px);
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-primary);
  background: var(--color-primary-subtle, rgba(36, 84, 255, 0.06));
  border: 1px solid var(--pu-line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.product-update__toggle:hover { background: var(--color-primary-light); border-color: var(--color-primary); }
.product-update__toggle:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.product-update__toggle svg { width: 14px; height: 14px; transition: transform .2s ease; }
.product-update.is-collapsed .product-update__toggle svg { transform: rotate(-180deg); }
.product-update.is-collapsed .product-update__group { display: none; }

/* 空 / 错误状态 */
.product-updates__empty,
.product-updates__error {
  margin: 0;
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
  font-size: 15px;
  color: var(--pu-ink-2);
  background: var(--pu-surface);
  border: 1px dashed var(--pu-line-strong);
  border-radius: 14px;
}

/* ============ 滚动渐显 ============ */
.product-updates.is-reveal-ready .product-update {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.product-updates.is-reveal-ready .product-update.is-visible { opacity: 1; transform: none; }

/* ============ CTA ============ */
.pu-cta {
  position: relative;
  overflow: hidden;
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  background: linear-gradient(135deg, #0A1F5C 0%, #0A3DFF 50%, #7B61FF 100%);
}
.pu-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 58% 52% at 50% 50%, rgba(0, 212, 255, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 40% 34% at 28% 74%, rgba(123, 97, 255, 0.16) 0%, transparent 60%);
}
.pu-cta > .container { position: relative; z-index: 1; min-width: 0; }
.pu-cta__inner { max-width: 900px; margin: 0 auto; text-align: center; }
.pu-cta__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: var(--text-section-title);
  font-weight: 600;
  line-height: 1.25;
  color: #FFFFFF;
}
.pu-cta__desc {
  margin: 0 auto 30px;
  max-width: 720px;
  font-size: var(--text-lead);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}
.pu-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .product-update { grid-template-columns: minmax(96px, 140px) minmax(0, 1fr); }
}

@media (max-width: 768px) {
  .product-update {
    display: block;
    padding: 24px 0 24px 34px;
  }
  .product-update::before { box-shadow: none; }
  .product-update__meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    margin-bottom: 10px;
  }
  .product-update__version { font-size: 20px; }
  .product-update__title { font-size: clamp(18px, 5.2vw, 22px); margin-bottom: 14px; }
  .product-update__change { font-size: 15px; }

  .pu-cta__actions { width: 100%; }
  .pu-cta__actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .product-updates.is-reveal-ready .product-update {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .product-update__toggle,
  .product-update__toggle svg { transition: none; }
}

/* ==========================================================
   容器版心
   ========================================================== */
:root {
  --xlx-page-inset: 24px;
  --xlx-page-gutter: 12px;
  --container-wide: calc(100vw - var(--xlx-page-inset));
  --container-main: calc(100vw - var(--xlx-page-inset));
  --container-content: calc(100vw - var(--xlx-page-inset));
  --container-padding-inline: 0px;
}

@media (min-width: 391px) {
  :root { --xlx-page-inset: 28px; --xlx-page-gutter: 14px; }
}

@media (min-width: 431px) {
  :root { --xlx-page-inset: 32px; --xlx-page-gutter: 16px; }
}

@media (min-width: 768px) {
  :root { --xlx-page-inset: 48px; --xlx-page-gutter: 24px; }
}

@media (min-width: 1024px) {
  :root { --xlx-page-inset: 72px; --xlx-page-gutter: 36px; }
}

@media (min-width: 1280px) {
  :root { --xlx-page-inset: 96px; --xlx-page-gutter: 48px; }
}

@media (min-width: 1440px) {
  :root { --xlx-page-inset: 144px; --xlx-page-gutter: 72px; }
}

@media (min-width: 1600px) {
  :root { --xlx-page-inset: 220px; --xlx-page-gutter: 110px; }
}

@media (min-width: 1920px) {
  :root { --xlx-page-inset: 360px; --xlx-page-gutter: 180px; }
}

.container,
.site-container,
.SiteHeader__inner { max-width: var(--container-main); }

.container > *,
.site-container > *,
.SiteHeader__inner > * { min-width: 0; }

/* ==========================================================
   Hero
   ========================================================== */
.Hero {
  position: relative;
  min-height: clamp(640px, 78vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(88px, 7vw, 118px) 0 clamp(72px, 6vw, 96px);
  background: #ffffff;
  isolation: isolate;
}

.Hero::before {
  content: '';
  position: absolute;
  width: min(44vw, 760px);
  aspect-ratio: 1;
  right: -10vw;
  top: -18vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 84, 255, 0.12), rgba(36, 84, 255, 0) 68%);
  filter: blur(4px);
  z-index: 0;
  pointer-events: none;
}

.Hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 54% 48% at 76% 24%, rgba(36, 84, 255, 0.13), transparent 62%),
    radial-gradient(ellipse 40% 36% at 80% 64%, rgba(11, 187, 216, 0.10), transparent 60%),
    radial-gradient(ellipse 38% 34% at 56% 76%, rgba(99, 60, 255, 0.08), transparent 62%);
  background-size: 130% 130%;
  animation: homeGradientDrift 14s ease-in-out infinite;
}

.Hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(36, 84, 255, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 84, 255, 0.45) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to right, transparent 0, transparent 38%, #000 58%, #000 100%);
}

.Hero__transition {
  position: absolute;
  inset: auto 0 -1px;
  height: 90px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #f8faff 100%);
}

.Hero__inner {
  position: relative;
  z-index: 3;
  width: var(--container-main);
  max-width: none;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.52fr) minmax(0, 0.48fr);
  gap: clamp(40px, 4vw, 80px);
  align-items: center;
}

.Hero__inner > * { min-width: 0; }

.Hero__content {
  width: 100%;
  max-width: 780px;
}

.Hero__title {
  margin: 0 0 24px;
  font-family: var(--font-display, var(--font-sans, sans-serif));
  font-size: clamp(40px, 3vw, 54px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.045em;
  color: var(--home-text);
  text-wrap: balance;
}

.Hero__subtitle {
  max-width: 760px;
  margin: 0 0 32px;
  font-size: clamp(17px, 1.12vw, 19px);
  line-height: 1.85;
  color: var(--home-text-2);
}

.Hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.Hero__actions .btn {
  min-height: 48px;
  padding-inline: 24px;
  border-radius: 10px;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.Hero__actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(36, 84, 255, 0.16);
}

.Hero__visual {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.HeroFlow {
  position: relative;
  width: min(100%, 760px);
  padding: clamp(26px, 2.4vw, 38px);
  border: 1px solid rgba(36, 84, 255, 0.10);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.91), rgba(247,250,255,0.84));
  box-shadow: 0 24px 70px rgba(36, 84, 255, 0.08);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.HeroFlow::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 12%, rgba(36, 84, 255, 0.09), transparent 30%),
    radial-gradient(circle at 88% 76%, rgba(11, 187, 216, 0.075), transparent 30%);
}

.HeroFlow__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .45;
  background-image:
    linear-gradient(rgba(36,84,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36,84,255,.055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.72), transparent 82%);
}

.HeroFlow__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 18px;
}

.HeroFlow__node {
  position: relative;
  min-height: 144px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 7px;
  padding: 18px 16px;
  border: 1px solid rgba(40, 64, 104, 0.08);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 24px rgba(28,47,83,.035);
  opacity: 0;
  transform: translateY(8px);
  animation: homeFlowIn .5s ease forwards;
}

.HeroFlow__node:nth-child(1) { animation-delay: .08s; }
.HeroFlow__node:nth-child(2) { animation-delay: .18s; }
.HeroFlow__node:nth-child(3) { animation-delay: .28s; }
.HeroFlow__node:nth-child(4) { animation-delay: .38s; }
.HeroFlow__node:nth-child(5) { animation-delay: .48s; }

.HeroFlow__iconWrap {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--home-primary);
  background: rgba(36, 84, 255, 0.075);
}

.HeroFlow__iconWrap--cyan { color: #079ab6; background: rgba(11, 187, 216, 0.09); }
.HeroFlow__iconWrap--green { color: var(--home-success); background: rgba(12, 166, 120, 0.09); }

.HeroFlow__stepNum {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1;
  letter-spacing: .13em;
  color: var(--color-text-secondary, #4F596B);
}

.HeroFlow__title {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--home-text);
}

.HeroFlow__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--home-text-2);
}

.HeroFlow__node[data-row="1"]:not(:last-child)::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 1px;
  top: 50%;
  right: -19px;
  background: linear-gradient(90deg, rgba(36,84,255,.30), rgba(36,84,255,.05));
}

.HeroFlow__connectorV { display: none; }

.HeroFlow__footer {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(40,64,104,.10);
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--home-text-2);
}

.HeroFlow__footerDot {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 9px;
  border-radius: 50%;
  background: rgba(36,84,255,.42);
  vertical-align: middle;
}

@media (max-width: 1279px) {
  .Hero {
    min-height: auto;
    padding-top: 88px;
  }
  .Hero__inner {
    grid-template-columns: 1fr;
    gap: 46px;
  }
  .Hero__content {
    max-width: 780px;
    text-align: center;
    margin-inline: auto;
  }
  .Hero__subtitle { margin-inline: auto; }
  .Hero__actions { justify-content: center; }
  .Hero__visual { justify-content: center; }
  .HeroFlow { width: min(100%, 780px); }
}

@media (max-width: 767px) {
  .Hero { padding: 72px 0 54px; }
  .Hero__inner { gap: 34px; }
  .Hero__title {
    font-size: clamp(32px, 9vw, 40px);
    line-height: 1.28;
  }
  .Hero__subtitle {
    font-size: 16px;
    line-height: 1.75;
  }
  .Hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .Hero__actions .btn { width: 100%; }
  .HeroFlow {
    padding: 20px;
    border-radius: 22px;
  }
  .HeroFlow__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .HeroFlow__node {
    min-height: 0;
    display: grid;
    grid-template-columns: 42px 42px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 3px;
    align-items: center;
    padding: 12px 14px;
  }
  .HeroFlow__iconWrap {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  .HeroFlow__stepNum { grid-column: 2; grid-row: 1 / 3; }
  .HeroFlow__title { grid-column: 3; grid-row: 1; }
  .HeroFlow__desc { grid-column: 3; grid-row: 2; }
  .HeroFlow__node[data-row="1"]:not(:last-child)::after { display: none; }
}

@media (max-width: 430px) {
  .HeroFlow__node { grid-template-columns: 40px 1fr; }
  .HeroFlow__stepNum { display: none; }
  .HeroFlow__title,
  .HeroFlow__desc { grid-column: 2; }
}

@keyframes homeGradientDrift {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes homeFlowIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .Hero__gradient,
  .HeroFlow__node { animation: none !important; }
  .HeroFlow__node {
    opacity: 1;
    transform: none;
  }
  .Hero__actions .btn { transition: none !important; }
}