/* =========================================================
   逐境游戏科技 — 企业官网样式（PC 优先）
   ========================================================= */

:root {
  --bg-deep: #070c16;
  --bg: #0b1220;
  --bg-elevated: #121a2b;
  --bg-soft: #182338;
  --line: rgba(148, 163, 184, 0.16);
  --text: #e8eef8;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --brand: #2dd4bf;
  --brand-2: #0ea5e9;
  --accent: #f5c542;
  --danger: #f87171;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --nav-h: 72px;
  --font-display: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 1100px;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: var(--max);
  max-width: calc(100% - 80px);
  margin: 0 auto;
}

/* ---------- Atmosphere ---------- */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(45, 212, 191, 0.18), transparent 60%),
    radial-gradient(800px 500px at 88% 8%, rgba(14, 165, 233, 0.16), transparent 55%),
    radial-gradient(700px 500px at 50% 100%, rgba(245, 197, 66, 0.08), transparent 55%),
    linear-gradient(180deg, #070c16 0%, #0b1220 45%, #08101c 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  backdrop-filter: blur(16px);
  background: rgba(7, 12, 22, 0.72);
  border-bottom: 1px solid var(--line);
}

.site-header .inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: transparent;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.86;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  line-height: 1.1;
  padding-left: 14px;
  border-left: 2px solid var(--brand);
  background: transparent;
  box-shadow: none;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--brand);
  background: none;
}

.brand-text span {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 15px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav .btn-contact {
  margin-left: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #041016;
  font-weight: 600;
}

.nav .btn-contact:hover {
  filter: brightness(1.08);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 72px 0 96px;
  overflow: hidden;
}

.hero-orbit {
  position: absolute;
  right: -50px;
  top: 50%;
  width: 620px;
  height: 620px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(45, 212, 191, 0.18);
  box-shadow:
    inset 0 0 80px rgba(14, 165, 233, 0.08),
    0 0 120px rgba(45, 212, 191, 0.08);
  animation: orbit-pulse 8s ease-in-out infinite;
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(14, 165, 233, 0.16);
}

.hero-orbit::before {
  inset: 54px;
}

.hero-orbit::after {
  inset: 118px;
  background:
    radial-gradient(circle at 35% 30%, rgba(45, 212, 191, 0.35), transparent 40%),
    radial-gradient(circle at 70% 65%, rgba(245, 197, 66, 0.22), transparent 45%),
    linear-gradient(160deg, rgba(18, 26, 43, 0.9), rgba(11, 18, 32, 0.95));
}

.hero-core {
  position: absolute;
  right: 140px;
  top: 50%;
  width: 240px;
  height: 240px;
  margin-top: -120px;
  border-radius: 36px;
  background:
    linear-gradient(145deg, rgba(45, 212, 191, 0.18), rgba(14, 165, 233, 0.08)),
    var(--bg-elevated);
  border: 1px solid rgba(45, 212, 191, 0.28);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float-y 5.5s ease-in-out infinite;
}

.hero-core-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  width: 100%;
  padding: 0 16px;
}

