/* ============================================================
   GKER.NET landing page — COLD//CODE
   冷酷风科技感独立首页:深空黑 + 青色荧光 + 网格 + 扫描线 + 等宽字
   ============================================================ */

:root {
  --bg: #0a0e12;
  --bg-elev: #0e141b;
  --fg: #c9d4dd;
  --fg-dim: #5c6b7a;
  --accent: #00e5ff;
  --accent-dim: rgba(0, 229, 255, 0.12);
  --accent-border: rgba(0, 229, 255, 0.25);
  --mono: "SF Mono", "JetBrains Mono", "Fira Code", Menlo, Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(0, 229, 255, 0.12), transparent 38%),
    var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 0 48%, rgba(0, 229, 255, 0.025) 50%, transparent 52%);
  pointer-events: none;
}

::selection { background: var(--accent); color: #000; }

a { color: var(--accent); text-decoration: none; transition: color .15s ease, text-shadow .15s ease; }
a:hover { color: #fff; text-shadow: 0 0 12px rgba(0, 229, 255, 0.8); }

/* ---------- 氛围层:网格 + 扫描线 ---------- */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
  pointer-events: none;
}

.scanline {
  position: fixed;
  left: 0; right: 0;
  top: -3px;
  height: 2px;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.35), transparent);
  animation: scan 7s linear infinite;
  pointer-events: none;
  opacity: .6;
}

@keyframes scan {
  0%   { top: -3px; }
  100% { top: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .scanline { animation: none; display: none; }
}

/* ---------- 导航 ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 22px 24px 0;
  font-size: 13px;
  letter-spacing: .08em;
  position: relative;
  z-index: 1;
}

.nav-logo { color: var(--fg); font-weight: 700; white-space: nowrap; }
.nav-logo::before { content: "▮ "; color: var(--accent); font-size: 11px; animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.nav-links a { color: var(--fg-dim); margin-left: 22px; text-transform: uppercase; font-size: 12.5px; }
.nav-links a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(60px, 14vh, 130px) 24px 48px;
  text-align: center;
  position: relative;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  border-color: var(--accent-border);
  pointer-events: none;
}

.hero::before {
  left: 24px;
  top: 58px;
  border-left: 1px solid;
  border-top: 1px solid;
}

.hero::after {
  right: 24px;
  bottom: 36px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.hero-boot {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .18em;
  margin-bottom: 18px;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(34px, 8vw, 64px);
  line-height: 1.15;
  color: #fff;
  font-weight: 700;
  letter-spacing: .04em;
  text-shadow: 0 0 32px rgba(255, 255, 255, 0.08);
}

.hero-title .glow { color: var(--accent); text-shadow: 0 0 28px rgba(0, 229, 255, 0.6); }

.hero-sub {
  color: var(--fg-dim);
  font-size: 15px;
  letter-spacing: .06em;
  margin: 0;
}

.hero-tags {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero-tag {
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  background: var(--accent-dim);
  padding: 5px 14px;
  border-radius: 2px;
  letter-spacing: .08em;
  box-shadow: inset 0 0 18px rgba(0, 229, 255, 0.04);
}

/* ---------- 入口卡片 ---------- */
.portals {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 8px 24px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.portal {
  display: block;
  border: 1px solid var(--accent-border);
  background: linear-gradient(145deg, rgba(17, 26, 35, 0.96), rgba(10, 15, 21, 0.96));
  padding: 24px 22px;
  border-radius: 3px;
  transition: all .18s ease;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 14px 38px rgba(0, 0, 0, 0.14);
}

.portal::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity .18s ease;
}

.portal::after {
  content: "↗";
  position: absolute;
  right: 18px;
  top: 17px;
  color: var(--accent);
  font-size: 16px;
  opacity: .55;
  transition: transform .18s ease, opacity .18s ease;
}

.portal:hover {
  border-color: var(--accent);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.18);
  transform: translateY(-2px);
}

.portal:hover::before { opacity: 1; }
.portal:hover::after { opacity: 1; transform: translate(2px, -2px); }

.portal-cmd { font-size: 12px; color: var(--fg-dim); letter-spacing: .12em; margin-bottom: 10px; }
.portal-cmd::before { content: "$ "; color: var(--accent); }

.portal-title { font-size: 19px; color: #fff; font-weight: 600; margin: 0 0 8px; letter-spacing: .03em; }
.portal-desc { font-size: 13px; color: var(--fg-dim); margin: 0; line-height: 1.65; }
.portal-go { font-size: 12px; color: var(--accent); margin-top: 14px; display: inline-block; letter-spacing: .1em; }

/* ---------- 状态行 ---------- */
.status {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: .08em;
  border-top: 1px solid rgba(0, 229, 255, 0.08);
  padding-top: 18px;
}

.status .dot { color: var(--accent); }

/* ---------- 页脚(备案 + 版权) ---------- */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--accent-border);
  padding: 18px 24px 26px;
  background: rgba(6, 10, 14, 0.35);
  text-align: center;
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: .06em;
}

.footer a { color: var(--fg-dim); }
.footer a:hover { color: var(--accent); }
.footer .sep { color: var(--accent); opacity: .7; margin: 0 8px; }

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .portals { grid-template-columns: 1fr; }
  .nav { padding: 16px 16px 0; }
  .hero { padding: 44px 16px 36px; }
  .portals { padding: 8px 16px 28px; }
  .status { padding: 0 16px 20px; }
  .hero::before { left: 16px; top: 36px; }
  .hero::after { right: 16px; bottom: 26px; }
}
