:root {
  --bg: #08080a;
  --bg-soft: #0b0b0e;
  --card: #0f1013;
  --card-2: #121318;
  --elev: #16171c;
  --fg: #f1f2f4;
  --fg-soft: #d7d9de;
  --muted: #9a9ca4;
  --muted-2: #6d6f78;
  --border: #232429;
  --border-2: #2f3138;

  --primary: #f2f3f5;
  --primary-fg: #0a0a0c;
  --blue: #5b7cff;
  --blue-bright: #7c93ff;
  --blue-dim: rgba(91, 124, 255, 0.12);
  --amber: #f5b83d;
  --amber-dim: rgba(245, 184, 61, 0.12);
  --green: #3ecf8e;
  --green-dim: rgba(62, 207, 142, 0.12);
  --orange: #f0a83c;
  --red: #f2555a;
  --red-dim: rgba(242, 85, 90, 0.12);
  --info: #5b8cff;
  --info-dim: rgba(91, 140, 255, 0.12);

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.42), 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);

  --font-sans: "Inter", "SF Pro Text", "SF Pro SC", -apple-system, BlinkMacSystemFont,
    "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", Consolas,
    "Liberation Mono", Menlo, monospace;

  --text-3xs: 0.5625rem;
  --text-2xs: 0.625rem;
  --text-xs: 0.6875rem;
  --text-sm: 0.75rem;
  --text-md: 0.8125rem;
  --text-base: 0.875rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --control-sm: 2rem;
  --control: 2.25rem;
  --control-lg: 2.5rem;

  --container: 77.5rem;
  --gutter: clamp(1rem, 2.4vw, 1.5rem);
  --section-gap: clamp(1.5rem, 3.2vw, 2.5rem);
  --category-gap: clamp(1.125rem, 2.2vw, 1.625rem);
  --header-h: clamp(3.625rem, 5vw, 4.5rem);
  --tile-min: clamp(7rem, 19vw, 8.875rem);
  --font-hero: clamp(1.6875rem, 3.4vw, 2.5rem);
  --font-lead: clamp(0.8125rem, 1vw, 0.875rem);
  --font-section: clamp(0.875rem, 1.1vw, 0.9375rem);
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 12% -12%, rgba(91, 124, 255, 0.09), transparent 62%),
    radial-gradient(700px 420px at 92% -6%, rgba(124, 147, 255, 0.05), transparent 60%);
  background-repeat: no-repeat;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

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

svg.icon {
  flex-shrink: 0;
  vertical-align: middle;
}

::selection {
  background: rgba(91, 124, 255, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid rgba(124, 147, 255, 0.75);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #26272d;
  border-radius: 8px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: #34363d;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  width: 100%;
  max-width: 52.5rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-mid {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono {
  font-family: var(--font-mono);
}

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

.text-blue { color: var(--blue-bright); }
.text-amber { color: var(--amber); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }

.hidden { display: none !important; }

.page-main {
  min-height: 60vh;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-height: 2.25rem;
  height: auto;
  padding: 0.5rem 0.875rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease,
    box-shadow 0.16s ease, transform 0.16s ease;
}

.btn:active { transform: translateY(1px); }

.btn[disabled],
.btn.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-fg);
  font-weight: 600;
}
.btn-primary:hover {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.btn-secondary {
  background: #1b1c22;
  border-color: #2a2c33;
  color: var(--fg);
}
.btn-secondary:hover {
  background: #23252c;
  border-color: #383b44;
}

.btn-outline {
  background: transparent;
  border-color: var(--border-2);
  color: var(--fg-soft);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: #41444d;
  color: var(--fg);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.055);
  color: var(--fg);
}

.btn-danger {
  background: var(--red-dim);
  border-color: rgba(242, 85, 90, 0.28);
  color: var(--red);
}

.btn-sm { min-height: 2rem; height: auto; padding: 0.4rem 0.75rem; font-size: 0.75rem; line-height: 1.15; }
.btn-lg { min-height: 2.75rem; height: auto; padding: 0.6rem 1.25rem; font-size: 0.875rem; border-radius: 0.625rem; }
.btn-block { width: 100%; }
.btn-icon { width: 2.25rem; height: 2.25rem; min-height: 2.25rem; padding: 0; aspect-ratio: 1; }
.btn-icon.btn-sm { width: 2rem; height: 2rem; min-height: 2rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 1.25rem;
  height: auto;
  padding: 0.15rem 0.5rem;
  border-radius: 0.3125rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}
.badge-outline { background: transparent; border-color: var(--border-2); }
.badge-blue { background: var(--blue-dim); color: var(--blue-bright); }
.badge-amber { background: var(--amber-dim); color: var(--amber); }
.badge-green { background: var(--green-dim); color: var(--green); }
.badge-red { background: var(--red-dim); color: var(--red); }
.badge-mono { font-family: var(--font-mono); font-size: 0.625rem; }

.label {
  display: block;
  margin-bottom: 0.4375rem;
  color: var(--fg-soft);
  font-size: 0.75rem;
  font-weight: 500;
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 2.375rem;
  height: auto;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: #0c0d10;
  color: var(--fg);
  font-size: 0.8125rem;
  line-height: 1.4;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
.input::placeholder,
.textarea::placeholder {
  color: var(--muted-2);
}
.input:hover,
.textarea:hover,
.select:hover {
  border-color: #3a3d45;
}
.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: rgba(91, 124, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(91, 124, 255, 0.12);
  background: #0e0f13;
}
.input[type="search"]::-webkit-search-cancel-button { display: none; }

.textarea {
  height: auto;
  min-height: 6.5rem;
  padding: 0.625rem 0.75rem;
  line-height: 1.65;
  resize: vertical;
}

.select {
  appearance: none;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a8c94' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

.field { margin-bottom: 1.125rem; }
.form-error {
  margin-top: 0.375rem;
  color: var(--red);
  font-size: 0.75rem;
}
.form-hint {
  margin-top: 0.375rem;
  color: var(--muted-2);
  font-size: 0.6875rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.card-desc {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
}
.card-body { padding: 1.25rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 8, 10, 0.84);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

/* 顶部信息条 */
.topstrip {
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: linear-gradient(90deg, rgba(91, 124, 255, 0.07), rgba(91, 124, 255, 0.015) 50%, rgba(91, 124, 255, 0.07));
}
.topstrip-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 2.25rem;
  padding-block: 0.375rem;
  color: var(--muted);
  font-size: 0.6875rem;
}
.topstrip-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--fg-soft);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  min-width: 0;
}
.topstrip-dot {
  width: 0.25rem;
  height: 0.25rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0.1875rem rgba(62, 207, 142, 0.09);
}
.topstrip-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-width: 0;
}
.topstrip-domain {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.375rem;
  border: 1px solid rgba(91, 124, 255, 0.24);
  border-radius: 0.25rem;
  background: var(--blue-dim);
  color: var(--blue-bright);
  font-family: var(--font-mono);
  font-size: 0.6563rem;
  font-weight: 500;
  transition: border-color 0.16s ease, color 0.16s ease;
}
.topstrip-domain:hover { border-color: var(--blue); color: var(--blue-bright); }
.topstrip-domain .icon { color: currentColor; opacity: 0.65; }
.topstrip-domain.is-copied { border-color: var(--green); color: var(--green); }
.topstrip-domain.is-copied .icon { color: var(--green); }
.topstrip-tip {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 0.25rem;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.625rem;
}
.topstrip-tip kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.375rem;
  padding: 0.0625rem 0.25rem;
  border: 1px solid var(--border-2);
  border-radius: 0.25rem;
  background: var(--card);
  color: var(--fg-soft);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  line-height: 1.35;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.05);
}

.header-main {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}
.brand-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  color: var(--primary-fg);
  box-shadow: none;
  transition: transform 0.2s ease;
}
.brand:hover .brand-mark { transform: scale(1.04); }
.brand-letter {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
}
.brand-mark > img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.brand-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 6px rgba(245, 184, 61, 0.9);
  animation: pulse 2.4s ease-in-out infinite;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.brand-text strong {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-text small {
  color: var(--muted-2);
  font-size: 0.625rem;
  letter-spacing: 0.02em;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: clamp(320px, 36vw, 520px);
  margin: 0 auto;
}
.header-search-icon {
  position: absolute;
  left: 0.875rem;
  display: flex;
  color: var(--muted-2);
  pointer-events: none;
  transition: color 0.16s ease;
}
.header-search:focus-within .header-search-icon { color: var(--blue-bright); }
.header-search input {
  width: 100%;
  min-height: 2.5rem;
  height: auto;
  padding: 0.5rem 5.5rem 0.5rem 2.5rem;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: #0d0e11;
  color: var(--fg);
  font-size: 0.8125rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
.header-search input::placeholder { color: var(--muted-2); }
.header-search input:focus {
  outline: none;
  border-color: rgba(91, 124, 255, 0.5);
  background: #101116;
  box-shadow: 0 0 0 3px rgba(91, 124, 255, 0.1);
}
.header-search .btn {
  position: absolute;
  right: 0.25rem;
  min-height: 2rem;
  height: 2rem;
  border-radius: 999px;
  padding: 0 1.125rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.header-actions > * { flex: 0 0 auto; }
.header-actions .btn-sm { min-height: 2.25rem; }
.header-actions .avatar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  min-height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  line-height: 0;
}
.header-actions .avatar-btn .avatar,
.header-actions .avatar-btn .avatar.lg {
  width: 2rem;
  height: 2rem;
  font-size: 0.75rem;
}
.guest-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.header-submit { gap: 0.3125rem; }

.mobile-menu-btn { display: none; }
.mobile-search-btn { display: none; }
.mobile-search-panel { display: none; }

.avatar-btn {
  display: inline-flex;
  padding: 0;
  border-radius: 50%;
}
.avatar {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: #1b1c22;
  color: var(--fg);
  font-size: 0.75rem;
  font-weight: 600;
  overflow: hidden;
}
.avatar-letter { position: relative; z-index: 0; line-height: 1; }
.avatar img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.avatar.lg { width: 38px; height: 38px; font-size: 0.875rem; }

.user-menu { position: relative; }
.user-menu .user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 236px;
  padding: 0.5rem;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  background: #121317;
  box-shadow: var(--shadow-md);
  z-index: 80;
}
.user-dropdown-head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem;
}
.user-dropdown-head div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.user-dropdown-head strong {
  font-size: 0.8125rem;
  font-weight: 600;
}
.user-dropdown-head span {
  color: var(--muted);
  font-size: 0.6875rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.menu-sep {
  height: 1px;
  margin: 0.375rem 0.25rem;
  background: var(--border);
}
.user-dropdown a,
.user-dropdown button {
  display: flex;
  align-items: center;
  gap: 0.5625rem;
  width: 100%;
  padding: 0.5rem 0.625rem;
  border-radius: 6px;
  color: var(--fg-soft);
  font-size: 0.8125rem;
  text-align: left;
  transition: background-color 0.14s ease, color 0.14s ease;
}
.user-menu .user-dropdown a,
.user-menu .user-dropdown button {
  display: flex;
  align-items: center;
}
.user-dropdown a:hover,
.user-dropdown button:hover {
  background: rgba(255, 255, 255, 0.055);
  color: var(--fg);
}
.user-dropdown .danger { color: var(--red); }
.user-dropdown .danger:hover { background: var(--red-dim); color: var(--red); }

.catbar {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.012);
}
.catbar-inner {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  min-height: 2.5rem;
  height: auto;
  padding-block: 0.35rem;
}
.cat-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.14s ease, color 0.14s ease;
}
.cat-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
}
.cat-link.active {
  background: var(--blue-dim);
  color: var(--blue-bright);
  font-weight: 600;
}
.more-btn { color: var(--muted); }

.dropdown { position: relative; display: inline-flex; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  padding: 0.375rem;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  background: #121317;
  box-shadow: var(--shadow-md);
  z-index: 90;
}
.dropdown-menu.open { display: block; animation: dropIn 0.14s ease both; }
.dropdown-menu a {
  display: block;
  padding: 0.4375rem 0.625rem;
  border-radius: 5px;
  color: var(--fg-soft);
  font-size: 0.75rem;
}
.dropdown-menu a:hover { background: rgba(255, 255, 255, 0.055); color: var(--fg); }
.more-menu { left: 0; right: auto; min-width: 140px; }

.site-footer {
  flex-shrink: 0;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #050506;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-top: clamp(1.75rem, 3vw, 2.375rem);
  padding-bottom: clamp(1.25rem, 2.4vw, 1.75rem);
}
.footer-brand-block { max-width: min(460px, 100%); }
.footer-brand-block p {
  margin-top: 0.625rem;
  color: var(--muted);
  font-size: 0.7813rem;
  line-height: 1.85;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem 1.25rem;
  padding-top: 0.5rem;
}
.footer-nav a {
  color: var(--muted);
  font-size: 0.7813rem;
  transition: color 0.16s ease;
}
.footer-nav a:hover { color: var(--fg); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  padding-bottom: 1.375rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted-2);
  font-size: 0.6875rem;
}
.footer-bottom > div { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.footer-bottom .footer-copy { display: block; }
.footer-bottom .heart-icon { display: inline-block; color: #f47174; vertical-align: -2px; }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
}
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  display: flex;
  flex-direction: column;
  background: #0c0d10;
  border-left: 1px solid var(--border-2);
  transform: translateX(100%);
  transition: transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.125rem;
  border-bottom: 1px solid var(--border);
}
.drawer-head strong { font-size: 0.875rem; }
.drawer-cats {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}
.drawer-cats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.75rem;
  border-radius: 7px;
  color: var(--fg-soft);
  font-size: 0.8125rem;
}
.drawer-cats a:hover { background: rgba(255, 255, 255, 0.05); }
.drawer-cats a.active { background: var(--blue-dim); color: var(--blue-bright); }
.drawer-cats .icon { color: var(--muted-2); }
.drawer-foot {
  padding: 0.75rem;
  border-top: 1px solid var(--border);
}
.drawer-user { display: flex; flex-direction: column; gap: 0.125rem; }
.drawer-user a,
.drawer-user button {
  display: flex;
  align-items: center;
  gap: 0.5625rem;
  padding: 0.5625rem 0.625rem;
  border-radius: 6px;
  color: var(--fg-soft);
  font-size: 0.8125rem;
  text-align: left;
}
.drawer-user a:hover,
.drawer-user button:hover { background: rgba(255, 255, 255, 0.05); }
.drawer-user .danger { color: var(--red); }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 3.4vw, 2.625rem) 0 clamp(0.875rem, 1.6vw, 1.125rem);
  background:
    radial-gradient(720px 320px at 50% -30%, rgba(91, 124, 255, 0.16), transparent 70%),
    linear-gradient(180deg, #0c0d11 0%, var(--bg) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero .container-narrow { position: relative; }
.hero-title {
  text-align: center;
  font-size: var(--font-hero);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
  animation: heroIn 0.5s cubic-bezier(0.22, 0.7, 0.3, 1) 0.04s backwards;
}
.accent-text {
  background: linear-gradient(100deg, #a7b7ff 0%, #5b7cff 55%, #8f7dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 640px;
  margin: clamp(0.5rem, 1vw, 0.625rem) auto 0;
  text-align: center;
  color: var(--muted);
  font-size: var(--font-lead);
  animation: heroIn 0.5s cubic-bezier(0.22, 0.7, 0.3, 1) 0.1s backwards;
}
.hero-recent {
  width: 100vw;
  margin: clamp(1rem, 2.2vw, 1.375rem) 0 0 calc(50% - 50vw);
  overflow: hidden;
  box-sizing: border-box;
  animation: heroIn 0.5s cubic-bezier(0.22, 0.7, 0.3, 1) 0.16s backwards;
}
.recent-cloud {
  width: 100vw;
  margin: 0;
  overflow: hidden;
}
.recent-row {
  display: flex;
  width: max-content;
  animation: recentSlide var(--loop, 55s) linear infinite;
  will-change: transform;
}
.recent-row.reverse { animation-direction: reverse; }
.recent-row + .recent-row { margin-top: clamp(0.375rem, 0.8vw, 0.625rem); }
.recent-row:hover,
.recent-row:focus-within { animation-play-state: paused; }
.recent-row:hover .recent-chip,
.recent-row:focus-within .recent-chip { animation-play-state: paused; }
.recent-set {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
  padding: 0.25rem clamp(0.3125rem, 0.8vw, 0.5rem);
  gap: clamp(0.375rem, 0.8vw, 0.625rem);
  box-sizing: border-box;
}
.recent-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.3125rem, 0.6vw, 0.4375rem);
  flex: 0 0 max(128px, calc((100vw - 80px) / 8));
  max-width: 100%;
  height: clamp(34px, 3.2vw, 38px);
  padding: 0 clamp(0.375rem, 0.8vw, 0.5rem);
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--fg-soft);
  font-size: clamp(12px, 0.9vw, 13px);
  font-weight: 500;
  white-space: nowrap;
  animation: cloudWander var(--cd, 12s) ease-in-out var(--cdel, 0s) infinite;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.recent-chip:hover,
