/* ==========================================================
   首页 · 今夜开服面板
   ========================================================== */

.page-home {
  --hm-cell: clamp(14px, 1.8vw, 20px);
}

/* ---------- 页面上下文 ---------- */

.page-home .home-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding-top: clamp(14px, 2vw, 22px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--muted);
}

.page-home .home-context .num {
  color: var(--cyan);
}

/* ---------- 首屏 ---------- */

.page-home .home-hero {
  padding-bottom: clamp(28px, 4vw, 44px);
}

.page-home .home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
  margin-top: clamp(18px, 3vw, 32px);
}

.page-home .home-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 8.2vw, 86px);
  line-height: 1.04;
  letter-spacing: .015em;
  color: var(--text);
}

.page-home .home-hero__title em {
  font-style: normal;
  color: var(--cyan);
  text-shadow: 2px 0 0 rgba(255, 59, 59, .5), -2px 0 0 rgba(0, 229, 255, .35);
}

.page-home .home-hero__lede {
  max-width: 56ch;
  margin: clamp(18px, 2.4vw, 24px) 0 0;
  font-size: clamp(15px, 1.4vw, 16.5px);
  line-height: 1.9;
  color: var(--muted);
}

/* 纵向编号索引 */

.page-home .hero-index {
  list-style: none;
  margin: clamp(24px, 3.4vw, 38px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.page-home .hero-index li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.page-home .hero-index .num {
  font-family: var(--font-num);
  font-size: 15px;
  letter-spacing: .1em;
  color: var(--cyan);
}

/* 首屏氛围图 */

.page-home .home-hero__visual {
  position: relative;
  margin: 0;
}

.page-home .home-hero__visual::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 46%;
  height: 38%;
  border-top: 1px solid var(--cyan);
  border-right: 1px solid var(--cyan);
  opacity: .45;
  pointer-events: none;
}

.page-home .home-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--ink-1);
}

/* 开服刻度带 */

.page-home .hero-meter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(28px, 4.4vw, 52px);
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .hero-meter__dial {
  position: relative;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 18px 14px;
  background: var(--ink-1);
  grid-column: span 2;
}

.page-home .hero-meter__dial svg {
  width: 84px;
  height: 84px;
  transform: rotate(-90deg);
}

.page-home .dial-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 6;
}

.page-home .dial-arc {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 6;
  stroke-dasharray: 314;
  stroke-dashoffset: 69;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, .45));
}

.page-home .dial-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
  text-align: center;
}

.page-home .dial-label .num {
  display: block;
  font-family: var(--font-num);
  font-size: 15px;
  color: var(--text);
  letter-spacing: .08em;
}

.page-home .hero-meter__cell {
  background: var(--ink-0);
  padding: var(--hm-cell);
  display: grid;
  align-content: start;
  gap: 6px;
}

.page-home .hm-value {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: clamp(19px, 2.2vw, 26px);
  letter-spacing: .02em;
  color: var(--text);
}

.page-home .hm-label {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

/* 斜纹分隔带 */

.page-home .home-slant {
  height: clamp(36px, 5vw, 56px);
  margin: clamp(8px, 1.6vw, 16px) 0;
  background: repeating-linear-gradient(12deg, var(--line) 0 1px, transparent 1px 9px);
  opacity: .9;
}

/* ---------- 一眼检索 ---------- */

.page-home .home-find__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3.6vw, 46px);
  align-items: center;
}

.page-home .home-find__lead h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 4.2vw, 38px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: .02em;
  color: var(--text);
}

.page-home .home-find__text {
  margin: 16px 0 0;
  max-width: 54ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.page-home .home-find__lead .search-capsule {
  margin-top: clamp(20px, 2.6vw, 28px);
}

.page-home .home-hot {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-home .home-hot a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  background: var(--ink-1);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--speed) ease, border-color var(--speed) ease;
}

.page-home .home-hot a:hover,
.page-home .home-hot a:focus-visible {
  color: var(--text);
  border-color: var(--cyan);
}

.page-home .home-hot .num {
  font-family: var(--font-num);
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--amber);
  flex: 0 0 auto;
}

.page-home .home-find__shot {
  margin: 0;
}

.page-home .home-find__shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--ink-1);
  border: 1px solid var(--line);
  clip-path: var(--shape-cut);
}

/* ---------- 两条路径 ---------- */

.page-home .home-paths__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 24px);
}

.page-home .home-path {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 3vw, 34px);
}

.page-home .home-path h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.6vw, 27px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: .015em;
  color: var(--text);
}

.page-home .home-path p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
}

.page-home .home-path .btn {
  margin-top: auto;
  align-self: flex-start;
}

.page-home .home-path--primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--red);
}

.page-home .home-path--alt {
  background: var(--ink-0);
  border-color: var(--line);
}

.page-home .home-path--alt h2 {
  color: var(--muted);
}

/* ---------- 入库手记 ---------- */

.page-home .home-log__head h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 4.2vw, 38px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: .02em;
  color: var(--text);
}

.page-home .home-log__head p:last-child {
  max-width: 60ch;
  margin: 14px 0 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
}

.page-home .home-log__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(14px, 2.2vw, 22px);
  margin-top: clamp(26px, 4vw, 42px);
}

