/* ==========================================================================
   站点主页 · 深色门面
   只被 home.php 使用，所有选择器都挂在 .home-body 下，不影响内页
   ========================================================================== */

.home-body {
  --hp-bg: #05080f;
  --hp-ink: #e9f1ff;
  --hp-dim: #93a6c4;
  --hp-dim2: #6d80a0;
  --hp-line: rgba(124, 160, 220, .14);
  --hp-line2: rgba(124, 160, 220, .24);
  --hp-blue: #3b86ff;
  --hp-cyan: #5fdcff;
  --hp-violet: #9b8cff;
  --hp-mint: #4fe0b4;
  background: var(--hp-bg);
  color: var(--hp-ink);
  overflow-x: hidden;
}

.home-body ::selection { background: rgba(95, 220, 255, .28); color: #fff; }

/* style.css 里 h1~h3 被统一刷成深墨色，在深底上几乎看不见，这里统一改回亮色 */
.home-body h1, .home-body h2, .home-body h3, .home-body h4 { color: var(--hp-ink); }

.hp-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ---------- 背景：两团光 + 一层网格 ---------- */
.hp-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hp-orb { position: absolute; border-radius: 50%; filter: blur(72px); }
.hp-orb-a { width: 760px; height: 760px; top: -340px; right: -180px;
  background: radial-gradient(circle, rgba(47, 128, 237, .46), transparent 66%); }
.hp-orb-b { width: 580px; height: 580px; top: 42%; left: -240px;
  background: radial-gradient(circle, rgba(25, 184, 166, .26), transparent 68%); }
.hp-grid { position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124, 160, 220, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 160, 220, .075) 1px, transparent 1px);
  background-size: 66px 66px;
  -webkit-mask-image: radial-gradient(96% 62% at 50% 0%, #000 8%, transparent 76%);
  mask-image: radial-gradient(96% 62% at 50% 0%, #000 8%, transparent 76%);
}
.hp-main { position: relative; z-index: 1; }

/* ---------- 顶栏 ---------- */
.hp-bar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(5, 8, 15, .35);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
}
.hp-bar.is-solid {
  background: rgba(5, 9, 17, .82);
  border-bottom-color: var(--hp-line);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
}
.hp-bar-in { display: flex; align-items: center; gap: 18px; height: 66px; }

.hp-brand { display: flex; align-items: center; gap: 11px; min-width: 0; text-decoration: none; color: inherit; }
.hp-logo {
  position: relative; width: 34px; height: 34px; flex: 0 0 auto;
  display: grid; place-items: center; border-radius: 10px;
  background: radial-gradient(circle at 50% 40%, rgba(95, 220, 255, .22), rgba(59, 134, 255, .06));
  border: 1px solid rgba(130, 175, 245, .22);
}
.hp-logo img { width: 24px; height: 24px; display: block; }
.hp-brand-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.hp-brand-txt b { font-size: 14.5px; font-weight: 650; letter-spacing: .01em; white-space: nowrap; }
.hp-brand-txt em {
  font-style: normal; font-size: 11px; color: var(--hp-dim2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.hp-nav { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.hp-nav a {
  padding: 7px 12px; border-radius: 9px; font-size: 13.5px; color: var(--hp-dim);
  text-decoration: none; transition: color .2s, background .2s;
}
.hp-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.hp-bar-act { margin-left: auto; display: flex; align-items: center; gap: 9px; }

/* ---------- 按钮 ---------- */
.hp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 44px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer;
  color: #fff; background: linear-gradient(180deg, #4c90ff, #2b6ade);
  box-shadow: 0 12px 26px -16px rgba(59, 134, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s;
}
.hp-btn:hover { transform: translateY(-1px); box-shadow: 0 18px 34px -16px rgba(59, 134, 255, 1), inset 0 1px 0 rgba(255, 255, 255, .26); }
.hp-btn:active { transform: translateY(0); }
.hp-btn.ghost {
  background: rgba(255, 255, 255, .035); border-color: var(--hp-line2); color: #d9e7ff; box-shadow: none;
}
.hp-btn.ghost:hover { background: rgba(255, 255, 255, .07); border-color: rgba(95, 220, 255, .42); }
.hp-btn.lg { height: 50px; padding: 0 26px; font-size: 15px; border-radius: 13px; }
.hp-btn.sm { height: 36px; padding: 0 15px; font-size: 13.5px; border-radius: 10px; }

/* ---------- 首屏 ---------- */
.hp-hero {
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: center; gap: 40px; padding-top: 66px; padding-bottom: 76px;
}
.hp-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 20px;
  font-size: 12px; letter-spacing: .12em; color: var(--hp-dim2);
}
.hp-eyebrow i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--hp-mint);
  box-shadow: 0 0 0 4px rgba(79, 224, 180, .12), 0 0 12px rgba(79, 224, 180, .8);
}
.hp-hero h1 {
  margin: 0 0 22px; font-size: clamp(32px, 4.5vw, 58px); line-height: 1.12;
  letter-spacing: -.025em; font-weight: 800;
}
.hp-hero h1 em, .hp-hero h1 .hp-grad {
  font-style: normal;
  background: linear-gradient(102deg, #7fd4ff 6%, #8f9dff 52%, #c9b6ff 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hp-lead {
  margin: 0 0 30px; max-width: 34em; font-size: 15.5px; line-height: 1.95; color: var(--hp-dim);
  text-wrap: pretty;
}
/* 桌面端在句子之间断行，避免「负责」这类词被拆到两行；窄屏让它自由换行 */
.hp-br { display: none; }
@media (min-width: 1024px) { .hp-br { display: inline; } }
.hp-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hp-cta.center { justify-content: center; }
.hp-note { margin: 18px 0 0; font-size: 12.5px; color: var(--hp-dim2); }

/* 右侧舞台 */
.hp-stage {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 400px; perspective: 1200px;
}
.hp-stage::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 134, 255, .3), rgba(95, 220, 255, .1) 42%, transparent 68%);
  filter: blur(18px);
}
.hp-ring {
  position: absolute; width: 348px; height: 348px; border-radius: 50%;
  border: 1px solid rgba(124, 170, 240, .13);
}
.hp-ring-2 { width: 476px; height: 476px; border-color: rgba(124, 170, 240, .07); }

