:root {
  /* Premium Dark Theme */
  --bg-color: #0d1117;
  --surface-color: #161b22;
  --surface-highlight: #1f2532;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;

  --gold-primary: #e8c84a;
  --gold-secondary: #f0d878;
  --gold-faint: rgba(232, 200, 74, 0.1);

  --accent-green: #3fb950;
  --accent-red: #ff7b72;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(232, 200, 74, 0.5);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 20px rgba(232, 200, 74, 0.15);

  --navbar-bg: rgba(22, 27, 34, 0.5);
  --body-bg-image: none;
  --btn-primary-bg: linear-gradient(135deg, var(--gold-secondary), var(--gold-primary));
  --btn-primary-color: #000;
  --btn-primary-hover-shadow: 0 8px 25px rgba(232, 200, 74, 0.3);
}

[data-theme="light"] {
  /* Paper & Ink Light Theme (User Custom) */
  --bg-color: #f5f0e8;
  --surface-color: #ede8db;
  --surface-highlight: #d9d3c4;
  --text-primary: #1a1710;
  --text-secondary: #8a8578;

  --gold-primary: #b8924a;
  --gold-secondary: #d4aa6a;
  --gold-faint: rgba(184, 146, 74, 0.1);

  --accent-green: #2a5040;
  --accent-red: #8b2020;

  --border-color: #d9d3c4;
  --border-focus: rgba(184, 146, 74, 0.5);

  --shadow-sm: 0 4px 12px rgba(26, 23, 16, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 23, 16, 0.12);
  --shadow-glow: 0 0 20px rgba(184, 146, 74, 0.2);

  --navbar-bg: rgba(245, 240, 232, 0.92);
  --body-bg-image: radial-gradient(ellipse at 20% 50%, rgba(184, 146, 74, 0.05) 0%, transparent 60%), radial-gradient(ellipse at 80% 20%, rgba(139, 32, 32, 0.03) 0%, transparent 50%);
  --btn-primary-bg: #1a1710;
  --btn-primary-color: #f5f0e8;
  --btn-primary-hover-shadow: 0 8px 25px rgba(26, 23, 16, 0.2);
}

