/* 子不语输入法 · 墨夜极光站内样式（纯静态，无外部依赖） */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0d14;
  --text: #e8ebf2;
  --muted: #9aa4ba;
  --card: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.09);
  --aurora: linear-gradient(120deg, #67e8f9 0%, #818cf8 48%, #c084fc 100%);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 顶部极光光晕 */
body::before {
  content: "";
  position: fixed;
  inset: -30% -10% auto -10%;
  height: 55vh;
  background:
    radial-gradient(40% 55% at 18% 30%, rgba(103, 232, 249, 0.16), transparent 70%),
    radial-gradient(45% 60% at 55% 20%, rgba(129, 140, 248, 0.18), transparent 70%),
    radial-gradient(40% 55% at 85% 35%, rgba(192, 132, 252, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

main, header.site, footer.site {
  position: relative;
  z-index: 1;
}

header.site, footer.site, main {
  max-width: 760px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

header.site {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  padding-bottom: 18px;
}

header.site .brand {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
}

header.site nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  margin-left: 18px;
}

header.site nav a:hover { color: var(--text); }

main { padding-bottom: 56px; }

h1.page-title {
  font-size: 30px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  margin: 26px 0 6px;
}

p.page-sub {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 8px;
}

.meta-date {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 26px;
}

h2 {
  font-size: 21px;
  margin: 40px 0 14px;
  padding-left: 14px;
  position: relative;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  bottom: 0.28em;
  width: 4px;
  border-radius: 2px;
  background: var(--aurora);
}

h3 { font-size: 17px; margin: 24px 0 8px; }

p, li { color: var(--text); font-size: 16px; }

li { margin: 6px 0 6px 1.4em; }

a { color: #8ab4ff; }

strong { font-weight: 650; }

.box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 22px 0;
}

.box.promise {
  border-image: linear-gradient(120deg, rgba(103,232,249,.55), rgba(129,140,248,.55), rgba(192,132,252,.55)) 1;
  border-width: 1px;
  border-style: solid;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(103,232,249,.06), rgba(129,140,248,.06), rgba(192,132,252,.06));
}

.box .box-title { font-weight: 700; }

.muted { color: var(--muted); font-size: 14.5px; }

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 30px 0 10px;
}

.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s ease, transform .2s ease;
}

.card:hover { border-color: rgba(129, 140, 248, 0.55); transform: translateY(-2px); }

.card .card-icon { font-size: 26px; }

.card .card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 10px 0 6px;
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}

.card .card-desc { color: var(--muted); font-size: 14.5px; line-height: 1.7; }

.card .card-links {
  margin-top: 12px;
  font-size: 14.5px;
}

.card .card-links a { color: #8ab4ff; text-decoration: none; }
.card .card-links a:hover { text-decoration: underline; }

.hero {
  margin-top: 44px;
}

.hero .hero-tag {
  display: inline-block;
  font-size: 13.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 34px;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.hero h1 .grad {
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p { color: var(--muted); margin-top: 12px; font-size: 16px; max-width: 34em; }

footer.site {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  padding-bottom: 34px;
  color: var(--muted);
  font-size: 13.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
}

footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); }

@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  h1.page-title { font-size: 26px; }
  .hero h1 { font-size: 28px; }
}
