/* ==========================================================================
   开源雷达 OpenRadar
   视觉：暖色编辑部 × 雷达仪表盘
   ========================================================================== */

:root {
  --bg: #0a0b0e;
  --bg-elev: #111318;
  --bg-soft: #161920;
  --card: #14161c;
  --card-2: #191c23;
  --ink: #f4efe6;
  --ink-soft: #d8d2c7;
  --muted: #a29b8f;
  --faint: #706b63;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);
  --accent: #ff6b35;
  --accent-2: #ff8a4c;
  --accent-ink: #1a0d07;
  --accent-soft: rgba(255, 107, 53, 0.14);
  --mint: #38e8c6;
  --mint-soft: rgba(56, 232, 198, 0.12);
  --yellow: #ffcf66;
  --danger: #ff5c72;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.22);
  --display: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --container: 1280px;
  --header-h: 72px;
  --radius: 22px;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f5f0e5;
  --bg-elev: #efe8db;
  --bg-soft: #ebe2d2;
  --card: #fffaf0;
  --card-2: #f9f2e5;
  --ink: #18140e;
  --ink-soft: #3d352a;
  --muted: #6f6658;
  --faint: #948a7a;
  --line: rgba(24, 20, 14, 0.12);
  --line-strong: rgba(24, 20, 14, 0.24);
  --accent: #e84a1c;
  --accent-2: #ff6b35;
  --accent-ink: #fff8f0;
  --accent-soft: rgba(232, 74, 28, 0.1);
  --mint: #0b8a79;
  --mint-soft: rgba(11, 138, 121, 0.1);
  --yellow: #a66a00;
  --shadow: 0 30px 70px rgba(63, 43, 12, 0.14);
  --shadow-soft: 0 12px 30px rgba(63, 43, 12, 0.09);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   背景
   -------------------------------------------------------------------------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(62rem 44rem at 6% -12%, rgba(255, 107, 53, 0.16), transparent 62%),
    radial-gradient(48rem 42rem at 102% -4%, rgba(56, 232, 198, 0.075), transparent 58%),
    radial-gradient(50rem 40rem at 72% 48%, rgba(124, 58, 237, 0.045), transparent 64%);
}

html[data-theme="light"] .ambient {
  background:
    radial-gradient(62rem 44rem at 6% -12%, rgba(232, 74, 28, 0.12), transparent 62%),
    radial-gradient(48rem 42rem at 102% -4%, rgba(11, 138, 121, 0.06), transparent 58%),
    radial-gradient(50rem 40rem at 72% 48%, rgba(124, 58, 237, 0.035), transparent 64%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

html[data-theme="light"] .grain {
  opacity: 0.045;
}

/* --------------------------------------------------------------------------
   通用
   -------------------------------------------------------------------------- */

.container,
.header-inner,
.hero,
.feed-section,
.manifesto,
.deploy-section,
.site-footer {
  width: min(100%, calc(var(--container) + 64px));
  margin-inline: auto;
  padding-inline: 32px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow-line {
  width: 30px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease, color 0.25s ease;
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 14px 34px rgba(255, 107, 53, 0.22);
}

.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 18px 44px rgba(255, 107, 53, 0.32);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-small {
  min-height: 38px;
  padding: 0 14px;
  border-color: var(--line-strong);
  font-size: 12px;
}

.btn-small:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-small svg {
  width: 14px;
  height: 14px;
}

.btn-small.is-loading svg {
  animation: spin 0.9s linear infinite;
}

.card-link {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   顶栏
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(1.25);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  color: var(--accent);
  box-shadow: inset 0 0 20px rgba(255, 107, 53, 0.08);
}

.brand-mark svg {
  width: 31px;
  height: 31px;
}

.brand-mark.small {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.brand-mark.small svg {
  width: 25px;
  height: 25px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: 0.02em;
}

.brand-text small {
  margin-top: 3px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  margin-right: 6px;
}

.main-nav a {
  position: relative;
  color: var(--muted);
  font-size: 13px;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: var(--accent);
  transition: right 0.25s ease;
}

.main-nav a:hover {
  color: var(--ink);
}

.main-nav a:hover::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--mint) 26%, transparent);
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--mint);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.live-chip i {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

.live-chip i::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--mint);
  border-radius: 50%;
  animation: ping 2.2s ease-out infinite;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--line-strong);
  background: var(--bg-elev);
  color: var(--ink);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

#themeBtn .icon-moon {
  display: none;
}

html[data-theme="light"] #themeBtn .icon-sun {
  display: none;
}

