/* ============================================================
   见微 CTRL+ME · 意安智行 MindSecGo — 官网测试版（lab）
   视觉语言为意安智行自有体系。
   零依赖，file:// 可直接打开。年份统一 2026。
   ============================================================ */

:root {
  --bg: #0a0e14;
  --bg-soft: #0e141c;
  --panel: #111924;
  --panel-2: #0d131c;
  --line: #1e2a38;
  --line-soft: #16202c;
  --ink: #dfe9f2;
  --ink-dim: #8fa3b5;
  --ink-faint: #5c6f80;
  --acc: #45d6c4;        /* 终端青 */
  --acc-2: #8f7bff;      /* 信号紫 */
  --amber: #f2b544;
  --red: #f26d6d;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  --sans: system-ui, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --rad: 10px;
  --nav-h: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* 网格纹理底 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(69, 214, 196, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 214, 196, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  z-index: 0;
}

main { position: relative; z-index: 1; }

a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ============ 顶栏 ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(10, 14, 20, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.nav-brand img { height: 30px; width: auto; }
.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
}
.nav-links a {
  color: var(--ink-dim);
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.on { color: var(--acc); border-bottom-color: var(--acc); }
.nav-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 8px;
  white-space: nowrap;
}
/* 汉堡按钮：仅移动端显示 */
.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  flex: none;
}
.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.nav-burger span { top: 19px; }
.nav-burger span::before { top: -6px; left: 0; }
.nav-burger span::after { top: 6px; left: 0; }
body.nav-open .nav-burger span { background: transparent; }
body.nav-open .nav-burger span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-burger span::after { top: 0; transform: rotate(-45deg); }

/* ============ 通用区块 ============ */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--acc);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.kicker::before { content: "// "; color: var(--ink-faint); }

h2.sec-title { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.3; margin-bottom: 10px; }
.sec-lead { color: var(--ink-dim); max-width: 640px; }

/* ============ 键帽视觉（CTRL+ME 品牌梗） ============ */
.keycaps { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; }
.keycap {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: linear-gradient(180deg, #1a2432, #121a26);
  border: 1px solid #2a3a4d;
  border-bottom-width: 3px;
  border-radius: 7px;
  padding: 5px 12px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}
.keycap.acc { color: #06251f; background: linear-gradient(180deg, #5fe3d0, #35bda9); border-color: #35bda9; }
.keycap + .key { color: var(--ink-faint); font-family: var(--mono); }

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(10, 14, 20, 0.28), var(--bg) 88%),
    url("../img/hero-bg.png") center 30% / cover no-repeat;
}
.hero-in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px 24px 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: end;
}
.hero-copy { padding-bottom: 84px; }
.hero-plan { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.hero-plan img { height: 84px; width: auto; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.5)); }
.hero h1 {
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.22;
  font-weight: 800;
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--acc);
}
.hero-sub { color: var(--ink-dim); font-size: 16.5px; max-width: 520px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--rad);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-acc {
  background: linear-gradient(180deg, #4fe0cc, #31b7a2);
  color: #052a23;
  box-shadow: 0 6px 22px rgba(69, 214, 196, 0.25);
}
.btn-ghost {
  background: rgba(17, 25, 36, 0.7);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--acc); color: var(--acc); }

.hero-art { position: relative; }
.hero-art img { width: 100%; max-width: 460px; margin-left: auto; filter: drop-shadow(0 18px 44px rgba(0, 0, 0, 0.55)); }
.hero-badge {
  position: absolute;
  top: 26px;
  right: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--amber);
  background: rgba(10, 14, 20, 0.78);
  border: 1px solid rgba(242, 181, 68, 0.4);
  border-radius: 6px;
  padding: 6px 12px;
  backdrop-filter: blur(6px);
}

