/* ==========================================================================
   成都门阵科技有限公司官方网站 - 样式表
   ========================================================================== */

:root {
  --bg: #060a13;
  --bg-soft: #0a101d;
  --panel: rgba(15, 23, 42, 0.6);
  --panel-solid: #0f172a;
  --text: #e6ebf4;
  --muted: #8fa0b8;
  --cyan: #3ee0ff;
  --violet: #8b7bff;
  --green: #34d399;
  --grad: linear-gradient(135deg, #3ee0ff 0%, #8b7bff 100%);
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(62, 224, 255, 0.45);
  --radius: 14px;
  --header-h: 72px;
  --shadow-glow: 0 8px 32px rgba(62, 224, 255, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: rgba(139, 123, 255, 0.4);
  color: #fff;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #22304a;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2e405f;
}

/* ==========================================================================
   顶部导航
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(6, 10, 19, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 38px;
  height: 38px;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text small {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--muted);
}

.main-nav {
  display: flex;
  gap: 6px;
}

.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 0.95rem;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   首屏
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(139, 123, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 60% 45% at 85% 100%, rgba(62, 224, 255, 0.08), transparent 70%),
    var(--bg);
}

/* 网格背景 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 30%, transparent 75%);
  pointer-events: none;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.32;
  pointer-events: none;
  animation: float 9s ease-in-out infinite alternate;
}

.hero-glow--left {
  background: #3ee0ff;
  top: -140px;
  left: -140px;
}

.hero-glow--right {
  background: #8b7bff;
  bottom: -160px;
  right: -120px;
  animation-delay: -4.5s;
}

@keyframes float {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(30px, 24px, 0) scale(1.08);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  padding: calc(var(--header-h) + 48px) 0 96px;
}

.hero-tag {
  display: inline-block;
  padding: 7px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  background: rgba(62, 224, 255, 0.06);
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero-title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-desc {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  max-width: 680px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-meta li {
  padding: 0 18px;
  position: relative;
}

.hero-meta li + li::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.6;
}

/* 向下滚动提示 */
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.scroll-hint:hover {
  opacity: 1;
}

.scroll-hint__mouse {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid var(--muted);
  border-radius: 14px;
  position: relative;
}

.scroll-hint__mouse span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--cyan);
  animation: scrollDot 1.6s ease-in-out infinite;
}