/* 🌸 Sakura — 樱花粉 (女生/可爱风) */
[data-theme="sakura"] {
  --bg-color: #fef0f5;
  --surface-color: #fce4ec;
  --surface-highlight: #f8bbd0;
  --text-primary: #4a1942;
  --text-secondary: #9c6b8a;

  --gold-primary: #e91e90;
  --gold-secondary: #f06292;
  --gold-faint: rgba(233, 30, 144, 0.08);

  --accent-green: #66bb6a;
  --accent-red: #e53935;

  --border-color: #f3c4d9;
  --border-focus: rgba(233, 30, 144, 0.5);

  --shadow-sm: 0 4px 12px rgba(233, 30, 144, 0.06);
  --shadow-md: 0 8px 24px rgba(233, 30, 144, 0.1);
  --shadow-glow: 0 0 20px rgba(233, 30, 144, 0.15);

  --navbar-bg: rgba(254, 240, 245, 0.92);
  --body-bg-image: radial-gradient(ellipse at 20% 30%, rgba(240, 98, 146, 0.08) 0%, transparent 60%), radial-gradient(ellipse at 80% 70%, rgba(186, 104, 200, 0.06) 0%, transparent 50%);
  --btn-primary-bg: linear-gradient(135deg, #f06292, #e91e90);
  --btn-primary-color: #fff;
  --btn-primary-hover-shadow: 0 8px 25px rgba(233, 30, 144, 0.3);
}

/* 🌊 Ocean — 深海蓝 (男生/科技风) */
[data-theme="ocean"] {
  --bg-color: #0a1929;
  --surface-color: #0d2137;
  --surface-highlight: #12304e;
  --text-primary: #e0f0ff;
  --text-secondary: #7eb8e0;

  --gold-primary: #29b6f6;
  --gold-secondary: #4fc3f7;
  --gold-faint: rgba(41, 182, 246, 0.1);

  --accent-green: #66bb6a;
  --accent-red: #ef5350;

  --border-color: rgba(41, 182, 246, 0.12);
  --border-focus: rgba(41, 182, 246, 0.5);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(41, 182, 246, 0.2);

  --navbar-bg: rgba(10, 25, 41, 0.85);
  --body-bg-image: radial-gradient(ellipse at 30% 80%, rgba(41, 182, 246, 0.05) 0%, transparent 60%), radial-gradient(ellipse at 70% 20%, rgba(0, 230, 180, 0.04) 0%, transparent 50%);
  --btn-primary-bg: linear-gradient(135deg, #4fc3f7, #29b6f6);
  --btn-primary-color: #0a1929;
  --btn-primary-hover-shadow: 0 8px 25px rgba(41, 182, 246, 0.35);
}

/* 🌿 Forest — 森林绿 (自然风) */
[data-theme="forest"] {
  --bg-color: #f1f8e9;
  --surface-color: #e8f5e9;
  --surface-highlight: #c8e6c9;
  --text-primary: #1b3a1b;
  --text-secondary: #5d7a5d;

  --gold-primary: #2e7d32;
  --gold-secondary: #43a047;
  --gold-faint: rgba(46, 125, 50, 0.08);

  --accent-green: #2e7d32;
  --accent-red: #c62828;

  --border-color: #a5d6a7;
  --border-focus: rgba(46, 125, 50, 0.5);

  --shadow-sm: 0 4px 12px rgba(27, 58, 27, 0.06);
  --shadow-md: 0 8px 24px rgba(27, 58, 27, 0.1);
  --shadow-glow: 0 0 20px rgba(46, 125, 50, 0.15);

  --navbar-bg: rgba(241, 248, 233, 0.92);
  --body-bg-image: radial-gradient(ellipse at 25% 60%, rgba(129, 199, 132, 0.08) 0%, transparent 50%), radial-gradient(ellipse at 75% 30%, rgba(174, 213, 129, 0.06) 0%, transparent 50%);
  --btn-primary-bg: linear-gradient(135deg, #43a047, #2e7d32);
  --btn-primary-color: #fff;
  --btn-primary-hover-shadow: 0 8px 25px rgba(46, 125, 50, 0.25);
}

/* 🔮 Galaxy — 星空紫 (炫酷中性) */
[data-theme="galaxy"] {
  --bg-color: #120a2e;
  --surface-color: #1a1040;
  --surface-highlight: #261658;
  --text-primary: #e8dff5;
  --text-secondary: #a98fd8;

  --gold-primary: #b388ff;
  --gold-secondary: #d1a3ff;
  --gold-faint: rgba(179, 136, 255, 0.1);

  --accent-green: #69f0ae;
  --accent-red: #ff5252;

  --border-color: rgba(179, 136, 255, 0.15);
  --border-focus: rgba(179, 136, 255, 0.5);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(179, 136, 255, 0.25);

  --navbar-bg: rgba(18, 10, 46, 0.85);
  --body-bg-image: radial-gradient(ellipse at 20% 40%, rgba(179, 136, 255, 0.06) 0%, transparent 50%), radial-gradient(ellipse at 80% 60%, rgba(105, 240, 174, 0.04) 0%, transparent 50%);
  --btn-primary-bg: linear-gradient(135deg, #d1a3ff, #b388ff);
  --btn-primary-color: #120a2e;
  --btn-primary-hover-shadow: 0 8px 25px rgba(179, 136, 255, 0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Serif SC', serif;
  background-color: var(--bg-color);
  background-image: var(--body-bg-image);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Base App Layout */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Premium Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  background: var(--navbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: 'Noto Serif SC', serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--gold-primary);
}

.nav-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--surface-highlight);
}

.nav-link.active {
  color: var(--gold-primary);
  background: var(--gold-faint);
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Noto Serif SC', serif;
  line-height: 1.3;
}

/* Utilities */
.text-gold {
  color: var(--gold-primary);
}

.bg-surface {
  background: var(--surface-color);
}

.blur-backdrop {
  backdrop-filter: blur(8px);
}

/* Premium Buttons */
.btn-core {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  border: none;
  font-family: 'Noto Serif SC', serif;
  letter-spacing: 2px;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-color);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--btn-primary-hover-shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: var(--gold-faint);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Hamburger Button (hidden on desktop) */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1010;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Nav Overlay (mobile backdrop) */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .navbar {
    padding: 12px 16px;
    flex-direction: row;
    gap: 0;
  }

  /* When menu is open, raise navbar above the overlay so nav-links panel is not blurred */
  .navbar:has(.nav-links.open),
  .navbar.menu-open {
    z-index: 1001;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--surface-color);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    padding: 80px 24px 32px;
    gap: 4px;
    z-index: 1000;
    transition: right 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.3);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link {
    white-space: nowrap;
    font-size: 15px;
    padding: 12px 16px;
    border-radius: 10px;
    width: 100%;
    text-align: left;
  }

  .nav-link.active {
    background: var(--gold-faint);
  }
}

/* Theme Picker Panel */
.theme-picker-wrap {
  position: relative;
  display: inline-flex;
}

.theme-picker {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  z-index: 2000;
  box-shadow: var(--shadow-md);
  min-width: 180px;
}

.theme-picker.open {
  display: grid;
}

.theme-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  background: none;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-secondary);
  font-size: 10px;
  letter-spacing: 0.5px;
}