html[data-theme="light"] #themeBtn .icon-moon {
  display: block;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  align-items: center;
  gap: 48px;
  min-height: 620px;
  padding-top: 66px;
  padding-bottom: 40px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.1rem, 5.5vw, 5.7rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.hero h1 .mark {
  position: relative;
  display: inline-block;
  color: var(--accent);
  font-style: italic;
  letter-spacing: -0.02em;
}

.hero h1 .mark::after {
  content: "";
  position: absolute;
  left: 2%;
  right: -1%;
  bottom: 0.055em;
  height: 0.16em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--yellow));
  opacity: 0.32;
  transform: rotate(-1.5deg);
}

.nowrap {
  white-space: nowrap;
}

.hero-sub {
  max-width: 35em;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.2vw, 1.06rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 46px;
  padding-top: 2px;
}

.hero-stat {
  min-width: 112px;
  padding: 0 26px;
  border-left: 1px solid var(--line);
}

.hero-stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-stat strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-stat span {
  display: block;
  margin-top: 7px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* 雷达 ------------------------------------------------------------------- */

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.radar-wrap {
  position: relative;
  width: min(100%, 486px);
  aspect-ratio: 1;
  margin: 10px 0;
}

.radar {
  position: absolute;
  inset: 4%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(56, 232, 198, 0.08), transparent 52%),
    radial-gradient(circle at 50% 50%, #101319 0%, #0a0c10 72%);
  box-shadow:
    inset 0 0 100px rgba(0, 0, 0, 0.55),
    inset 0 0 46px rgba(255, 107, 53, 0.06),
    0 40px 120px rgba(0, 0, 0, 0.34),
    0 0 0 12px rgba(255, 255, 255, 0.012);
}

.radar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 28%);
  pointer-events: none;
}

.radar-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle, #000 25%, transparent 72%);
  opacity: 0.55;
}

.radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-1 {
  width: 33%;
  height: 33%;
}

.ring-2 {
  width: 58%;
  height: 58%;
  border-style: dashed;
  opacity: 0.8;
}

.ring-3 {
  width: 82%;
  height: 82%;
}

.radar-axis {
  position: absolute;
  background: rgba(255, 255, 255, 0.06);
}

.axis-x {
  top: 50%;
  left: 9%;
  right: 9%;
  height: 1px;
}

.axis-y {
  top: 9%;
  bottom: 9%;
  left: 50%;
  width: 1px;
}

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 292deg,
    rgba(255, 107, 53, 0.02) 316deg,
    rgba(255, 107, 53, 0.16) 348deg,
    rgba(255, 107, 53, 0.48) 359deg,
    rgba(255, 138, 76, 0.7) 360deg
  );
  animation: radar-spin 6.5s linear infinite;
  mask-image: radial-gradient(circle, #000 0%, #000 69%, transparent 71%);
}

.radar-sweep::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 1.5px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(255, 107, 53, 0.1), var(--accent));
  box-shadow: 0 0 22px 3px rgba(255, 107, 53, 0.3);
}

.radar-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 92px;
  height: 92px;
  padding-top: 24px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 107, 53, 0.35);
  border-radius: 50%;
  background: rgba(12, 14, 18, 0.9);
  box-shadow: 0 0 0 12px rgba(255, 107, 53, 0.035), 0 0 60px rgba(255, 107, 53, 0.18);
  color: #ffb18f;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.radar-core span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(255, 107, 53, 0.14), 0 0 22px var(--accent);
  animation: core-pulse 2.4s ease-in-out infinite;
}

.radar-blip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.radar-blip i {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 14px var(--mint);
}

.radar-blip i::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid var(--mint);
  border-radius: 50%;
  animation: ping 2.8s ease-out infinite;
}

.blip-1 {
  top: 23%;
  left: 61%;
}

.blip-2 {
  top: 54%;
  left: 21%;
  animation-delay: 0.5s;
}

.blip-2 i {
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}

.blip-2 i::after {
  border-color: var(--accent);
  animation-delay: 0.7s;
}

.blip-3 {
  top: 70%;
  left: 64%;
}

.blip-3 i {
  background: var(--yellow);
  box-shadow: 0 0 14px var(--yellow);
}

.blip-3 i::after {
  border-color: var(--yellow);
  animation-delay: 1.3s;
}

.blip-4 {
  top: 37%;
  left: 34%;
}

.blip-4 i {
  background: #a78bfa;
  box-shadow: 0 0 14px #a78bfa;
}

.blip-4 i::after {
  border-color: #a78bfa;
  animation-delay: 0.3s;
}

