/* =========================================================
   NEO 子页面共享样式
   与首页同一套设计语言：纯黑 + 极光 + 抖音红 + Inter
   ========================================================= */

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --muted2: #6b7488;
  --red: #FE2C55;
  --red2: #FF6B4A;
  --green: #3DD68C;
  --amber: #FFB020;
  --line: rgba(255, 255, 255, 0.10);
  --line2: rgba(255, 255, 255, 0.18);
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", Consolas, "Courier New", monospace;
  --display: "BubbledotICG-FinePos", "PingFang SC", "Microsoft YaHei", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: #000 !important;
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ---------- 背景质感层 ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 200px 200px, 72px 72px, 72px 72px;
  opacity: 0.9;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(760px 560px at 78% -8%, rgba(254, 44, 85, 0.16), transparent 66%),
    radial-gradient(620px 620px at 4% 22%, rgba(74, 91, 255, 0.11), transparent 66%);
}
.wrap, .nav, .site-foot { position: relative; z-index: 1; }

.wrap { max-width: 900px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 32px); }
.wrap-wide { max-width: 1120px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav .in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px clamp(20px, 4vw, 32px);
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15.5px; font-weight: 600; letter-spacing: -0.03em;
  flex: 0 0 auto;
}
.logo .mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; display: grid; place-items: center;
}
.logo .mark img { width: 72%; height: 72%; object-fit: contain; }
.logo .suffix { font-weight: 400; }

.nav-links {
  display: flex; align-items: center; gap: 22px;
  margin-left: auto; font-size: 14px; color: var(--muted);
}
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: #fff; }
.nav-links a.is-active { color: #fff; }

.nav-cta {
  flex: 0 0 auto;
  font-size: 13.5px; font-weight: 500;
  padding: 8px 16px; border-radius: 999px;
  background: #fff; color: #111;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.3);
}

/* ---------- 页面头 ---------- */
.ph {
  padding: clamp(48px, 8vh, 88px) 0 clamp(24px, 4vh, 40px);
  border-bottom: 1px solid var(--line);
}
.ph .eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  color: var(--red); margin-bottom: 14px;
}
.ph h1 {
  font-size: clamp(28px, 4.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.ph .lead {
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 17px);
  max-width: 640px;
  line-height: 1.65;
}
.ph .meta {
  margin-top: 18px;
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted2);
}
.ph .meta .tag {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 5px;
  padding: 3px 9px; font-size: 12px;
}
.ph .meta .tag.warn { color: var(--amber); border-color: rgba(255, 176, 32, 0.3); }

/* ---------- 正文 ---------- */
.body { padding: clamp(36px, 6vh, 64px) 0 clamp(60px, 10vh, 96px); }

