/* TiebaFrosted · GitHub Pages
   与 Hobo / Bifu 同一套工艺水准：PrismUI 深色底 + 贴吧蓝/青高光。 */

:root {
  --bg: #0b0e14;
  --surface: #131823;
  --surface-2: #1b2232;
  --border: #28334a;
  --border-soft: #1f283b;

  --fg: #f0f4fc;
  --fg-muted: #a2aec4;
  --fg-faint: #74819b;

  --accent: #4e9ef5;
  --accent-2: #6fd6e8;
  --accent-ink: #06182b;
  --accent-dim: #2f7ad1;

  --radius: 14px;
  --radius-lg: 22px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 92px;

  --wrap: 1120px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: radial-gradient(
      900px 520px at 82% -10%,
      rgba(78, 158, 245, 0.16),
      transparent 65%
    ),
    radial-gradient(
      700px 440px at 10% 10%,
      rgba(111, 214, 232, 0.08),
      transparent 60%
    ),
    var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: var(--space-2) var(--space-4);
  z-index: 100;
}

.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

.wrap {
  width: min(100% - var(--space-6), var(--wrap));
  margin-inline: auto;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 14, 20, 0.72);
  border-bottom: 1px solid var(--border-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--fg);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  border-radius: 9px;
}

.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-faint);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: var(--space-5);
  margin-left: auto;
  font-size: 14px;
}

.nav a {
  color: var(--fg-muted);
}

.nav a:hover {
  color: var(--fg);
  text-decoration: none;
}

.header-cta {
  font-size: 14px;
  padding: 9px 16px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #63aef8, #86e2f0);
}

.btn--ghost {
  border-color: var(--border);
  color: var(--fg);
  background: var(--surface);
}

.btn--ghost:hover {
  border-color: var(--accent-dim);
  background: var(--surface-2);
}

/* ---------- hero ---------- */

.hero {
  padding: var(--space-9) 0 var(--space-8);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-8);
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg-muted);
  margin: 0 0 var(--space-5);
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(111, 214, 232, 0.16);
}

.badge strong {
  color: var(--fg);
}

.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-5);
  font-weight: 800;
}

.hero h1 span {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 17px;
  color: var(--fg-muted);
  margin: 0 0 var(--space-6);
  max-width: 46ch;
}

.hero-lead code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  padding: 1px 6px;
  border-radius: 6px;
  color: var(--accent-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: var(--fg-faint);
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-shot {
  position: relative;
}

.hero-shot img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  max-height: 620px;
  width: auto;
  margin-inline: auto;
}

/* ---------- sections ---------- */

section {
  padding: var(--space-8) 0;
}

.section-head {
  margin-bottom: var(--space-6);
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-2);
  font-weight: 700;
}

.section-head p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 15px;
}

/* ---------- feature grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.feature:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.feature h3 {
  font-size: 16px;
  margin: 0 0 var(--space-2);
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.feature h3 svg {
  color: var(--accent);
  flex-shrink: 0;
}

.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ---------- screenshots ---------- */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}

.shot {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.shot:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.shot img {
  width: 100%;
  display: block;
  flex: 1;
  object-fit: cover;
  object-position: top;
}

.shot figcaption {
  padding: var(--space-3) var(--space-4);
  font-size: 13px;
  color: var(--fg-muted);
  border-top: 1px solid var(--border-soft);
  min-height: 46px;
  display: flex;
  align-items: center;
}

/* ---------- install ---------- */

.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.card h3 {
  margin: 0 0 var(--space-3);
  font-size: 16px;
  font-weight: 650;
}

.card ol,
.card ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--fg-muted);
  font-size: 14px;
}

.card li + li {
  margin-top: var(--space-2);
}

pre {
  background: #0a0d13;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: var(--space-4);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-muted);
  margin: var(--space-3) 0 0;
}

pre code {
  font-family: inherit;
}

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.note {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius);
  background: rgba(78, 158, 245, 0.08);
  border: 1px solid rgba(78, 158, 245, 0.22);
  font-size: 13.5px;
  color: var(--fg-muted);
}

.note strong {
  color: var(--fg);
}

/* ---------- changelog ---------- */

.log {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--border-soft);
}

.log li {
  position: relative;
  padding: 0 0 var(--space-5) var(--space-5);
}

.log li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(78, 158, 245, 0.14);
}

.log h3 {
  margin: 0 0 var(--space-2);
  font-size: 15px;
  font-weight: 650;
}

.log h3 span {
  color: var(--fg-faint);
  font-weight: 500;
  font-size: 13px;
  margin-left: var(--space-2);
}

.log ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--fg-muted);
  font-size: 14px;
}

.log li li + li {
  margin-top: 4px;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: var(--space-7) 0 var(--space-8);
  color: var(--fg-faint);
  font-size: 13.5px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
}

.site-footer a {
  color: var(--fg-muted);
}

.site-footer a:hover {
  color: var(--fg);
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .hero-shot {
    order: -1;
  }

  .hero-shot img {
    max-height: 460px;
  }

  .nav {
    display: none;
  }

  .hero {
    padding: var(--space-7) 0 var(--space-6);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