.recent-chip:focus-visible {
  z-index: 2;
  background: var(--blue-dim);
  color: var(--blue-bright);
}
.recent-chip:focus-visible { animation-play-state: paused; }
.recent-chip:hover .site-tile-icon,
.recent-chip:focus-visible .site-tile-icon {
  animation: iconWiggle 0.52s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
.recent-cloud:active .recent-row,
.recent-cloud:active .recent-chip { animation-play-state: paused; }
.recent-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-search {
  position: relative;
  max-width: 720px;
  margin: clamp(1.25rem, 2.4vw, 1.625rem) auto 0;
  animation: heroIn 0.5s cubic-bezier(0.22, 0.7, 0.3, 1) 0.16s backwards;
}
.hero-search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
}
.hero-search input {
  width: 100%;
  height: clamp(46px, 4.2vw, 52px);
  padding: 0 7rem 0 2.875rem;
  border: 1px solid var(--border-2);
  border-radius: 14px;
  background: #0d0e12;
  color: var(--fg);
  font-size: 0.875rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 12px 32px rgba(0, 0, 0, 0.28);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.hero-search input::placeholder { color: var(--muted-2); }
.hero-search input:focus {
  outline: none;
  border-color: rgba(91, 124, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(91, 124, 255, 0.1), 0 12px 32px rgba(0, 0, 0, 0.28);
}
.hero-search .btn {
  position: absolute;
  top: 50%;
  right: 6px;
  height: clamp(34px, 3vw, 40px);
  padding: 0 1.375rem;
  border-radius: 10px;
  transform: translateY(-50%);
}
.search-history {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  z-index: 40;
  overflow: hidden;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  background: #121317;
  box-shadow: var(--shadow-md);
}
.search-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.875rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.6875rem;
}
.search-history-head .left { display: inline-flex; align-items: center; gap: 0.375rem; }
.search-history-head button { color: var(--muted); font-size: 0.6875rem; }
.search-history-head button:hover { color: var(--fg); }
.search-history-list { max-height: clamp(200px, 40vh, 280px); overflow-y: auto; padding: 0.25rem; }
.search-history-list button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.625rem;
  border-radius: 6px;
  color: var(--fg-soft);
  font-size: 0.8125rem;
  text-align: left;
}
.search-history-list button:hover { background: rgba(255, 255, 255, 0.055); }
.search-history-list .icon { color: var(--muted-2); }

.hot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 0.875rem;
  font-size: 0.75rem;
  animation: heroIn 0.5s cubic-bezier(0.22, 0.7, 0.3, 1) 0.22s backwards;
}
.hot-row > span { color: var(--muted-2); }
.hot-chip {
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.hot-chip:hover { background: rgba(91, 124, 255, 0.1); color: var(--blue-bright); }

.home-body { padding-top: 0.875rem; padding-bottom: 1.25rem; }
body[data-page="home"] .home-body { padding-bottom: clamp(1rem, 2vw, 1.5rem); }
body[data-page="home"] .site-footer { margin-top: 0; }

.ad-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
}
.ad-head-title {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ad-head-title .icon { color: var(--muted); }
.ad-head-link { color: var(--muted-2); font-size: 0.6875rem; transition: color 0.15s ease; }
.ad-head-link:hover { color: var(--blue-bright); }
.ad-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
}
#ad-section { container-type: inline-size; container-name: ads; }
.ad-creative {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 640 / 300;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0a0b0f;
  animation: tileIn 0.42s cubic-bezier(0.22, 0.7, 0.3, 1) backwards;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.ad-creative img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.55s ease;
}
.ad-creative:hover {
  border-color: rgba(91, 124, 255, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.ad-creative:hover img { transform: scale(1.015); }
.ad-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  height: 17px;
  padding: 0 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(8, 8, 10, 0.5);
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-mono);
  font-size: 0.5313rem;
  letter-spacing: 0.04em;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ad-rent {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.2rem;
  aspect-ratio: 640 / 300;
  padding: 0.65rem 0.7rem;
  overflow: hidden;
  border: 1px dashed var(--border-2);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgba(91, 124, 255, 0.035), transparent 55%),
    var(--card);
  color: var(--fg-soft);
  text-align: left;
  animation: tileIn 0.42s cubic-bezier(0.22, 0.7, 0.3, 1) backwards;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}
.ad-rent::before {
  content: "+";
  position: absolute;
  top: 50%;
  right: 0.75rem;
  z-index: 0;
  color: var(--border-2);
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-50%);
  opacity: 0.75;
}
.ad-rent:hover {
  border-color: rgba(91, 124, 255, 0.4);
  background-color: rgba(91, 124, 255, 0.04);
  transform: translateY(-1px);
}
.ad-rent-top {
  position: absolute;
  top: 0.55rem;
  left: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.ad-rent-tag {
  padding: 0.08rem 0.3rem;
  border: 1px solid var(--border-2);
  border-radius: 0.2rem;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
}
.ad-rent-price {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  white-space: nowrap;
}
.ad-rent strong {
  position: relative;
  z-index: 2;
  overflow: hidden;
  max-width: 75%;
  color: var(--fg-soft);
  font-size: 0.7813rem;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ad-rent-cta {
  position: relative;
  z-index: 2;
  color: var(--blue-bright);
  font-size: 0.625rem;
  line-height: 1.3;
}
.ad-slot-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ad-rent.has-image::before { display: none; }
.ad-rent.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 45%, rgba(0, 0, 0, 0.68));
  pointer-events: none;
}
.ad-rent.has-image .ad-rent-tag,
.ad-rent.has-image .ad-rent-price { border-color: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.78); }
.ad-rent.has-image strong { color: #fff; }
.ad-rent.has-image .ad-rent-cta { color: rgba(255, 255, 255, 0.82); }
.ad-grid > *:nth-child(2) { animation-delay: 40ms; }
.ad-grid > *:nth-child(3) { animation-delay: 80ms; }
.ad-grid > *:nth-child(4) { animation-delay: 120ms; }
.ad-grid > *:nth-child(5) { animation-delay: 160ms; }
.ad-grid > *:nth-child(6) { animation-delay: 200ms; }

@container (max-width: 130px) {
  .ad-rent { padding: 0.45rem 0.5rem; }
  .ad-rent-tag,
  .ad-rent-price { display: none; }
  .ad-rent::before { font-size: 1.8rem; right: 0.45rem; }
  .ad-rent strong { max-width: 100%; font-size: 0.6875rem; }
  .ad-rent-cta { font-size: 0.5625rem; }
}

.section { margin-top: var(--section-gap); }
.search-block { margin-top: 1.375rem; }
.search-block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6875rem; }
.search-block-head h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; font-weight: 600; }
.search-block-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 17px;
  padding: 0 0.3125rem;
  border-radius: 999px;
  background: var(--blue-dim);
  color: var(--blue-bright);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 500;
}
.search-block-head em { color: var(--muted-2); font-family: var(--font-mono); font-size: 0.625rem; font-style: normal; }
.search-block-head .section-bar.amber { background: var(--amber); }
.category-block { margin-top: var(--category-gap); }
.category-block .section-head { margin-bottom: 0.625rem; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-section);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.section-bar {
  display: inline-block;
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--blue);
}
.section-bar.amber { background: var(--amber); }
.section-bar.green { background: var(--green); }
.section-bar.violet { background: #9a7dff; }
.section-count {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  color: var(--muted);
  font-size: 0.75rem;
  transition: color 0.15s ease;
}
.section-link:hover { color: var(--blue-bright); }
.subcat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem 0.85rem;
  margin: -0.15rem 0 0.7rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border);
}
.subcat-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1rem 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.6875rem;
  line-height: 1.55;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
}
.subcat-link:hover { color: var(--fg); border-bottom-color: var(--border-2); }
.subcat-link.active { border-bottom-color: var(--blue); color: var(--blue-bright); }
.subcat-clear {
  margin-left: 0.05rem;
  color: currentColor;
  font-size: 0.75rem;
  line-height: 1;
  opacity: 0.7;
}
.category-subtabs { margin: 0 0 1rem; }
.category-subtabs[aria-busy="true"] { opacity: 0.55; pointer-events: none; }

.latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--tile-min)), 1fr));
  gap: 0.5rem;
}
.latest-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  text-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.latest-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-sm);
}
.latest-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
}
.latest-name {
  width: 100%;
  overflow: hidden;
  color: var(--fg-soft);
  font-size: 0.6875rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 站点网格 */
.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--tile-min)), 1fr));
  gap: 0.5rem;
}
.site-grid.cols-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--tile-min)), 1fr)); }
.fav-tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.star-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.star-icon.is-fav { color: var(--amber); }
.star-icon.is-fav .icon { fill: currentColor; }
.site-card {
  position: relative;
  overflow: hidden;
  padding: 0.625rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.site-card:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 124, 255, 0.34);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.36);
}
.site-watermark {
  position: absolute;
  right: -10px;
  bottom: -18px;
  color: rgba(255, 255, 255, 0.035);
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  transition: color 0.25s ease;
}
.site-card:hover .site-watermark { color: rgba(255, 255, 255, 0.06); }
.site-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.5625rem;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}
.site-logo img { width: 20px; height: 20px; object-fit: contain; }
.logo-letter {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
}
.site-detail-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  color: transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.site-card:hover .site-detail-btn { color: var(--muted); }
.site-detail-btn:hover { background: rgba(255, 255, 255, 0.07); color: var(--fg) !important; }
.site-name {
  position: relative;
  overflow: hidden;
  font-size: 0.7813rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-name a { color: var(--fg); }
.site-card:hover .site-name a { color: var(--blue-bright); }
.site-desc {
  margin-top: 0.125rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.6875rem;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.375rem;
  margin-top: 0.5625rem;
}
.site-tag {
  overflow: hidden;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-fav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: transparent;
  transition: color 0.15s ease, transform 0.15s ease;
}
.site-card:hover .site-fav { color: var(--muted-2); }
.site-fav:hover { color: var(--amber) !important; transform: scale(1.12); }
.site-fav.is-fav { color: var(--amber); }
.site-fav.is-fav .icon { fill: currentColor; }
.site-hits {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3125rem 0.625rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 13, 0.94);
  color: var(--muted);
  font-size: 0.625rem;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transform: translateY(102%);
  transition: transform 0.18s ease;
}
.site-hits span { display: inline-flex; align-items: center; gap: 0.25rem; }
.site-card:hover .site-hits { transform: translateY(0); }

@media (hover: none) {
  .site-fav { color: var(--muted-2); }
  .site-detail-btn { color: var(--muted-2); }
  .site-hits { display: none; }
}

.site-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.site-row:hover {
  transform: translateY(-2px);
  border-color: var(--border-2);
  background: var(--card-2);
}
.site-logo.sm { width: 40px; height: 40px; }
.site-logo.sm img { width: 22px; height: 22px; }
.site-row-body { min-width: 0; flex: 1; }
.site-row-title {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.site-row-title h3 {
  overflow: hidden;
  font-size: 0.8438rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-row p {
  margin-top: 0.125rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-row:hover .site-row-title h3 { color: var(--blue-bright); }
.site-row .site-fav { color: var(--muted-2); }
.site-row .site-fav.is-fav { color: var(--amber); }

.site-tile {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  animation: tileIn 0.42s cubic-bezier(0.22, 0.7, 0.3, 1) backwards;
  animation-delay: calc(var(--i, 0) * 28ms);
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease,
    box-shadow 0.16s ease;
}
.site-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.055) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.site-tile:hover::after { transform: translateX(120%); }
.site-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 124, 255, 0.32);
  background: #121319;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}
.site-tile:active { transform: translateY(0) scale(0.995); }
.site-tile:focus-within {
  border-color: rgba(91, 124, 255, 0.5);
  box-shadow: 0 0 0 2px rgba(91, 124, 255, 0.12);
}
.site-tile-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  padding: 0.5rem 1.25rem 0.5rem 0.4375rem;
  color: inherit;
}
.site-tile.no-fav .site-tile-main { padding-right: 1.25rem; }
.site-tile-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease;
}
.site-tile:hover .site-tile-icon {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.1);
  animation: iconWiggle 0.52s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
.site-tile-icon img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: contain;
  display: block;
}
.site-tile-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
}
.site-tile-name {
  min-width: 0;
  overflow: hidden;
  color: var(--fg-soft);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-tile:hover .site-tile-name { color: var(--fg); }
.site-tile-arrow {
  position: absolute;
  top: 50%;
  right: 6px;
  z-index: 1;
  display: flex;
  align-items: center;
  color: var(--muted-2);
  opacity: 0.35;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.site-tile:hover .site-tile-arrow {
  opacity: 0;
  transform: translateY(-50%) translateX(3px);
}
.site-tile.no-fav:hover .site-tile-arrow {
  opacity: 0.6;
  transform: translateY(-50%);
}
.site-tile:has(.site-fav.is-fav) .site-tile-arrow { opacity: 0; }
.site-tile.has-fav .site-tile-arrow { opacity: 0; }
.site-tile:focus-within .site-tile-arrow { opacity: 0; }
.site-tile.no-fav:focus-within .site-tile-arrow { opacity: 0.35; }

.site-tip {
  position: fixed;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 0.3125rem;
  min-height: 1.875rem;
  height: auto;
  padding: 0.3rem 0.625rem;
  border-radius: 0.5rem;
  background: var(--fg);
  color: var(--bg);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  font-size: 0.7188rem;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px) scale(0.96);
  transform-origin: center bottom;
  transition: opacity 0.15s ease, transform 0.18s cubic-bezier(0.2, 1.2, 0.3, 1), visibility 0.15s;
}
.site-tip.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.site-tip.below {
  transform-origin: center top;
  transform: translateY(-4px) scale(0.96);
}
.site-tip.show.below { transform: translateY(0) scale(1); }
.site-tip::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: var(--tip-arrow, 50%);
  border: 5px solid transparent;
  border-top-color: var(--fg);
  border-bottom: 0;
  transform: translateX(-50%);
}
.site-tip.below::after {
  top: -5px;
  bottom: auto;
  border-top: 0;
  border-bottom: 5px solid var(--fg);
}
.site-tip-dot {
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #34d399;
  animation: tipPulse 1.8s ease-in-out infinite;
}
.site-tip-label { opacity: 0.72; }
.site-tip strong {
  font-family: var(--font-mono);
  font-size: 0.7188rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.site-tip-unit { opacity: 0.6; }
.site-tile .site-fav {
  position: absolute;
  top: 50%;
  right: 4px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  color: var(--muted-2);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.site-tile:hover .site-fav,
.site-tile:focus-within .site-fav { opacity: 1; }
.site-tile .site-fav:hover { background: rgba(255, 255, 255, 0.08); color: var(--amber); }
.site-tile .site-fav.is-fav { color: var(--amber); opacity: 1; }
.site-tile .site-fav.is-fav .icon { fill: currentColor; }
.site-fav.is-bumping .icon,
.fav-btn.is-bumping .icon { animation: starPop 0.42s cubic-bezier(0.2, 1.3, 0.4, 1); }

@media (hover: none) {
  .site-tile .site-fav { opacity: 0.55; }
  .site-tile .site-fav.is-fav { opacity: 1; }
  .site-tile-arrow { display: none; }
  .site-tile.no-fav .site-tile-arrow { display: flex; opacity: 0.35; }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 100px), 1fr));
  gap: 0.625rem;
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}
.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--blue-dim);
  color: var(--blue-bright);
}
.stat-icon.amber { background: var(--amber-dim); color: var(--amber); }
.stat-icon.green { background: var(--green-dim); color: var(--green); }
.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat-label { color: var(--muted); font-size: 0.6875rem; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: 0.625rem;
}
.news-mini {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5625rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
  animation: tileIn 0.42s cubic-bezier(0.22, 0.7, 0.3, 1) backwards;
  animation-delay: calc(var(--i, 0) * 35ms);
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}
.news-mini:hover {
  border-color: var(--border-2);
  background: var(--card-2);
  transform: translateY(-1px);
}
.news-mini-thumb {
  position: relative;
  width: clamp(82px, 9vw, 104px);
  height: clamp(54px, 6vw, 68px);
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: #0b0c10;
}
.news-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.news-mini:hover .news-mini-thumb img { transform: scale(1.05); }
.news-mini-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  display: inline-flex;
  align-items: center;
  height: 17px;
  padding: 0 0.375rem;
  border-radius: 4px;
  color: #fff;
  font-size: 0.5625rem;
  font-weight: 600;
  line-height: 1;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.news-mini-badge.is-article { background: rgba(63, 102, 224, 0.82); }