/* ============ 数据条 ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  overflow: hidden;
  background: var(--panel-2);
}
.stat { padding: 26px 26px 22px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat b {
  display: block;
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 700;
  color: var(--acc);
  line-height: 1.1;
}
.stat span { font-size: 13px; color: var(--ink-dim); }
.stat small { display: block; font-size: 11.5px; color: var(--ink-faint); margin-top: 4px; }

/* ============ 游戏卡片 ============ */
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.game-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gcard {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.gcard:hover { border-color: rgba(69, 214, 196, 0.5); transform: translateY(-3px); }
.gcard-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.gcard-ico {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.gcard-ico svg, .gcard-ico img { width: 26px; height: 26px; object-fit: contain; }
.gcard h3 { font-size: 17px; }
.gcard .en { font-family: var(--mono); font-size: 10.5px; color: var(--ink-faint); letter-spacing: 0.14em; }
.gcard p { font-size: 13.5px; color: var(--ink-dim); margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--ink-dim);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
}
.tag.risk { color: var(--acc-2); border-color: rgba(143, 123, 255, 0.35); }
.tag.state { color: var(--amber); border-color: rgba(242, 181, 68, 0.4); }

/* ============ 七风险词条带 ============ */
.risk-band { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.risk-cell {
  text-align: center;
  padding: 18px 6px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  transition: border-color 0.2s;
}
.risk-cell:hover { border-color: rgba(143, 123, 255, 0.55); }
.risk-cell b { display: block; font-size: 15.5px; margin-bottom: 2px; }
.risk-cell i { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--acc-2); letter-spacing: 0.1em; }

/* ============ 时间轴 ============ */
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--acc), var(--acc-2), transparent);
}
.tl-item { position: relative; padding: 0 0 34px 18px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--acc);
}
.tl-item.major::before { background: var(--acc); box-shadow: 0 0 12px rgba(69, 214, 196, 0.7); }
.tl-date { font-family: var(--mono); font-size: 12px; color: var(--acc); letter-spacing: 0.08em; }
.tl-item h3 { font-size: 17px; margin: 4px 0 6px; }
.tl-item p { font-size: 13.5px; color: var(--ink-dim); max-width: 620px; }

/* ============ 团队 ============ */
.team-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 10px; }
.team-cell { text-align: center; }
.team-cell img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--line);
  transition: border-color 0.2s, transform 0.2s;
}
.team-cell:hover img { border-color: var(--acc); transform: translateY(-3px); }
.team-cell span { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--ink-faint); margin-top: 8px; }

/* ============ 方法论：步骤 ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 22px;
  position: relative;
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  color: rgba(69, 214, 196, 0.25);
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}
.step h3 { font-size: 15.5px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--ink-dim); }

/* ============ 双栏 ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split img.rounded { border-radius: 14px; border: 1px solid var(--line); }

.checklist { list-style: none; }
.checklist li {
  position: relative;
  padding: 7px 0 7px 30px;
  font-size: 14px;
  color: var(--ink-dim);
  border-bottom: 1px dashed var(--line-soft);
}
.checklist li::before {
  content: "▸";
  position: absolute;
  left: 8px;
  color: var(--acc);
}

/* ============ 生态 / 致谢 ============ */
.eco {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  flex-wrap: wrap;
}
.eco img { height: 40px; width: auto; opacity: 0.9; }
.eco p { font-size: 13px; color: var(--ink-dim); max-width: 640px; }

/* ============ 页脚 ============ */
footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 40px 0 28px;
  margin-top: 40px;
}
.foot-in { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.foot-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.foot-brand img { height: 24px; }
.foot-links { margin-left: auto; display: flex; gap: 18px; font-size: 13px; }
.foot-links a { color: var(--ink-dim); }
.disclaimer {
  font-size: 12px;
  color: var(--ink-faint);
  border-top: 1px dashed var(--line);
  padding-top: 16px;
  line-height: 1.9;
}
.corner-brand {
  position: fixed;
  right: 14px;
  bottom: 12px;
  z-index: 40;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-faint);
  background: rgba(10, 14, 20, 0.72);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  backdrop-filter: blur(6px);
}

