/* ljzmw.com · 午夜蓝 / 低亮银青 · 中央内容卡 + 外缘稀疏斜向流星 */

:root {
  --ink-0: #04070f;
  --ink-1: #060b18;
  --ink-2: #0a1427;
  --panel: rgba(12, 22, 42, 0.8);
  --panel-solid: #0c162a;
  --line: rgba(142, 184, 200, 0.18);
  --line-soft: rgba(142, 184, 200, 0.1);
  --silver: #ccd9e2;
  --silver-dim: #8fa2b5;
  --cyan: #79c6cf;
  --cyan-dim: rgba(121, 198, 207, 0.55);
  --radius-l: 20px;
  --radius-s: 12px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100%;
  padding: clamp(16px, 4vw, 56px) clamp(12px, 4vw, 40px);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--silver);
  background-color: var(--ink-1);
  background-image:
    radial-gradient(120% 80% at 12% -10%, rgba(38, 74, 116, 0.5) 0%, rgba(6, 11, 24, 0) 58%),
    radial-gradient(90% 70% at 92% 8%, rgba(60, 120, 132, 0.26) 0%, rgba(6, 11, 24, 0) 60%),
    linear-gradient(176deg, var(--ink-2) 0%, var(--ink-1) 45%, var(--ink-0) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* ---------- 背景层 ---------- */

.meteor-sky,
.horizon {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* 动画不可用时仍保留的静态斜向光痕 */
.horizon {
  background-image:
    linear-gradient(118deg, rgba(121, 198, 207, 0) 44%, rgba(121, 198, 207, 0.1) 50%, rgba(121, 198, 207, 0) 56%),
    linear-gradient(62deg, rgba(150, 190, 220, 0) 72%, rgba(150, 190, 220, 0.07) 77%, rgba(150, 190, 220, 0) 82%);
  background-size: 220% 220%, 220% 220%;
  background-position: 6% 0%, 96% 100%;
  background-repeat: no-repeat;
  opacity: 0.9;
}

/* ---------- 版面 ---------- */

.stage {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.panel {
  width: 100%;
  max-width: 1060px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow:
    0 0 0 1px rgba(4, 8, 16, 0.6),
    0 30px 80px -40px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(198, 224, 232, 0.07);
  padding: clamp(18px, 3.4vw, 40px);
}

/* ---------- 头部 ---------- */

.panel-head {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  flex-wrap: wrap;
  padding-bottom: clamp(16px, 2.6vw, 26px);
  border-bottom: 1px solid var(--line-soft);
}

.mark {
  margin: 0;
  flex: none;
  width: clamp(52px, 9vw, 66px);
  height: clamp(52px, 9vw, 66px);
  border-radius: 16px;
  background: #f4f7f9;
  border: 1px solid rgba(198, 224, 232, 0.35);
  box-shadow: 0 0 22px -6px rgba(121, 198, 207, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mark-img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  display: block;
}

.head-text {
  flex: 1 1 180px;
  min-width: 0;
}

h1 {
  margin: 0;
  font-size: clamp(1.5rem, 4.6vw, 2.15rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #eaf2f6;
  text-shadow: 0 0 26px rgba(121, 198, 207, 0.28);
}

.head-site {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan-dim);
}

/* ---------- 背景开关 ---------- */

.bg-toggle {
  flex: none;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font: inherit;
  font-size: 0.85rem;
  line-height: 1;
  color: var(--silver);
  background: rgba(10, 20, 39, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.bg-toggle:hover { border-color: rgba(121, 198, 207, 0.55); color: #eaf2f6; }

.bg-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(121, 198, 207, 0.9);
}

.bg-toggle[aria-pressed="false"] .bg-dot {
  background: var(--silver-dim);
  box-shadow: none;
}

/* ---------- 正文 ---------- */

.panel-body { display: block; }

.lead {
  margin: clamp(18px, 2.8vw, 28px) 0 0;
  max-width: 62ch;
  font-size: clamp(0.95rem, 2.6vw, 1.02rem);
  color: #b7c7d4;
  border-left: 2px solid var(--cyan-dim);
  padding-left: clamp(12px, 2vw, 18px);
}

.sec-title {
  position: relative;
  margin: clamp(26px, 4vw, 40px) 0 clamp(14px, 2.2vw, 20px);
  font-size: clamp(1.02rem, 3vw, 1.18rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #e3edf2;
  padding-left: 16px;
}

.sec-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 0.95em;
  background: linear-gradient(160deg, var(--cyan), rgba(121, 198, 207, 0.15));
  transform: skewX(-18deg);
}

/* ---------- 13 个入口 ---------- */

.entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: clamp(10px, 1.4vw, 14px);
}

.entry a {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  height: 100%;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--silver);
  background: linear-gradient(150deg, rgba(18, 32, 56, 0.9), rgba(10, 19, 36, 0.9));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-s);
  overflow: hidden;
  transition: border-color 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.entry a::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -70%;
  width: 60%;
  height: 220%;
  background: linear-gradient(90deg, rgba(121, 198, 207, 0) 0%, rgba(121, 198, 207, 0.16) 50%, rgba(121, 198, 207, 0) 100%);
  transform: rotate(18deg) translateX(0);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.55s ease;
  pointer-events: none;
}

.entry a:hover,
.entry a:focus-visible {
  border-color: rgba(121, 198, 207, 0.5);
  background: linear-gradient(150deg, rgba(24, 43, 72, 0.95), rgba(12, 23, 43, 0.95));
  transform: translateY(-2px);
}

.entry a:hover::after,
.entry a:focus-visible::after {
  opacity: 1;
  transform: rotate(18deg) translateX(320%);
}

.entry a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.no {
  grid-row: 1 / span 2;
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--cyan-dim);
  letter-spacing: 0.04em;
}

.name {
  font-size: 1rem;
  font-weight: 600;
  color: #e6eff4;
  word-break: break-word;
}

.host {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--silver-dim);
  word-break: break-all;
}

/* ---------- 辅助内容 ---------- */

.note-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(10px, 1.6vw, 16px);
}

.note {
  padding: 16px 18px;
  font-size: 0.93rem;
  color: #b3c3d1;
  background: rgba(8, 16, 31, 0.7);
  border: 1px solid var(--line-soft);
  border-left: 2px solid rgba(121, 198, 207, 0.4);
  border-radius: 10px;
}

.note strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  color: #dfeaf0;
}

/* ---------- 页脚 ---------- */

.panel-foot {
  margin-top: clamp(26px, 4vw, 40px);
  padding-top: clamp(14px, 2.2vw, 20px);
  border-top: 1px solid var(--line-soft);
}

.disclaimer {
  margin: 0;
  font-size: 0.86rem;
  color: var(--silver-dim);
}

.copyright {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(143, 162, 181, 0.8);
}

/* ---------- 响应式 ---------- */

@media (max-width: 720px) {
  /* 窄屏卡片两侧留白很小，卡面稍透一些让流星仍能被看见 */
  .panel { background: rgba(12, 22, 42, 0.74); }
  .panel-head { gap: 12px; }
  .bg-toggle { margin-left: auto; }
  .entry-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  body { padding: 14px 12px 28px; line-height: 1.7; }
  .panel { border-radius: 16px; }
  .head-text { flex-basis: 120px; }
  .entry-list { grid-template-columns: 1fr; }
  .entry a { padding: 12px 14px; }
  .note { padding: 13px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Button labels remain the exact keyword text. */
.entry a { display: flex; align-items: center; }
.name { flex: 1 1 auto; }