.news-mini-badge.is-update { background: rgba(180, 122, 23, 0.85); }
.news-mini-badge.is-site { background: rgba(29, 125, 92, 0.85); }
.news-mini-body { min-width: 0; flex: 1; }
.news-mini-body h3 {
  overflow: hidden;
  font-size: 0.8438rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-mini-body h3 a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-mini:hover h3 { color: var(--blue-bright); }
.news-mini-body p {
  margin-top: 0.125rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7188rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-mini-meta {
  display: flex;
  gap: 0.3125rem;
  margin-top: 0.375rem;
  color: var(--muted-2);
  font-size: 0.6563rem;
}

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.125rem;
  color: var(--muted);
  font-size: 0.75rem;
}
.links-row a { transition: color 0.15s ease; }
.links-row a:hover { color: var(--fg); }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.25rem;
  border: 1px dashed var(--border-2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.012);
  color: var(--muted);
  text-align: center;
}
.empty-state .icon { opacity: 0.4; margin-bottom: 0.75rem; }
.empty-state p { font-size: 0.875rem; }
.empty-state small { margin-top: 0.25rem; font-size: 0.75rem; color: var(--muted-2); }

.cat-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.125rem, 4vw, 2.875rem) 0 clamp(1.875rem, 3.6vw, 2.625rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #0b0c10;
}
.cat-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 72%);
  pointer-events: none;
}
.cat-hero::after {
  content: "";
  position: absolute;
  top: -140px;
  left: 18%;
  width: 420px;
  height: 280px;
  border-radius: 50%;
  background: rgba(91, 124, 255, 0.18);
  filter: blur(90px);
  pointer-events: none;
}
.cat-hero .container { position: relative; z-index: 1; }
.mono-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.cat-hero h1 {
  font-size: clamp(28px, 2.8vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.cat-hero .cat-desc {
  max-width: 620px;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}
.cat-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}
.cat-hero-meta .badge {
  height: 24px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: var(--fg-soft);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.cat-hero-meta span { color: var(--muted-2); font-size: 0.6875rem; }

.tabs-strip {
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.014);
}
.tabs-row {
  display: flex;
  gap: 0.25rem;
  padding: 0.5rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-row::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0;
  padding: 0.4375rem 0.75rem;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.8125rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.tab:hover { background: rgba(255, 255, 255, 0.05); color: var(--fg); }
.tab.active { background: var(--primary); color: var(--primary-fg); font-weight: 600; }

.cat-main { padding: 1.375rem 0 1.25rem; }
#cat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  color: var(--muted);
  font-size: 0.75rem;
}
.toolbar strong { color: var(--fg); font-weight: 600; }
.sort-group { display: flex; align-items: center; gap: 0.5rem; }
.sort-group > span { color: var(--muted); font-size: 0.75rem; }
.sort-group .select { width: 8.25rem; min-height: 2.25rem; height: auto; font-size: 0.75rem; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 2rem;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  height: auto;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.4375rem;
  background: var(--card);
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.2;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.page-btn:hover { border-color: var(--border-2); color: var(--fg); background: var(--card-2); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); font-weight: 600; }
.page-btn[disabled] { opacity: 0.35; pointer-events: none; }
.page-ellipsis { padding: 0 0.375rem; color: var(--muted-2); font-size: 0.75rem; }

.content-page { display: flex; justify-content: center; margin-top: 2rem; }
.content-page .page-navigator {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.content-page .page-navigator li { display: inline-flex; }
.content-page .page-navigator a,
.content-page .page-navigator .page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.4375rem;
  background: var(--card);
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.2;
}
.content-page .page-navigator a:hover { border-color: var(--border-2); background: var(--card-2); color: var(--fg); }
.content-page .page-navigator .current .page { border-color: var(--primary); background: var(--primary); color: var(--primary-fg); font-weight: 600; }
.content-page .page-navigator .disabled a { opacity: 0.35; pointer-events: none; }

.breadcrumb {
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.014);
}
.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 0.3125rem;
  min-height: 2.5rem;
  height: auto;
  padding-block: 0.35rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}
.breadcrumb-inner a:hover { color: var(--fg); }
.breadcrumb-inner .icon { color: var(--muted-2); }
.breadcrumb-inner .current { overflow: hidden; min-width: 0; color: var(--fg); text-overflow: ellipsis; white-space: nowrap; }
.crumb-sep { display: inline-flex; align-items: center; color: var(--muted-2); }

.detail-main { padding: 1.5rem 0 1.25rem; }
.detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(0.875rem, 1.8vw, 1.25rem);
  padding: clamp(1rem, 1.8vw, 1.375rem);
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #111217 0%, var(--card) 100%);
}
.detail-head-main {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.875rem, 1.8vw, 1.25rem);
  flex: 1 1 460px;
  min-width: 0;
}
.detail-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(60px, 6vw, 80px);
  height: clamp(60px, 6vw, 80px);
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border-2);
  border-radius: clamp(14px, 1.4vw, 18px);
  background: #0c0d10;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.detail-logo img { width: clamp(34px, 3.2vw, 44px); height: clamp(34px, 3.2vw, 44px); object-fit: contain; }
.detail-logo .logo-letter { font-size: 1.625rem; }
.detail-info { flex: 1; min-width: 0; padding-top: 0.125rem; }
.detail-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.detail-title-row h1 {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.detail-desc {
  margin-top: 0.4375rem;
  color: var(--muted);
  font-size: 0.8438rem;
  line-height: 1.7;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.75rem;
}
.detail-meta span { display: inline-flex; align-items: center; gap: 0.3125rem; }
.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
  padding-top: 0.25rem;
}
.detail-actions .row { display: flex; gap: 0.5rem; }
.fav-btn.is-fav { border-color: rgba(245, 184, 61, 0.42); background: rgba(245, 184, 61, 0.08); color: var(--amber); }
.btn.is-copied { border-color: rgba(62, 207, 142, 0.42); color: var(--green); }

.detail-layout {
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 2vw, 1.25rem);
}
.detail-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0; }
.detail-aside { width: clamp(240px, 23vw, 292px); flex-shrink: 0; display: flex; flex-direction: column; gap: 1rem; }

.panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.125rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 600;
}
.panel-head .icon { color: var(--blue-bright); }
.panel-body { padding: 1.125rem; }

.detail-col { gap: 0; }
.detail-col > .panel {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  border-top: 1px solid var(--border);
  padding: 1.125rem 0;
}
.detail-col > .panel:first-child { border-top: 0; padding-top: 0; }
.detail-col > .panel:last-child { padding-bottom: 0; }
.detail-col > .panel .panel-head {
  min-height: 0;
  padding: 0 0 0.6875rem;
  border-bottom: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}
.detail-col > .panel .panel-body { padding: 0; }

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 0.625rem 1.5rem;
  font-size: 0.8125rem;
}
.meta-grid .full { grid-column: 1 / -1; }
.meta-row { display: flex; gap: 0.625rem; min-width: 0; }
.meta-row dt { width: 64px; flex-shrink: 0; color: var(--muted); }
.meta-row dd { min-width: 0; flex: 1; overflow: hidden; color: var(--fg-soft); text-overflow: ellipsis; }
.meta-row dd a { color: var(--blue-bright); }
.meta-row dd a:hover { text-decoration: underline; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.375rem; }

.monitor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 0.5rem;
}
.monitor-item {
  padding: 0.625rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
}
.monitor-label {
  display: flex;
  align-items: center;
  gap: 0.3125rem;
  color: var(--muted);
  font-size: 0.6875rem;
}
.monitor-value {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
}
.monitor-value.green { color: var(--green); }
.monitor-value.is-normal { color: var(--green); }
.monitor-value.is-redirect { color: var(--amber); }
.monitor-value.is-failed { color: var(--red); }
.monitor-value.is-pending { color: var(--muted); }

.timeline {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  margin-top: 0.5rem;
}
.timeline-day {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 0.3125rem;
}
.timeline-bar {
  width: 100%;
  border-radius: 2px;
  background: rgba(62, 207, 142, 0.65);
}
.timeline-bar.is-normal { height: 2rem; background: rgba(62, 207, 142, 0.65); }
.timeline-bar.is-redirect { height: 2rem; background: rgba(245, 184, 61, 0.65); }
.timeline-bar.is-failed { height: 2rem; background: rgba(242, 85, 90, 0.65); }
.timeline-bar.is-pending { height: 2rem; background: var(--border); }
.timeline-empty { margin-top: 0.75rem; padding: 0.75rem; border: 1px dashed var(--border-2); border-radius: var(--radius-sm); color: var(--muted-2); font-size: 0.75rem; text-align: center; }
.timeline-bar.slow { background: rgba(245, 184, 61, 0.65); }
.timeline-bar.down { background: rgba(242, 85, 90, 0.65); }
.timeline-label { color: var(--muted-2); font-size: 0.625rem; }
.timeline-legend {
  display: flex;
  gap: 0.875rem;
  margin-top: 0.625rem;
  color: var(--muted-2);
  font-size: 0.625rem;
}
.timeline-legend span { display: inline-flex; align-items: center; gap: 0.3125rem; }
.dot { width: 8px; height: 8px; border-radius: 2px; background: rgba(62, 207, 142, 0.65); }
.dot.amber { background: rgba(245, 184, 61, 0.65); }
.dot.red { background: rgba(242, 85, 90, 0.65); }

.review-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.875rem, 1.8vw, 1.25rem);
}
.rating-block { text-align: center; flex-shrink: 0; }
.rating-value { font-size: 2.125rem; font-weight: 700; line-height: 1.1; }
.stars { display: flex; gap: 0.0625rem; margin-top: 0.375rem; color: var(--amber); font-size: 0.875rem; letter-spacing: 0.08em; }
.stars .on { color: var(--amber); fill: var(--amber); }
.stars span:not(.on) { color: var(--muted-2); }
.fake-line-short { width: 3.375rem; }
.detail-tag-badges { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.detail-tag-badges .badge { text-decoration: none; }
.related-panel-body { padding: 0.5rem; }
.related-empty { padding: 0.875rem; color: var(--muted); font-size: 0.75rem; text-align: center; }
.rating-by { margin-top: 0.25rem; color: var(--muted-2); font-size: 0.6875rem; }
.review-points { flex: 1; display: flex; flex-direction: column; gap: 0.625rem; }
.review-points h4 {
  display: flex;
  align-items: center;
  gap: 0.3125rem;
  margin-bottom: 0.3125rem;
  font-size: 0.75rem;
  font-weight: 500;
}
.review-points .chips { display: flex; flex-wrap: wrap; gap: 0.3125rem; }
.chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 0.4375rem;
  border: 1px solid var(--border-2);
  border-radius: 5px;
  color: var(--muted);
  font-size: 0.6875rem;
}
.chip.green { border-color: rgba(62, 207, 142, 0.3); background: rgba(62, 207, 142, 0.05); color: var(--green); }
.chip.red { border-color: rgba(242, 85, 90, 0.3); background: rgba(242, 85, 90, 0.05); color: var(--red); }
.review-text {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--fg-soft);
  font-size: 0.8125rem;
  line-height: 1.9;
  white-space: pre-line;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}
.seo-weight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.6875rem 0.375rem 0.5625rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-2);
  text-align: center;
}
.weight-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #4f8cff, #2563eb);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}
.weight-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.55);
  transform: translateX(-50%);
}
.weight-icon span { transform: translateY(-2px); }
.weight-icon.green {
  background: linear-gradient(135deg, #34d399, #059669);
  box-shadow: 0 6px 14px rgba(5, 150, 105, 0.26), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.weight-icon.emerald {
  background: linear-gradient(135deg, #2dd4bf, #0d9488);
  box-shadow: 0 6px 14px rgba(13, 148, 136, 0.26), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.weight-icon.amber {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  box-shadow: 0 6px 14px rgba(217, 119, 6, 0.26), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.weight-icon.red {
  background: linear-gradient(135deg, #fb7185, #dc2626);
  box-shadow: 0 6px 14px rgba(220, 38, 38, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.seo-engine { color: var(--muted); font-size: 0.6563rem; }
.seo-note { margin-top: 0.875rem; color: var(--muted-2); font-size: 0.6875rem; line-height: 1.7; }

.preview { border-bottom: 0; }
.browser {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #15161d 0%, #0c0d11 55%, #101218 100%);
}
.browser-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4375rem 0.625rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 13, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.browser-dots { display: flex; gap: 0.25rem; }
.browser-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(242, 85, 90, 0.7);
}
.browser-dots i:nth-child(2) { background: rgba(245, 184, 61, 0.7); }
.browser-dots i:nth-child(3) { background: rgba(62, 207, 142, 0.7); }
.browser-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser-content {
  position: absolute;
  inset: 30px 14px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.375rem;
}
.fake-row { display: flex; align-items: center; gap: 0.375rem; }
.fake-logo { width: 20px; height: 20px; border-radius: 4px; background: rgba(91, 124, 255, 0.16); }
.fake-line { height: 5px; border-radius: 2px; background: rgba(255, 255, 255, 0.13); }
.fake-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.25rem; }
.fake-grid i { aspect-ratio: 1; border-radius: 3px; background: rgba(91, 124, 255, 0.07); }
.fake-lines { display: flex; flex-direction: column; gap: 0.25rem; }
.fake-lines .fake-line:nth-child(2) { width: 78%; }

.related-list { display: flex; flex-direction: column; gap: 0.125rem; }
.related-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.4375rem;
  border-radius: 7px;
  transition: background-color 0.15s ease;
}
.related-item:hover { background: rgba(255, 255, 255, 0.045); }
.related-body { min-width: 0; flex: 1; }
.related-body strong {
  display: block;
  overflow: hidden;
  font-size: 0.7813rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.related-body span {
  display: block;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 0.6563rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quick-list { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.75rem; }
.quick-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; color: var(--muted); }
.quick-row span:last-child { color: var(--fg-soft); }
.quick-row a { color: var(--blue-bright); }

/* 文章列表 */
.news-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.25rem, 4.5vw, 3.5rem) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #0a0b0f;
}
.news-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 40% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse at 40% 30%, #000 0%, transparent 75%);
  pointer-events: none;
}
.news-hero::after {
  content: "";
  position: absolute;
  top: -160px;
  left: 28%;
  width: 460px;
  height: 300px;
  border-radius: 50%;
  background: rgba(91, 124, 255, 0.16);
  filter: blur(100px);
  pointer-events: none;
}
.news-hero .container { position: relative; z-index: 1; }
.news-hero h1 { font-size: clamp(28px, 2.8vw, 34px); font-weight: 700; letter-spacing: -0.03em; }
.news-hero p { max-width: 560px; margin-top: 0.5rem; color: var(--muted); font-size: var(--font-lead); }
.news-hero-search { position: relative; max-width: 520px; margin-top: 1.375rem; }
.news-hero-search .icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--muted-2);
}
.news-hero-search input {
  width: 100%;
  min-height: 2.75rem;
  height: auto;
  padding: 0.6rem 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.625rem;
  background: rgba(255, 255, 255, 0.055);
  color: var(--fg);
  font-size: 0.8125rem;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.news-hero-search input::placeholder { color: var(--muted-2); }
.news-hero-search input:focus {
  outline: none;
  border-color: rgba(91, 124, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}
.news-hero-search .clear-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--muted);
}
.news-hero-search .clear-btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--fg); }

.news-main { padding: 1.375rem 0 1.25rem; }
.news-layout { display: flex; align-items: flex-start; gap: clamp(1rem, 2.2vw, 1.5rem); }
.news-list-col { flex: 1; min-width: 0; }
.news-side { width: clamp(240px, 23vw, 292px); flex-shrink: 0; display: flex; flex-direction: column; gap: 1rem; }
.result-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  margin-bottom: 0.875rem;
  color: var(--muted);
  font-size: 0.75rem;
}
.result-line strong { color: var(--fg); font-weight: 600; }
.result-line .mono { color: var(--muted-2); font-size: 0.625rem; }