.theme-opt:hover {
  background: var(--surface-highlight);
}

.theme-opt.active {
  border-color: var(--gold-primary);
  background: var(--gold-faint);
  color: var(--gold-primary);
}

.theme-opt-icon {
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 768px) {
  .theme-picker {
    position: fixed;
    top: auto;
    bottom: 20px;
    right: 16px;
    left: 16px;
    margin-top: 0;
    min-width: auto;
  }
}

/* 🌐 Language & Learning Mode Picker Dropdown */
.lang-picker-wrap {
  position: relative;
  display: inline-flex;
}

.lang-picker {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  display: none;
  flex-direction: column;
  gap: 14px;
  z-index: 2000;
  box-shadow: var(--shadow-md);
  min-width: 270px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lang-picker.open {
  display: flex;
}

.lang-picker-title {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.lang-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lang-opt-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lang-opt-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  background: var(--surface-highlight);
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

.lang-opt-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.lang-opt-btn.active {
  border-color: var(--gold-primary);
  background: var(--gold-faint);
  color: var(--gold-primary);
}

.lang-mode-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-highlight);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
  color: var(--text-primary);
}

.lang-mode-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.lang-mode-item.active {
  border-color: var(--gold-primary);
  background: var(--gold-faint);
  color: var(--gold-primary);
}

@media (max-width: 768px) {
  .lang-picker {
    position: fixed;
    top: auto;
    bottom: 20px;
    right: 16px;
    left: 16px;
    margin-top: 0;
    min-width: auto;
  }
}

/* ─── Global Select & Option High-Contrast Styles ─── */
select,
.custom-select {
  color-scheme: dark;
  background-color: var(--surface-highlight, #1f2532);
  color: var(--text-primary, #e6edf3);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  cursor: pointer;
}

select:focus,
.custom-select:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px var(--gold-faint);
}

select option,
.custom-select option {
  background-color: #161b22;
  color: #f0f6fc;
  font-size: 14px;
  padding: 10px 14px;
}

select option.opt-locked,
.custom-select option.opt-locked {
  color: #94a3b8;
}

select option.opt-available,
.custom-select option.opt-available {
  color: #f0f6fc;
  font-weight: 500;
}

/* Light Theme Adaptations */
[data-theme="light"] select,
[data-theme="light"] .custom-select,
[data-theme="sakura"] select,
[data-theme="sakura"] .custom-select,
[data-theme="forest"] select,
[data-theme="forest"] .custom-select {
  color-scheme: light;
  background-color: #ffffff;
  color: #0f172a;
  border: 1.5px solid rgba(0, 0, 0, 0.2);
}

[data-theme="light"] select option,
[data-theme="light"] .custom-select option,
[data-theme="sakura"] select option,
[data-theme="sakura"] .custom-select option,
[data-theme="forest"] select option,
[data-theme="forest"] .custom-select option {
  background-color: #ffffff;
  color: #0f172a;
}

[data-theme="light"] select option.opt-locked,
[data-theme="light"] .custom-select option.opt-locked {
  color: #475569;
}

[data-theme="sakura"] select option.opt-locked,
[data-theme="sakura"] .custom-select option.opt-locked {
  color: #6b21a8;
}

[data-theme="forest"] select option.opt-locked,
[data-theme="forest"] .custom-select option.opt-locked {
  color: #334155;
}

/* Dark Theme Variations (Ocean & Galaxy) */
[data-theme="ocean"] select,
[data-theme="ocean"] .custom-select {
  color-scheme: dark;
  background-color: #0d2137;
  color: #e0f0ff;
  border: 1px solid rgba(41, 182, 246, 0.3);
}

[data-theme="ocean"] select option,
[data-theme="ocean"] .custom-select option {
  background-color: #0d2137;
  color: #e0f0ff;
}

[data-theme="ocean"] select option.opt-locked,
[data-theme="ocean"] .custom-select option.opt-locked {
  color: #7dd3fc;
}

[data-theme="galaxy"] select,
[data-theme="galaxy"] .custom-select {
  color-scheme: dark;
  background-color: #1a1040;
  color: #e8dff5;
  border: 1px solid rgba(179, 136, 255, 0.3);
}

[data-theme="galaxy"] select option,
[data-theme="galaxy"] .custom-select option {
  background-color: #1a1040;
  color: #e8dff5;
}

[data-theme="galaxy"] select option.opt-locked,
[data-theme="galaxy"] .custom-select option.opt-locked {
  color: #c4b5fd;
}

/* ==========================================================================
   全站通用一键分享与收藏悬浮胶囊 (Universal Floating Share Capsule)
   ========================================================================== */
#xunxi-share-capsule {
  position: fixed;
  right: 22px;
  bottom: 82px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  -webkit-user-select: none;
}

