/* ==========================================================================
   SOUHE (2912D) MASTER-LEVEL DESIGN SYSTEM (VERCEL EDITION)
   Pure Monochrome · Tactile Skeuomorphism (3D 凹凸微质感) · Zero Neon / Zero AI Palette
   ========================================================================== */

:root {
  /* Dark Theme (Default) */
  --bg-page: #0a0a0c;
  --bg-surface: #121215;
  --bg-surface-elevated: #18181c;
  --bg-well: #070709;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-active: #ffffff;

  --text-primary: #f4f4f6;
  --text-secondary: #9a9aa2;
  --text-muted: #60606a;

  /* 3D Primary Button (Stark Contrast) */
  --btn-pri-bg: #f8f8f9;
  --btn-pri-text: #09090b;
  --btn-pri-edge: #d1d1d6;
  --btn-pri-shadow: rgba(0, 0, 0, 0.5);

  /* 3D Secondary Button */
  --btn-sec-bg: #1c1c20;
  --btn-sec-text: #e4e4e7;
  --btn-sec-edge: #0d0d10;
  --btn-sec-border: rgba(255, 255, 255, 0.12);

  /* Tag / Pill */
  --tag-bg: #151518;
  --tag-text: #a1a1aa;
  --tag-active-bg: #f4f4f6;
  --tag-active-text: #09090b;

  --card-radius: 14px;
  --btn-radius: 10px;
  --input-radius: 12px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

[data-theme="light"] {
  --bg-page: #f5f5f7;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f9f9fb;
  --bg-well: #ebebed;

  --border-subtle: rgba(0, 0, 0, 0.07);
  --border-strong: rgba(0, 0, 0, 0.14);
  --border-active: #09090b;

  --text-primary: #121214;
  --text-secondary: #5e5e66;
  --text-muted: #8e8e96;

  /* 3D Primary Button */
  --btn-pri-bg: #18181b;
  --btn-pri-text: #ffffff;
  --btn-pri-edge: #09090b;
  --btn-pri-shadow: rgba(0, 0, 0, 0.2);

  /* 3D Secondary Button */
  --btn-sec-bg: #ffffff;
  --btn-sec-text: #18181b;
  --btn-sec-edge: #dcdce0;
  --btn-sec-border: rgba(0, 0, 0, 0.12);

  /* Tag / Pill */
  --tag-bg: #ffffff;
  --tag-text: #52525b;
  --tag-active-bg: #18181b;
  --tag-active-text: #ffffff;
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* App Container */
.app-container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  background-color: var(--bg-page);
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-mark {
  width: 34px;
  height: 34px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

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

.brand-title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.8px;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
  display: inline-block;
}

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

/* Language Dropdown */
.lang-dropdown-wrapper {
  position: relative;
}

.lang-toggle-btn {
  font-size: 12px;
  gap: 4px;
  padding: 8px 10px;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 4px;
  min-width: 170px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: fadeIn 0.12s ease;
}

.lang-item {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 12px;
  text-align: left;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-item:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.lang-item.active {
  background: var(--bg-well);
  color: var(--text-primary);
  font-weight: 600;
}

/* ==========================================================================
   3D Tactile Buttons (微拟物按键核心)
   ========================================================================== */
.tactile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--btn-radius);
  cursor: pointer;
  user-select: none;
  background-color: var(--btn-sec-bg);
  color: var(--btn-sec-text);
  border: 1px solid var(--btn-sec-border);
  box-shadow: 0 2.5px 0 var(--btn-sec-edge), 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.15s;
  outline: none;
  text-decoration: none;
}

.tactile-btn:hover {
  filter: brightness(1.06);
}

.tactile-btn:active {
  transform: translateY(2px);
  box-shadow: 0 0.5px 0 var(--btn-sec-edge), 0 1px 2px rgba(0, 0, 0, 0.2);
}

.primary-btn {
  background-color: var(--btn-pri-bg);
  color: var(--btn-pri-text);
  border: 1px solid transparent;
  box-shadow: 0 3px 0 var(--btn-pri-edge), 0 6px 12px var(--btn-pri-shadow);
}

.primary-btn:active {
  transform: translateY(2.5px);
  box-shadow: 0 0.5px 0 var(--btn-pri-edge), 0 2px 4px var(--btn-pri-shadow);
}

.icon-only-btn {
  padding: 8px;
  width: 36px;
  height: 36px;
}

.small-btn {
  padding: 5px 10px;
  font-size: 12px;
}

/* Theme Icons */
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

/* ==========================================================================
   Hero & Search Section
   ========================================================================== */
.main-content {
  flex: 1;
  padding-bottom: 40px;
}

.hero-section {
  padding: 32px 0 16px 0;
  text-align: center;
}

.hero-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.hero-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 20px auto;
}

/* 3D Inset Search Well */
.search-form {
  max-width: 640px;
  margin: 0 auto 16px auto;
}

.search-well {
  display: flex;
  align-items: center;
  background-color: var(--bg-well);
  border-radius: var(--input-radius);
  padding: 6px 8px 6px 14px;
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-well:focus-within {
  border-color: var(--border-active);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--border-active);
}

.search-icon-slot {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  margin-right: 10px;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.4;
}

.search-input::placeholder {
  color: var(--text-muted);
  font-size: 14.5px;
}

.clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.15s;
}

.clear-btn:hover {
  color: var(--text-primary);
}