.hero-core-inner strong {
  display: block;
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.12em;
  margin-right: -0.12em; /* 抵消 letter-spacing 造成的视觉偏左 */
  background: linear-gradient(135deg, var(--brand), var(--brand-2) 55%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-core-inner em {
  display: block;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  margin-right: -0.28em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-kicker i {
  width: 28px;
  height: 1px;
  background: var(--brand);
  display: inline-block;
}

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1.08;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand), var(--brand-2) 55%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 36px;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #041016;
  font-weight: 650;
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head .label {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--brand);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

.panel {
  background: rgba(18, 26, 43, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- About strip ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}

.about-main {
  padding: 40px 44px;
}

.about-main h3 {
  margin: 0 0 16px;
  font-size: 24px;
}

.about-main p {
  margin: 0 0 14px;
  color: var(--text-muted);
}

.about-meta {
  display: grid;
  gap: 14px;
}

.meta-item {
  padding: 22px 24px;
  background: rgba(18, 26, 43, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.meta-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.meta-item span {
  color: var(--text);
  font-size: 15px;
}

/* ---------- Business ---------- */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.biz-card {
  padding: 32px 28px;
  background: linear-gradient(180deg, rgba(24, 35, 56, 0.9), rgba(18, 26, 43, 0.7));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.biz-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 212, 191, 0.35);
}

.biz-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(45, 212, 191, 0.12);
  color: var(--brand);
  font-size: 20px;
  font-weight: 700;
}

.biz-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.biz-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- Values ---------- */
.value-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.value-item {
  padding: 28px 22px;
  text-align: left;
  border-top: 2px solid rgba(45, 212, 191, 0.45);
  background: rgba(255, 255, 255, 0.02);
}

.value-item h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.value-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.contact-info,
.contact-form {
  padding: 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-info h3 {
  margin: 0 0 10px;
  font-size: 28px;
}

.contact-info > p {
  margin: 0 0 28px;
  color: var(--text-muted);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  flex: 1;
}

.contact-list li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list li:first-child {
  padding-top: 0;
}

.contact-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-list .k {
  color: var(--text-dim);
  font-size: 14px;
}

.contact-list .v {
  color: var(--text);
  word-break: break-all;
}

.contact-list a {
  color: var(--brand);
}

.contact-form h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.contact-form .hint {
  margin: 0 0 24px;
  color: var(--text-dim);
  font-size: 13px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(7, 12, 22, 0.55);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(45, 212, 191, 0.55);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-msg {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
}

.form-msg.is-ok {
  display: block;
  background: rgba(45, 212, 191, 0.12);
  color: var(--brand);
  border: 1px solid rgba(45, 212, 191, 0.28);
}

.form-msg.is-err {
  display: block;
  background: rgba(248, 113, 113, 0.12);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.28);
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding: 72px 0 40px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 42px;
  letter-spacing: 0.02em;
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 640px;
}

.legal-panel {
  padding: 48px 56px;
  margin-bottom: 80px;
}

.legal-panel h2 {
  margin: 36px 0 14px;
  font-size: 22px;
  color: var(--brand);
}

.legal-panel h2:first-child {
  margin-top: 0;
}

.legal-panel h3 {
  margin: 24px 0 10px;
  font-size: 17px;
}

.legal-panel p,
.legal-panel li {
  color: var(--text-muted);
}

.legal-panel ul {
  padding-left: 20px;
}

.legal-panel li {
  margin-bottom: 8px;
}

.legal-meta {
  margin-bottom: 28px;
  padding: 18px 20px;
  border-left: 3px solid var(--brand);
  background: rgba(45, 212, 191, 0.06);
  border-radius: 0 12px 12px 0;
}

.legal-meta p {
  margin: 6px 0;
  color: var(--text);
  font-size: 14px;
}

.about-detail {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 80px;
}

.about-detail .panel {
  padding: 40px;
  height: 100%;
}

.about-detail h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.about-detail p {
  margin: 0 0 14px;
  color: var(--text-muted);
}

.about-detail p:last-child {
  margin-bottom: 0;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 15px;
}

.info-table tr:first-child th,
.info-table tr:first-child td {
  padding-top: 0;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  padding-bottom: 0;
  border-bottom: 0;
}

.info-table th {
  width: 120px;
  color: var(--text-dim);
  font-weight: 500;
}

.info-table td {
  color: var(--text);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 36px;
  background: rgba(0, 0, 0, 0.22);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  max-width: 360px;
  padding-left: 14px;
  border-left: 2px solid var(--brand);
  background: transparent;
}

.footer-brand strong {
  display: block;
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
  background: none;
}

.footer-brand p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col p {
  display: block;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--brand);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 13px;
}

.footer-bottom a {
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--brand);
}

.footer-bottom .icp-link {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.footer-bottom .icp-link:hover {
  color: var(--brand);
  border-bottom-color: var(--brand);
  cursor: pointer;
}

/* ---------- Reveal motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes orbit-pulse {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
}

/* ---------- Utility ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