/* ============ 账户闸门 ============ */
.nav-auth { display: flex; align-items: center; gap: 14px; margin-left: 18px; }
.nav-user { font-family: var(--mono); font-size: 12px; color: var(--acc); }
.nav-login, .nav-logout, .nav-me {
  font-size: 13px;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 12px;
}
.nav-me { color: var(--acc); border-color: rgba(69, 214, 196, 0.4); }
.nav-me:hover { text-decoration: none; border-color: var(--acc); }
.nav-login { background: linear-gradient(180deg, #4fe0cc, #31b7a2); color: #052a23; border-color: #31b7a2; font-weight: 600; }
.nav-logout:hover { color: var(--red); border-color: var(--red); text-decoration: none; }
a.gated { opacity: 0.92; }

.auth-hero {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  padding: 48px 24px;
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(69, 214, 196, 0.08), transparent 60%),
    var(--bg);
}
.auth-card {
  width: min(440px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px 34px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.auth-card img.brand { height: 38px; width: auto; margin: 0 auto 18px; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 14.5px;
  color: var(--ink-dim);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  user-select: none;
}
.auth-tab.on { color: var(--acc); border-bottom-color: var(--acc); font-weight: 600; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--ink-dim); margin-bottom: 6px; }
.field input {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 14.5px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus { border-color: var(--acc); }
.auth-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 18px; font-size: 13px; color: var(--ink-dim); }
.auth-row label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.auth-msg { min-height: 20px; font-size: 13px; color: var(--red); margin-bottom: 10px; }
.auth-msg.ok { color: var(--acc); }
.auth-note { font-size: 11.5px; color: var(--ink-faint); border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 20px; line-height: 1.9; }
.btn-wide { width: 100%; justify-content: center; }

/* ============ 数据支撑 ============ */
.evidence { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.ev-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 18px 20px 14px;
}
.ev-card b {
  display: block;
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--acc);
  line-height: 1.15;
}
.ev-card p { font-size: 12.5px; color: var(--ink-dim); margin-top: 4px; line-height: 1.7; }
.ev-card cite {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-faint);
  margin-top: 8px;
  border-top: 1px dashed var(--line-soft);
  padding-top: 8px;
}
.src-note { font-size: 11.5px; color: var(--ink-faint); margin-top: 16px; line-height: 1.8; }
.src-note cite { font-style: normal; font-family: var(--mono); font-size: 10.5px; }

/* ============ 响应式 ============ */
@media (max-width: 880px) {
  .nav-in { gap: 12px; }
  .nav-burger { display: block; }
  .nav-tag { display: none; }
  /* 导航折叠为下拉面板 */
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: rgba(10, 14, 20, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    padding: 8px 18px 14px;
  }
  body.nav-open .nav-links { display: flex; }
  .nav-links a {
    padding: 13px 4px;
    font-size: 15px;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-links a:last-of-type { border-bottom: none; }
  .nav-auth { margin: 10px 0 0; justify-content: center; }
  .nav-links { z-index: 60; }

  .hero-in { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-copy { padding-bottom: 28px; }
  .hero-art img { max-width: 300px; margin: 0 auto; }
  .hero-badge { top: 10px; right: 4px; font-size: 10.5px; padding: 4px 9px; }
  .hero h1 { font-size: clamp(28px, 8vw, 36px); }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stat { padding: 18px 18px 14px; }
  .stat b { font-size: 27px; }

  .game-grid, .game-grid.cols-2 { grid-template-columns: 1fr; }
  .evidence { grid-template-columns: 1fr; }
  .risk-band { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 26px; }
  .team-grid { grid-template-columns: repeat(5, 1fr); }
  .section { padding: 52px 0; }

  /* 三格统计（me 页）塌缩为单列 */
  .stats.stats-3 { grid-template-columns: 1fr; }
  .stats.stats-3 .stat { border-left: none; border-top: 1px solid var(--line); }
  .stats.stats-3 .stat:first-child { border-top: none; }

  /* 表单：16px 防 iOS 聚焦缩放 */
  .field input { font-size: 16px; }
  .auth-card { padding: 26px 20px 22px; }
  .eco { padding: 16px 18px; }
  .corner-brand { font-size: 9.5px; right: 8px; bottom: 8px; padding: 3px 8px; }
}

@media (max-width: 480px) {
  .risk-band { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .wrap { padding: 0 16px; }
  .hero-sub { font-size: 15px; }
  .keycap { font-size: 11px; padding: 4px 9px; }
  .btn { padding: 11px 16px; font-size: 14px; }
}