.xunxi-share-main-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  outline: none;
}

.xunxi-share-main-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.55), 0 3px 8px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.xunxi-share-main-btn .share-icon-main {
  transition: transform 0.3s ease;
}

#xunxi-share-capsule.expanded .xunxi-share-main-btn {
  background: linear-gradient(135deg, #475569, #334155);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

#xunxi-share-capsule.expanded .share-icon-main {
  transform: rotate(45deg);
}

.xunxi-share-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.9);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#xunxi-share-capsule.expanded .xunxi-share-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.xunxi-share-item-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.xunxi-share-item-btn:hover {
  transform: scale(1.15) translateX(-2px);
}

.share-btn-wechat {
  background: linear-gradient(135deg, #07c160, #059669);
  box-shadow: 0 4px 14px rgba(7, 193, 96, 0.35);
}
.share-btn-qq {
  background: linear-gradient(135deg, #1296db, #0284c7);
  box-shadow: 0 4px 14px rgba(18, 150, 219, 0.35);
}
.share-btn-fav {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}
.share-btn-link {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.xunxi-share-item-btn::before {
  content: attr(data-tip);
  position: absolute;
  right: 50px;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
}

.xunxi-share-item-btn:hover::before {
  opacity: 1;
  transform: translateX(0);
}

#xunxi-wx-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 16px;
  box-sizing: border-box;
}

#xunxi-wx-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.xunxi-wx-card {
  background: #ffffff;
  width: 100%;
  max-width: 320px;
  border-radius: 16px;
  padding: 24px 20px 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  box-sizing: border-box;
  color: #1e293b;
}

#xunxi-wx-modal.open .xunxi-wx-card {
  transform: scale(1);
}

.xunxi-wx-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.xunxi-wx-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.xunxi-wx-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  color: #07c160;
  margin-bottom: 16px;
}

.xunxi-wx-qr-box {
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.xunxi-wx-qr-box svg {
  display: block;
  width: 180px;
  height: 180px;
}

.xunxi-wx-tip {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 16px;
}

.xunxi-wx-copy-btn {
  width: 100%;
  padding: 10px 16px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.xunxi-wx-copy-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

#xunxi-share-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  max-width: 90vw;
  line-height: 1.5;
}

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

.xunxi-kbd-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  padding: 2px 7px;
  font-family: monospace;
  font-size: 13px;
  margin: 0 3px;
  color: #fbbf24;
  font-weight: 600;
}

@media (max-width: 640px) {
  #xunxi-share-capsule {
    right: 14px;
    bottom: 74px;
  }
  .xunxi-share-main-btn {
    width: 42px;
    height: 42px;
  }
  .xunxi-share-item-btn {
    width: 38px;
    height: 38px;
  }
  .xunxi-share-item-btn::before {
    display: none;
  }
}