.article-list { display: flex; flex-direction: column; gap: 0.875rem; }
.article-card {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.article-card:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 124, 255, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
}
.article-thumb {
  position: relative;
  width: clamp(160px, 18vw, 224px);
  flex-shrink: 0;
  overflow: hidden;
  background: #0c0d10;
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.article-card:hover .article-thumb img { transform: scale(1.04); }
.article-thumb .badge {
  position: absolute;
  top: 8px;
  left: 8px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.article-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: clamp(0.8125rem, 1.3vw, 1.125rem);
}
.article-card h3 {
  display: block;
  overflow: hidden;
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 600;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.article-card:hover h3 { color: var(--blue-bright); }
.article-summary {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 0.375rem;
  color: var(--muted);
  font-size: 0.7813rem;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.75rem;
  color: var(--muted);
  font-size: 0.6875rem;
}
.article-meta span { display: inline-flex; align-items: center; gap: 0.25rem; }
.article-meta .source { margin-left: auto; color: var(--muted-2); }

.side-card { padding: 1rem; }
.side-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
}
.side-title .section-bar { height: 14px; }
.hot-list { display: flex; flex-direction: column; gap: 0.6875rem; }
.hot-item {
  display: flex;
  align-items: center;
  gap: 0.5625rem;
  text-align: left;
}
.hot-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
}
.hot-item:nth-child(-n + 3) .hot-index { background: var(--primary); color: var(--primary-fg); }
.hot-body {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}
.hot-body h4 {
  display: block;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hot-item:hover h4 { color: var(--blue-bright); }
.hot-body .hot-views {
  display: inline-flex;
  align-items: center;
  gap: 0.1875rem;
  flex-shrink: 0;
  margin-top: 0;
  color: var(--muted-2);
  font-size: 0.625rem;
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.4375rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6563rem;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.tag-pill:hover { border-color: rgba(91, 124, 255, 0.3); background: rgba(91, 124, 255, 0.06); color: var(--blue-bright); }
.tag-pill em { color: var(--muted-2); font-style: normal; font-size: 0.5625rem; }
.subscribe-card {
  padding: 1rem;
  border: 1px solid rgba(91, 124, 255, 0.24);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(91, 124, 255, 0.09), transparent 70%), var(--card);
}
.subscribe-card h3 { display: flex; align-items: center; gap: 0.4375rem; font-size: 0.8125rem; font-weight: 600; }
.subscribe-card p { margin-top: 0.3125rem; color: var(--muted); font-size: 0.7188rem; }
.subscribe-card .btn { margin-top: 0.75rem; }

.progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 2px;
  background: transparent;
}
.progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #5b7cff, #9a7dff);
  transition: width 0.08s linear;
}
.article-main { padding: 1.625rem 0 1.875rem; }
.article-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.375rem;
}
.article-toolbar .left { display: flex; align-items: center; gap: 0.125rem; }
.article-toolbar .right { display: flex; align-items: center; gap: 0.125rem; }
.article-toolbar .is-bookmarked { color: var(--amber); }
.article-toolbar .is-bookmarked .icon { fill: currentColor; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(250px, 24vw, 300px);
  align-items: start;
  gap: clamp(1.25rem, 2.6vw, 2rem);
}
.article-primary { min-width: 0; }
.article-wrap { width: 100%; }
.article-wrap .prose > h1:first-child { display: none; }
.article-wrap, .article-wrap .prose { max-width: 100%; overflow-wrap: anywhere; }
.article-wrap .prose img { max-width: 100%; height: auto; }
@media (max-width: 48em) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-aside { min-width: 0; }
}
.aside-hot { counter-reset: article-hot; }
.aside-hot .idx::before { counter-increment: article-hot; content: counter(article-hot); }
.article-aside {
  position: sticky;
  top: calc(var(--header-h) + 86px);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.aside-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}
.aside-title {
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
}
.aside-title .icon { color: var(--blue-bright); }
.aside-info { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.75rem; }
.aside-info div { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; color: var(--muted); }
.aside-info div span:last-child { color: var(--fg-soft); text-align: right; }
.aside-hot { display: flex; flex-direction: column; }
.aside-hot a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
}
.aside-hot a:first-child { border-top: 0; padding-top: 0; }
.aside-hot a:last-child { padding-bottom: 0; }
.aside-hot .idx {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
}
.aside-hot a:nth-child(-n + 3) .idx { background: var(--primary); color: var(--primary-fg); }
.aside-hot .txt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}
.aside-hot .txt strong {
  display: block;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--fg-soft);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aside-hot a:hover .txt strong { color: var(--blue-bright); }
.aside-hot .aside-views {
  display: inline-flex;
  align-items: center;
  gap: 0.1875rem;
  flex-shrink: 0;
  margin-top: 0;
  color: var(--muted-2);
  font-size: 0.625rem;
}
.aside-toc { display: flex; flex-direction: column; }
.aside-toc a {
  padding: 0.3125rem 0 0.3125rem 0.625rem;
  border-left: 2px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.aside-toc a.lv3 { padding-left: 1.375rem; font-size: 0.7188rem; }
.aside-toc a:hover { border-color: var(--blue); color: var(--fg); }
.article-header { padding-bottom: 1.75rem; border-bottom: 1px solid var(--border); }
.article-badges { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 0.875rem; }
.article-header h1 {
  font-size: clamp(25px, 2.8vw, 34px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.028em;
}
.article-lead { margin-top: 0.875rem; color: var(--muted); font-size: clamp(14px, 1.15vw, 16px); line-height: 1.75; }
.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem clamp(0.625rem, 1.4vw, 1.125rem);
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.75rem;
}
.article-byline span { display: inline-flex; align-items: center; gap: 0.3125rem; }
.article-byline .author { color: var(--fg-soft); font-weight: 500; }

.prose { padding: 1.875rem 0; color: rgba(241, 242, 244, 0.86); font-size: clamp(14px, 1.08vw, 15.5px); line-height: 1.95; }
.prose > * + * { margin-top: 1.125rem; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--fg); font-weight: 600; letter-spacing: -0.015em; line-height: 1.4; scroll-margin-top: calc(var(--header-h) + 4.875rem); }
.prose h2 { margin-top: 2.25rem; font-size: clamp(18px, 1.5vw, 21px); }
.prose h3 { margin-top: 1.75rem; font-size: clamp(15px, 1.3vw, 17px); }
.prose h4 { margin-top: 1.375rem; font-size: var(--font-section); }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a { color: var(--blue-bright); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose ul, .prose ol { padding-left: 1.375rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 0.3125rem 0; }
.prose li::marker { color: var(--muted-2); }
.prose blockquote {
  padding: 0.625rem 1rem;
  border-left: 2px solid rgba(91, 124, 255, 0.5);
  border-radius: 0 6px 6px 0;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}
.prose code {
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: #b9c6ff;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
.prose pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  background: #060608;
}
.prose pre code { padding: 0; background: transparent; color: #d7dae6; font-size: 0.7813rem; line-height: 1.7; }
.prose hr { margin: 1.875rem 0; border: 0; border-top: 1px solid var(--border); }

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.article-tags .label-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  color: var(--muted);
  font-size: 0.75rem;
}
.article-tags .chip { font-family: var(--font-mono); cursor: pointer; text-decoration: none; }
.article-tags .chip:hover { border-color: rgba(91, 124, 255, 0.3); color: var(--blue-bright); }

.reactions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 2.125rem;
}
.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  min-height: 2.5rem;
  height: auto;
  padding: 0.4rem 1.125rem;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: var(--card);
  color: var(--fg-soft);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.16s ease;
}
.reaction-btn:hover { border-color: rgba(245, 184, 61, 0.4); color: var(--amber); }
.reaction-btn.like.is-on { border-color: rgba(245, 184, 61, 0.45); background: rgba(245, 184, 61, 0.08); color: var(--amber); }
.reaction-btn.like.is-on .icon { fill: currentColor; }
.reaction-btn .count { color: var(--muted); font-family: var(--font-mono); font-size: 0.6875rem; }
.reaction-note {
  margin-top: 0.875rem;
  text-align: center;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
}

.pager {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 0.75rem;
  max-width: none;
  margin: 2.25rem 0 0;
}
.pager-card {
  display: flex;
  flex-direction: column;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  text-align: left;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.pager-card:hover { border-color: rgba(91, 124, 255, 0.3); transform: translateY(-1px); }
.pager-card.next { text-align: right; }
.pager-label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.625rem;
}
.pager-card.next .pager-label { justify-content: flex-end; }
.pager-title {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 0.3125rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.pager-card:hover .pager-title { color: var(--blue-bright); }
.pager-date { margin-top: 0.3125rem; color: var(--muted-2); font-family: var(--font-mono); font-size: 0.625rem; }
.pager-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.012);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
}

.related-section { max-width: none; margin: 2.75rem 0 0; }
.related-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.75rem; }
.related-head h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; font-weight: 600; }
.related-head span { color: var(--muted-2); font-family: var(--font-mono); font-size: 0.6875rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 0.625rem; }
.related-card {
  display: flex;
  flex-direction: column;
  padding: 0.875rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.related-card:hover { border-color: rgba(91, 124, 255, 0.3); transform: translateY(-2px); }
.related-card .meta { display: flex; align-items: center; gap: 0.375rem; margin-bottom: 0.4375rem; }
.related-card h4 {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.related-card:hover h4 { color: var(--blue-bright); }
.related-card p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 0.3125rem;
  color: var(--muted);
  font-size: 0.6875rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.related-card .stats { display: flex; gap: 0.625rem; margin-top: 0.5625rem; color: var(--muted-2); font-size: 0.625rem; }

.comments-section {
  margin-top: clamp(1.5rem, 3vw, 2.375rem);
  padding: clamp(1.25rem, 2.4vw, 2rem) 0 clamp(0.625rem, 1.2vw, 0.875rem);
  border-top: 1px solid var(--border);
  container-type: inline-size;
}
.comments-inner { width: 100%; max-width: none; margin: 0 auto; }
.comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.125rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--border);
}
.comments-head h2 {
  display: flex;
  align-items: center;
  gap: 0.5625rem;
  font-size: 1.125rem;
  font-weight: 600;
}
.comments-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 0.375rem;
  border-radius: 999px;
  background: var(--blue-dim);
  color: var(--blue-bright);
  font-family: var(--font-mono);
  font-size: 0.5938rem;
  font-weight: 600;
}
.comments-sub {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.6563rem;
  white-space: nowrap;
}
.comment-form-row { display: flex; align-items: flex-start; gap: 0.75rem; }
.comment-form-body { flex: 1; min-width: 0; }
.comment-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(22px, 2.2vw, 28px);
  height: clamp(22px, 2.2vw, 28px);
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: clamp(9px, 0.8vw, 10.5px);
  font-weight: 600;
}
.comment-avatar.is-author {
  border-color: rgba(37, 99, 235, 0.28);
  background: var(--blue-dim);
  color: var(--blue-bright);
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-form .textarea,
.comment-reply-form .textarea {
  width: 100%;
  min-height: 56px;
  padding: 0.5625rem 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.8438rem;
  line-height: 1.7;
  resize: vertical;
}
.comment-form .textarea:focus,
.comment-reply-form .textarea:focus {
  border-bottom-color: var(--blue);
  box-shadow: none;
}
.comment-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  margin-top: 0.5rem;
  color: var(--muted-2);
  font-size: 0.6875rem;
}
.comment-form-actions { display: flex; align-items: center; gap: 0.375rem; }
.comment-list { margin-top: 0.625rem; }
.comment-node { padding: 1.25rem 0; border-top: 1px solid var(--border); }
.comment-node:first-child { padding-top: 0.5rem; border-top: 0; }
.comment-main { display: flex; align-items: flex-start; gap: 0.75rem; }
.comment-body { flex: 1; min-width: 0; }
.comment-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 20px;
}
.comment-name { color: var(--fg-soft); font-size: 0.8438rem; font-weight: 600; }
.comment-role {
  padding: 0.0625rem 0.3125rem;
  border-radius: 3px;
  background: var(--blue-dim);
  color: var(--blue-bright);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
}
.comment-time { color: var(--muted-2); font-family: var(--font-mono); font-size: 0.6563rem; }
.comment-text {
  margin-top: 0.375rem;
  color: var(--muted);
  font-size: 0.8438rem;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.comment-actions { display: flex; align-items: center; gap: 1.125rem; margin-top: 0.5rem; }
.comment-act {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--muted-2);
  font-size: 0.6875rem;
  transition: color 0.15s ease;
}
.comment-act:hover { color: var(--blue-bright); }
.comment-children {
  margin-top: clamp(0.5rem, 1vw, 0.75rem);
  margin-left: clamp(0.625rem, 2.5vw, 1.875rem);
  padding-left: clamp(0.5rem, 1.5vw, 1.125rem);
  border-left: 1px solid var(--border);
}
.comment-guest-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.375rem; }
.comment-guest-row .input { flex: 1 1 10rem; min-width: 0; min-height: 2.25rem; font-size: 0.75rem; }
.comment-form--login .textarea { opacity: 0.72; cursor: not-allowed; }
.comment-login-prompt {
  min-height: 56px;
  margin: 0;
  padding: 0.5625rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 0.875rem;
}
.comment-form--login .comment-form-foot { margin-top: 0.375rem; }
.comment-reply-hint { margin: 0 0 0.375rem; color: var(--blue-bright); font-size: 0.75rem; cursor: pointer; }
.comment-login-note { color: var(--muted); font-size: 0.8125rem; }
.comment-login-note a { color: var(--blue-bright); }
.comment-empty { margin-top: 0.75rem; color: var(--muted-2); font-size: 0.8125rem; }
.comment-text { white-space: pre-wrap; }
.comment-text.is-muted { color: var(--muted-2); }
.comment-collapse summary { color: var(--blue-bright); font-size: 0.75rem; cursor: pointer; }
.comment-collapse .comment-text { margin-top: 0.5rem; }
.comment-reply-form { margin-top: 0.625rem; }
.comment-reply-form .textarea { min-height: 48px; }
.comment-reply-form .comment-form-foot { margin-top: 0.375rem; }

.tags-body { padding-top: 1.5rem; padding-bottom: 2.5rem; }
.tags-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.tags-search { position: relative; width: 280px; max-width: 100%; }
.tags-search .icon {
  position: absolute;
  top: 50%;
  left: 11px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1;
  transform: translateY(-50%);
  pointer-events: none;
}
.tags-search .input { height: 36px; padding-left: 1.75rem; font-size: 0.75rem; }
.tags-hint { color: var(--muted-2); font-family: var(--font-mono); font-size: 0.6563rem; }
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4375rem;
  padding: 0.25rem 0 1.125rem;
  border-bottom: 1px solid var(--border);
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  min-height: 2rem;
  height: auto;
  padding: 0.35rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--card);
  color: var(--muted);
  font-size: 0.75rem;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.tag-chip:hover { border-color: #bfdbfe; background: var(--blue-dim); color: var(--blue-bright); }
.tag-chip.active { border-color: var(--primary); background: var(--primary); color: var(--primary-fg); }
.tag-hash { color: var(--blue); font-family: var(--font-mono); font-size: 0.625rem; }
.tag-chip.active .tag-hash { color: inherit; opacity: 0.6; }
.tag-chip em {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-style: normal;
}
.tag-chip.active em { color: inherit; opacity: 0.6; }
.tag-more {
  min-height: 2rem;
  height: auto;
  padding: 0.35rem 0.625rem;
  border: 1px dashed var(--border);
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.6875rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.tag-more:hover { border-color: #bfdbfe; color: var(--blue-bright); }
.tag-cloud-empty { padding: 0.5rem 0; color: var(--muted-2); font-size: 0.75rem; }
.tag-result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.125rem;
  padding: 1.75rem 0 1rem;
}
.tag-result-head .mono-label { margin-bottom: 0.3125rem; }
.tag-result-head h2 { font-size: clamp(24px, 2.2vw, 28px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; }
.tag-result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.1875rem;
  color: var(--muted-2);
  font-size: 0.6875rem;
}
.tag-result-meta .section-link { color: var(--muted); }
.tag-result-meta .section-link:hover { color: var(--blue-bright); }
.tag-section { margin-top: 1.375rem; }
.tag-section-head { margin-bottom: 0.6875rem; }
.tag-section-head h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
}
.tag-section-head h3 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 17px;
  padding: 0 0.3125rem;
  border-radius: 999px;
  background: var(--blue-dim);
  color: var(--blue-bright);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 500;
}

.article-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;  max-width: none;
  margin: 2.75rem 0 0;
  padding-top: 1.125rem;
  border-top: 1px solid var(--border);
}
.article-footer span { color: var(--muted-2); font-family: var(--font-mono); font-size: 0.6875rem; }

