/* Helsincy Mod Manager 官网 — 内容区块：痛点、能力、生命周期、性能、架构、路线图、FAQ、支持 */

/* ================= 痛点对照 ================= */

.pains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--line-soft);
  overflow: hidden;
}

.pain {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: var(--ink-900);
  padding: clamp(1.5rem, 2.6vw, 2.3rem);
  transition: background var(--dur);
}

.pain:hover {
  background: var(--ink-850);
}

.pain__bad {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--frost-600);
  font-size: 0.92rem;
  line-height: 1.6;
}

.pain__bad::before {
  flex-shrink: 0;
  margin-top: 0.1em;
  color: var(--coral);
  font-family: var(--font-mono);
  content: "×";
  font-size: 1.1em;
}

.pain__good {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--frost-100);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.6;
}

.pain__good::before {
  flex-shrink: 0;
  margin-top: 0.1em;
  color: var(--jade);
  font-family: var(--font-mono);
  content: "→";
}

.pain p {
  color: var(--frost-500);
  font-size: 0.88rem;
  line-height: 1.75;
}

/* ================= 能力 Bento ================= */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  grid-column: span 2;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, var(--ink-850) 0%, var(--ink-900) 58%);
  padding: clamp(1.4rem, 2.2vw, 2rem);
  transition: border-color var(--dur), translate var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

.card:hover {
  border-color: var(--ice-a24);
  box-shadow: var(--shadow-lift);
  translate: 0 -4px;
}

/* 卡片右上角的冰蓝辉光，仅悬浮时点亮 */
.card::before {
  position: absolute;
  z-index: -1;
  top: -40%;
  right: -30%;
  width: 70%;
  height: 90%;
  background: radial-gradient(50% 50% at 50% 50%, rgb(36 193 240 / 22%), transparent 70%);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
  content: "";
}

.card:hover::before {
  opacity: 1;
}

.card--wide {
  grid-column: span 3;
}

.card--hero {
  grid-column: span 4;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--ice-a04);
  color: var(--ice-400);
}

.card__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-family: var(--font-display-cn);
  font-size: var(--fs-h3);
  line-height: 1.3;
}

.lang-en .card h3 {
  font-family: var(--font-display);
}

.card p {
  color: var(--frost-500);
  font-size: 0.92rem;
  line-height: 1.78;
}

.card__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.4rem;
}

.card__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--frost-300);
  font-size: 0.84rem;
  line-height: 1.6;
}

.card__list li::before {
  flex-shrink: 0;
  margin-top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ice-500);
  content: "";
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.card__tags span {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xs);
  padding: 0.22em 0.6em;
  color: var(--frost-600);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
}

@media (width <= 1000px) {
  .bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .card--hero,
  .card--wide {
    grid-column: span 4;
  }
}

@media (width <= 680px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .card,
  .card--hero,
  .card--wide {
    grid-column: span 1;
  }
}

/* ================= 安装生命周期 ================= */

.lifecycle {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 80% at 50% -10%, rgb(36 193 240 / 8%), transparent 62%),
    var(--ink-900);
  padding: clamp(1.8rem, 4vw, 3.4rem);
}

.steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  counter-reset: step;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0 0.8rem;
  counter-increment: step;
}

.step:first-child {
  padding-left: 0;
}

.step:last-child {
  padding-right: 0;
}

/* 节点圆点 + 向右连接的冰线 */
.step__node {
  position: relative;
  display: flex;
  align-items: center;
  height: 34px;
  margin-bottom: 0.4rem;
}

.step__node b {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--ink-850);
  color: var(--frost-600);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  transition: color var(--dur), border-color var(--dur), background var(--dur),
    box-shadow var(--dur);
}

.step__node::after {
  position: absolute;
  top: 50%;
  right: -0.8rem;
  left: 34px;
  height: 1px;
  background: var(--line);
  content: "";
}

.step:last-child .step__node::after {
  display: none;
}

