/* ============================================
   泰达娱乐 / 泰达平台 官网样式
   设计语言：暗夜霓虹 · HUD 科技感（区别于常规模板）
   ============================================ */
:root {
  --bg-deep: #070b14;
  --bg-panel: #0d1424;
  --bg-panel-2: #111a30;
  --line: rgba(120, 160, 255, .18);
  --neon-cyan: #29e0ff;
  --neon-violet: #8a6bff;
  --neon-amber: #ffb02e;
  --text-main: #e8eefc;
  --text-sub: #9fb0d0;
  --font-stack: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-stack);
  background: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* 网格底纹背景 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(rgba(41, 224, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 224, 255, .04) 1px, transparent 1px);
  background-size: 44px 44px;
}
main, header, footer { position: relative; z-index: 1; }

a { color: var(--neon-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
ul, ol { list-style: none; }

/* ---------- 顶部导航（HUD 舱门式） ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 20, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 34px; height: 34px; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: 2px; color: var(--text-main); }
.brand-name em {
  font-style: normal;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  color: var(--text-sub);
  padding: 8px 14px;
  font-size: 15px;
  border-radius: 4px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text-main); background: rgba(41, 224, 255, .08); text-decoration: none; }
.nav-links a.active { color: var(--neon-cyan); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text-main); font-size: 18px; padding: 4px 10px; border-radius: 4px; cursor: pointer; }

/* ---------- 通用容器与标题 ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 78px 0; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--neon-cyan);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.kicker::before { content: "//"; color: var(--neon-violet); font-weight: 700; }
h1, h2, h3 { font-weight: 800; letter-spacing: 1px; }
.section-title { font-size: 32px; margin-bottom: 12px; }
.section-desc { color: var(--text-sub); max-width: 720px; margin-bottom: 42px; }

/* HUD 角标卡片 */
.hud-card {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 28px 24px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.hud-card::before,
.hud-card::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  transition: all .25s;
}
.hud-card::before { top: -1px; left: -1px; border-top: 2px solid var(--neon-cyan); border-left: 2px solid var(--neon-cyan); }
.hud-card::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--neon-violet); border-right: 2px solid var(--neon-violet); }
.hud-card:hover { transform: translateY(-4px); border-color: rgba(41, 224, 255, .45); box-shadow: 0 12px 36px rgba(41, 224, 255, .12); }
.card-no { font-size: 12px; color: var(--neon-amber); letter-spacing: 2px; margin-bottom: 10px; }
.card-no::before { content: "[ "; color: var(--text-sub); }
.card-no::after { content: " ]"; color: var(--text-sub); }

/* ---------- 英雄区（斜切 + 光柱） ---------- */
.hero {
  position: relative;
  padding: 130px 0 110px;
  overflow: hidden;
  background:
    radial-gradient(900px 380px at 78% 18%, rgba(138, 107, 255, .22), transparent 60%),
    radial-gradient(700px 320px at 12% 82%, rgba(41, 224, 255, .16), transparent 60%),
    var(--bg-deep);
}
.hero::after {
  content: "";
  position: absolute;
  right: -140px; top: 8%;
  width: 460px; height: 460px;
  transform: rotate(18deg);
  border: 1px solid rgba(41, 224, 255, .25);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  animation: spin 26s linear infinite;
}
@keyframes spin { to { transform: rotate(378deg); } }
.hero-tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--neon-amber);
  border: 1px solid rgba(255, 176, 46, .4);
  padding: 6px 14px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: 52px;
  line-height: 1.25;
  max-width: 760px;
  margin-bottom: 20px;
}
.hero h1 .grad {
  background: linear-gradient(92deg, var(--neon-cyan) 10%, var(--neon-violet) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { color: var(--text-sub); font-size: 18px; max-width: 640px; margin-bottom: 38px; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 34px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s;
}
.btn-primary {
  color: #04121c;
  background: linear-gradient(92deg, var(--neon-cyan), #64d0ff);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn-primary:hover { filter: brightness(1.12); text-decoration: none; }
.btn-ghost { color: var(--neon-cyan); border-color: rgba(41, 224, 255, .5); background: transparent; }
.btn-ghost:hover { background: rgba(41, 224, 255, .1); text-decoration: none; }

/* ---------- 网格布局 ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 960px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
}

/* 数据条 */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--bg-panel);
}
.stat { padding: 30px 10px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat b { display: block; font-size: 34px; color: var(--neon-cyan); font-weight: 800; }
.stat span { font-size: 14px; color: var(--text-sub); }
@media (max-width: 720px) { .stats-band { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: none; } }

/* 产品卡 */
.game-cover {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 4px;
  color: rgba(232, 238, 252, .92);
  margin: -28px -24px 20px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), 0 100%);
}
.cover-a { background: linear-gradient(135deg, #163a5e, #0b1c33); }
.cover-b { background: linear-gradient(135deg, #3a2a6e, #161033); }
.cover-c { background: linear-gradient(135deg, #5e3a16, #331b0b); }
.tag-line { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.pill { font-size: 12px; color: var(--neon-cyan); border: 1px solid rgba(41, 224, 255, .35); padding: 3px 10px; border-radius: 999px; }

/* ---------- 新闻列表 ---------- */
.news-item {
  display: flex;
  gap: 24px;
  align-items: baseline;
  padding: 22px 8px;
  border-bottom: 1px dashed var(--line);
}
.news-date {
  flex: 0 0 108px;
  color: var(--neon-amber);
  font-size: 14px;
  letter-spacing: 1px;
}
.news-item h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.news-item h3 a { color: var(--text-main); }
.news-item h3 a:hover { color: var(--neon-cyan); }
.news-item p { color: var(--text-sub); font-size: 14px; }
.news-card { display: flex; flex-direction: column; }
.news-card .date { color: var(--neon-amber); font-size: 13px; margin-bottom: 8px; }
.news-card h3 { font-size: 17px; line-height: 1.5; margin-bottom: 8px; }
.news-card h3 a { color: var(--text-main); }
.news-card h3 a:hover { color: var(--neon-cyan); }
.news-card p { font-size: 14px; color: var(--text-sub); }

/* ---------- 文章页 ---------- */
.article {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 48px 42px;
}
.article-meta { color: var(--text-sub); font-size: 14px; margin-bottom: 26px; display: flex; gap: 18px; flex-wrap: wrap; }
.article-meta b { color: var(--neon-amber); font-weight: 600; }
.article h1 { font-size: 30px; line-height: 1.45; margin-bottom: 18px; }
.article h2 { font-size: 21px; margin: 30px 0 12px; color: var(--neon-cyan); }
.article p { margin-bottom: 16px; color: #cdd8ee; font-size: 16px; }
.article ul { list-style: none; margin-bottom: 16px; }
.article ul li { padding-left: 20px; position: relative; color: #cdd8ee; margin-bottom: 8px; }
.article ul li::before { content: "▸"; position: absolute; left: 0; color: var(--neon-cyan); }
.breadcrumb { font-size: 13px; color: var(--text-sub); padding: 20px 0 0; }
.breadcrumb a { color: var(--text-sub); }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: var(--bg-panel);
  padding: 52px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { font-size: 15px; margin-bottom: 14px; color: var(--text-main); }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a, .footer-grid p { color: var(--text-sub); font-size: 14px; }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-sub);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* 入场动效 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.on { opacity: 1; transform: none; }

/* 移动端导航 */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(7, 11, 20, .97);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 18px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
}