.radar-counter {
  position: absolute;
  left: 50%;
  bottom: 4.5%;
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 14px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(10, 12, 16, 0.82);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.46);
  font-size: 9.5px;
  white-space: nowrap;
}

.radar-counter strong {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
}

.float-card {
  position: absolute;
  z-index: 3;
  width: 196px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 15px;
  background: rgba(15, 17, 22, 0.82);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  color: #f4efe6;
  animation: float 6.5s ease-in-out infinite;
}

.float-a {
  top: 7%;
  left: -7%;
}

.float-b {
  right: -5%;
  bottom: 8%;
  animation-delay: -3.2s;
}

.float-label {
  display: block;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.float-card strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.float-card small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
}

/* 滚动条 ---------------------------------------------------------------- */

.ticker {
  display: flex;
  width: min(100%, calc(var(--container) + 64px));
  height: 50px;
  margin: 12px auto 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.ticker-label {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0 20px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.ticker-viewport {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  height: 100%;
  animation: marquee 46s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
}

.ticker-item i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mint);
}

.ticker-item strong {
  max-width: 190px;
  overflow: hidden;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  text-overflow: ellipsis;
}

.ticker-item span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9.5px;
}

/* --------------------------------------------------------------------------
   Feed
   -------------------------------------------------------------------------- */

.feed-section {
  padding-top: 76px;
  padding-bottom: 30px;
  scroll-margin-top: 80px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 26px;
}

.section-title h2,
.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.1rem, 3.4vw, 3.3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-title .eyebrow,
.section-head .eyebrow {
  margin-bottom: 13px;
}

.feed-status {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 5px;
}

.status-copy {
  text-align: right;
}

.status-copy span {
  display: block;
  color: var(--ink-soft);
  font-size: 11.5px;
}

.status-copy small {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
}

/* tabs ------------------------------------------------------------------ */

.tabs {
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 16px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-elev) 74%, transparent);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 116px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
}

html[data-theme="light"] .tab:hover {
  background: rgba(0, 0, 0, 0.035);
}

.tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.tab-label {
  font-size: 12.5px;
  font-weight: 650;
}

.tab-sub {
  color: currentColor;
  opacity: 0.55;
  font-family: var(--mono);
  font-size: 8.5px;
}

.tab-count {
  margin-left: auto;
  color: currentColor;
  opacity: 0.45;
  font-family: var(--mono);
  font-size: 9px;
}

/* filter bar ------------------------------------------------------------ */

.filter-bar {
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: color-mix(in srgb, var(--card) 84%, transparent);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(1.2);
}

.category-chips {
  display: flex;
  flex: 1;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-chips::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  height: 35px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chip:hover {
  background: var(--bg-elev);
  color: var(--ink);
}

.chip.active {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
}

.chip-count {
  opacity: 0.55;
  font-family: var(--mono);
  font-size: 8.5px;
}

.chip.active .chip-count {
  opacity: 0.7;
}

.chip-dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--dot, var(--accent));
  box-shadow: 0 0 7px color-mix(in srgb, var(--dot, var(--accent)) 55%, transparent);
}

.chip.active .chip-dot {
  background: currentColor;
  box-shadow: none;
}

.filter-tools {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 218px;
  height: 37px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elev);
  color: var(--faint);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box:focus-within {
  border-color: color-mix(in srgb, var(--accent) 65%, transparent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-box svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11.5px;
}

.search-box input::placeholder {
  color: var(--faint);
}

.search-box kbd {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
}

select {
  height: 37px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  appearance: none;
  background-color: var(--bg-elev);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8478' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  color: var(--ink-soft);
  font-size: 11.5px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

select:hover,
select:focus {
  border-color: var(--line-strong);
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 37px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elev);
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tool-btn:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.tool-btn svg {
  width: 14px;
  height: 14px;
}

.tool-btn.active {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: var(--accent-soft);
  color: var(--accent);
}

.active-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -6px 0 20px;
  padding-left: 4px;
  color: var(--muted);
  font-size: 11.5px;
}

.active-filter button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 11px;
}

/* Featured -------------------------------------------------------------- */

.featured-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  min-height: 382px;
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(30rem 20rem at 8% 0%, var(--accent-soft), transparent 60%),
    linear-gradient(135deg, var(--card), var(--card-2));
  box-shadow: var(--shadow);
  animation: fade-up 0.5s both;
}

.featured-cover {
  position: relative;
  min-height: 382px;
  overflow: hidden;
  background: #0b0d12;
}