@keyframes scrollDot {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(12px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

/* ==========================================================================
   按钮
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 13px 34px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease,
    background 0.25s ease, color 0.25s ease;
}

.btn--primary {
  background: var(--grad);
  color: #061018;
  box-shadow: 0 6px 24px rgba(94, 178, 255, 0.25);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(94, 178, 255, 0.4);
}

.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(62, 224, 255, 0.04);
}

.btn--ghost:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  background: rgba(62, 224, 255, 0.1);
}

.btn--block {
  width: 100%;
}

/* ==========================================================================
   通用区块
   ========================================================================== */
.section {
  padding: 104px 0;
  position: relative;
}

.section--alt {
  background:
    radial-gradient(ellipse 50% 40% at 15% 0%, rgba(139, 123, 255, 0.07), transparent 70%),
    var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--cyan);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 18px auto 0;
  border-radius: 3px;
  background: var(--grad);
}

.section-head p {
  color: var(--muted);
  margin-top: 16px;
}

/* ==========================================================================
   关于我们
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 72px;
}

.about-text h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 16px;
}

.about-points {
  list-style: none;
  margin: 4px 0 30px;
}

.about-points li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  color: var(--text);
}

.about-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 21px;
  height: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #061018;
  background: var(--grad);
  border-radius: 50%;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}

.stat-card strong {
  display: block;
  font-size: 2.1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.stat-card strong span {
  font-size: 1.2rem;
}

.stat-card > span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* 企业优势 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(62, 224, 255, 0.14), rgba(139, 123, 255, 0.14));
  border: 1px solid rgba(62, 224, 255, 0.22);
  margin-bottom: 18px;
}

.feature-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   核心业务
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 顶部渐变装饰线 */
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(62, 224, 255, 0.14), rgba(139, 123, 255, 0.14));
  border: 1px solid rgba(62, 224, 255, 0.22);
  margin-bottom: 22px;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ==========================================================================
   产品作品
   ========================================================================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.game-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-7px);
  border-color: var(--border-strong);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.game-cover {
  position: relative;
  aspect-ratio: 16 / 11;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 封面点阵纹理 */
.game-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: linear-gradient(180deg, transparent 30%, #000 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 100%);
}

.game-cover--a {
  background: linear-gradient(135deg, #16305c, #3b2a7a 70%, #6d3f9e);
}
.game-cover--b {
  background: linear-gradient(135deg, #58280e, #8a3d20 55%, #b4552b);
}
.game-cover--c {
  background: linear-gradient(135deg, #0e4d3a, #2e7d4f 60%, #67a858);
}
.game-cover--d {
  background: linear-gradient(135deg, #2b2f45, #4a4668 60%, #6f5f8f);
}

.game-cover__icon {
  font-size: 3.4rem;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
  transition: transform 0.35s ease;
}

.game-card:hover .game-cover__icon {
  transform: scale(1.14) rotate(-4deg);
}

.game-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #061018;
}

.game-badge--online {
  background: var(--green);
}

.game-badge--soon {
  background: var(--violet);
  color: #fff;
}

.game-platform {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(6, 10, 19, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.game-body {
  padding: 20px 20px 24px;
}

.game-body h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.game-tags span {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--cyan);
  background: rgba(62, 224, 255, 0.08);
  border: 1px solid rgba(62, 224, 255, 0.2);
}

.game-body p {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ==========================================================================
   新闻动态
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  display: flex;
  gap: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}

.news-date {
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  padding: 10px 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(62, 224, 255, 0.1), rgba(139, 123, 255, 0.1));
  border: 1px solid rgba(62, 224, 255, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-date b {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--cyan);
}

.news-date span {
  font-size: 0.72rem;
  color: var(--muted);
}

.news-body h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
}

.news-body p {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ==========================================================================
   联系我们
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 18px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.contact-item:hover {
  border-color: var(--border-strong);
  transform: translateX(4px);
}

.contact-item__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(62, 224, 255, 0.14), rgba(139, 123, 255, 0.14));
  border: 1px solid rgba(62, 224, 255, 0.22);
}

.contact-item h4 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-form {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 32px;
}

.contact-form h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
}

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

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

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

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(6, 10, 19, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(143, 160, 184, 0.55);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(62, 224, 255, 0.12);
}

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

.form-field input.invalid,
.form-field textarea.invalid {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

.form-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  background: #05080f;
  border-top: 1px solid var(--border);
  padding: 64px 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-nav h4,
.footer-contact h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-nav a:hover {
  color: var(--cyan);
  transform: translateX(3px);
}

.footer-contact p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.footer-bottom {
  padding-top: 26px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-bottom .beian {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-bottom .beian a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  transition: color 0.25s ease;
}

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

.beian-ga svg {
  opacity: 0.75;
}

/* ==========================================================================
   返回顶部
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--grad);
  color: #061018;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 6px 20px rgba(94, 178, 255, 0.3);
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: 0 10px 28px rgba(94, 178, 255, 0.45);
}

/* ==========================================================================
   入场动画
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .feature-grid,
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 12px 5%;
    background: rgba(6, 10, 19, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    padding: 13px 14px;
    font-size: 1rem;
  }

  .nav-link::after {
    display: none;
  }

  .services-grid,
  .news-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 28px 22px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 76px 0;
  }

  .feature-grid,
  .games-grid,
  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-content {
    padding-bottom: 120px;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .back-to-top {
    right: 18px;
    bottom: 18px;
  }
}

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

  .logo-text small {
    display: none;
  }
}

/* ==========================================================================
   无障碍：减少动态效果
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