.hp-card {
  position: relative; width: min(100%, 352px); padding: 18px 20px 16px;
  border-radius: 18px; border: 1px solid rgba(130, 175, 245, .22);
  background: linear-gradient(160deg, rgba(30, 46, 74, .94), rgba(10, 17, 31, .97));
  box-shadow: 0 44px 90px -44px #000, inset 0 1px 0 rgba(255, 255, 255, .08);
  transform: rotateY(-8deg) rotateX(4deg); transform-style: preserve-3d;
  transition: transform .6s var(--ease);
}
.hp-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.hp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hp-mint); box-shadow: 0 0 10px rgba(79, 224, 180, .9); }
.hp-card-kicker { font-size: 11px; letter-spacing: .1em; color: var(--hp-dim2); font-variant-numeric: tabular-nums; }
.hp-badge {
  margin-left: auto; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600;
  color: #bff3e2; background: rgba(79, 224, 180, .12); border: 1px solid rgba(79, 224, 180, .28);
}
.hp-card h3 { margin: 0 0 5px; font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.hp-card-meta { margin: 0 0 16px; font-size: 12px; color: var(--hp-dim2); }

.hp-slots { display: grid; gap: 11px; margin-bottom: 15px; }
.hp-slot {
  position: relative; display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 9px; font-size: 12.5px; color: #9db2d2;
}
.hp-slot b { font-weight: 600; color: #e0ecff; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.hp-slot i {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  border-radius: 2px; background: rgba(255, 255, 255, .07);
}
.hp-slot i::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p);
  border-radius: 2px; background: linear-gradient(90deg, var(--hp-blue), var(--hp-cyan));
  box-shadow: 0 0 10px rgba(95, 220, 255, .55);
}
.hp-slot.half i::after { background: linear-gradient(90deg, var(--hp-blue), var(--hp-violet)); box-shadow: 0 0 10px rgba(155, 140, 255, .5); }
.hp-slot:not(.done):not(.half) i::after { background: linear-gradient(90deg, #eaa23c, #ffd08a); box-shadow: 0 0 10px rgba(255, 208, 138, .5); }

.hp-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 12px; border-top: 1px solid rgba(124, 160, 220, .13);
}
.hp-hint { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: #d9c39a; }
.hp-hint i { width: 5px; height: 5px; border-radius: 50%; background: #ffce7a; box-shadow: 0 0 9px rgba(255, 206, 122, .9); }
.hp-mini {
  padding: 6px 12px; border-radius: 8px; font-size: 12px; color: #cfe6ff;
  background: rgba(59, 134, 255, .18); border: 1px solid rgba(95, 220, 255, .26);
}

.hp-float {
  position: absolute; display: flex; flex-direction: column; gap: 3px;
  padding: 10px 14px; border-radius: 12px; font-size: 11.5px; color: #94accc;
  background: rgba(14, 23, 40, .88); border: 1px solid rgba(130, 175, 245, .2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 22px 46px -26px #000;
  animation: hp-float 7.5s ease-in-out infinite;
}
.hp-float em { font-style: normal; color: var(--hp-dim2); }
.hp-float b { font-size: 15px; color: #e6f1ff; font-variant-numeric: tabular-nums; }
.hp-f-ok { color: #9ff0d3; font-weight: 600; }
.hp-f-k { letter-spacing: .04em; }
.f1 { top: -5%; right: 1%; }
.f2 { bottom: 20%; left: -26px; animation-delay: -2.4s; }
.f3 { bottom: -2%; right: 4%; animation-delay: -4.6s; }

@keyframes hp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* 舞台变窄后左边那枚小卡会压到选题卡上，窄屏收掉它，只留下方两枚 */
@media (max-width: 1180px) { .f2 { display: none; } }

/* ---------- 滚动词带 ---------- */
.hp-ticker {
  position: relative; overflow: hidden; margin-top: 6px;
  border-top: 1px solid var(--hp-line); border-bottom: 1px solid var(--hp-line);
  background: rgba(255, 255, 255, .012);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.hp-ticker-in { display: flex; width: max-content; animation: hp-slide 52s linear infinite; }
.hp-ticker-set { display: flex; align-items: center; }
.hp-ticker-set i {
  position: relative; padding: 15px 26px; font-style: normal; white-space: nowrap;
  font-size: 12px; letter-spacing: .16em; color: rgba(150, 175, 210, .55);
}
.hp-ticker-set i + i::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 3px;
  border-radius: 50%; background: rgba(120, 160, 220, .4); transform: translate(-50%, -50%);
}
@keyframes hp-slide { to { transform: translateX(-50%); } }

/* ---------- 数字 ---------- */
.hp-stats { margin-top: 56px; }
.hp-stats dl {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0;
  border: 1px solid var(--hp-line); border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(21, 33, 55, .62), rgba(9, 15, 27, .5));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.hp-stats dl > div { padding: 22px 24px; border-right: 1px solid var(--hp-line); }
.hp-stats dl > div:last-child { border-right: none; }
.hp-stats dd { margin: 0 0 7px; font-size: 12px; letter-spacing: .14em; color: var(--hp-dim2); }
.hp-stats dt { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.hp-stats b {
  font-size: 31px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff, #a6c4ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hp-stats i { font-style: normal; font-size: 12px; color: var(--hp-dim2); }

/* ---------- 段落通用 ---------- */
.hp-sec { padding-top: 92px; }
.hp-head { max-width: 40em; margin-bottom: 38px; }
.hp-head h2 {
  margin: 0 0 12px; font-size: clamp(23px, 2.4vw, 31px); line-height: 1.28;
  letter-spacing: -.015em; font-weight: 700;
}
.hp-head p { margin: 0; font-size: 14.5px; line-height: 1.8; color: var(--hp-dim); }

/* ---------- 流程 ---------- */
.hp-flow {
  --p: 0%;
  position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px; margin: 0; padding: 0; list-style: none;
}
.hp-flow::before,
.hp-flow::after {
  content: ""; position: absolute; top: 12px; left: 0; height: 1px; border-radius: 1px;
}
.hp-flow::before { right: 0; background: var(--hp-line); }
.hp-flow::after {
  width: var(--p); background: linear-gradient(90deg, var(--hp-blue), var(--hp-cyan));
  box-shadow: 0 0 12px rgba(95, 220, 255, .55);
  transition: width .7s var(--ease);
}
.hp-flow li { position: relative; padding-top: 40px; }
.hp-node {
  position: absolute; top: 0; left: 0; display: grid; place-items: center;
  width: 25px; height: 25px; border-radius: 50%;
  font-size: 10px; font-weight: 700; letter-spacing: .02em; color: var(--hp-dim2);
  background: #0a111e; border: 1px solid var(--hp-line2);
  transition: color .4s, border-color .4s, box-shadow .4s, background .4s;
}
.hp-flow li.on .hp-node {
  color: #d6f1ff; border-color: rgba(95, 220, 255, .55); background: #081420;
  box-shadow: 0 0 0 4px rgba(95, 220, 255, .07), 0 0 16px rgba(95, 220, 255, .4);
}
.hp-flow h3 { margin: 0 0 7px; font-size: 15.5px; font-weight: 650; letter-spacing: .01em; }
.hp-flow p { margin: 0; font-size: 13.5px; line-height: 1.75; color: var(--hp-dim); }

/* ---------- 能力卡 ---------- */
.hp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 16px; }
.hp-fx {
  position: relative; padding: 24px 22px 22px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--hp-line);
  background: linear-gradient(180deg, rgba(22, 34, 58, .62), rgba(10, 17, 31, .52));
  transition: border-color .3s, transform .3s var(--ease);
}
.hp-fx::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(260px 210px at var(--mx, 50%) var(--my, 0%), rgba(95, 220, 255, .15), transparent 70%);
  transition: opacity .3s;
}
.hp-fx:hover { border-color: rgba(95, 220, 255, .34); transform: translateY(-3px); }
.hp-fx:hover::before { opacity: 1; }
.hp-fx-ico {
  display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 16px;
  border-radius: 11px; color: #a8dcff;
  background: rgba(59, 134, 255, .13); border: 1px solid rgba(95, 220, 255, .18);
}
.hp-fx h3 { position: relative; margin: 0 0 9px; font-size: 15.5px; font-weight: 650; }
.hp-fx p { position: relative; margin: 0; font-size: 13.5px; line-height: 1.78; color: var(--hp-dim); }

/* ---------- 角色 ---------- */
.hp-rows { border-top: 1px solid var(--hp-line); }
.hp-row {
  display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 26px;
  padding: 24px 6px; border-bottom: 1px solid var(--hp-line);
  transition: background .3s, padding-left .3s;
}
.hp-row:hover { background: rgba(95, 220, 255, .035); padding-left: 14px; }
.hp-row-k { font-size: 15px; font-weight: 650; color: #cfe2ff; letter-spacing: .01em; }
.hp-row p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--hp-dim); }

/* ---------- 结尾 ---------- */
.hp-end { padding-top: 92px; padding-bottom: 84px; }
.hp-end-in {
  position: relative; overflow: hidden; text-align: center;
  padding: 58px 30px 54px; border-radius: 24px;
  border: 1px solid rgba(95, 220, 255, .16);
  background:
    radial-gradient(720px 330px at 50% -40%, rgba(59, 134, 255, .26), transparent 70%),
    linear-gradient(180deg, rgba(18, 29, 50, .72), rgba(8, 13, 24, .74));
}
.hp-end-in::before {
  content: ""; position: absolute; top: 0; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(95, 220, 255, .6), transparent);
}
.hp-end h2 { margin: 0 0 12px; font-size: clamp(22px, 2.3vw, 29px); letter-spacing: -.015em; }
.hp-end p { margin: 0 auto 28px; max-width: 34em; font-size: 14px; line-height: 1.8; color: var(--hp-dim); }

/* ---------- 页脚 ---------- */
.hp-foot { position: relative; z-index: 1; border-top: 1px solid var(--hp-line); }
.hp-foot-in {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-top: 22px; padding-bottom: 22px;
  font-size: 12px; color: var(--hp-dim2);
}
.hp-foot-brand { display: inline-flex; align-items: center; gap: 9px; color: #b9cbe6; }
.hp-foot-brand img { width: 18px; height: 18px; opacity: .9; }
.hp-foot-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 响应式 ---------- */
@media (max-width: 1023px) {
  .hp-hero { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-top: 44px; padding-bottom: 56px; }
  .hp-stage { min-height: 340px; margin-top: 6px; }
  .hp-card { transform: none; width: min(100%, 340px); }
  /* 卡片和屏幕差不多宽了，这圈装饰环会从卡片两侧漏出来，窄屏直接去掉 */
  .hp-ring, .hp-ring-2 { display: none; }
  .f2 { left: -8px; }
  .f1 { right: -4px; }
  .hp-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; }
  .hp-flow::after { display: none; }
  .hp-flow::before { display: none; }
  .hp-flow li { padding-top: 34px; }
}

@media (max-width: 760px) {
  .hp-wrap { padding: 0 20px; }
  .hp-nav { display: none; }
  .hp-brand-txt em { display: none; }
  .hp-bar-in { height: 60px; }
  .hp-hero h1 { font-size: clamp(29px, 8.6vw, 40px); }
  .hp-lead { font-size: 14.5px; line-height: 1.85; }
  .hp-note { font-size: 12px; }
  .hp-stats { margin-top: 40px; }
  .hp-stats dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-stats dl > div { padding: 16px 18px; }
  .hp-stats dl > div:nth-child(2) { border-right: none; }
  .hp-stats dl > div:nth-child(1),
  .hp-stats dl > div:nth-child(2) { border-bottom: 1px solid var(--hp-line); }
  .hp-stats b { font-size: 25px; }
  .hp-sec { padding-top: 64px; }
  .hp-head { margin-bottom: 28px; }
  .hp-flow { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .hp-flow li { padding-top: 0; padding-left: 40px; }
  .hp-node { top: 1px; }
  .hp-flow li + li::before {
    content: ""; position: absolute; left: 12px; top: -22px; height: 22px; width: 1px;
    background: var(--hp-line);
  }
  .hp-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 20px 4px; }
  .hp-row:hover { padding-left: 4px; }
  .hp-end { padding-top: 64px; padding-bottom: 60px; }
  .hp-end-in { padding: 42px 20px 38px; border-radius: 20px; }
  .hp-foot-in { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hp-float { display: none; }
  .hp-ticker-set i { padding: 12px 20px; font-size: 11px; letter-spacing: .12em; }
}

@media (max-width: 420px) {
  .hp-cta .hp-btn { flex: 1 1 100%; }
  .hp-brand-txt b { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-float, .hp-ticker-in { animation: none; }
  .hp-card { transform: none; }
  .hp-flow::after { transition: none; }
}