.featured-cover img {
  position: relative;
  z-index: 1;
  width: calc(100% - 48px);
  height: calc(100% - 48px);
  margin: 24px;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.featured-card:hover .featured-cover img {
  transform: scale(1.02);
}

.featured-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%);
  pointer-events: none;
}

.featured-label {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 9, 12, 0.6);
  color: #ffd7c5;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  backdrop-filter: blur(12px);
}

.featured-label i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.featured-body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px 40px 34px 26px;
}

.featured-ghost-no {
  position: absolute;
  top: -42px;
  right: 14px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 10rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.035;
  pointer-events: none;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid color-mix(in srgb, var(--cat, var(--accent)) 32%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--cat, var(--accent)) 11%, transparent);
  color: var(--cat, var(--accent));
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.cat-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.featured-title {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.featured-title .owner {
  display: block;
  margin-bottom: 5px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.featured-tagline {
  position: relative;
  z-index: 1;
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.55;
}

.featured-intro {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  margin: 9px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.72;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 15px;
  margin-top: 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.featured-meta strong {
  color: var(--ink);
  font-weight: 650;
}

.featured-meta .up {
  color: var(--mint);
}

.featured-meta .lang-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
}

.featured-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.featured-hint {
  color: var(--faint);
  font-size: 10.5px;
}

/* Card grid ------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.repo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease,
    border-color 0.35s ease;
  animation: fade-up 0.45s both;
  animation-delay: calc(var(--i, 0) * 35ms);
}

.repo-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 40% 30%, rgba(255, 107, 53, 0.25), transparent 55%),
    #0b0d12;
}

.card-cover img {
  position: relative;
  z-index: 1;
  width: calc(100% - 26px);
  height: calc(100% - 26px);
  margin: 13px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.repo-card:hover .card-cover img {
  transform: scale(1.025);
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 45%);
  pointer-events: none;
}

.rank-badge {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(8, 9, 12, 0.65);
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

.rank-badge strong {
  color: var(--accent);
  font-weight: 700;
}

.cover-cat {
  position: absolute;
  bottom: 12px;
  left: 13px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(8, 9, 12, 0.72);
  color: rgba(255, 255, 255, 0.82);
  font-size: 9.5px;
  backdrop-filter: blur(8px);
}

.cover-cat i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cat, var(--accent));
  box-shadow: 0 0 8px var(--cat, var(--accent));
}

.cover-lang {
  position: absolute;
  right: 13px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(8, 9, 12, 0.72);
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--mono);
  font-size: 9px;
  backdrop-filter: blur(8px);
}

.cover-lang i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lang, #94a3b8);
}

.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(8, 9, 12, 0.5);
  color: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(9px);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.fav-btn:hover {
  transform: scale(1.08);
  color: var(--accent);
}

.fav-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.fav-btn svg {
  width: 14px;
  height: 14px;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px 19px 18px;
}

.card-kicker {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.card-owner {
  flex: 0 1 auto;
  overflow: hidden;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-title {
  flex: 0 1 auto;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-arrow {
  width: 13px;
  height: 13px;
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--faint);
  transform: translate(-3px, 3px);
  transition: color 0.2s ease, transform 0.25s ease;
}

.repo-card:hover .card-arrow {
  color: var(--accent);
  transform: translate(0, 0);
}

.card-tagline {
  display: -webkit-box;
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.89rem;
  font-weight: 600;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-desc {
  display: -webkit-box;
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-foot {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
}

.card-foot .stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-foot .stat svg {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}

.card-foot .stat strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.card-foot .up {
  color: var(--mint);
}

.editor-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 9px;
  white-space: nowrap;
}

.editor-tag i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.load-more-wrap .btn {
  min-width: 160px;
}

.empty-state {
  padding: 70px 20px 40px;
  text-align: center;
}

.empty-icon {
  color: var(--accent);
  font-family: var(--display);
  font-size: 3.2rem;
  line-height: 1;
}

.empty-state h3 {
  margin: 12px 0 4px;
  font-family: var(--display);
  font-size: 1.6rem;
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* 骨架屏 ---------------------------------------------------------------- */

.skeleton-wrap {
  display: grid;
  gap: 20px;
}

.skeleton {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.055) 45%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
}

.skeleton-feature {
  height: 382px;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.skeleton-card {
  height: 310px;
}

/* --------------------------------------------------------------------------
   Manifesto
   -------------------------------------------------------------------------- */

.manifesto {
  padding-top: 96px;
  padding-bottom: 92px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 70px;
}

.section-head-narrow {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: end;
  gap: 64px;
  margin-bottom: 52px;
}

.section-intro {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.manifesto-card {
  position: relative;
  padding: 30px 34px 12px 0;
  border-right: 1px solid var(--line);
}

.manifesto-card:last-child {
  border-right: 0;
  padding-right: 0;
}

.manifesto-card + .manifesto-card {
  padding-left: 34px;
}

.manifesto-no {
  position: absolute;
  top: 22px;
  right: 26px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.manifesto-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--card);
  color: var(--accent);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.manifesto-card:hover .manifesto-icon {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.manifesto-icon svg {
  width: 21px;
  height: 21px;
}

.manifesto-card h3 {
  margin: 20px 0 8px;
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.manifesto-card p {
  margin: 0;
  max-width: 30em;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Deploy
   -------------------------------------------------------------------------- */

.deploy-section {
  padding-bottom: 96px;
  scroll-margin-top: 70px;
}

.deploy-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 52px;
  overflow: hidden;
  padding: 52px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background:
    radial-gradient(28rem 22rem at 0% 0%, rgba(255, 107, 53, 0.2), transparent 62%),
    radial-gradient(30rem 24rem at 100% 100%, rgba(56, 232, 198, 0.08), transparent 60%),
    #101217;
  color: #f4efe6;
  box-shadow: var(--shadow);
}

.deploy-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at 30% 40%, #000, transparent 75%);
  pointer-events: none;
}

.deploy-copy {
  position: relative;
  z-index: 1;
  align-self: center;
}

.deploy-copy .eyebrow {
  color: rgba(255, 255, 255, 0.42);
}

.deploy-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.3rem, 3.6vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.deploy-copy > p {
  max-width: 34em;
  margin: 18px 0 0;
  color: rgba(244, 239, 230, 0.58);
  font-size: 0.9rem;
  line-height: 1.82;
}

.deploy-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 24px;
  color: rgba(244, 239, 230, 0.68);
  font-family: var(--mono);
  font-size: 9.5px;
}

.deploy-points span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.deploy-points i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38e8c6;
  box-shadow: 0 0 8px rgba(56, 232, 198, 0.6);
}

.deploy-terminal {
  position: relative;
  z-index: 1;
  align-self: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 17px;
  background: #080a0d;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.terminal-dots {
  display: flex;
  gap: 5px;
}

.terminal-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff6b5b;
  opacity: 0.75;
}

.terminal-dots i:nth-child(2) {
  background: #ffcf66;
}

.terminal-dots i:nth-child(3) {
  background: #38e8c6;
}

.terminal-tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.terminal-tabs button {
  padding: 5px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  font-size: 9.5px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.terminal-tabs button:hover {
  color: rgba(255, 255, 255, 0.8);
}

.terminal-tabs button.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.terminal-body {
  position: relative;
  min-height: 126px;
  padding: 20px 55px 20px 20px;
}

.terminal-body pre {
  margin: 0;
  overflow-x: auto;
  color: #d4cfc4;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.terminal-body pre::before {
  content: "$ ";
  color: #38e8c6;
}

.terminal-body pre code {
  font-family: inherit;
}

.copy-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  font-size: 9.5px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.copy-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.copy-btn svg {
  width: 11px;
  height: 11px;
}

.terminal-note {
  margin: 0;
  padding: 0 20px 18px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 10.5px;
  line-height: 1.65;
}

.deploy-extra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 13px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.34);
  font-size: 10.5px;
}

