/*
 * 一个页面，一个样式文件，一次请求。
 * 没有框架、没有组件库、没有 hydration —— 这个站的全部意义就是「快」。
 */

:root {
  --ink: #08090d;
  --panel: #11141c;
  --panel-2: #161a24;
  --line: #232936;
  --fg: #eef1f7;
  --muted: #8b95a9;
  --accent: #7cacff;
  --accent-dim: #2a3a55;
}

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

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 500px at 50% -10%, #16203a 0%, transparent 70%),
    var(--ink);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

/* ── 布局 ─────────────────────────────────────── */

.stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.card-wrap {
  width: 100%;
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.sub {
  margin: 0 0 32px;
  color: var(--muted);
}

/* ── 入口列表 ─────────────────────────────────── */

.entries {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.entry {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.entry:hover {
  border-color: var(--accent-dim);
  background: var(--panel-2);
}

.entry-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.entry-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 6px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.entry-name {
  font-weight: 600;
}

.entry-note {
  font-size: 13px;
  color: var(--muted);
}

.entry-url {
  font-size: 15px;
  color: var(--fg);
  overflow-wrap: anywhere;
}

.entry-go {
  font-size: 14px;
  color: var(--accent);
}

/* 链接整块可点 */
.entry-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.entry-link:hover {
  text-decoration: none;
}

/* A 行：复制而不是跳转 */
.entry-copy {
  gap: 10px;
}

.entry-btn {
  align-self: flex-start;
  background: var(--accent-dim);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 18px;
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.entry-btn:hover {
  background: #34496b;
}

.hint {
  margin: 24px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ── 页脚 ─────────────────────────────────────── */

.foot {
  padding: 0 20px 28px;
  text-align: center;
}

.foot p {
  margin: 0;
  font-size: 12px;
  color: #5c6478;
}

@media (max-width: 420px) {
  h1 {
    font-size: 26px;
  }
  .stage {
    padding: 32px 16px;
  }
  .entry {
    padding: 14px 15px;
  }
}