.backtop {
  position: fixed;
  right: clamp(16px, 2vw, 24px);
  bottom: clamp(16px, 2vw, 24px);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  background: var(--card);
  color: var(--muted);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, color 0.15s ease;
}
.backtop.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.backtop:hover { color: var(--fg); border-color: #41444d; }

.form-page { padding: 2.75rem 0 1.25rem; }
.form-wrap { max-width: 640px; margin: 0 auto; }
.form-card {
  padding: clamp(1.125rem, 2.2vw, 1.5rem);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}
.form-head {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding-bottom: 1.125rem;
  margin-bottom: 1.375rem;
  border-bottom: 1px solid var(--border);
}
.form-head .icon { color: var(--blue-bright); margin-top: 0.125rem; }
.form-head h1 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; }
.form-head p { margin-top: 0.1875rem; color: var(--muted); font-size: 0.7813rem; }
.alert {
  display: flex;
  gap: 0.5625rem;
  padding: 0.75rem 0.875rem;
  margin-bottom: 1.125rem;
  border: 1px solid rgba(91, 124, 255, 0.26);
  border-radius: 9px;
  background: rgba(91, 124, 255, 0.07);
  color: var(--fg-soft);
  font-size: 0.7813rem;
  line-height: 1.7;
}
.alert .icon { color: var(--blue-bright); flex-shrink: 0; margin-top: 0.125rem; }
.center-actions { display: flex; justify-content: center; padding-top: 0.375rem; }
.apply-url-row { display: flex; align-items: center; gap: 0.5rem; }
.apply-url-row .input { flex: 1; min-width: 0; }
.apply-url-row .btn { flex-shrink: 0; }
.apply-icon-preview { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; color: var(--muted); font-size: 0.75rem; }
.apply-icon-preview img { width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 8px; object-fit: contain; background: var(--card); }
[data-metadata-status] { margin: 0.375rem 0 0; color: var(--muted-2); }
[data-metadata-status].is-error { color: var(--red); }
.apply-message { margin: 0.875rem 0; padding: 0.75rem 0.875rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card-2); color: var(--muted); font-size: 0.8125rem; }

.about-hero { padding: 3.5rem 0 0.625rem; text-align: center; }
.about-page { padding: 2.5rem 0 1.25rem; }
.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.65fr);
  gap: 1.25rem;
  align-items: stretch;
  margin-bottom: 1.25rem;
}
.about-hero-copy { padding: 0.75rem 0; }
.about-hero-copy h1 {
  margin-top: 0.5rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.about-hero-copy p {
  max-width: 44rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.9;
}
.about-hero-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 1.25rem; }
.about-hero-tags span {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.625rem;
}
.about-hero-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.about-facts { display: flex; flex-direction: column; gap: 0; margin-top: 0.75rem; }
.about-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
}
.about-facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.about-facts dt { flex-shrink: 0; color: var(--muted-2); font-size: 0.75rem; }
.about-facts dd { margin: 0; color: var(--fg-soft); font-size: 0.75rem; text-align: right; word-break: break-all; }
.about-facts a { color: var(--blue-bright); }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.about-card--lead, .about-card--wide { grid-column: 1 / -1; }
.about-kicker {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
}
.about-hero h1 { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.03em; }
.about-hero p { margin-top: 0.5rem; color: var(--muted); font-size: 0.875rem; }
.about-wrap { max-width: 768px; margin: 0 auto; padding: 1.75rem 0 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.about-card { display: flex; flex-direction: column; padding: 1.375rem; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.about-card h2 { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.625rem; font-size: 0.9375rem; font-weight: 600; }
.about-card h2 .icon { color: var(--blue-bright); }
.about-card p, .about-card li { color: var(--muted); font-size: 0.8125rem; line-height: 1.9; }
.about-card p + p { margin-top: 0.625rem; }
.about-card ul { padding-left: 1.25rem; list-style: disc; }
.about-card li { margin: 0.3125rem 0; }
.about-card li::marker { color: var(--muted-2); }
.about-card a { color: var(--blue-bright); }
.about-card a:hover { text-decoration: underline; }
.about-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.625rem; margin-top: 1.125rem; }
.about-point { padding: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card-2); }
.about-point strong { display: block; margin-bottom: 0.1875rem; color: var(--fg-soft); font-size: 0.8125rem; }
.about-point span { display: block; color: var(--muted); font-size: 0.75rem; line-height: 1.7; }
.about-principles { padding-left: 0 !important; list-style: none !important; }
.about-principles li { position: relative; padding-left: 1.375rem; }
.about-principles li::before {
  content: "";
  position: absolute;
  top: 0.7rem;
  left: 0;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--blue);
}
.about-principles strong { display: block; color: var(--fg-soft); font-size: 0.8125rem; font-weight: 600; }
.about-principles span { display: block; color: var(--muted); font-size: 0.75rem; }
.about-note { margin-top: 0.875rem; padding: 0.75rem 0.875rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card-2); color: var(--muted-2) !important; font-size: 0.75rem !important; }
.about-audience { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.875rem; }
.about-audience span { padding: 0.25rem 0.5rem; border: 1px solid var(--border-2); border-radius: 999px; color: var(--fg-soft); font-size: 0.75rem; }
.about-use-cases { margin-top: 1rem; padding-top: 0.875rem !important; border-top: 1px solid var(--border); }
.about-contact-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: auto; padding-top: 0.875rem; border-top: 1px solid var(--border); }
.about-contact-inline > span { color: var(--muted-2); font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.06em; }
.about-contact-inline > a:not(.btn) { color: var(--blue-bright); font-size: 0.75rem; }
.about-contact-inline .btn { margin-left: auto; }
.about-contact-link { display: inline-flex; align-items: center; gap: 0.375rem; margin-top: 0.625rem; font-size: 0.8125rem; }
@media (min-width: 100em) {
  .about-page .container { max-width: 90rem; }
}
@media (min-width: 75em) {
  .about-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 48em) {
  .about-hero-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-card--lead, .about-card--wide { grid-column: auto; }
  .about-hero-copy { padding-top: 0; }
}
@media (max-width: 30em) {
  .about-points { grid-template-columns: 1fr; }
}
.about-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1.375rem;
  border: 1px solid rgba(91, 124, 255, 0.24);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(91, 124, 255, 0.1), transparent 65%), var(--card);
}
.about-cta .lead { display: flex; gap: 0.75rem; }
.about-cta .lead .icon { color: var(--blue-bright); margin-top: 0.125rem; }
.about-cta strong { font-size: 0.9375rem; }
.about-cta p { margin-top: 0.1875rem; color: var(--muted); font-size: 0.7813rem; }

.discover-page { padding: 1rem 0 2rem; }
.discover-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: 1.25rem;
  align-items: stretch;
  margin-top: 0;
}
.discover-main {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}
.discover-kicker {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
}
.discover-kicker .icon { color: var(--blue-bright); }
.discover-site-head { display: flex; align-items: flex-start; gap: 1rem; margin-top: 1.25rem; }
.discover-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: clamp(56px, 6vw, 72px);
  height: clamp(56px, 6vw, 72px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-2);
}
.discover-icon img { width: 70%; height: 70%; object-fit: contain; }
.discover-site-title h1 { font-size: clamp(1.625rem, 3vw, 2.375rem); font-weight: 700; letter-spacing: -0.03em; }
.discover-site-title p { margin-top: 0.375rem; color: var(--muted); font-size: 0.8125rem; }
.discover-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1rem; color: var(--muted-2); font-size: 0.75rem; }
.discover-stars { color: var(--amber); letter-spacing: 0.06em; }
.discover-desc { max-width: 48rem; margin-top: 1.125rem; color: var(--muted); font-size: 0.875rem; line-height: 1.9; }
.discover-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.discover-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-height: 2.25rem;
  padding: 0 0.875rem;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--fg-soft);
  font-size: 0.75rem;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.discover-action:hover { border-color: var(--muted-2); background: var(--card-2); }
.discover-action-primary { border-color: var(--primary); background: var(--primary); color: var(--primary-fg); }
.discover-action-primary:hover { border-color: var(--primary); background: var(--primary); color: var(--primary-fg); opacity: 0.9; }
.discover-action-soft { color: var(--blue-bright); }
.discover-side {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card-2);
}
.discover-side h2 { margin-top: 0.75rem; font-size: 1rem; font-weight: 600; }
.discover-side p { margin-top: 0.5rem; color: var(--muted); font-size: 0.75rem; line-height: 1.8; }
.discover-side-links { display: flex; flex-direction: column; gap: 0; margin-top: auto; padding-top: 1rem; }
.discover-side-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
  color: var(--fg-soft);
  font-size: 0.75rem;
}
.discover-side-links a::after { content: "→"; color: var(--muted-2); }
.discover-side-links a:hover { color: var(--blue-bright); }
.discover-section { margin-top: 2.25rem; }
.section-more { color: var(--blue-bright); font-family: var(--font-mono); font-size: 0.6875rem; }
.discover-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.discover-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.discover-card:hover { border-color: rgba(91, 124, 255, 0.3); transform: translateY(-1px); }
.discover-card > a { display: flex; align-items: flex-start; gap: 0.625rem; height: 100%; padding: 0.875rem; }
.discover-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-2);
}
.discover-card-icon img { width: 70%; height: 70%; object-fit: contain; }
.discover-card-body { display: flex; flex-direction: column; min-width: 0; }
.discover-card-body strong { overflow: hidden; color: var(--fg-soft); font-size: 0.8125rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.discover-card-body em { margin-top: 0.125rem; color: var(--muted-2); font-size: 0.625rem; font-style: normal; }
.discover-card-body small {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 0.375rem;
  color: var(--muted);
  font-size: 0.6875rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.ranking-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ranking-panel { padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); counter-reset: discover-rank; }
.ranking-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; padding-bottom: 0.5rem; }
.ranking-head h3 { font-size: 0.9375rem; font-weight: 600; }
.ranking-head span { color: var(--muted-2); font-size: 0.6875rem; }
.ranking-row {
  display: grid;
  grid-template-columns: 1.25rem 1.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
}
.ranking-no { color: var(--muted-2); font-family: var(--font-mono); font-size: 0.625rem; }
.ranking-no::before { counter-increment: discover-rank; content: counter(discover-rank); }
.ranking-row:nth-child(2) .ranking-no { color: var(--amber); font-weight: 700; }
.ranking-icon { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; overflow: hidden; border-radius: 5px; background: var(--card-2); }
.ranking-icon img { width: 70%; height: 70%; object-fit: contain; }
.ranking-name { overflow: hidden; color: var(--fg-soft); font-size: 0.75rem; text-overflow: ellipsis; white-space: nowrap; }
.ranking-hit { color: var(--muted-2); font-family: var(--font-mono); font-size: 0.625rem; }
@media (max-width: 64em) {
  .discover-hero { grid-template-columns: 1fr; }
  .discover-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 48em) {
  .discover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ranking-grid { grid-template-columns: 1fr; }
  .discover-side-links { margin-top: 1rem; }
}
@media (max-width: 30em) {
  .discover-grid { grid-template-columns: 1fr; }
}