.deploy-dl {
  color: var(--accent-2);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 138, 76, 0.5);
}

.deploy-dl:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 30px;
  padding-bottom: 34px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand strong {
  display: block;
  font-family: var(--display);
  font-size: 15px;
}

.footer-brand small {
  display: block;
  margin-top: 1px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.footer-note {
  margin: 0;
  color: var(--faint);
  font-size: 10px;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
}

.footer-links a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 30px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 8, 0.72);
  backdrop-filter: blur(12px);
  animation: fade-in 0.25s both;
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
  animation: modal-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  scrollbar-width: thin;
}

.modal-close {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: grid;
  place-items: center;
  float: right;
  width: 38px;
  height: 38px;
  margin: 16px 16px -54px 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(8, 9, 12, 0.6);
  color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
  background: var(--accent);
  color: var(--accent-ink);
  transform: rotate(90deg);
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

.modal-hero {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  background:
    radial-gradient(30rem 24rem at 30% 20%, var(--accent-soft), transparent 60%),
    #0b0d12;
}

.modal-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.modal-media-tag {
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 2;
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(8, 9, 12, 0.66);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
}

.modal-hero-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 24px 28px 104px;
  object-fit: contain;
  border-radius: 14px;
}

.modal-media-blur,
.cover-blur {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(30px) saturate(1.2);
  opacity: 0.22;
  pointer-events: none;
}

