/* ============================================================
   明日方舟攻略组站点 · 公共样式 style.css
   设计语言：深色战术终端 / HUD / 工业科技
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --bg: #0a0f14;
  --bg-2: #0d141c;
  --panel: #111a25;
  --panel-2: #15202d;
  --line: rgba(122, 168, 198, 0.14);
  --line-strong: rgba(122, 168, 198, 0.3);

  --text: #e7eff6;
  --text-2: #a3b7c8;
  --text-3: #6d8396;

  --accent: #3fc7dd;
  --accent-dim: rgba(63, 199, 221, 0.12);
  --accent-2: #2a8fa5;
  --warn: #f2a23a;
  --warn-dim: rgba(242, 162, 58, 0.12);

  --radius: 10px;
  --radius-sm: 6px;
  --header-h: 64px;
  --maxw: 1200px;

  --font: system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas,
    "Courier New", monospace;

  --shadow-card: 0 8px 28px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- 全局背景：网格 + 冷色光晕 ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(42, 143, 165, 0.16), transparent 60%),
    radial-gradient(900px 480px at 8% 108%, rgba(42, 143, 165, 0.1), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(122, 168, 198, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 168, 198, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.35) 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.35) 70%, transparent);
}

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 88px 0; }
.section-head { margin-bottom: 44px; max-width: 720px; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 2.5px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-tag::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
}
.section-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.3;
}
.section-desc { margin-top: 14px; color: var(--text-2); font-size: 15.5px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(10, 15, 20, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-container {
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 15px;
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--text-3);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--text-2);
  font-size: 14.5px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover { color: var(--text); text-decoration: none; background: rgba(122,168,198,.08); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--accent);
  opacity: .8;
}
.nav-links a.disabled {
  color: var(--text-3);
  cursor: not-allowed;
  position: relative;
}
.nav-links a.disabled .soon {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--warn);
  border: 1px solid rgba(242,162,58,.4);
  border-radius: 3px;
  padding: 1px 4px;
  margin-left: 5px;
  vertical-align: middle;
}
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  margin: 4px auto;
  transition: transform .25s var(--ease), opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 26px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
    background .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  color: #06222a;
  background: var(--accent);
  box-shadow: 0 6px 20px rgba(63, 199, 221, 0.25);
}
.btn-primary:hover { background: #57d4e8; box-shadow: 0 10px 26px rgba(63, 199, 221, 0.35); }
.btn-ghost {
  color: var(--text);
  background: rgba(122, 168, 198, 0.06);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(122, 168, 198, 0.12); border-color: var(--accent); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- 通用 HUD 角标 ---------- */
.hud-corners { position: relative; }
.hud-corners::before, .hud-corners::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--accent);
  border-style: solid;
  opacity: .65;
}
.hud-corners::before { top: -1px; left: -1px; border-width: 1.5px 0 0 1.5px; }
.hud-corners::after { bottom: -1px; right: -1px; border-width: 0 1.5px 1.5px 0; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 56px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; font-weight: 700; letter-spacing: 1.2px; }
.footer-brand img { width: 30px; height: 30px; }
.footer-about { color: var(--text-3); font-size: 13.5px; max-width: 420px; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--text-2);
  font-size: 14px;
  padding: 5px 0;
}
.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  color: var(--text-3);
  font-size: 12.5px;
}
.footer-disclaimer { max-width: 760px; }
/* 制作声明（v1.8 新增）：终端机风格的一行，独占页脚最后一条 */
.footer-credit {
  flex: 0 0 100%;
  text-align: center;          /* 2026-09-29：按主人要求居中 */
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .5px;
  line-height: 1.9;
  color: var(--text-3);
  overflow-wrap: anywhere;
}
.footer-credit a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.footer-credit a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- 响应式：平板 / 手机 ---------- */
@media (max-width: 900px) {
  .section { padding: 68px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col.about { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 20px;
    background: rgba(10, 15, 20, 0.97);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; font-size: 15.5px; }
  .nav-links a.active::after { display: none; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .nav-container { padding: 0 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .btn { width: 100%; }
}

/* ---------- 无障碍：焦点可见 ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