h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600; letter-spacing: -0.025em;
  margin: 44px 0 12px;
}
h2:first-child { margin-top: 0; }
h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; margin: 26px 0 8px; }
p { color: #c8ccd4; margin-bottom: 14px; }
strong { color: #fff; font-weight: 600; }

ul.clean { list-style: none; margin: 14px 0; }
ul.clean li {
  position: relative; padding-left: 20px;
  margin-bottom: 9px; color: #c8ccd4; font-size: 15px;
}
ul.clean li::before {
  content: ""; position: absolute; left: 2px; top: 10px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--red);
}
ol.steps { list-style: none; counter-reset: s; margin: 18px 0; }
ol.steps > li {
  counter-increment: s; position: relative;
  padding: 0 0 20px 42px; border-left: 1px solid var(--line);
  margin-left: 13px;
}
ol.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
ol.steps > li::before {
  content: counter(s); position: absolute; left: -13px; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; color: #111;
  font-size: 12.5px; font-weight: 600;
  display: grid; place-items: center;
}
ol.steps > li .st { font-weight: 600; font-size: 16px; margin-bottom: 4px; }

code {
  font-family: var(--mono); font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  padding: 2px 6px; border-radius: 4px;
}
pre {
  background: #0b0d14; border: 1px solid var(--line);
  border-radius: 10px; padding: 16px 18px; overflow-x: auto;
  font-family: var(--mono); font-size: 13px; line-height: 1.7;
  color: #d6dae2; margin: 16px 0;
}

/* ---------- 卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 22px 0; }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px; padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  transition: transform 0.35s cubic-bezier(.22,1,.36,1), border-color 0.3s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--line2); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .num {
  font-family: var(--display);
  font-size: 26px; line-height: 1;
  background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.07));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px;
}

/* ---------- 提示块 ---------- */
.note {
  border-left: 3px solid var(--red);
  background: rgba(254, 44, 85, 0.08);
  padding: 14px 18px; border-radius: 0 10px 10px 0;
  margin: 18px 0;
}
.note .t { font-weight: 600; color: #FF8A9B; margin-bottom: 5px; font-size: 14.5px; }
.note p:last-child { margin-bottom: 0; }
.note.warn { border-color: var(--amber); background: rgba(255, 176, 32, 0.07); }
.note.warn .t { color: var(--amber); }
.note.ok { border-color: var(--green); background: rgba(61, 214, 140, 0.07); }
.note.ok .t { color: var(--green); }
.note.plain { border-color: var(--line2); background: rgba(255,255,255,.03); }
.note.plain .t { color: #fff; }

/* ---------- 表格 ---------- */
.tw { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.008)); }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 14.5px; }
th { background: rgba(255,255,255,.035); text-align: left; padding: 12px 15px; font-weight: 600; border-bottom: 1px solid var(--line); font-size: 14px; color: #fff; white-space: nowrap; }
td { padding: 12px 15px; border-bottom: 1px solid var(--line); color: #c8ccd4; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255,255,255,.025); }
td b { color: #fff; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  border: 1px solid var(--line2);
  background: rgba(255, 255, 255, 0.05); color: #fff;
  transition: background 0.28s ease, border-color 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
}
.btn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); transform: translateY(-2px); }
.btn-solid {
  background: #fff; color: #111; border-color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 0 26px rgba(255,255,255,.22);
}
.btn-solid:hover { background: #f2f4fa; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 0 34px rgba(255,255,255,.34); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0; }

/* ---------- 页脚 ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  background: #050505;
  padding: clamp(44px, 7vh, 68px) 0 30px;
  font-size: 13.5px; color: var(--muted);
}
.foot-in { max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 32px); }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 32px; }
.foot-brand { max-width: 240px; }
.foot-brand p { color: var(--muted); font-size: 13.5px; line-height: 1.7; margin-top: 12px; }
.foot-cols { display: flex; gap: clamp(30px, 6vw, 68px); flex-wrap: wrap; }
.foot-cols h4 { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.foot-cols a { display: block; color: var(--muted); font-size: 13.5px; margin-bottom: 9px; transition: color 0.2s ease; }
.foot-cols a:hover { color: #fff; }
.foot-cols a.is-active { color: #fff; }
.foot-disc {
  color: #6a6a6a; font-size: 12.5px; line-height: 1.75;
  border-left: 2px solid var(--line2); padding-left: 14px; margin-bottom: 22px;
}
.foot-copy {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: #5a5a5a; font-size: 12.5px;
  border-top: 1px solid var(--line); padding-top: 20px;
}

/* ---------- 占位标记（上线前必须替换） ---------- */
.todo {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  color: var(--amber);
  background: rgba(255, 176, 32, 0.12);
  border: 1px dashed rgba(255, 176, 32, 0.45);
  border-radius: 5px; padding: 2px 8px;
}

/* ---------- 工具页 ---------- */
.tool {
  border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(18px, 3vw, 26px);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  margin: 24px 0;
}
.tool textarea {
  width: 100%; min-height: 150px; resize: vertical;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line2); border-radius: 10px;
  color: #fff; font-family: var(--font); font-size: 15px; line-height: 1.7;
  padding: 14px; outline: none;
  transition: border-color 0.25s ease;
}
.tool textarea:focus { border-color: rgba(255,255,255,.45); }
.tool textarea::placeholder { color: #5a5a5a; }
.tool-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.tool-count { font-size: 13px; color: var(--muted); margin-left: auto; }
.hits { margin-top: 18px; }
.hit {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border-radius: 10px;
  background: rgba(254, 44, 85, 0.08);
  border: 1px solid rgba(254, 44, 85, 0.25);
  margin-bottom: 9px;
}
.hit .bad { color: #FF8A9B; font-weight: 600; font-size: 14px; flex: 0 0 auto; min-width: 96px; }
.hit .arrow { color: var(--muted2); flex: 0 0 auto; }
.hit .good { color: var(--green); font-size: 14px; }
.empty { color: var(--green); font-size: 14.5px; padding: 10px 0; }

@media (max-width: 760px) {
  .cards, .cards.c3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .foot-top { flex-direction: column; gap: 26px; }
  .foot-cols { gap: 28px; }
}