html[data-theme="light"] .card-cover,
html[data-theme="light"] .featured-cover,
html[data-theme="light"] .modal-hero {
  background:
    radial-gradient(circle at 42% 28%, var(--accent-soft), transparent 58%),
    var(--bg-soft);
}

html[data-theme="light"] .card-cover img {
  box-shadow: 0 8px 18px rgba(63, 43, 12, 0.13);
}

html[data-theme="light"] .featured-cover img {
  box-shadow: 0 14px 28px rgba(63, 43, 12, 0.15);
}

html[data-theme="light"] .modal-media-blur,
html[data-theme="light"] .cover-blur {
  opacity: 0.12;
}

.modal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 7, 10, 0.22) 0%, rgba(6, 7, 10, 0.08) 36%, var(--card) 100%),
    linear-gradient(90deg, rgba(6, 7, 10, 0.35), transparent 60%);
}

.modal-hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 30px 40px 26px;
}

.modal-hero-content .cat-pill {
  backdrop-filter: blur(10px);
}

.modal-title {
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.modal-title .owner {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.modal-tagline {
  max-width: 46em;
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 550;
  line-height: 1.6;
}

.modal-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.modal-hero-meta strong {
  color: var(--ink);
}

.modal-hero-meta .up {
  color: var(--mint);
}

.modal-hero-meta .lang-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
}

.modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 42px;
  padding: 8px 40px 36px;
}

.modal-main {
  min-width: 0;
}

.modal-section {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.modal-section:last-child {
  border-bottom: 0;
}

.modal-section h4,
.modal-related h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 9px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.modal-section h4::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--accent);
}

.modal-section p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.85;
}

.modal-section p.lede {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.6;
  letter-spacing: -0.015em;
}

.modal-section .muted {
  color: var(--muted);
}

.guide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.guide-kind,
.guide-level {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.02em;
}

.guide-kind {
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
}

.guide-level {
  border: 1px solid transparent;
  font-weight: 600;
}

.guide-level::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.guide-level.lv1 {
  border-color: rgba(56, 232, 198, 0.35);
  background: var(--mint-soft);
  color: var(--mint);
}

.guide-level.lv2 {
  border-color: rgba(255, 207, 102, 0.32);
  background: rgba(255, 207, 102, 0.12);
  color: var(--yellow);
}

.guide-level.lv3 {
  border-color: rgba(255, 92, 114, 0.32);
  background: rgba(255, 92, 114, 0.12);
  color: var(--danger);
}

.guide-note {
  color: var(--ink-soft) !important;
  font-size: 12px !important;
}

.guide-prereq {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  list-style: none;
}

.guide-prereq li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.guide-prereq strong {
  color: var(--ink-soft);
  font-size: 11px;
  white-space: nowrap;
}

.guide-docs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.guide-docs-tip {
  color: var(--faint);
  font-size: 10px;
}

.guide-docs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-docs a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 10px;
  transition: border-color 0.2s, color 0.2s;
}

.guide-docs a:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

.guide-docs a svg {
  width: 9px;
  height: 9px;
  opacity: 0.6;
}

.guide-alt {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}

.guide-alt summary {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
  list-style: none;
}

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

.guide-alt summary::before {
  content: "+ ";
  color: var(--accent-2);
}

.guide-alt[open] summary::before {
  content: "− ";
}

.guide-alt-block {
  position: relative;
  margin: 0 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: #0b0d12;
}

.guide-alt-label {
  display: block;
  padding: 10px 14px 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.guide-alt-block pre {
  margin: 0;
  padding: 8px 52px 14px 14px;
  overflow-x: auto;
  color: #d9d3c7;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.guide-alt-block .copy-mini {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
}

.guide-alt-block .copy-mini:hover {
  color: #fff;
}

.guide-alt-block .copy-mini svg {
  width: 10px;
  height: 10px;
}

.guide-source {
  margin-top: 10px !important;
  color: var(--faint) !important;
  font-size: 10px !important;
}

.quickstart {
  position: relative;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: #0b0d12;
}

.quickstart pre {
  margin: 0;
  padding: 16px 52px 16px 16px;
  overflow-x: auto;
  color: #d9d3c7;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.quickstart .copy-mini {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
}

.quickstart .copy-mini:hover {
  color: #fff;
}

.quickstart .copy-mini svg {
  width: 10px;
  height: 10px;
}

.modal-aside {
  align-self: start;
  padding-top: 20px;
}

.aside-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-elev);
}