.ranking-page { padding: 1rem 0 2rem; }
.ranking-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.5rem 0 1.25rem;
  border-bottom: 1px solid var(--border);
}
.ranking-kicker {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
}
.ranking-kicker .icon { color: var(--amber); }
.ranking-hero h1 {
  margin-top: 0.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.ranking-hero p { max-width: 44rem; margin-top: 0.75rem; color: var(--muted); font-size: 0.875rem; line-height: 1.8; }
.ranking-hero-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ranking-page-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.ranking-info { display: flex; flex-direction: column; gap: 0.0625rem; min-width: 0; }
.ranking-info strong { overflow: hidden; color: var(--fg-soft); font-size: 0.75rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.ranking-info em { overflow: hidden; color: var(--muted-2); font-size: 0.625rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.ranking-row { transition: background-color 0.16s ease; }
.ranking-row:hover { background: var(--card-2); }
.ranking-panel .ranking-row:nth-child(2) .ranking-no,
.ranking-board .ranking-row:nth-child(2) .ranking-no { color: var(--amber); font-weight: 700; }
.ranking-panel .ranking-row:nth-child(3) .ranking-no,
.ranking-board .ranking-row:nth-child(3) .ranking-no { color: var(--fg-soft); font-weight: 600; }
.ranking-panel .ranking-row:nth-child(4) .ranking-no,
.ranking-board .ranking-row:nth-child(4) .ranking-no { color: #b7794a; font-weight: 600; }
.ranking-tabs { display: flex; gap: 0.25rem; margin-top: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.ranking-tab {
  padding: 0.375rem 0.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.75rem;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}
.ranking-tab:hover { color: var(--fg-soft); }
.ranking-tab.active { border-color: var(--border-2); background: var(--card-2); color: var(--fg-soft); }
.ranking-board { margin-top: 1rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.ranking-board .ranking-head { padding: 0 0 0.625rem; border-bottom: 1px solid var(--border); }
.ranking-board .ranking-head h3 { font-size: 0.9375rem; font-weight: 600; }
.ranking-tab-panel[hidden] { display: none; }
.ranking-tab-panel { counter-reset: discover-rank; }
.ranking-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  gap: 0 1.5rem;
}
.ranking-list .ranking-row:first-child { border-top: 0; }
@media (max-width: 48em) {
  .ranking-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
}
@media (max-width: 64em) {
  .ranking-page-grid { grid-template-columns: 1fr; }
  .ranking-hero { align-items: flex-start; }
}

.policy-page { padding: 1rem 0 2rem; }
.policy-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.5rem 0 1.25rem;
  border-bottom: 1px solid var(--border);
}
.policy-hero h1 {
  margin-top: 0.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.policy-hero p { max-width: 44rem; margin-top: 0.75rem; color: var(--muted); font-size: 0.875rem; line-height: 1.8; }
.policy-layout { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 1.25rem; align-items: start; margin-top: 1.25rem; }
.policy-main { display: flex; flex-direction: column; gap: 0.875rem; min-width: 0; }
.policy-section { padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.policy-kicker { margin-bottom: 0.5rem; color: var(--muted-2); font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: 0.1em; }
.policy-section h2 { margin-bottom: 0.75rem; font-size: 1.0625rem; font-weight: 600; }
.policy-section p { color: var(--muted); font-size: 0.8125rem; line-height: 1.9; }
.policy-section p + p { margin-top: 0.625rem; }
.policy-list { padding: 0; margin-top: 0.25rem; list-style: none; }
.policy-list li { position: relative; padding: 0.625rem 0 0.625rem 1.125rem; border-top: 1px solid var(--border); }
.policy-list li::before { content: ""; position: absolute; top: 1rem; left: 0; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--blue); }
.policy-list strong { display: block; color: var(--fg-soft); font-size: 0.8125rem; font-weight: 600; }
.policy-list span { display: block; margin-top: 0.1875rem; color: var(--muted); font-size: 0.75rem; line-height: 1.75; }
.policy-list--danger li::before { background: var(--red); }
.policy-note { margin-top: 0.875rem; padding: 0.75rem 0.875rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card-2); color: var(--muted-2) !important; font-size: 0.75rem !important; }
.policy-aside { position: sticky; top: 5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.policy-side-card { padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.policy-side-card .mono-label { margin-bottom: 0.5rem; }
.policy-side-card > a:not(.btn) { display: flex; align-items: center; justify-content: space-between; padding: 0.4375rem 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.75rem; }
.policy-side-card > a:not(.btn):hover { color: var(--blue-bright); }
.policy-side-card h2 { margin-bottom: 0.375rem; font-size: 0.875rem; font-weight: 600; }
.policy-side-card p { color: var(--muted); font-size: 0.75rem; line-height: 1.75; }
.policy-contact { display: inline-block; margin-top: 0.5rem; color: var(--blue-bright); font-size: 0.75rem; word-break: break-all; }
.policy-side-cta .btn { margin-top: 0.75rem; }
@media (max-width: 64em) {
  .policy-layout { grid-template-columns: 1fr; }
  .policy-aside { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .policy-side-cta { grid-column: 1 / -1; }
}
@media (max-width: 48em) {
  .policy-aside { grid-template-columns: 1fr; }
  .policy-side-cta { grid-column: auto; }
}

.auth-main { display: flex; align-items: center; justify-content: center; padding: 3rem 1.25rem; }
.auth-box { width: 100%; max-width: 380px; }
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1.125rem;
  color: var(--muted);
  font-size: 0.8125rem;
}
.auth-back:hover { color: var(--fg); }
.auth-card {
  padding: 1.75rem 1.625rem 1.5rem;
  border: 1px solid var(--border-2);
  border-radius: 16px;
  background: linear-gradient(180deg, #121318 0%, var(--card) 100%);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.auth-card .auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 0.875rem;
  border-radius: 14px;
  background: var(--primary);
  color: var(--primary-fg);
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
}
.auth-card h1 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.auth-card .sub { margin-top: 0.3125rem; color: var(--muted); font-size: 0.7813rem; }
.auth-card .actions { display: flex; flex-direction: column; gap: 0.875rem; margin-top: 1.375rem; }
.auth-divider { position: relative; display: flex; align-items: center; justify-content: center; }
.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--border);
}
.auth-divider span {
  position: relative;
  padding: 0 0.625rem;
  background: var(--card);
  color: var(--muted-2);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.auth-note { margin-top: 1rem; color: var(--muted-2); font-size: 0.6875rem; }

/* 用户中心 */
.user-page { padding: clamp(0.75rem, 2.4vw, 1.875rem) 0 1.25rem; }
.user-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(1.125rem, 2.4vw, 1.5rem); max-width: 1024px; margin: 0 auto; }
.user-sidebar { width: clamp(190px, 20vw, 224px); flex: 1 1 190px; display: flex; flex-direction: column; gap: 1.25rem; }
.user-profile-card {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0 0 0.875rem;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}
.user-profile-card .avatar { width: 44px; height: 44px; font-size: 1.0625rem; display: inline-flex; align-items: center; justify-content: center; }
.user-profile-card .info { min-width: 0; }
.user-name-row { display: flex; align-items: center; gap: 0.375rem; min-width: 0; }
.user-name-row strong { min-width: 0; }
.user-profile-card strong { display: block; overflow: hidden; font-size: 0.8125rem; text-overflow: ellipsis; white-space: nowrap; }
.user-profile-card .info > span { display: block; overflow: hidden; color: var(--muted); font-size: 0.6875rem; text-overflow: ellipsis; white-space: nowrap; }
.user-balance-inline {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  margin-top: 0.1875rem;
  color: var(--muted);
  font-size: 0.625rem;
  white-space: nowrap;
}
.user-balance-inline .icon { color: var(--blue-bright); }
.user-balance-inline strong { color: var(--fg-soft); font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; }
.user-balance-inline a { margin-left: 0.25rem; color: var(--blue-bright); font-size: 0.5938rem; }
.user-balance-inline a:hover { text-decoration: underline; }
.user-nav { display: flex; flex-direction: column; gap: 0.125rem; }
.nav-label-short { display: none; }
.user-nav a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.8125rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.user-nav a:hover { background: var(--blue-dim); color: var(--fg); }
.user-nav a.active { background: var(--blue-dim); color: var(--blue-bright); font-weight: 600; }
.user-nav .badge { margin-left: auto; height: 18px; min-width: 18px; justify-content: center; padding: 0 0.3125rem; font-family: var(--font-mono); font-size: 0.625rem; background: var(--red); color: #fff; }
.user-content { flex: 1 1 480px; min-width: 0; }
.user-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.125rem;
}
.user-head h1 { display: flex; align-items: center; gap: 0.5rem; font-size: clamp(20px, 1.8vw, 24px); font-weight: 700; letter-spacing: -0.025em; }
.user-head h1 .icon { color: var(--blue-bright); }
.user-head .count { color: var(--muted); font-size: 0.8125rem; }
.user-head .badge { font-family: var(--font-mono); }

.level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  height: 18px;
  padding: 0 0.375rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.5938rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.level-badge.is-user {
  border-color: rgba(124, 147, 255, 0.22);
  background: var(--blue-dim);
  color: var(--blue-bright);
}
.level-badge.is-owner {
  border-color: rgba(245, 184, 61, 0.28);
  background: var(--amber-dim);
  color: var(--amber);
}
.user-dropdown-head .user-dropdown-name {
  flex-direction: row;
  align-items: center;
  gap: 0.375rem;
}
.user-dropdown-head .user-dropdown-name strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-dropdown-head .user-dropdown-name .level-badge { flex-shrink: 0; display: inline-flex; font-family: var(--font-mono); font-size: 0.5938rem; }
.user-dropdown-head .user-dropdown-name .level-badge.is-owner,
.profile-summary .who .level-badge.is-owner { color: var(--amber); background: var(--amber-dim); border-color: rgba(245, 184, 61, 0.28); }
.user-dropdown-head .user-dropdown-name .level-badge.is-user,
.profile-summary .who .level-badge.is-user { color: var(--blue-bright); background: var(--blue-dim); border-color: rgba(124, 147, 255, 0.22); }
.user-dropdown-wallet {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0 0.5rem 0.375rem;
  padding: 0.5rem 0.5625rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--card-2);
  color: var(--muted);
  font-size: 0.6875rem;
}
.user-dropdown-wallet .icon { color: var(--blue-bright); }
.user-dropdown-wallet strong { margin-left: auto; color: var(--fg); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; }
.user-dropdown-wallet a { width: auto; padding: 0; color: var(--blue-bright); font-size: 0.625rem; }
.user-dropdown-wallet a:hover { background: transparent; }

.billing-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0;
  margin-bottom: 1.125rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.billing-balance {
  padding: 1.125rem 1.25rem 1.125rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.billing-label { display: flex; align-items: center; gap: 0.375rem; color: var(--muted); font-size: 0.6875rem; }
.billing-label .icon { color: var(--blue-bright); }
.billing-amount { display: block; margin-top: 0.5rem; color: var(--fg); font-family: var(--font-mono); font-size: clamp(28px, 3vw, 38px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.billing-balance p { margin-top: 0.375rem; color: var(--muted); font-size: 0.7188rem; }
.billing-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: 1px solid var(--border);
}
.billing-stat { min-width: 0; padding: 1rem 0.75rem; }
.billing-stat + .billing-stat { border-left: 1px solid var(--border); }
.billing-stat > span:first-child { display: block; color: var(--muted); font-size: 0.6563rem; }
.billing-stat > strong { display: block; margin-top: 0.3125rem; color: var(--fg); font-family: var(--font-mono); font-size: 0.9688rem; font-weight: 500; white-space: nowrap; }
.billing-stat > small { display: block; overflow: hidden; margin-top: 0.1875rem; color: var(--muted-2); font-size: 0.5938rem; text-overflow: ellipsis; white-space: nowrap; }
.billing-stat .level-badge { margin-top: 0.3125rem; }
.recharge-panel {
  margin-bottom: 1.125rem;
  padding: 0.875rem 0 1rem;
  border: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}
.recharge-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.625rem; }
.recharge-panel-head strong { display: block; font-size: 0.875rem; font-weight: 600; }
.recharge-panel-head span { display: block; margin-top: 0.1875rem; color: var(--muted); font-size: 0.6563rem; }
.recharge-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); align-items: end; gap: 0.875rem; margin-top: 0.875rem; }
.recharge-amounts { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.recharge-option {
  min-height: 2.125rem;
  height: auto;
  padding: 0.35rem 0.875rem;
  border: 1px solid var(--border-2);
  border-radius: 7px;
  background: var(--card);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.recharge-option.active { border-color: var(--blue); background: var(--blue-dim); color: var(--blue-bright); }
.recharge-actions { grid-column: 1 / -1; justify-self: end; }
.recharge-actions .btn { white-space: nowrap; }
.payment-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.625rem; margin-bottom: 0.625rem; }
.payment-toolbar .user-tabs { margin-bottom: 0; }
.payment-total { color: var(--muted-2); font-family: var(--font-mono); font-size: 0.6563rem; }
.payment-list { border-top: 1px solid var(--border); }
.payment-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9375rem 0;
  border-bottom: 1px solid var(--border);
}
.payment-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--card-2);
  color: var(--muted);
}
.payment-icon.is-recharge { background: var(--green-dim); color: var(--green); }
.payment-icon.is-consume { background: var(--red-dim); color: var(--red); }
.payment-icon.is-gift { background: var(--blue-dim); color: var(--blue-bright); }
.payment-icon.is-refund { background: var(--amber-dim); color: var(--amber); }
.payment-info { min-width: 0; }
.payment-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4375rem; color: var(--fg-soft); font-size: 0.7813rem; font-weight: 500; }
.payment-type { padding: 0.0625rem 0.25rem; border-radius: 3px; background: var(--card-2); color: var(--muted); font-family: var(--font-mono); font-size: 0.5313rem; }
.payment-type.is-recharge { color: var(--green); }
.payment-type.is-consume { color: var(--red); }
.payment-type.is-gift { color: var(--blue-bright); }
.payment-type.is-refund { color: var(--amber); }
.payment-meta { display: flex; flex-wrap: wrap; gap: 0.125rem 0.625rem; margin-top: 0.25rem; color: var(--muted-2); font-size: 0.5938rem; }
.payment-meta .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.payment-side { text-align: right; }
.payment-amount { display: block; font-family: var(--font-mono); font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
.payment-amount.is-plus { color: var(--green); }
.payment-amount.is-minus { color: var(--fg-soft); }
.payment-status { display: inline-block; margin-top: 0.1875rem; font-size: 0.5938rem; }
.payment-status.is-success { color: var(--green); }
.payment-status.is-pending { color: var(--amber); }
.payment-status.is-failed { color: var(--red); }
.payment-status.is-refunded { color: var(--amber); }

.verify-intro { max-width: 45rem; margin-bottom: 1.125rem; color: var(--muted); font-size: 0.7813rem; line-height: 1.85; }
.verify-section { padding-top: 1.125rem; border-top: 1px solid var(--border); }
.verify-section + .verify-section { margin-top: 1.25rem; }
.verify-section-head { display: flex; align-items: center; gap: 0.5625rem; margin-bottom: 0.6875rem; }
.verify-section-head h3 { font-size: 0.875rem; font-weight: 600; }
.verify-step { color: var(--blue-bright); font-family: var(--font-mono); font-size: 0.625rem; }
.verify-site-form { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.verify-site-form .input { flex: 1 1 15rem; min-width: 0; }
.verify-method-preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0 1.5rem; border-top: 1px solid var(--border); }
.verify-method-preview > div { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.verify-method-icon { display: inline-flex; margin-bottom: 0.375rem; color: var(--blue-bright); }
.verify-method-preview strong { display: block; color: var(--fg-soft); font-size: 0.7813rem; font-weight: 600; }
.verify-method-preview p { margin-top: 0.1875rem; color: var(--muted); font-size: 0.6875rem; line-height: 1.7; }
.verify-site-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.verify-site-row > div { min-width: 0; }
.verify-site-row span { display: block; color: var(--muted-2); font-size: 0.625rem; }
.verify-site-row strong { display: block; overflow: hidden; margin-top: 0.125rem; color: var(--fg-soft); font-family: var(--font-mono); font-size: 0.75rem; text-overflow: ellipsis; white-space: nowrap; }
.verify-tabs { display: flex; gap: 1.125rem; margin-top: 0.875rem; border-bottom: 1px solid var(--border); }
.verify-tab { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.5625rem 0 0.625rem; border-bottom: 2px solid transparent; color: var(--muted); font-size: 0.7813rem; }
.verify-tab:hover { color: var(--fg); }
.verify-tab.active { border-bottom-color: var(--blue); color: var(--blue-bright); font-weight: 600; }
.verify-panel { padding-top: 1rem; }
.verify-desc { color: var(--muted); font-size: 0.75rem; line-height: 1.8; }
.verify-desc code, .verify-file-token code, .verify-code code { font-family: var(--font-mono); }
.verify-desc code { overflow-wrap: anywhere; word-break: break-word; }
.verify-steps { padding-left: 1.125rem; margin-top: 0.625rem; color: var(--muted); font-size: 0.75rem; line-height: 1.9; list-style: decimal; }
.verify-code { display: flex; align-items: flex-start; gap: 0.625rem; margin-top: 0.75rem; padding: 0.6875rem 0.75rem; border: 1px solid var(--border); border-radius: 0.5rem; background: var(--card-2); }
.verify-code code { flex: 1; min-width: 0; color: var(--fg-soft); font-size: 0.6875rem; line-height: 1.75; overflow-wrap: anywhere; word-break: break-all; }
.verify-code .btn { flex-shrink: 0; }
.verify-actions { margin-top: 0.875rem; }
.verify-note { margin-top: 0.75rem; color: var(--muted-2); font-family: var(--font-mono); font-size: 0.5938rem; line-height: 1.7; }
.verify-file-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.verify-file-row > div { min-width: 0; }
.verify-file-row span { display: block; color: var(--muted-2); font-size: 0.625rem; }
.verify-file-row strong { display: block; overflow: hidden; margin-top: 0.125rem; color: var(--fg-soft); font-family: var(--font-mono); font-size: 0.7188rem; text-overflow: ellipsis; white-space: nowrap; }
.verify-file-token { display: flex; align-items: center; gap: 0.625rem; margin-top: 0.75rem; padding: 0.5625rem 0.6875rem; border: 1px solid var(--border); border-radius: 0.5rem; background: var(--card-2); }
.verify-file-token span { color: var(--muted-2); font-size: 0.625rem; white-space: nowrap; }
.verify-file-token code { min-width: 0; color: var(--fg-soft); font-size: 0.6875rem; overflow-wrap: anywhere; }
.verify-upload-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.625rem; margin-top: 0.8125rem; }
.verify-upload-row > span { color: var(--muted); font-size: 0.6875rem; }
.verify-success { padding-top: 0.5rem; }
.verify-success-head { display: flex; align-items: flex-start; gap: 0.875rem; padding: 1rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.verify-success-icon { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; flex-shrink: 0; border-radius: 0.625rem; background: var(--green-dim); color: var(--green); }
.verify-success-head h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.verify-success-head p { margin-top: 0.1875rem; color: var(--muted); font-size: 0.7188rem; }
.verify-success-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.25rem), 1fr)); gap: 0.875rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.verify-success-grid span { display: block; color: var(--muted-2); font-size: 0.625rem; }
.verify-success-grid strong { display: block; overflow: hidden; margin-top: 0.1875rem; color: var(--fg-soft); font-size: 0.75rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.verify-success-grid a { color: var(--blue-bright); }
.verify-site-list { border-top: 1px solid var(--border); }
.verify-site-cert { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.verify-cert-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4375rem; }
.verify-cert-head strong { min-width: 0; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; }
.verify-cert-head a { color: var(--blue-bright); overflow-wrap: anywhere; }
.verify-cert-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; margin-top: 0.25rem; color: var(--muted-2); font-size: 0.5938rem; }
.verify-cert-meta .mono { overflow-wrap: anywhere; }
.verify-success-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding-top: 0.875rem; }

.profile-account-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem 1.375rem;
  padding: 0.75rem 0;
  margin: -0.375rem 0 1.25rem;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}
.profile-account-strip > div { display: flex; flex-direction: column; gap: 0.125rem; }
.profile-account-strip span { color: var(--muted); font-size: 0.6563rem; }
.profile-account-strip strong { color: var(--fg-soft); font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; }
.profile-account-strip .profile-level-text { font-family: var(--font-sans); }
.profile-wallet-link { display: inline-flex; align-items: center; gap: 0.3125rem; margin-left: auto; color: var(--blue-bright); font-size: 0.6563rem; }
.profile-wallet-link:hover { text-decoration: underline; }
.profile-summary .user-name-row { flex-wrap: wrap; }
.profile-summary .who .level-badge { display: inline-flex; font-family: var(--font-mono); font-size: 0.5938rem; }
.profile-summary .who > span { display: block; overflow: hidden; color: var(--muted); font-size: 0.7188rem; text-overflow: ellipsis; }

.user-page > .container-mid { container-type: inline-size; container-name: userarea; }
@container userarea (max-width: 44rem) {
  .user-layout { display: block; }
  .user-sidebar {
    width: 100%;
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0.875rem;
  }
  .user-profile-card { display: none; }
  .user-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.125rem;
    overflow-x: auto;
    padding: 0;
    border-bottom: 1px solid var(--border);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .user-nav::-webkit-scrollbar { display: none; }
  .user-nav a {
    position: relative;
    flex: 0 0 auto;
    gap: 0.3125rem;
    padding: 0.5625rem 0.5625rem 0.625rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.75rem;
    white-space: nowrap;
  }
  .user-nav a:hover { background: transparent; color: var(--fg); }
  .user-nav a > .icon { display: none; }
  .user-nav a.active { border: 0; background: transparent; color: var(--blue-bright); font-weight: 600; }
  .user-nav a.active::after {
    content: "";
    position: absolute;
    left: 9px;
    right: 9px;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--blue);
  }
  .user-nav .badge { margin-left: 0.0625rem; }
  .user-nav .nav-label { display: none; }
  .user-nav .nav-label-short { display: inline; }
  .billing-summary { grid-template-columns: 1fr; }
  .billing-balance { padding: 1rem 0; border-bottom: 1px solid var(--border); }
  .billing-stats { border-left: 0; }
  .billing-stat { padding: 0.625rem 0.5rem; }
  .billing-stat > strong { font-size: 0.8438rem; }
  .billing-stat > small { font-size: 0.5625rem; }
  .user-content { width: 100%; flex: none; }
}

