/* SITE_ORIGIN = https://autojump.aizeten.me */

:root {
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-soft: #dbeafe;
  --pill: #60a5fa;
  --tag-bg: #f3f4f6;
  --tag-border: #e5e7eb;
  --line: #e5e7eb;
  --card-hover: #ffffff;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  --max: 1080px;
  --nav-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
    --accent-soft: #1e3a5f;
    --pill: #3b82f6;
    --tag-bg: #1e293b;
    --tag-border: #334155;
    --line: #1e293b;
    --card-hover: #1e293b;
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  }
}

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

html {
  scroll-behavior: smooth;
}

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

  * {
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav-h);
  background: var(--bg);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--nav-h);
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  white-space: nowrap;
}

.brand h1 span {
  color: var(--accent);
}

.slogan {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--pill);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  position: relative;
  color: var(--muted);
  font-size: 15px;
  padding: 8px 0;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.lang-switch {
  color: var(--muted);
  font-size: 14px;
}

.lang-switch [aria-current="true"] {
  color: var(--text);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  border: none;
}

.btn:hover {
  background: var(--accent-hover);
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible,
.nav a:focus-visible,
.lang-switch a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.intro {
  padding: 36px 0 12px;
  text-align: center;
}

.intro p {
  margin: 0 auto;
  max-width: 52rem;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 56px;
  padding: 28px 0 48px;
}

.feature {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 16px;
  border-radius: 16px;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.feature:hover {
  background: var(--card-hover);
  box-shadow: var(--shadow);
}

.feature svg {
  width: 44px;
  height: 44px;
  display: block;
}

.feature svg .icon-bg {
  fill: var(--accent-soft);
}

.feature-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.feature h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--tag-border);
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

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

.panel {
  padding: 8px 0 56px;
}

.panel h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
}

.panel p,
.panel li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.panel p {
  margin: 0 0 10px;
  max-width: 65ch;
}

.hosts {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hosts li {
  border: 1px solid var(--tag-border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.faq {
  display: grid;
  gap: 4px;
  max-width: 720px;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 16px;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  margin: 10px 0 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 36px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner a:hover {
  color: var(--text);
}

@media (max-width: 860px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .slogan {
    display: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--max), calc(100% - 32px));
  }

  .intro {
    padding-top: 24px;
    text-align: left;
  }
}