.aside-owner {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.aside-avatar {
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 10px;
  object-fit: cover;
  background: var(--card-2);
}

.aside-owner strong {
  display: block;
  font-size: 12px;
  line-height: 1.3;
}

.aside-owner small {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
}

.meta-list {
  margin: 8px 0 14px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  color: var(--muted);
  font-size: 10.5px;
}

.meta-row strong {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  text-align: right;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 16px;
}

.topic-tags span {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
}

.aside-actions {
  display: grid;
  gap: 8px;
}

.aside-actions .btn {
  width: 100%;
  min-height: 40px;
  font-size: 11.5px;
}

.aside-share {
  display: flex;
  gap: 8px;
}

.aside-share .fav-btn {
  position: static;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-color: var(--line);
  background: var(--bg);
  color: var(--muted);
}

.aside-share .fav-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.aside-share .tool-btn {
  flex: 1;
  justify-content: center;
  height: 36px;
  font-size: 10.5px;
}

.aside-avatar {
  display: block;
}

span.aside-avatar {
  background:
    radial-gradient(circle at 30% 25%, var(--accent-soft), transparent 55%),
    var(--card-2);
}

.modal-related {
  padding: 0 40px 38px;
}

.modal-related h4 {
  margin-bottom: 12px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.related-card {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg-elev);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.related-card img {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
}

.related-card div {
  min-width: 0;
}

.related-card strong {
  display: block;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-card small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--faint);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  padding: 11px 18px;
  transform: translate(-50%, 16px);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-soft);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --------------------------------------------------------------------------
   动画
   -------------------------------------------------------------------------- */

@keyframes radar-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ping {
  0% {
    transform: scale(0.55);
    opacity: 0.8;
  }
  70%,
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

@keyframes core-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(255, 107, 53, 0.14), 0 0 22px var(--accent);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(255, 107, 53, 0.04), 0 0 30px var(--accent);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 5.5vw, 4.7rem);
  }

  .float-a {
    left: -2%;
  }

  .float-b {
    right: -1%;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-bar {
    flex-wrap: wrap;
  }

  .category-chips {
    flex-basis: 100%;
  }

  .filter-tools {
    width: 100%;
  }

  .search-box {
    flex: 1;
    width: auto;
  }

  .modal-body {
    gap: 30px;
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 64px;
  }

  .container,
  .header-inner,
  .hero,
  .feed-section,
  .manifesto,
  .deploy-section,
  .site-footer {
    padding-inline: 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 48px;
    padding-bottom: 24px;
    gap: 8px;
  }

  .hero-copy {
    max-width: 620px;
  }

  .hero h1 {
    font-size: clamp(3rem, 8vw, 4.8rem);
  }

  .hero-visual {
    margin-top: 8px;
  }

  .radar-wrap {
    width: min(100%, 430px);
  }

  .main-nav {
    display: none;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-cover {
    min-height: 300px;
    aspect-ratio: 16 / 8;
  }

  .featured-cover img {
    width: calc(100% - 32px);
    height: calc(100% - 32px);
    margin: 16px;
  }

  .featured-cover::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%);
  }

  .featured-body {
    padding: 8px 30px 30px;
  }

  .featured-ghost-no {
    top: -30px;
    font-size: 8rem;
  }

  .section-head-narrow {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-intro {
    max-width: 44em;
  }

  .manifesto-card {
    padding-right: 22px;
  }

  .manifesto-card + .manifesto-card {
    padding-left: 22px;
  }

  .deploy-card {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 38px;
  }

  .modal {
    padding: 18px;
  }

  .modal-panel {
    max-height: calc(100vh - 36px);
  }

  .modal-body {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 4px 30px 28px;
  }

  .modal-aside {
    padding-top: 0;
    padding-bottom: 20px;
  }

  .aside-card {
    max-width: 420px;
  }

  .modal-related {
    padding: 0 30px 30px;
  }
}