/* 线上流动的能量点 */
.step__node::before {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 34px;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--ice-300);
  box-shadow: 0 0 12px var(--ice-400);
  opacity: 0;
  content: "";
}

.lifecycle.is-in .step:not(:last-child) .step__node::before {
  animation: flow 2.4s var(--ease-in-out) infinite;
  animation-delay: calc(var(--i, 0) * 400ms);
}

@keyframes flow {
  0% {
    left: 34px;
    opacity: 0;
  }

  16%,
  72% {
    opacity: 1;
  }

  100% {
    left: calc(100% + 0.8rem);
    opacity: 0;
  }
}

.lifecycle.is-in .step__node b {
  border-color: var(--ice-a40);
  background: linear-gradient(150deg, var(--ink-800), var(--ink-850));
  color: var(--ice-300);
  box-shadow: 0 0 0 4px rgb(36 193 240 / 8%), 0 0 22px rgb(36 193 240 / 22%);
  transition-delay: calc(var(--i, 0) * 160ms);
}

.step h4 {
  color: var(--frost-100);
  font-size: 0.98rem;
  font-weight: 600;
}

.step p {
  color: var(--frost-600);
  font-size: 0.82rem;
  line-height: 1.7;
}

.step__tag {
  margin-top: auto;
  padding-top: 0.4rem;
  color: var(--frost-700);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lifecycle__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line-soft);
  padding-top: 1.6rem;
}

.lifecycle__foot p {
  max-width: 62ch;
  color: var(--frost-500);
  font-size: 0.88rem;
}

@media (width <= 1000px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem 1.2rem;
  }

  .step {
    padding: 0;
  }

  .step__node::after,
  .step__node::before {
    display: none;
  }
}

@media (width <= 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ================= 性能数字 ================= */

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--line-soft);
  overflow: hidden;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--ink-900);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}

.metric__num {
  display: flex;
  align-items: baseline;
  gap: 0.15em;
  color: var(--frost-050);
  font-family: var(--font-mono);
  font-size: clamp(2rem, 1rem + 3vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.metric__num i {
  color: var(--ice-400);
  font-size: 0.4em;
  font-style: normal;
  letter-spacing: 0.04em;
}

.metric__label {
  color: var(--frost-100);
  font-size: 0.92rem;
  font-weight: 500;
}

.metric__hint {
  color: var(--frost-700);
  font-size: 0.78rem;
  line-height: 1.65;
}

/* ================= 技术架构 ================= */

.stack {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.layers {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.layer {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--ink-900);
  padding: 0.95rem 1.15rem;
  transition: border-color var(--dur), background var(--dur), translate var(--dur) var(--ease-out);
}

.layer:hover {
  border-color: var(--ice-a24);
  background: var(--ink-850);
  translate: 8px 0;
}

.layer__name {
  color: var(--frost-050);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.layer__desc {
  flex: 1;
  min-width: 12ch;
  color: var(--frost-600);
  font-size: 0.82rem;
}

.layer__badge {
  border-radius: var(--r-xs);
  background: var(--ice-a08);
  padding: 0.2em 0.55em;
  color: var(--ice-400);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

/* 依赖方向只能自上而下：用左侧竖轴强调 */
.layer::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--ice-400), var(--glacier));
  opacity: 0.28;
  content: "";
}

.layer:hover::before {
  opacity: 1;
}

.stack__aside .rule {
  margin: 1.6rem 0;
}

.techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.techs span {
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--ice-a04);
  padding: 0.35em 0.85em;
  color: var(--frost-300);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

@media (width <= 900px) {
  .stack {
    grid-template-columns: 1fr;
  }
}

/* ================= 路线图 ================= */

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 2.2rem;
}

.timeline::before {
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  left: 7px;
  width: 1px;
  background: linear-gradient(180deg, var(--ice-400), var(--line) 55%, transparent);
  content: "";
}

.phase {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--ink-900);
  padding: 1.2rem 1.4rem;
  transition: border-color var(--dur), background var(--dur);
}