.user-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem;
  padding: 0.1875rem;
  margin-bottom: 1rem;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
}
.user-tab {
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.8125rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.user-tab:hover { color: var(--fg); }
.user-tab.active { background: #1c1d23; color: var(--fg); box-shadow: var(--shadow-sm); font-weight: 500; }
.user-tab em { margin-left: 0.25rem; color: var(--muted-2); font-style: normal; font-size: 0.6875rem; }

.fav-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0.75rem; }

.sub-list, .msg-list { display: flex; flex-direction: column; gap: 0.625rem; }
.sub-card, .msg-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  overflow: hidden;
}
.sub-head, .msg-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  cursor: pointer;
}
.sub-title, .msg-title { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8438rem; font-weight: 500; }
.sub-meta, .msg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.875rem;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.7188rem;
}
.sub-body, .msg-body { padding: 0 1rem 1rem; border-top: 1px solid var(--border); }
.sub-body { padding-top: 0.875rem; }
.sub-field { margin-bottom: 0.75rem; }
.sub-field label { display: block; color: var(--muted); font-size: 0.7188rem; margin-bottom: 0.1875rem; }
.sub-field p, .sub-field a { color: var(--fg-soft); font-size: 0.7813rem; line-height: 1.7; }
.sub-field a { color: var(--blue-bright); word-break: break-all; }
.reject-box {
  padding: 0.625rem 0.75rem;
  border-radius: 8px;
  background: var(--red-dim);
}
.reject-box strong { display: flex; align-items: center; gap: 0.3125rem; color: var(--red); font-size: 0.7188rem; }
.reject-box p { margin-top: 0.25rem; color: var(--fg-soft); font-size: 0.7813rem; }

.msg-head { align-items: flex-start; }
.msg-icon-wrap { position: relative; flex-shrink: 0; padding-top: 0.0625rem; }
.msg-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}
.msg-icon.unread { background: var(--blue-dim); }
.msg-icon .icon { color: var(--muted); }
.msg-icon.unread .icon { color: var(--blue-bright); }
.msg-unread-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 2px var(--card);
}
.msg-body { padding-top: 0.875rem; }
.msg-content { color: rgba(241, 242, 244, 0.9); font-size: 0.8125rem; line-height: 1.9; }
.msg-body-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.875rem; }
.msg-body-foot span { color: var(--muted-2); font-family: var(--font-mono); font-size: 0.6875rem; }
.msg-actions { display: flex; align-items: center; gap: 0.125rem; }
.msg-actions .icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--muted-2);
}
.msg-actions .icon-btn:hover { background: rgba(255, 255, 255, 0.06); color: var(--fg); }
.msg-actions .icon-btn.danger:hover { background: var(--red-dim); color: var(--red); }

.profile-tabs { display: flex; gap: 0.125rem; padding: 0.1875rem; border-radius: 9px; background: rgba(255, 255, 255, 0.04); width: fit-content; }
.profile-section { margin-top: 0; }
.profile-section + .profile-section { margin-top: 1.375rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.profile-section-head { display: flex; align-items: center; justify-content: space-between; gap: 0.625rem; margin-bottom: 0.75rem; }
.profile-section-head h3 { font-size: 0.875rem; font-weight: 600; }
.profile-section-head span { color: var(--muted-2); font-family: var(--font-mono); font-size: 0.5938rem; }
.password-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.profile-tab { padding: 0.375rem 0.875rem; border-radius: 6px; color: var(--muted); font-size: 0.8125rem; }
.profile-tab.active { background: #1c1d23; color: var(--fg); font-weight: 500; box-shadow: var(--shadow-sm); }
.profile-card { margin-top: 0.875rem; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.profile-form { padding: 1.375rem 0; }
.profile-summary {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 0;
  margin-bottom: 1.25rem;
  border: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}
.profile-summary .avatar { width: 56px; height: 56px; font-size: 1.25rem; }
.profile-summary .who { min-width: 0; flex: 1; }
.profile-summary .who strong { display: block; font-size: 0.8438rem; }
.profile-summary .who span { display: block; overflow: hidden; color: var(--muted); font-size: 0.7188rem; text-overflow: ellipsis; }
.profile-summary .since { text-align: right; color: var(--muted-2); font-size: 0.6563rem; }
.profile-summary .since strong { display: block; color: var(--fg-soft); font-family: var(--font-mono); font-weight: 400; font-size: 0.6875rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1rem; }
.profile-form .form-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.profile-form .password-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.form-actions { display: flex; justify-content: flex-end; padding-top: 0.25rem; }

/* 公开主页 */
.public-profile-page { padding: 0.75rem 0 2rem; }
.public-profile-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}
.public-profile-person { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.public-avatar { position: relative; overflow: hidden; width: 5rem; height: 5rem; flex-shrink: 0; font-size: 1.75rem; }
.public-avatar .avatar-letter { position: relative; z-index: 0; }
.public-avatar img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.public-profile-copy { min-width: 0; }
.public-profile-name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.public-profile-name h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.035em; }
.public-profile-bio { max-width: 44rem; margin-top: 0.5rem; color: var(--muted); font-size: 0.8125rem; line-height: 1.8; }
.public-profile-meta { display: flex; flex-wrap: wrap; gap: 0.375rem 1rem; margin-top: 0.5rem; color: var(--muted-2); font-family: var(--font-mono); font-size: 0.625rem; }
.public-profile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.public-profile-stats { margin: 0; border-bottom: 1px solid var(--border); }
.public-profile-stats strong { font-size: 0.9375rem; }
.public-stat-date { font-family: var(--font-sans) !important; font-size: 0.8125rem !important; }
.public-profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 18rem); align-items: start; gap: 1.5rem; margin-top: 1.5rem; }
.public-section-note { color: var(--muted-2); font-family: var(--font-mono); font-size: 0.625rem; }
.public-site-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.public-site-card { display: flex; flex-direction: column; min-width: 0; padding: 1rem; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.public-site-head { display: flex; align-items: center; gap: 0.625rem; min-width: 0; }
.public-site-logo { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; flex-shrink: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--card-2); color: var(--fg-soft); font-size: 0.9375rem; font-weight: 600; }
.public-site-logo img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.public-site-letter { position: relative; z-index: 0; }
.public-site-title { min-width: 0; flex: 1; }
.public-site-title h3 { overflow: hidden; font-size: 0.8125rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.public-site-title span { display: block; margin-top: 0.125rem; color: var(--muted-2); font-size: 0.625rem; }
.public-site-desc { display: -webkit-box; overflow: hidden; margin-top: 0.75rem; color: var(--muted); font-size: 0.7188rem; line-height: 1.75; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.public-site-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.875rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }
.public-site-price { color: var(--fg-soft); font-family: var(--font-mono); font-size: 0.6875rem; }
.public-site-links { display: flex; gap: 0.375rem; }
.public-site-links .btn { min-height: 1.875rem; padding: 0.3rem 0.5rem; font-size: 0.6875rem; }
.public-site-exchange { margin-top: 0.5rem; color: var(--blue-bright); font-size: 0.6875rem; text-align: right; }
.public-site-exchange:hover { text-decoration: underline; }
.public-profile-side { display: flex; flex-direction: column; gap: 0.75rem; }
.public-side-card { padding: 1rem; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.public-side-card h2 { margin-top: 0.5rem; font-size: 0.875rem; font-weight: 600; }
.public-side-card p { margin-top: 0.5rem; color: var(--muted); font-size: 0.7188rem; line-height: 1.75; }
.public-side-status { margin-top: 0.875rem; }
.public-side-note p { color: var(--muted-2); font-size: 0.6563rem; }
@media (max-width: 64em) {
  .public-profile-layout { grid-template-columns: 1fr; }
  .public-profile-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 48em) {
  .public-profile-hero { flex-direction: column; }
  .public-site-grid, .public-profile-side { grid-template-columns: 1fr; }
  .public-avatar { width: 4rem; height: 4rem; font-size: 1.375rem; }
}

/* 轻提示 */
.toast-root {
  position: fixed;
  right: clamp(16px, 2vw, 24px);
  bottom: clamp(16px, 2vw, 24px);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 200px;
  max-width: 340px;
  padding: 0.6875rem 0.875rem;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  background: #15161b;
  color: var(--fg-soft);
  font-size: 0.8125rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast .icon { flex-shrink: 0; }
.toast-success .icon { color: var(--green); }
.toast-error .icon { color: var(--red); }
.toast-info .icon { color: var(--blue-bright); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  padding: 1.875rem 1.625rem 1.375rem;
  border: 1px solid var(--border-2);
  border-radius: 16px;
  background: linear-gradient(180deg, #131419 0%, #0e0f12 100%);
  box-shadow: var(--shadow-lg);
  text-align: center;
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.modal.open .modal-backdrop { opacity: 1; }
.modal.open .modal-panel { opacity: 1; transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--muted);
}
.modal-close:hover { background: rgba(255, 255, 255, 0.06); color: var(--fg); }
.auth-panel .auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 0.75rem;
  border-radius: 13px;
  background: var(--primary);
  color: var(--primary-fg);
  font-family: var(--font-mono);
  font-size: 1.1875rem;
  font-weight: 700;
}
.auth-panel h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.auth-sub { margin-top: 0.3125rem; color: var(--muted); font-size: 0.7813rem; }
.auth-actions { display: flex; flex-direction: column; gap: 0.875rem; margin-top: 1.375rem; }
.auth-panel .auth-note { margin-top: 1rem; }
.auth-panel { color: #f1f2f4; }
.auth-panel .auth-sub { color: rgba(255, 255, 255, 0.55); }
.login-modal-form { display: grid; gap: 0.375rem; margin-top: 1.25rem; text-align: left; }
.login-modal-form label { color: rgba(255, 255, 255, 0.62); font-size: 0.75rem; }
.login-modal-form .input {
  min-height: 2.5rem;
  margin-bottom: 0.375rem;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #f1f2f4;
}
.login-modal-form .input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(91, 124, 255, 0.14); }
.login-modal-check { display: flex; align-items: center; gap: 0.375rem; margin: 0.125rem 0 0.5rem; color: var(--muted); }
.login-modal-check input { accent-color: var(--blue); }
.login-modal-foot { margin-top: 1rem; color: rgba(255, 255, 255, 0.5); font-size: 0.75rem; }
.login-modal-foot a { color: var(--blue-bright); }
html[data-theme="light"] .auth-panel { color: var(--fg); }
html[data-theme="light"] .auth-panel .auth-sub { color: var(--muted); }
html[data-theme="light"] .login-modal-form label { color: var(--muted); }
html[data-theme="light"] .login-modal-form .input {
  border-color: var(--border-2);
  background: var(--bg-soft);
  color: var(--fg);
}
html[data-theme="light"] .login-modal-check { color: var(--muted); }
html[data-theme="light"] .login-modal-foot { color: var(--muted-2); }

.login-modal-panel {
  max-width: 420px;
  padding: 0;
  overflow: hidden;
  text-align: left;
}
.login-modal-panel .modal-close {
  z-index: 2;
  color: rgba(255, 255, 255, 0.65);
}
.login-modal-panel .modal-close:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.login-modal-head {
  position: relative;
  padding: 1.5rem 1.5rem 1.35rem;
  background:
    radial-gradient(circle at 88% 8%, rgba(91, 124, 255, 0.32), transparent 46%),
    linear-gradient(155deg, #141a2c 0%, #090a0d 100%);
  color: #fff;
}
.login-modal-brand { display: flex; align-items: center; gap: 0.5625rem; margin-bottom: 1.25rem; }
.login-modal-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  overflow: hidden;
  border-radius: 0.625rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
}
.login-modal-mark img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.auth-card .auth-logo { overflow: hidden; }
.auth-card .auth-logo img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.login-modal-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.login-modal-brand-text strong { font-size: 0.875rem; font-weight: 600; }
.login-modal-brand-text small { color: rgba(255, 255, 255, 0.42); font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.14em; }
.login-modal-badge {
  margin-left: auto;
  padding: 0.1875rem 0.4375rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  font-size: 0.4688rem;
  letter-spacing: 0.08em;
}
.login-modal-head h2 { color: #fff; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; }
.login-modal-head p { max-width: 18rem; margin-top: 0.375rem; color: rgba(255, 255, 255, 0.55); font-size: 0.75rem; line-height: 1.7; }
.login-modal-body { padding: 1.25rem 1.5rem 1.375rem; background: var(--card); color: var(--fg); }
.login-modal-form { display: flex; flex-direction: column; gap: 0.875rem; margin: 0; text-align: left; }
.login-field { display: flex; flex-direction: column; gap: 0.375rem; }
.login-field > span:first-child { color: var(--fg-soft); font-size: 0.7188rem; font-weight: 500; }
.login-control { position: relative; display: block; }
.login-control-icon {
  position: absolute;
  top: 50%;
  left: 0.8125rem;
  z-index: 1;
  color: var(--muted-2);
  pointer-events: none;
  transform: translateY(-50%);
}
.login-control .input {
  width: 100%;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.5rem 2.5rem;
  border-radius: 8px;
  background: var(--bg-soft);
  font-size: 0.8125rem;
}
.login-control .input:focus { background: var(--card); }
.login-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.4375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.875rem;
  height: 1.875rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
  transform: translateY(-50%);
}
.login-password-toggle:hover { background: var(--card-2); color: var(--fg-soft); }
.login-modal-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.125rem; }
.login-modal-check { display: flex; align-items: center; gap: 0.375rem; margin: 0; color: var(--muted); font-size: 0.7188rem; }
.login-modal-check input { accent-color: var(--blue); }
.login-modal-secure { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--muted-2); font-size: 0.625rem; }
.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4375rem;
  min-height: 2.75rem;
  margin-top: 0.25rem;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb 0%, #6d4aff 100%);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.24);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.login-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37, 99, 235, 0.32); }
.login-modal-foot {
  margin: 1rem 0 0;
  padding-top: 0.9375rem;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 0.7188rem;
  text-align: center;
}
.login-modal-foot a { margin-left: 0.1875rem; color: var(--blue-bright); font-weight: 500; }
.login-modal-foot a:hover { text-decoration: underline; }
body.login-modal-open { overflow: hidden; }

.exchange-body { padding-top: 1.625rem; padding-bottom: 2.5rem; container-type: inline-size; container-name: exchange; }
.exchange-gate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.exchange-gate.is-ok { border-bottom-color: rgba(62, 207, 142, 0.25); }
.exchange-gate-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.625rem;
  height: 2.625rem;
  flex-shrink: 0;
  border-radius: 0.5625rem;
  background: var(--blue-dim);
  color: var(--blue-bright);
}
.exchange-gate.is-ok .exchange-gate-icon { background: var(--green-dim); color: var(--green); }
.exchange-gate-copy { flex: 1 1 15rem; min-width: 0; }
.exchange-gate-copy strong { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4375rem; color: var(--fg-soft); font-size: 0.8125rem; font-weight: 600; }
.exchange-gate-copy p { margin-top: 0.1875rem; color: var(--muted); font-size: 0.7188rem; }
.exchange-gate-wallet { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3125rem 0.5rem; text-align: right; }
.exchange-gate-wallet span { color: var(--muted-2); font-size: 0.625rem; }
.exchange-gate-wallet strong { color: var(--fg); font-family: var(--font-mono); font-size: 0.875rem; font-weight: 500; }
.exchange-gate-wallet a { color: var(--blue-bright); font-size: 0.6563rem; }
.exchange-section { margin-top: 1.75rem; }
.exchange-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.625rem; }
.exchange-section-head h2 { font-size: 1rem; font-weight: 600; }
.exchange-section-head > span { color: var(--muted-2); font-family: var(--font-mono); font-size: 0.5938rem; }
.exchange-own { padding: 0.875rem 0 1rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.exchange-own-list { border-top: 1px solid var(--border); }
.exchange-listing-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
}
.exchange-site-domain {
  overflow: hidden;
  color: var(--fg-soft);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.exchange-price-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.1875rem;
  min-height: 2rem;
  padding: 0.2rem 0.4375rem;
  border: 1px solid var(--border-2);
  border-radius: 0.4375rem;
  background: var(--card);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
}
.exchange-price-inline input {
  width: 3rem;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fg-soft);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-align: right;
  outline: none;
}
.exchange-price-inline select {
  min-height: 1.625rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.6875rem;
  outline: none;
}
.exchange-remove { color: var(--muted-2); }
.exchange-remove:hover { background: var(--red-dim); color: var(--red); }
.exchange-hint { margin-top: 0.5625rem; color: var(--muted-2); font-size: 0.625rem; line-height: 1.7; }
.exchange-list { border-top: 1px solid var(--border); }
.exchange-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.exchange-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 0.5625rem;
  background: var(--card-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
}
.exchange-info { min-width: 0; }
.exchange-name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; color: var(--fg-soft); font-size: 0.8125rem; font-weight: 600; }
.exchange-verified { display: inline-flex; align-items: center; gap: 0.1875rem; }
.exchange-tag { color: var(--muted-2); font-family: var(--font-mono); font-size: 0.5313rem; font-weight: 400; }
.exchange-url { display: block; overflow: hidden; margin-top: 0.125rem; color: var(--blue-bright); font-family: var(--font-mono); font-size: 0.625rem; text-overflow: ellipsis; white-space: nowrap; }
.exchange-url:hover { text-decoration: underline; }
.exchange-desc { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.25rem; color: var(--muted); font-size: 0.6875rem; line-height: 1.7; }
.exchange-desc span { color: var(--muted-2); font-size: 0.625rem; }
.exchange-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.exchange-price { display: flex; align-items: baseline; gap: 0.125rem; white-space: nowrap; }
.exchange-price strong { color: var(--fg); font-family: var(--font-mono); font-size: 0.9375rem; font-weight: 600; }
.exchange-price span { color: var(--muted-2); font-size: 0.625rem; }
.exchange-done { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--green); font-size: 0.6563rem; white-space: nowrap; }
.exchange-confirm { margin-top: 1.125rem; padding: 1rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.exchange-confirm-head h2 { margin-top: 0.1875rem; font-size: 1rem; font-weight: 600; }
.exchange-confirm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: 0.75rem 1.5rem; margin-top: 0.875rem; }
.exchange-confirm-grid span { display: block; color: var(--muted-2); font-size: 0.625rem; }
.exchange-confirm-grid strong { display: block; margin-top: 0.1875rem; overflow: hidden; color: var(--fg-soft); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.exchange-confirm-note { margin-top: 0.75rem; color: var(--muted-2); font-size: 0.625rem; line-height: 1.7; }
.exchange-insufficient { margin-top: 0.75rem; color: var(--red); font-size: 0.6875rem; }
.exchange-insufficient a { color: var(--blue-bright); }
.exchange-confirm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.875rem; }
.exchange-record-section { padding-bottom: 0.5rem; }
.exchange-records { border-top: 1px solid var(--border); }
.exchange-record { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 0.625rem; padding: 0.6875rem 0; border-bottom: 1px solid var(--border); }
.exchange-record-icon { display: flex; align-items: center; justify-content: center; width: 1.875rem; height: 1.875rem; border-radius: 0.4375rem; background: var(--blue-dim); color: var(--blue-bright); }
.exchange-record strong { display: block; overflow: hidden; color: var(--fg-soft); font-size: 0.75rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.exchange-record > div span { display: block; margin-top: 0.125rem; color: var(--muted-2); font-family: var(--font-mono); font-size: 0.5625rem; }
.exchange-record-price { color: var(--fg-soft); font-family: var(--font-mono); font-size: 0.6875rem; white-space: nowrap; }
.exchange-record-status { color: var(--green); font-size: 0.625rem; white-space: nowrap; }
.exchange-note { margin-top: 1.5rem; color: var(--muted-2); font-family: var(--font-mono); font-size: 0.5938rem; line-height: 1.8; }
.sell-page { padding: 1rem 0 2rem; }
.sell-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(19rem, 0.65fr);
  gap: 1.25rem;
  align-items: stretch;
  padding: 1.5rem 0 1.75rem;
  border-bottom: 1px solid var(--border);
}
.sell-hero-copy h1 {
  margin-top: 0.75rem;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.12;
}
.sell-hero-copy p { max-width: 44rem; margin-top: 0.875rem; color: var(--muted); font-size: 0.875rem; line-height: 1.9; }
.sell-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.375rem; }
.sell-spec-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.sell-spec-list { margin-top: 0.75rem; }
.sell-spec-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.5625rem 0; border-bottom: 1px solid var(--border); }
.sell-spec-list > div:last-child { border-bottom: 0; }
.sell-spec-list dt { color: var(--muted-2); font-size: 0.6875rem; }
.sell-spec-list dd { margin: 0; color: var(--fg-soft); font-family: var(--font-mono); font-size: 0.6875rem; text-align: right; }
.sell-spec-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.375rem;
  margin-top: auto;
  padding-top: 1.125rem;
}
.sell-spec-visual span { height: 1.75rem; border-radius: 4px; background: var(--card-2); }
.sell-spec-visual span:nth-child(2n) { background: var(--blue-dim); }
.sell-section { margin-top: 2rem; }
.sell-section-note { color: var(--muted-2); font-family: var(--font-mono); font-size: 0.6563rem; }
.sell-focus-grid, .sell-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.sell-focus-card, .sell-feature-card { padding: 1.125rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.sell-focus-no { color: var(--muted-2); font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: 0.1em; }
.sell-focus-card h3, .sell-feature-card h3 { margin-top: 0.5rem; color: var(--fg-soft); font-size: 0.9375rem; font-weight: 600; }
.sell-focus-card p, .sell-feature-card p { margin-top: 0.375rem; color: var(--muted); font-size: 0.75rem; line-height: 1.8; }
.sell-two-col { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.7fr); gap: 1.25rem; align-items: start; }
.sell-principles { padding: 0; margin-top: 0.75rem; list-style: none; }
.sell-principles li { position: relative; padding: 0.6875rem 0 0.6875rem 1.125rem; border-top: 1px solid var(--border); }
.sell-principles li::before { content: ""; position: absolute; top: 1.05rem; left: 0; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--blue); }
.sell-principles strong { display: block; color: var(--fg-soft); font-size: 0.8125rem; font-weight: 600; }
.sell-principles span { display: block; margin-top: 0.1875rem; color: var(--muted); font-size: 0.75rem; line-height: 1.75; }
.sell-side-card { padding: 1.125rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.sell-side-card h2 { margin-top: 0.625rem; font-size: 1rem; font-weight: 600; }
.sell-side-card p { margin-top: 0.5rem; color: var(--muted); font-size: 0.75rem; line-height: 1.8; }
.sell-chips { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.875rem; }
.sell-chips span { padding: 0.25rem 0.5rem; border: 1px solid var(--border-2); border-radius: 999px; color: var(--fg-soft); font-size: 0.6875rem; }
.sell-buy-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.sell-buy-card h2 { margin-top: 0.5rem; font-size: 1.25rem; font-weight: 700; }
.sell-buy-card p { max-width: 46rem; margin-top: 0.625rem; color: var(--muted); font-size: 0.8125rem; line-height: 1.85; }
.sell-buy-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sell-note { margin-top: 0.75rem; color: var(--muted-2); font-size: 0.6875rem; line-height: 1.7; }
@media (max-width: 64em) {
  .sell-hero, .sell-two-col { grid-template-columns: 1fr; }
  .sell-spec-visual { margin-top: 0; }
}
@media (max-width: 48em) {
  .sell-focus-grid, .sell-feature-grid { grid-template-columns: 1fr; }
}
.exchange-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: clamp(2rem, 5vw, 3.5rem) 1.25rem;
  border: 1px dashed var(--border-2);
  border-radius: var(--radius);
  background: var(--card);
  text-align: center;
}
.exchange-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--blue-dim);
  color: var(--blue-bright);
}
.exchange-empty h2 { font-size: 1rem; font-weight: 600; }
.exchange-empty p { max-width: 32rem; color: var(--muted); font-size: 0.8125rem; line-height: 1.75; }
.exchange-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 0.5rem; }