@media (max-width: 720px) {
  .container,
  .header-inner,
  .hero,
  .feed-section,
  .manifesto,
  .deploy-section,
  .site-footer {
    padding-inline: 18px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text small {
    font-size: 7px;
  }

  .header-actions {
    gap: 5px;
  }

  .live-chip {
    display: none;
  }

  .icon-btn {
    width: 35px;
    height: 35px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 11vw, 3.8rem);
    line-height: 1.05;
  }

  .hero-sub {
    margin-top: 18px;
    font-size: 0.93rem;
  }

  .hero-actions {
    flex-wrap: wrap;
    margin-top: 24px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 0;
    margin-top: 32px;
  }

  .hero-stat {
    min-width: 0;
    padding: 0 18px;
  }

  .hero-stat:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .hero-stat strong {
    font-size: 1.6rem;
  }

  .hero-visual {
    margin-top: 20px;
  }

  .radar-wrap {
    width: min(100%, 360px);
  }

  .float-card {
    display: none;
  }

  .radar-blip {
    font-size: 7px;
  }

  .radar-core {
    width: 74px;
    height: 74px;
    padding-top: 18px;
    font-size: 7px;
  }

  .radar-core span {
    width: 6px;
    height: 6px;
  }

  .radar-counter {
    bottom: 2%;
    font-size: 8px;
  }

  .ticker {
    height: 44px;
    margin-top: 8px;
  }

  .ticker-label {
    padding: 0 12px;
    font-size: 8px;
  }

  .ticker-item {
    padding: 0 14px;
  }

  .feed-section {
    padding-top: 52px;
  }

  .section-head {
    align-items: flex-start;
    gap: 14px;
  }

  .section-title h2,
  .section-head h2 {
    font-size: clamp(1.9rem, 7vw, 2.6rem);
  }

  .feed-status {
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
    padding-top: 3px;
  }

  .status-copy {
    display: none;
  }

  .btn-small {
    min-height: 34px;
    padding: 0 11px;
    font-size: 10.5px;
  }

  .tabs {
    width: 100%;
  }

  .tab {
    flex: 1 0 auto;
    min-width: 96px;
    padding: 8px 12px;
  }

  .tab-sub {
    display: none;
  }

  .filter-bar {
    top: calc(var(--header-h) + 5px);
    padding: 8px;
  }

  .filter-tools {
    flex-wrap: wrap;
  }

  .search-box {
    flex-basis: 100%;
    order: -1;
  }

  select {
    flex: 1;
    min-width: 0;
  }

  .tool-btn {
    flex: 0 0 auto;
  }

  .featured-cover {
    min-height: 220px;
    aspect-ratio: 16 / 9;
  }

  .featured-cover img {
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    margin: 12px;
    border-radius: 10px;
  }

  .featured-body {
    padding: 6px 20px 24px;
  }

  .featured-title {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .featured-intro {
    -webkit-line-clamp: 4;
  }

  .featured-actions .btn {
    flex: 1;
  }

  .featured-hint {
    display: none;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

  .skeleton-feature {
    height: 330px;
  }

  .repo-card {
    border-radius: 18px;
  }

  .card-body {
    padding: 15px 16px 16px;
  }

  .manifesto {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .section-head-narrow {
    margin-bottom: 30px;
  }

  .manifesto-grid {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .manifesto-card {
    padding: 24px 0;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .manifesto-card + .manifesto-card {
    padding-left: 0;
  }

  .manifesto-card:last-child {
    padding-bottom: 0;
  }

  .deploy-section {
    padding-bottom: 62px;
  }

  .deploy-card {
    padding: 26px 20px 22px;
    border-radius: 22px;
  }

  .deploy-copy h2 {
    font-size: 2.1rem;
  }

  .deploy-terminal {
    border-radius: 13px;
  }

  .terminal-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .terminal-tabs {
    width: 100%;
  }

  .terminal-tabs button {
    flex: 1;
  }

  .terminal-body {
    padding: 16px 16px 52px;
    min-height: 140px;
  }

  .terminal-body pre {
    font-size: 11px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-note {
    text-align: left;
  }

  .modal {
    padding: 0;
    place-items: stretch;
  }

  .modal-panel {
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .modal-close {
    margin: 12px 12px -50px 0;
  }

  .modal-hero {
    min-height: 270px;
  }

  .modal-hero-content {
    padding: 24px 20px 20px;
  }

  .modal-title {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .modal-body {
    padding: 2px 20px 24px;
  }

  .modal-section {
    padding: 16px 0;
  }

  .modal-section p {
    font-size: 0.92rem;
  }

  .modal-section p.lede {
    font-size: 1.1rem;
  }

  .modal-related {
    padding: 0 20px 28px;
  }

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

  .toast {
    bottom: 18px;
    max-width: calc(100vw - 32px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 2.55rem;
  }

  .radar-wrap {
    width: 310px;
  }

  .brand-text small {
    display: none;
  }

  .tab-count {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   减少动态
   -------------------------------------------------------------------------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