.phase:hover {
  border-color: var(--line);
  background: var(--ink-850);
}

.phase::before {
  position: absolute;
  top: 1.5rem;
  left: -2.2rem;
  width: 15px;
  height: 15px;
  border: 2px solid var(--ink-950);
  border-radius: 50%;
  background: var(--frost-700);
  content: "";
}

.phase--done::before {
  background: var(--jade);
  box-shadow: 0 0 14px rgb(79 224 176 / 60%);
}

.phase--now::before {
  background: var(--ice-400);
  box-shadow: 0 0 16px var(--ice-400);
  animation: pulse 2.4s var(--ease-in-out) infinite;
}

.phase__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.phase__head h4 {
  font-size: 1.02rem;
}

.phase p {
  color: var(--frost-500);
  font-size: 0.88rem;
  line-height: 1.75;
}

/* ================= FAQ ================= */

.faq {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 78ch;
}

.qa {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--ink-900);
  transition: border-color var(--dur), background var(--dur);
}

.qa[open] {
  border-color: var(--ice-a24);
  background: var(--ink-850);
}

.qa summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  color: var(--frost-100);
  font-size: 0.98rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary::after {
  flex-shrink: 0;
  margin-left: auto;
  color: var(--ice-400);
  font-family: var(--font-mono);
  font-size: 1.15rem;
  content: "+";
  transition: rotate var(--dur) var(--ease-out);
}

.qa[open] summary::after {
  rotate: 45deg;
}

.qa__body {
  padding: 0 1.3rem 1.25rem;
  color: var(--frost-500);
  font-size: 0.9rem;
  line-height: 1.85;
}

.qa__body p + p {
  margin-top: 0.7rem;
}

/* ================= 支持 / 结尾 CTA ================= */

.closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(155deg, var(--ink-800) 0%, var(--ink-950) 65%);
  padding: clamp(2.4rem, 5.5vw, 4.5rem);
  text-align: center;
}

.closing::before {
  position: absolute;
  z-index: -1;
  top: -60%;
  left: 50%;
  width: 120%;
  height: 160%;
  background: radial-gradient(42% 38% at 50% 50%, rgb(36 193 240 / 22%), transparent 70%);
  content: "";
  translate: -50% 0;
}

.closing::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(var(--line-hair) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-hair) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(60% 60% at 50% 40%, #000, transparent);
  content: "";
}

.closing h2 {
  margin: 1rem auto 1rem;
  max-width: 20ch;
  font-family: var(--font-display-cn);
  font-size: var(--fs-h2);
}

.lang-en .closing h2 {
  font-family: var(--font-display);
}

.closing .lead {
  margin-inline: auto;
}

.closing__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 2rem;
}

.support {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.support a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--ink-900);
  padding: 1.15rem 1.3rem;
  text-align: left;
  transition: border-color var(--dur), translate var(--dur) var(--ease-out), background var(--dur);
}

.support a:hover {
  border-color: var(--ice-a24);
  background: var(--ink-850);
  translate: 0 -3px;
}

.support strong {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--frost-050);
  font-size: 0.95rem;
}

.support strong::after {
  margin-left: auto;
  color: var(--ice-400);
  font-family: var(--font-mono);
  content: "↗";
  transition: translate var(--dur) var(--ease-out);
}

.support a:hover strong::after {
  translate: 3px -3px;
}

.support span {
  color: var(--frost-600);
  font-size: 0.82rem;
}

/* ================= 提示条 ================= */

.notice {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  border: 1px solid rgb(247 169 59 / 26%);
  border-left-width: 3px;
  border-radius: var(--r-md);
  background: rgb(247 169 59 / 6%);
  padding: 1rem 1.2rem;
  color: var(--frost-300);
  font-size: 0.86rem;
  line-height: 1.75;
}

.notice svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  color: var(--ember);
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.7;
  stroke-linecap: round;
}