@container exchange (max-width: 20rem) {
  .exchange-gate-copy { flex-basis: 12rem; }
  .exchange-listing-row { grid-template-columns: minmax(0, 1fr) auto; }
  .exchange-listing-row .exchange-price-inline { justify-self: end; }
  .exchange-listing-row .btn { justify-self: start; }
  .exchange-listing-row .exchange-remove { justify-self: end; }
  .exchange-item { grid-template-columns: auto minmax(0, 1fr); }
  .exchange-item .exchange-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
  .exchange-record { grid-template-columns: auto minmax(0, 1fr) auto; }
  .exchange-record-status { grid-column: 2; justify-self: start; }
}

@container exchange (max-width: 15rem) {
  .exchange-listing-row { grid-template-columns: 1fr; }
  .exchange-listing-row .exchange-price-inline,
  .exchange-listing-row .btn,
  .exchange-listing-row .exchange-remove { grid-column: 1; justify-self: start; }
  .exchange-item { grid-template-columns: 1fr; }
  .exchange-avatar { display: none; }
  .exchange-item .exchange-side { grid-column: 1; flex-direction: column; align-items: flex-start; }
  .exchange-record { grid-template-columns: auto minmax(0, 1fr); }
  .exchange-record-price { grid-column: 2; justify-self: start; }
}

@media (max-width: 64em) {
  .catbar { display: none; }
  .mobile-menu-btn { display: inline-flex; }
}

@media (max-width: 48em) {
  .topstrip-inner { display: flex; flex-wrap: wrap; justify-content: center; min-height: 2rem; padding-block: 0.3rem; gap: 0.5rem; }
  .topstrip-tip { display: none; }
  .topstrip-note { justify-content: center; gap: 0.25rem; }
  .header-search { display: none; }
  .mobile-search-btn { display: inline-flex; }
  .header-submit { display: none; }
  .mobile-search-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 70;
    display: block;
    padding: 0.625rem var(--gutter);
    border-bottom: 1px solid var(--border);
    background: var(--card);
    box-shadow: var(--shadow-md);
  }
  .mobile-search-panel[hidden] { display: none; }
  .mobile-search-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .mobile-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    display: flex;
    color: var(--muted-2);
    transform: translateY(-50%);
    pointer-events: none;
  }
  .mobile-search-form .input {
    flex: 1;
    min-height: 2.625rem;
    height: auto;
    padding-left: 2.25rem;
    padding-right: 0.5rem;
  }
}

.header-main {
  container-type: inline-size;
  container-name: header;
}
@container header (max-width: 32rem) {
  .header-main .brand-text { display: none; }
}

.detail-main > .container { container-type: inline-size; container-name: detail; }
.news-main > .container { container-type: inline-size; container-name: news; }
.article-main > .container { container-type: inline-size; container-name: article; }
.cat-main > .container { container-type: inline-size; container-name: cat; }

@container detail (max-width: 60rem) {
  .detail-layout { flex-direction: column; }
  .detail-aside {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  }
}

@container cat (max-width: 60rem) {
  #cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container cat (max-width: 30rem) {
  #cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container cat (max-width: 22rem) {
  #cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container ads (max-width: 60rem) {
  .ad-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container ads (max-width: 30rem) {
  .ad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container detail (max-width: 44rem) {
  .detail-head { flex-direction: column; }
  .detail-head-main { width: 100%; flex: 0 0 auto; }
  .detail-actions {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    padding-top: 0;
  }
  .detail-actions .row { flex: 1; }
  .detail-actions .btn { flex: 1; }
}

@container news (max-width: 60rem) {
  .news-layout { flex-direction: column; }
  .news-side {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  }
}

@container article (max-width: 60rem) {
  .article-layout { grid-template-columns: 1fr; gap: 1.25rem; }
  .article-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  }
}

@container news (max-width: 36rem) {
  .article-card { flex-direction: column; }
  .article-thumb { width: 100%; height: clamp(140px, 26vw, 180px); }
  .article-thumb img { height: 100%; }
  .article-body { padding: 0.875rem 1rem 1rem; }
  .article-meta .source { display: none; }
}

@container (max-width: 32rem) {
  .comments-sub { display: none; }
}

.hero-search input { font-size: clamp(12.5px, 0.95vw, 14px); }
.reactions { flex-wrap: wrap; }
.tags-toolbar, .tag-result-head, .tag-result-meta { flex-wrap: wrap; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.82); }
}
@keyframes tileIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes starPop {
  0% { transform: scale(1) rotate(0); }
  40% { transform: scale(1.45) rotate(12deg); }
  70% { transform: scale(0.92) rotate(-4deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes iconWiggle {
  0% { transform: scale(1) rotate(0); }
  25% { transform: scale(1.12) rotate(-8deg); }
  50% { transform: scale(1.06) rotate(6deg); }
  72% { transform: scale(1.09) rotate(-3deg); }
  100% { transform: scale(1.05) rotate(0); }
}
@keyframes tipPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.12); }
  50% { box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.04); }
}
@keyframes cloudWander {
  0%, 100% { transform: translate(var(--ox, 0px), var(--oy, 0px)); }
  25% {
    transform: translate(
      calc(var(--ox, 0px) + var(--dx1, 0px)),
      calc(var(--oy, 0px) + var(--dy1, 0px))
    );
  }
  50% {
    transform: translate(
      calc(var(--ox, 0px) + var(--dx2, 0px)),
      calc(var(--oy, 0px) + var(--dy2, 0px))
    );
  }
  75% {
    transform: translate(
      calc(var(--ox, 0px) + var(--dx3, 0px)),
      calc(var(--oy, 0px) + var(--dy3, 0px))
    );
  }
}
@keyframes recentSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.rise { animation: rise 0.32s ease both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.section-card{padding:1.1rem 1.2rem;border:1px solid var(--border,#e2e8f0);border-radius:14px;background:var(--card,#fff);margin-bottom:1rem}
.section-card h2,.section-card h3{margin:0 0 .8rem}
.info-grid{display:grid;grid-template-columns:96px 1fr;gap:.55rem .75rem;margin:0}
.info-grid dt{color:var(--muted,#64748b);font-size:.85rem}
.info-grid dd{margin:0}
.m-modal__wrapper {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
  background: rgba(0, 0, 0, 0.56);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.m-modal__container {
  display: flex;
  flex-direction: column;
  width: min(100%, 32rem);
  max-height: min(92vh, 48rem);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-lg);
}
.m-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem 0.9rem;
  border-bottom: 1px solid var(--border);
}
.m-modal__title { display: flex; align-items: center; gap: 0.45rem; color: var(--fg); font-size: 1rem; font-weight: 600; }
.ad-modal-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.08rem 0.3rem;
  border: 1px solid var(--border-2);
  border-radius: 0.2rem;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
}
.ad-modal-sub { margin-top: 0.25rem; color: var(--muted-2); font-size: 0.6875rem; }
.m-modal__headerbtn { flex-shrink: 0; }
.m-modal__body {
  flex: 1;
  min-height: 0;
  display: grid;
  gap: 0.8rem;
  padding: 1rem 1.25rem 1.2rem;
  overflow-y: auto;
}
.ad-purchase-slot {
  margin-bottom: 0.1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card-2);
  color: var(--fg-soft);
  font-family: var(--font-mono);
  font-size: 0.7188rem;
}
.ad-purchase-form {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}
.ad-purchase-form .submit-form-item { display: flex; flex-direction: column; gap: 0.35rem; margin: 0; }
.ad-purchase-form label {
  color: var(--fg-soft);
  font-size: 0.75rem;
  font-weight: 500;
}
.ad-purchase-form input[type="text"],
.ad-purchase-form input[type="url"],
.ad-purchase-form input[type="number"] {
  width: 100%;
  min-height: 2.375rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.ad-purchase-form input:focus {
  border-color: rgba(91, 124, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(91, 124, 255, 0.1);
}
.ad-hours-row { display: flex; align-items: center; gap: 0.5rem; }
.ad-hours-row input { width: 7rem !important; }
.ad-hours-row span { color: var(--muted); font-size: 0.75rem; }
.ad-hours-tip { color: var(--muted-2); font-size: 0.625rem; line-height: 1.6; }
.ad-purchase-total {
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(91, 124, 255, 0.22);
  border-radius: var(--radius-sm);
  background: var(--blue-dim);
  color: var(--blue-bright);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.ad-form-section {
  display: grid;
  gap: 0.7rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}
.ad-form-label {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
}
.ad-content-section { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ad-content-section .ad-form-label { grid-column: 1 / -1; }
.ad-content-section .ad-field-wide { grid-column: 1 / -1; }
.ad-contact-section { grid-template-columns: 1fr; }
.ad-purchase-form .ad-terms { display: block; }
.ad-purchase-form .ad-terms label {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.7;
}
.ad-purchase-form .ad-terms input { width: auto; min-height: auto; margin-top: 0.2rem; accent-color: var(--blue); }
.ad-purchase-form .ad-terms a { color: var(--blue-bright); }
.ad-purchase-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted-2);
  font-size: 0.6875rem;
}
.ad-purchase-contact-dot { width: 0.3rem; height: 0.3rem; border-radius: 50%; background: var(--green); }
.ad-purchase-contact a { color: var(--blue-bright); }
.m-modal__footer {
  display: flex;
  flex-shrink: 0;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--card);
}
body.ad-modal-open { overflow: hidden; }
@media (max-width: 48em) {
  .m-modal__wrapper { padding: 1rem; align-items: flex-end; }
  .m-modal__container { width: 100%; max-height: calc(100dvh - 2rem); border-radius: var(--radius); }
  .m-modal__header { padding: 0.9rem 1rem 0.75rem; }
  .m-modal__body { padding: 0.85rem 1rem 1rem; }
  .m-modal__footer { margin: 0; padding: 0.8rem 1rem 1rem; }
  .ad-content-section { grid-template-columns: 1fr; }
  .detail-grid, .article-layout { grid-template-columns: 1fr; }
}