.page-home .logcard {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ink-1);
  border: 1px solid var(--line);
  clip-path: var(--shape-cut);
  transition: border-color var(--speed) ease;
}

.page-home .logcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0 34%, rgba(0, 229, 255, .16) 50%, transparent 66% 100%);
  transform: translateX(-125%);
  transition: transform .65s ease;
  pointer-events: none;
}

.page-home .logcard:hover,
.page-home .logcard:focus-within {
  border-color: rgba(0, 229, 255, .5);
}

.page-home .logcard:hover::after,
.page-home .logcard:focus-within::after {
  transform: translateX(125%);
}

.page-home .logcard__media {
  margin: 0;
}

.page-home .logcard__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-home .logcard__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px 18px 20px;
}

.page-home .logcard__body h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .01em;
  color: var(--text);
  transition: color var(--speed) ease;
}

.page-home .logcard:hover h3 {
  color: var(--cyan-soft);
}

.page-home .logcard .hand-note {
  margin: 0;
  font-family: var(--font-hand);
  font-size: 14px;
  line-height: 1.7;
  color: var(--amber);
  transform: rotate(-.6deg);
}

.page-home .logcard__meta {
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.page-home .logcard__meta .num {
  color: var(--cyan);
  letter-spacing: .06em;
}

.page-home .home-log__more {
  margin-top: clamp(24px, 3vw, 34px);
}

/* ---------- 版本对照 ---------- */

.page-home .home-version__head h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 4.2vw, 38px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: .02em;
  color: var(--text);
}

.page-home .home-version__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 22px);
  margin-top: clamp(24px, 3.4vw, 36px);
}

.page-home .vpanel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 2.8vw, 30px);
  clip-path: var(--shape-notch);
}

.page-home .vpanel--now {
  background: linear-gradient(158deg, rgba(0, 229, 255, .13), transparent 62%), var(--ink-1);
  border: 1px solid rgba(0, 229, 255, .32);
}

.page-home .vpanel--old {
  background: linear-gradient(158deg, rgba(255, 209, 102, .11), transparent 62%), var(--ink-1);
  border: 1px solid rgba(255, 209, 102, .3);
}

.page-home .vpanel h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: .015em;
  color: var(--text);
}

.page-home .vlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .vlist li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .vlist li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-home .vlist .num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 19px;
  letter-spacing: .03em;
  color: var(--text);
}

.page-home .vpanel--now .vlist .num {
  color: var(--cyan);
}

.page-home .vpanel--old .vlist .num {
  color: var(--amber);
}

.page-home .vpanel .btn {
  margin-top: auto;
  align-self: flex-start;
}

.page-home .home-version__shot {
  margin: 0;
}

.page-home .home-version__shot img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--ink-1);
  border: 1px solid var(--line);
  clip-path: var(--shape-cut);
}

/* ---------- 服务信息带 ---------- */

.page-home .home-band__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .home-band__item {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 20px var(--hm-cell);
  background: var(--ink-0);
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .home-band__item .num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: clamp(21px, 2.8vw, 27px);
  letter-spacing: .03em;
  color: var(--cyan);
}

.page-home .home-band__item:nth-child(2) .num {
  color: var(--amber);
}

.page-home .home-band__item:nth-child(4) .num {
  color: var(--mint);
}

/* ---------- 收尾 ---------- */

.page-home .home-close__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding: clamp(20px, 3vw, 30px);
  background: var(--ink-1);
  border: 1px solid var(--line);
  clip-path: var(--shape-cut);
}

.page-home .home-close__note {
  margin: 0;
  max-width: 56ch;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
}

.page-home .home-close__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .home-close__links a {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--cyan);
  text-decoration: none;
  transition: border-color var(--speed) ease, color var(--speed) ease, background-color var(--speed) ease;
}

.page-home .home-close__links a:hover,
.page-home .home-close__links a:focus-visible {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, .08);
  color: var(--cyan-soft);
}

/* ---------- 断点 ---------- */

@media (min-width: 620px) {
  .page-home .home-log__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .home-paths__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .home-band__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 880px) {
  .page-home .home-find__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  }

  .page-home .hero-meter {
    grid-template-columns: auto repeat(4, minmax(0, 1fr));
    align-items: stretch;
  }

  .page-home .hero-meter__dial {
    grid-column: span 1;
    padding: 16px 22px;
  }
}

@media (min-width: 900px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(220px, .68fr);
  }
}

@media (min-width: 960px) {
  .page-home .home-version__grid {
    grid-template-columns: minmax(0, 1fr) minmax(200px, .58fr) minmax(0, 1fr);
    align-items: stretch;
  }
}

@media (min-width: 1000px) {
  .page-home .home-log__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .page-home .logcard:nth-child(2) {
    margin-top: 46px;
  }

  .page-home .logcard:nth-child(5) {
    margin-top: 46px;
  }
}

@media (min-width: 1080px) {
  .page-home .home-band__row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- 动效降级 ---------- */

@media (prefers-reduced-motion: reduce) {
  .page-home .logcard::after {
    display: none;
  }

  .page-home .logcard,
  .page-home .logcard h3,
  .page-home .home-hot a,
  .page-home .home-close__links a {
    transition: none;
  }
}
