:root {
  --bg: #020b0e;
  --bg-elevated: #07151a;
  --panel: #0a1c22;
  --panel-hover: #0e242b;
  --line: #163039;
  --ink: #e6eef0;
  --ink-soft: #7f969e;
  --cyan: #1a6b7a;
  --cyan-bright: #2a9aab;
  --yellow: #e8bc1a;
  --yellow-text: #1a1400;
  --danger: #d4655c;
  --radius: 14px;
  --font-display: "Bricolage Grotesque", "Avenir Next", sans-serif;
  --font-body: "Figtree", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--bg);
  overflow-x: hidden;
}

.atmosphere {
  display: none;
}

.page {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 3.5rem) 0 2.5rem;
}

.verify-panel {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.verify-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.verify-hint {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.verify-widget {
  min-height: 65px;
}

body.is-gated .gated-content {
  display: none;
}

body.is-verified .verify-panel {
  border-color: rgba(42, 154, 171, 0.35);
}

.status-panel {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.status-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
}

.status-dot.is-ok {
  background: var(--cyan-bright);
}

.status-dot.is-error {
  background: var(--danger);
}

.status-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.recommend {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 1.2rem;
  align-items: center;
  margin-top: 0.95rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(232, 188, 26, 0.35);
  border-radius: 12px;
  background: var(--bg-elevated);
}

.recommend-meta {
  min-width: 0;
}

.recommend-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
}

.recommend-name {
  margin: 0.3rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.4vw, 1.45rem);
  font-weight: 800;
  color: var(--ink);
}

.recommend-label {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cyan-bright);
}

.recommend-url {
  margin: 0.3rem 0 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
  word-break: break-all;
}

.recommend-note {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.recommend-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.8rem;
  min-height: 2.85rem;
  padding: 0.65rem 1.15rem;
  border: 0;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--yellow-text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.recommend-btn:hover,
.recommend-btn:focus-visible {
  filter: brightness(1.08);
  outline: none;
}

.entries {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.2rem;
}

.group-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.entry-list {
  display: grid;
  gap: 0.65rem;
}

.entry {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem 1rem;
  align-items: center;
  width: 100%;
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.entry:hover {
  background: var(--panel-hover);
  border-color: #1e3d48;
}

.entry.is-recommended {
  border-color: rgba(232, 188, 26, 0.4);
  background: var(--bg-elevated);
}

.entry.is-checking,
.entry.is-down {
  opacity: 0.7;
}

.entry-meta {
  min-width: 0;
}

.entry-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}

.entry-name {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
}

.entry-url {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  word-break: break-all;
}

.entry-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  min-width: 7rem;
}

.entry-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.5rem;
  border-radius: 6px;
  background: rgba(42, 154, 171, 0.12);
  color: var(--cyan-bright);
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
}

.entry.is-recommended .entry-badge {
  background: rgba(232, 188, 26, 0.14);
  color: var(--yellow);
}

.entry.is-down .entry-badge {
  background: rgba(212, 101, 92, 0.14);
  color: var(--danger);
}

.entry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.entry-btn:hover,
.entry-btn:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan-bright);
  outline: none;
}

.entry.is-recommended .entry-btn {
  min-height: 2.55rem;
  border: 0;
  background: var(--yellow);
  color: var(--yellow-text);
}

.entry.is-recommended .entry-btn:hover,
.entry.is-recommended .entry-btn:focus-visible {
  filter: brightness(1.08);
  color: var(--yellow-text);
}

.bookmark {
  margin-top: 1.5rem;
  padding: 1.1rem 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.bookmark-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.bookmark-hint {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.bookmark-steps {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.5;
}

.bookmark-steps kbd {
  display: inline-block;
  padding: 0.06rem 0.35rem;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--bg);
  color: var(--yellow);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82em;
}

.footer {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.footer code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--cyan-bright);
}

@media (max-width: 560px) {
  .recommend {
    grid-template-columns: 1fr;
  }

  .recommend-btn {
    width: 100%;
  }

  .entry {
    grid-template-columns: 1fr;
  }

  .entry-actions {
    min-width: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
  }

  .entry-btn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
