:root {
  --common-background: 243, 247, 251;
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --muted-hsl: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --popover: 0 0% 100%;
  --popover-foreground: 240 10% 3.9%;
  --card-hsl: 0 0% 100%;
  --card-foreground: 240 10% 3.9%;
  --border: 240 5.9% 90%;
  --input-hsl: 240 5.9% 90%;
  --primary-hsl: 142.1 76.2% 36.3%;
  --primary-foreground: 355.7 100% 97.3%;
  --secondary: 240 4.8% 95.9%;
  --secondary-foreground: 240 5.9% 10%;
  --accent: 240 4.8% 95.9%;
  --accent-foreground: 240 5.9% 10%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --ring: 142.1 76.2% 36.3%;

  --bg: rgb(var(--common-background));
  --aurora: radial-gradient(80% 80% at 50% -20%, #16a34a4d, #0000),
    radial-gradient(50% 50% at 80% center, #f9731626, #0000),
    radial-gradient(50% 50% at 20% 80%, #22c55e33, #0000);
  --card: hsl(var(--card-hsl));
  --text: hsl(var(--foreground));
  --muted: hsl(var(--muted-foreground));
  --line: hsl(var(--border));
  --input: hsl(var(--input-hsl));
  --primary: hsl(var(--primary-hsl));
  --top-bg: rgba(255, 255, 255, 0.72);
  --shadow: 0 10px 25px rgba(20, 25, 36, 0.04);
  --radius: 1rem;
  --r-xs: calc(var(--radius) * 0.25);
  --r-sm: calc(var(--radius) * 0.5);
  --r-md: calc(var(--radius) * 0.75);
  --r-lg: var(--radius);
}

html.dark {
  --bg: #0e1118;
  --aurora: radial-gradient(65% 55% at 50% -5%, #16321f 0%, #121923 45%, #0e1118 100%);
  --card: #161c26;
  --text: #ecf2ff;
  --muted: #8d96a8;
  --line: #283244;
  --input: #2a3448;
  --primary: #31bf68;
  --top-bg: rgba(13, 17, 24, 0.66);
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.26);
}

.theme-green {
  --common-background: 243, 247, 251;
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --muted-hsl: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --popover: 0 0% 100%;
  --popover-foreground: 240 10% 3.9%;
  --card-hsl: 0 0% 100%;
  --card-foreground: 240 10% 3.9%;
  --border: 240 5.9% 90%;
  --input-hsl: 240 5.9% 90%;
  --primary-hsl: 142.1 76.2% 36.3%;
  --primary-foreground: 355.7 100% 97.3%;
  --secondary: 240 4.8% 95.9%;
  --secondary-foreground: 240 5.9% 10%;
  --accent: 240 4.8% 95.9%;
  --accent-foreground: 240 5.9% 10%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --ring: 142.1 76.2% 36.3%;
}

/* Theme color -> background aurora mapping (light) */
html.light[data-theme-color="zinc"] {
  --aurora: radial-gradient(80% 80% at 50% -20%, #71717a4d, #0000), radial-gradient(50% 50% at 80% center, #f9731626, #0000),
    radial-gradient(50% 50% at 20% 80%, #a1a1aa33, #0000);
}
html.light[data-theme-color="red"] {
  --aurora: radial-gradient(80% 80% at 50% -20%, #dc26264d, #0000), radial-gradient(50% 50% at 80% center, #3b82f626, #0000),
    radial-gradient(50% 50% at 20% 80%, #ef444433, #0000);
}
html.light[data-theme-color="rose"] {
  --aurora: radial-gradient(80% 80% at 50% -20%, #e11d484d, #0000), radial-gradient(50% 50% at 80% center, #3b82f626, #0000),
    radial-gradient(50% 50% at 20% 80%, #f43f5e33, #0000);
}
html.light[data-theme-color="orange"] {
  --aurora: radial-gradient(80% 80% at 50% -20%, #f973164d, #0000), radial-gradient(50% 50% at 80% center, #3b82f626, #0000),
    radial-gradient(50% 50% at 20% 80%, #fb923c33, #0000);
}
html.light[data-theme-color="green"] {
  --aurora: radial-gradient(80% 80% at 50% -20%, #16a34a4d, #0000), radial-gradient(50% 50% at 80% center, #f9731626, #0000),
    radial-gradient(50% 50% at 20% 80%, #22c55e33, #0000);
}
html.light[data-theme-color="blue"] {
  --aurora: radial-gradient(80% 80% at 50% -20%, #2563eb4d, #0000), radial-gradient(50% 50% at 80% center, #f9731626, #0000),
    radial-gradient(50% 50% at 20% 80%, #3b82f633, #0000);
}
html.light[data-theme-color="yellow"] {
  --aurora: radial-gradient(80% 80% at 50% -20%, #eab3084d, #0000), radial-gradient(50% 50% at 80% center, #7c3aed26, #0000),
    radial-gradient(50% 50% at 20% 80%, #facc1533, #0000);
}
html.light[data-theme-color="violet"] {
  --aurora: radial-gradient(80% 80% at 50% -20%, #7c3aed4d, #0000), radial-gradient(50% 50% at 80% center, #f9731626, #0000),
    radial-gradient(50% 50% at 20% 80%, #8b5cf633, #0000);
}

/* Theme color -> background aurora mapping (dark) */
html.dark[data-theme-color="zinc"] {
  --aurora: radial-gradient(80% 80% at 50% -20%, #71717a4d, #0000), radial-gradient(50% 50% at 80% center, #f9731626, #0000),
    radial-gradient(50% 50% at 20% 80%, #a1a1aa33, #0000);
}
html.dark[data-theme-color="red"] {
  --aurora: radial-gradient(80% 80% at 50% -20%, #ef44444d, #0000), radial-gradient(50% 50% at 80% center, #60a5fa26, #0000),
    radial-gradient(50% 50% at 20% 80%, #f8717133, #0000);
}
html.dark[data-theme-color="rose"] {
  --aurora: radial-gradient(80% 80% at 50% -20%, #f43f5e4d, #0000), radial-gradient(50% 50% at 80% center, #60a5fa26, #0000),
    radial-gradient(50% 50% at 20% 80%, #fb718533, #0000);
}
html.dark[data-theme-color="orange"] {
  --aurora: radial-gradient(80% 80% at 50% -20%, #f973164d, #0000), radial-gradient(50% 50% at 80% center, #60a5fa26, #0000),
    radial-gradient(50% 50% at 20% 80%, #fb923c33, #0000);
}
html.dark[data-theme-color="green"] {
  --aurora: radial-gradient(80% 80% at 50% -20%, #22c55e4d, #0000), radial-gradient(50% 50% at 80% center, #f9731626, #0000),
    radial-gradient(50% 50% at 20% 80%, #4ade8033, #0000);
}
html.dark[data-theme-color="blue"] {
  --aurora: radial-gradient(80% 80% at 50% -20%, #3b82f64d, #0000), radial-gradient(50% 50% at 80% center, #f9731626, #0000),
    radial-gradient(50% 50% at 20% 80%, #60a5fa33, #0000);
}
html.dark[data-theme-color="yellow"] {
  --aurora: radial-gradient(80% 80% at 50% -20%, #facc154d, #0000), radial-gradient(50% 50% at 80% center, #7c3aed26, #0000),
    radial-gradient(50% 50% at 20% 80%, #fde04733, #0000);
}
html.dark[data-theme-color="violet"] {
  --aurora: radial-gradient(80% 80% at 50% -20%, #8b5cf64d, #0000), radial-gradient(50% 50% at 80% center, #f9731626, #0000),
    radial-gradient(50% 50% at 20% 80%, #a78bfa33, #0000);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background-color: rgb(var(--common-background));
  background-image: var(--aurora);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease;
}

.container {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease;
}

.topbar-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: var(--primary);
  font-size: 28px;
  font-weight: 800;
  text-decoration: none;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn svg,
.theme-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-btn {
  height: 32px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.theme-btn .sun {
  display: none;
}

html.dark .theme-btn .moon {
  display: none;
}

html.dark .theme-btn .sun {
  display: inline-block;
}

.theme-btn .arrow {
  font-size: 11px;
  line-height: 1;
  opacity: 0.8;
}

.icon-btn:hover,
.theme-btn:hover {
  background: color-mix(in oklab, var(--card) 80%, transparent);
}

.theme-panel {
  position: fixed;
  right: 12px;
  top: 64px;
  width: 332px;
  max-width: calc(100vw - 24px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 12px 10px 10px;
  z-index: 60;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.theme-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.theme-group {
  margin-bottom: 12px;
}

.theme-group h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.chip-grid,
.radius-grid,
.mode-grid {
  display: grid;
  gap: 8px;
}

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

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

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

.theme-chip,
.radius-chip,
.mode-chip {
  height: 34px;
  border-radius: var(--r-lg);
  border: 1px solid color-mix(in oklab, var(--line) 92%, #b8becb);
  background: color-mix(in oklab, var(--card) 96%, #f4f5f8);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.theme-chip.active,
.radius-chip.active,
.mode-chip.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--primary) 30%, transparent) inset;
}

.dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.theme-chip.active .dot::before {
  content: "✓";
}

.dot.zinc {
  background: #18181b;
}
.dot.red {
  background: #dc2626;
}
.dot.rose {
  background: #e11d48;
}
.dot.orange {
  background: #f97316;
}
.dot.green {
  background: #16a34a;
}
.dot.blue {
  background: #2563eb;
}
.dot.yellow {
  background: #eab308;
}
.dot.violet {
  background: #7c3aed;
}

.login-btn {
  text-decoration: none;
  color: #fff;
  background: var(--primary);
  border-radius: var(--r-lg);
  border: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-avatar-img {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* QQ 邮箱登录时：只展示头像，不要按钮红色背景 */
.login-btn.authed-qq {
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
}

.login-btn.authed-qq .auth-avatar-img {
  background: transparent;
  border: 0;
}

.user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-menu:not(.authed) .user-pop {
  display: none;
}

.user-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 240px;
  border-radius: calc(var(--r-lg) * 1.1);
  background: color-mix(in oklab, var(--card) 86%, rgba(255, 255, 255, 0.9));
  border: 1px solid color-mix(in oklab, var(--line) 78%, rgba(255, 255, 255, 0.6));
  box-shadow:
    0 18px 46px rgba(6, 12, 22, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  padding: 12px;
  opacity: 0;
  transform: translateY(-6px) scale(0.99);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.user-pop::before {
  content: "";
  position: absolute;
  right: 16px;
  top: -6px;
  width: 12px;
  height: 12px;
  background: inherit;
  border-left: 1px solid color-mix(in oklab, var(--line) 78%, rgba(255, 255, 255, 0.6));
  border-top: 1px solid color-mix(in oklab, var(--line) 78%, rgba(255, 255, 255, 0.6));
  transform: rotate(45deg);
}

.user-menu:hover .user-pop,
.user-menu:focus-within .user-pop {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.user-pop-title {
  font-size: 12px;
  color: color-mix(in oklab, var(--text) 55%, #99a1b2);
  letter-spacing: 0.2px;
  margin-bottom: 6px;
}

.user-pop-value {
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 8px;
}

.user-pop-action {
  width: 100%;
  height: 34px;
  margin-bottom: 8px;
  border-radius: calc(var(--r-sm) * 1.1);
  border: 1px solid color-mix(in oklab, var(--line) 78%, rgba(255, 255, 255, 0.65));
  background: color-mix(in oklab, var(--primary) 14%, var(--card));
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}

.user-pop-action:hover {
  border-color: color-mix(in oklab, var(--primary) 35%, var(--line));
}

.user-pop-logout {
  width: 100%;
  height: 38px;
  border-radius: calc(var(--r-sm) * 1.1);
  border: 1px solid color-mix(in oklab, var(--line) 78%, rgba(255, 255, 255, 0.65));
  background: color-mix(in oklab, var(--card) 90%, rgba(255, 255, 255, 0.86));
  color: color-mix(in oklab, var(--text) 80%, #2f384a);
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.user-pop-logout:hover {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--primary) 35%, var(--line));
}

.auth-modal-mask {
  position: fixed;
  inset: 0;
  background: radial-gradient(70% 70% at 50% 20%, rgba(255, 255, 255, 0.14) 0%, rgba(7, 10, 16, 0.56) 100%);
  backdrop-filter: blur(12px) saturate(140%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 70;
  padding: 14px;
}

.auth-modal-mask[hidden] {
  display: none;
}

.auth-modal {
  width: min(440px, 100%);
  background: color-mix(in oklab, var(--card) 86%, rgba(255, 255, 255, 0.85));
  color: var(--text);
  border: 1px solid color-mix(in oklab, var(--line) 75%, rgba(255, 255, 255, 0.6));
  border-radius: calc(var(--r-lg) * 1.35);
  box-shadow:
    0 24px 60px rgba(6, 12, 22, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  padding: 18px;
  animation: auth-pop 220ms ease-out;
}

@keyframes auth-pop {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.auth-head h3 {
  margin: 0;
  font-size: 21px;
  letter-spacing: 0.2px;
  font-weight: 650;
}

.auth-close {
  width: 32px;
  height: 32px;
  border: 1px solid color-mix(in oklab, var(--line) 82%, rgba(255, 255, 255, 0.55));
  border-radius: 999px;
  background: color-mix(in oklab, var(--card) 82%, rgba(255, 255, 255, 0.9));
  color: color-mix(in oklab, var(--text) 78%, #7f8798);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: all 0.2s ease;
}

.auth-close:hover {
  transform: translateY(-1px);
  color: var(--text);
  border-color: color-mix(in oklab, var(--primary) 34%, var(--line));
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
  padding: 4px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--card) 92%, #e8ebf3);
  border: 1px solid color-mix(in oklab, var(--line) 82%, rgba(255, 255, 255, 0.6));
}

.auth-tab {
  border: none;
  background: transparent;
  color: color-mix(in oklab, var(--text) 68%, #8a93a5);
  height: 35px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 580;
  transition: all 0.22s ease;
}

.auth-tab.active {
  background: color-mix(in oklab, var(--card) 90%, rgba(255, 255, 255, 0.95));
  color: var(--text);
  box-shadow:
    0 6px 14px rgba(18, 24, 37, 0.08),
    inset 0 0 0 1px color-mix(in oklab, var(--line) 70%, rgba(255, 255, 255, 0.65));
}

.auth-form {
  display: none;
  gap: 11px;
  width: min(310px, 100%);
  margin: 0 auto;
}

.auth-form.active {
  display: grid;
}

.auth-field {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: color-mix(in oklab, var(--text) 55%, #99a1b2);
  letter-spacing: 0.2px;
}

.auth-field input {
  width: 100%;
  height: 42px;
  border: 1px solid color-mix(in oklab, var(--line) 78%, rgba(255, 255, 255, 0.65));
  border-radius: calc(var(--r-sm) * 1.1);
  background: color-mix(in oklab, var(--card) 90%, rgba(255, 255, 255, 0.8));
  color: var(--text);
  padding: 0 13px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 20%, transparent);
  background: color-mix(in oklab, var(--card) 96%, rgba(255, 255, 255, 0.9));
}

.auth-field input::placeholder {
  color: color-mix(in oklab, var(--text) 35%, #a8afbc);
}

.captcha-row {
  display: grid;
  grid-template-columns: 1fr 108px;
  gap: 10px;
  align-items: end;
}

.captcha-input {
  margin: 0;
}

.captcha-code {
  height: 42px;
  border: 1px solid color-mix(in oklab, var(--line) 78%, rgba(255, 255, 255, 0.65));
  border-radius: calc(var(--r-sm) * 1.1);
  background: repeating-linear-gradient(
      -45deg,
      color-mix(in oklab, var(--card) 92%, #eef1f8) 0 8px,
      color-mix(in oklab, var(--card) 86%, #e5e9f2) 8px 16px
    );
  color: color-mix(in oklab, var(--text) 82%, #2b3344);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 18px;
  cursor: pointer;
  user-select: none;
}

/* 注册页“发送邮箱验证码”按钮：字号更小更紧凑 */
#registerEmailSendBtn.captcha-code,
#registerEmailSendBtn {
  font-size: 14px;
  height: 38px;
}

.auth-error {
  min-height: 16px;
  margin: -2px 0 0;
  color: #ef4444;
  font-size: 12px;
  line-height: 1.2;
}

.auth-submit {
  margin-top: 8px;
  height: 43px;
  border: none;
  border-radius: calc(var(--r-sm) * 1.1);
  background: linear-gradient(180deg, color-mix(in oklab, var(--primary) 88%, #ffffff) 0%, var(--primary) 100%);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow:
    0 10px 20px color-mix(in oklab, var(--primary) 35%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.auth-submit:active {
  transform: translateY(0);
}

.page {
  padding-top: 88px;
  padding-bottom: 40px;
}



.search-section {
  max-width: 50rem;
  margin-top: 36px;
}

.search-row {
  display: flex;
  gap: 12px;
  height: 46px;
  align-items: stretch;
}

.region-select {
  width: 164px;
  position: relative;
  flex-shrink: 0;
}

.server-btn {
  width: 100%;
  height: 46px;
  border-radius: var(--r-lg);
  border: 1px solid var(--input);
  background: var(--card);
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  position: relative;
  text-align: left;
  padding: 0 14px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.server-btn::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.65;
}

.region-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  max-height: 260px;
  overflow: auto;
  background: color-mix(in oklab, var(--card) 92%, rgba(255, 255, 255, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  padding: 6px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 65;
}

.region-select.open .region-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.region-item {
  width: 100%;
  border: 1px solid transparent;
  border-radius: calc(var(--r-sm) * 0.9);
  background: transparent;
  color: var(--text);
  text-align: left;
  height: 34px;
  padding: 0 10px;
  font-size: 14px;
  cursor: pointer;
}

.region-item:hover {
  background: color-mix(in oklab, var(--card) 85%, #eef2f8);
}

.region-item.active {
  border-color: color-mix(in oklab, var(--primary) 35%, var(--line));
  color: var(--primary);
}

.search-box {
  flex: 1;
  position: relative;
  height: 100%;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8993a8;
  width: 20px;
  height: 20px;
}

.search-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-box input {
  width: 100%;
  height: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--input);
  color: var(--text);
  background: var(--card);
  padding: 0 96px 0 40px;
  font-size: 15px;
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.search-box input::placeholder {
  color: #96a0b2;
}

.search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 34px;
  min-width: 72px;
  border: none;
  border-radius: calc(var(--r-sm) * 1.1);
  background: linear-gradient(180deg, color-mix(in oklab, var(--primary) 88%, #ffffff) 0%, var(--primary) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 12px;
}

.history-title {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #5e6574;
  font-size: 14px;
}

.history-title span {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.history-empty {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 56px 0 18px;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.history-item {
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--card) 94%, #f4f7fc);
  border-radius: var(--r-md);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  min-height: 60px;
  display: grid;
  gap: 3px;
  position: relative;
}

.history-delete {
  position: absolute;
  right: 8px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--line) 80%, #c8cfde);
  color: var(--muted);
  font-size: 13px;
  line-height: 16px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  background: color-mix(in oklab, var(--card) 96%, #f8fbff);
}

.history-item:hover .history-delete {
  opacity: 1;
  pointer-events: auto;
}

.history-delete:hover {
  border-color: color-mix(in oklab, #ef4444 45%, var(--line));
  color: #ef4444;
}

.history-item strong {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-item span {
  font-size: 12px;
  color: var(--muted);
}

.history-item:hover {
  border-color: color-mix(in oklab, var(--primary) 40%, var(--line));
}

.history-banner {
  margin-top: 16px;
  background: transparent;
  border: 0;
  min-height: 0;
}

.history-banner-mask {
  min-height: 0;
  padding: 18px 0 8px;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 6px;
  color: var(--text);
  text-shadow: none;
}

.history-banner h3 {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--primary);
}

.history-banner p {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
  opacity: 1;
}

.cards {
  margin-top: 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.info-card {
  background: var(--card);
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  transition: all 0.18s ease;
}

.info-card:hover {
  border-color: var(--line);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.card-head h3 {
  margin: 0;
  font-size: 17px;
}

.card-head a {
  color: var(--primary);
  text-decoration: none;
  font-size: 13px;
}

.info-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: color-mix(in oklab, var(--text) 74%, #8c96a8);
}

.feature {
  margin-top: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: var(--shadow);
}

.feature-title {
  margin: 0 0 14px;
  font-size: 15px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature-thumb {
  border-radius: var(--r-md);
  height: 122px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.thumb-1 {
  background-color: #0f172a;
  background-image: url("/favicon.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
}

.thumb-2 {
  background-color: #0f172a;
  background-image: url("/favicon.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
}

.thumb-3 {
  background-color: #0f172a;
  background-image: url("/favicon.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
}

.thumb-4 {
  background-color: #0f172a;
  background-image: url("/favicon.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
}

.feature-item h4 {
  margin: 9px 0 0;
  text-align: center;
  font-size: 15px;
}

@media (max-width: 900px) {
  .history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 650px) {
  .search-section {
    margin-top: 24px;
  }

  .server-btn {
    display: none;
  }

  .feature-thumb {
    height: 106px;
  }

  .theme-panel {
    width: calc(100vw - 14px);
    right: 7px;
  }

  .history-banner {
    min-height: 0;
  }

  .history-banner-mask {
    min-height: 0;
  }

  .history-banner h3 {
    font-size: 26px;
  }

  .history-banner p {
    font-size: 14px;
  }

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