/* 配色对齐 newtest 门户首页 */

:root {
  --ink: #0f1c2e;
  --ink-soft: #3d4f66;
  --muted: #6b7c91;
  --paper: #eef1f5;
  --panel: #ffffff;
  --line: #cfd8e3;
  --accent: #1e4a8c;
  --accent-deep: #163a6e;
  --accent-soft: #d6e4f7;
  --amber: #c47a12;
  --amber-soft: #f7ead3;
  --ok: #1f7a4d;
  --down: #a33b3b;
  --hero-wash: linear-gradient(160deg, #e4ebf5 0%, #eef1f5 48%, #e8edf4 100%);
  --grid-line: rgba(30, 74, 140, 0.06);
  --shadow: 0 10px 36px rgba(15, 28, 46, 0.08);
  --radius: 4px;
  --font: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 880px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--hero-wash);
  background-size: 48px 48px, 48px 48px, auto;
  background-attachment: fixed;
  line-height: 1.6;
}

a {
  color: var(--accent-deep);
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #070707;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1200px, calc(100% - 2.5rem));
  margin: 0 auto;
  min-height: 80px;
  padding: 0.45rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-logo {
  height: 42px;
  width: auto;
  display: block;
  flex: 0 0 auto;
}

.brand-name {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: #f4761f;
  border-bottom-color: #f4761f;
}

.hero {
  padding: 2.75rem 0 1.5rem;
}

.kicker {
  display: inline-block;
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.lead {
  margin: 0;
  max-width: 38rem;
  color: var(--ink-soft);
}

.feature,
#overview {
  margin-bottom: 1.35rem;
}

.catalog {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding-bottom: 3rem;
}

.feature-player,
.stage-single .player {
  aspect-ratio: 16 / 9;
}

.group-title {
  margin: 0 0 0.55rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.group-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.action-row {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.35rem;
  padding: 0.55rem 1rem 0.55rem 0.85rem;
}

.action-row + .action-row {
  border-top: 1px solid var(--line);
}

.index {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.name-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.action-name {
  font-weight: 600;
  font-size: 1.02rem;
}

.tag {
  flex: none;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 6.5rem;
  height: 2.15rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
}

.btn-ghost {
  width: auto;
  padding: 0 0.95rem;
  background: transparent;
  color: var(--accent-deep);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-deep);
}

.page-note {
  padding: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer {
  margin-top: auto;
  background: #20232a;
  color: #e2e7e9;
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.footer-main {
  width: min(1200px, calc(100% - 2.5rem));
  margin: 0 auto;
  min-height: 194px;
  padding: 28px 8px 22px;
  display: grid;
  grid-template-columns: 320px 1fr 340px;
  align-items: start;
  box-sizing: border-box;
}

.footer-qrs {
  display: flex;
  gap: 36px;
  padding-top: 8px;
}

.footer-qr {
  width: 92px;
  text-align: center;
}

.footer-qr img {
  width: 75px;
  height: 75px;
  margin: 0 auto 8px;
  display: block;
  background: #fff;
}

.footer-qr span {
  display: block;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.footer-col h3 {
  margin: 0 0 6px;
  color: #999999;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-links a {
  color: #e2e7e9;
  font-size: 14px;
  line-height: 25px;
  text-decoration: none;
}

.footer-contact {
  justify-self: end;
  width: 300px;
}

.footer-contact p {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 0 10px;
  color: #e2e7e9;
  font-size: 14px;
  line-height: 1.45;
}

.footer-contact svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #878b8c;
}

.footer-contact a {
  color: #e2e7e9;
  text-decoration: none;
}

.footer-bar {
  background: #444444;
  height: 50px;
}

.footer-bar-inner {
  position: relative;
  width: min(1200px, 100%);
  height: 50px;
  margin: 0 auto;
}

.footer-copy {
  position: absolute;
  left: 33px;
  top: 15px;
  margin: 0;
  color: #999999;
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
}

.footer-meta {
  position: absolute;
  left: 394px;
  top: 17px;
  width: 783px;
  margin: 0;
  color: #888888;
  font-size: 14px;
  line-height: 26px;
  text-align: right;
  white-space: nowrap;
}

.footer-icp {
  background: #ffffff;
  color: #989898;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  padding: 8px 16px 12px;
}

.footer-icp-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-icp a {
  color: #989898;
  text-decoration: none;
}

.footer-icp-split {
  width: 1px;
  height: 12px;
  background: #989898;
}

.ga-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ga-link img {
  width: 14px;
  height: 14px;
}

.footer-ipv6 {
  margin-top: 2px;
}

.ipv6-box {
  display: inline-block;
  margin-left: 4px;
  padding: 0 4px;
  border: 1px solid #989898;
  line-height: 16px;
}

.detail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 1.25rem;
}

.detail-head h1 {
  margin-bottom: 0.25rem;
}

.detail-note {
  margin: 0;
  color: var(--ink-soft);
}

.stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.next-block {
  padding: 1.35rem 0 3rem;
}

#next:empty {
  padding-bottom: 3rem;
}

.next-row {
  text-decoration: none;
  color: inherit;
}

.next-row:hover {
  background: var(--accent-soft);
}

.stage-single {
  grid-template-columns: 1fr;
}

.clip {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.clip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
}

.clip-title {
  font-weight: 600;
}

.clip-tag {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.player {
  background: #0f1c2e;
  aspect-ratio: 16 / 10;
}

.player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #0f1c2e;
}

.player-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #d6e4f7;
  font-size: 0.92rem;
}

.missing {
  padding: 3rem 0;
}

@media (max-width: 1100px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-contact {
    justify-self: start;
  }

  .footer-bar,
  .footer-bar-inner {
    height: auto;
    min-height: 50px;
  }

  .footer-copy,
  .footer-meta {
    position: static;
    width: auto;
    padding: 8px 16px 0;
  }

  .footer-meta {
    padding-bottom: 10px;
    text-align: left;
    white-space: normal;
  }

  .footer-biz {
    display: block;
    margin-top: 2px;
  }
}

@media (max-width: 900px) {
  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.2rem;
    width: min(1200px, calc(100% - 1.25rem));
    min-height: 0;
    padding: 0.55rem 0 0.3rem;
  }

  .brand {
    gap: 0.55rem;
  }

  .brand-logo {
    height: 32px;
  }

  .brand-name {
    font-size: clamp(0.78rem, 3.5vw, 0.92rem);
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar nav {
    min-width: 0;
  }

  .nav-links {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links li {
    flex: 0 0 auto;
  }

  .nav-links a {
    display: block;
    white-space: nowrap;
    font-size: 0.86rem;
    padding: 0.4rem 0.72rem;
  }
}

@media (max-width: 720px) {
  .stage {
    grid-template-columns: 1fr;
  }

  .action-row {
    grid-template-columns: 2.2rem minmax(0, 1fr);
    grid-template-areas:
      "idx name"
      "idx btn";
  }

  .index {
    grid-area: idx;
  }

  .name-line {
    grid-area: name;
  }

  .btn {
    grid-area: btn;
    justify-self: end;
  }

  .detail-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
