/* 探灵的网站 —— 全站样式：蓝底白字 */
:root {
  --bg-deep: #071a38;
  --bg-mid:  #123a6b;
  --bg-soft: #1b4f8f;
  --line:    rgba(255, 255, 255, 0.28);
  --glow:    rgba(120, 180, 255, 0.55);
}

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

html, body { min-height: 100%; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #fff;
  background: linear-gradient(160deg, var(--bg-deep), var(--bg-mid), var(--bg-deep));
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  letter-spacing: 0.02em;
}

/* ---------- 密码门 ---------- */
.gate {
  width: min(420px, 100%);
  text-align: center;
  animation: fadeIn 0.8s ease both;
}
.logo {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 36px;
  height: 36px;
}
.logo-gate {
  width: 96px;
  height: 96px;
  margin-bottom: 16px;
}
.logo-intro {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
}
.gate h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin-bottom: 6px;
}
.gate .sub {
  font-size: 14px;
  opacity: 0.72;
  margin-bottom: 34px;
}
.gate .field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gate .field:focus-within {
  border-color: #fff;
  box-shadow: 0 0 18px var(--glow);
}
.gate input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 17px;
  letter-spacing: 0.3em;
  min-width: 0;
}
.gate input::placeholder { color: rgba(255, 255, 255, 0.45); letter-spacing: 0.1em; }
.gate button {
  background: #fff;
  color: var(--bg-mid);
  border: none;
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.gate button:hover { background: #dbe9ff; }
.gate .tip {
  margin-top: 18px;
  font-size: 13px;
  opacity: 0.6;
}
.gate .err {
  margin-top: 12px;
  font-size: 13px;
  color: #ffc4c4;
  min-height: 18px;
}
.gate.shake .field { animation: shake 0.35s ease; }

/* ---------- 入站动画 ---------- */
.intro {
  display: none;
  text-align: center;
  animation: fadeIn 0.5s ease both;
}
.intro.show { display: block; }
.intro .brand {
  font-size: clamp(40px, 9vw, 74px);
  font-weight: 600;
  letter-spacing: 0.3em;
  animation: breathe 1.4s ease-in-out infinite alternate;
}
.intro .brand.brand-long {
  font-size: clamp(30px, 7vw, 56px);
  letter-spacing: 0.12em;
}
.intro .brand small {
  display: block;
  font-size: 15px;
  letter-spacing: 0.5em;
  opacity: 0.6;
  margin-top: 14px;
  font-weight: 400;
}
/* ---------- 内页通用 ---------- */
.page {
  width: min(860px, 100%);
  animation: fadeIn 0.7s ease both;
}
.page header { text-align: center; margin-bottom: 40px; }
.page header .logo { margin-bottom: 6px; }
.page header h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.2em;
  margin: 8px 0;
}
.page header p { opacity: 0.65; font-size: 14px; }
.back {
  display: inline-block;
  margin-top: 36px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.75;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.back:hover { opacity: 1; }

/* ---------- 主页两个入口 ---------- */
.entries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.entry {
  display: block;
  text-decoration: none;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px 22px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.entry:hover, .entry:focus-visible {
  transform: translateY(-6px);
  border-color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), 0 0 22px var(--glow);
  outline: none;
}
.entry svg { width: 56px; height: 56px; margin-bottom: 16px; }
.entry h2 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.entry p { font-size: 13px; opacity: 0.65; line-height: 1.7; }

/* ---------- 内容页正文 ---------- */
.article {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.04);
  line-height: 1.9;
  font-size: 15px;
}
.article h2 { font-size: 20px; margin: 24px 0 10px; }
.article h2:first-child { margin-top: 0; }
.article p, .article li { opacity: 0.86; }
.article ul { padding-left: 22px; }
.article a { color: #bcd9ff; }

/* ---------- 动画 ---------- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
@keyframes breathe { from { opacity: 0.75; text-shadow: 0 0 10px var(--glow); } to { opacity: 1; text-shadow: 0 0 28px #fff; } }