.search-submit-btn {
  background-color: var(--btn-pri-bg);
  color: var(--btn-pri-text);
  border: none;
  box-shadow: 0 2.5px 0 var(--btn-pri-edge), 0 4px 8px var(--btn-pri-shadow);
  padding: 8px 18px;
  font-size: 14px;
}

/* ==========================================================================
   VIP / Rewarded Ad Action Card (Monetag Rewarded Interstitial)
   ========================================================================== */
.vip-card {
  max-width: 640px;
  margin: 0 auto 18px auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--card-radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.vip-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.vip-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.vip-text-group {
  display: flex;
  flex-direction: column;
}

.vip-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vip-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.vip-badge-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: #f59e0b;
  color: #000000;
  letter-spacing: 0.3px;
}

.vip-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.35;
  margin-top: 2px;
}

.vip-action-btn {
  background: var(--btn-pri-bg);
  color: var(--btn-pri-text);
  border: none;
  box-shadow: 0 2.5px 0 var(--btn-pri-edge), 0 4px 8px var(--btn-pri-shadow);
  padding: 8px 14px;
  font-size: 12.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.vip-card.active-vip {
  border-color: #22c55e;
}

.vip-card.active-vip .vip-action-btn {
  background: #15803d;
  color: #ffffff;
  box-shadow: 0 2px 0 #14532d;
  pointer-events: none;
}

/* Filter Segmented Control */
.filter-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.segmented-control {
  display: inline-flex;
  background-color: var(--bg-well);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 1.5px 3px rgba(0, 0, 0, 0.3);
}

.seg-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.seg-btn.active {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Quick Tags Track */
.tags-scroll-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 8px 0;
  scrollbar-width: none;
}

.tags-scroll-container::-webkit-scrollbar {
  display: none;
}

.tags-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

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

.tactile-tag {
  background-color: var(--tag-bg);
  color: var(--tag-text);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1.5px 0 rgba(0, 0, 0, 0.2);
  transition: transform 0.08s, background-color 0.15s, color 0.15s;
}

.tactile-tag:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.tactile-tag:active {
  transform: translateY(1px);
}

/* ==========================================================================
   Results Section
   ========================================================================== */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 16px 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.results-count {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.results-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.results-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Channel Card */
.channel-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.channel-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.channel-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.avatar-fallback {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
}

.card-info {
  flex: 1;
  min-width: 0;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.channel-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  word-break: break-word;
}

.verified-badge {
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
}

.channel-handle {
  font-size: 13px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  display: inline-block;
  text-decoration: none;
}

.channel-handle:hover {
  text-decoration: underline;
}

.card-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.type-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.subscribers-stat {
  font-size: 12px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.channel-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.open-tg-btn {
  flex: 1;
  padding: 8px 14px;
  font-size: 13px;
}

/* Sponsored Native Card */
.sponsored-card {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-surface-elevated) 100%);
}

.sponsored-badge {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-weight: 600;
}

/* Skeleton Loading */
.skeleton-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-shimmer {
  background: linear-gradient(90deg, var(--bg-surface-elevated) 25%, var(--bg-well) 50%, var(--bg-surface-elevated) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Empty & Error States */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--card-radius);
}

.empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px auto;
  color: var(--text-muted);
}

.empty-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.empty-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto;
}

/* ==========================================================================
   Modals (API Docs & MTProto Auth)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.15s ease;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  width: 100%;
  max-width: 540px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  animation: scaleIn 0.15s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-intro {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.api-field {
  margin-bottom: 16px;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.code-box-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-well);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.code-block {
  background: var(--bg-well);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  overflow-x: auto;
  color: var(--text-primary);
}

.auth-status-box {
  background: var(--bg-well);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 18px;
}

.auth-status-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-surface-elevated);
  margin-bottom: 6px;
}

.auth-status-detail {
  font-size: 13px;
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 14px;
}

.text-input {
  width: 100%;
  background: var(--bg-well);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
}

.text-input:focus {
  border-color: var(--border-active);
}

.input-btn-row {
  display: flex;
  gap: 8px;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0;
  color: var(--text-muted);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}

.auth-divider span {
  padding: 0 10px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-primary);
  color: var(--bg-page);
  padding: 9px 18px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  z-index: 200;
  opacity: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s;
  pointer-events: none;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.app-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding: 20px 0;
}

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

.footer-copy {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

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

.dot-sep {
  color: var(--text-muted);
}

/* ==========================================================================
   Mobile Ergonomics (手机端极致适配)
   ========================================================================== */
@media (max-width: 640px) {
  .hero-title {
    font-size: 22px;
  }

  .hero-desc {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .vip-card {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    text-align: center;
  }

  .vip-card-left {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .vip-action-btn {
    width: 100%;
    padding: 10px;
  }

  .search-well {
    padding: 4px 6px 4px 10px;
  }

  .search-input {
    font-size: 15px;
  }

  .search-submit-btn {
    padding: 7px 14px;
    font-size: 13px;
  }

  .nav-btn .btn-text {
    display: none;
  }

  .nav-btn {
    padding: 8px;
  }

  .card-top {
    gap: 12px;
  }

  .channel-avatar, .avatar-fallback {
    width: 44px;
    height: 44px;
  }

  .avatar-fallback {
    font-size: 16px;
  }

  .channel-title {
    font-size: 15px;
  }

  .card-actions {
    flex-wrap: wrap;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
