/* ===== Elite Frontend Design System ===== */
:root {
  --bg-primary: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-card: rgba(26, 26, 46, 0.6);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --accent: #00d4ff;
  --accent-glow: rgba(0, 212, 255, 0.4);
  --accent-alt: #7c3aed;
  --accent-alt-glow: rgba(124, 58, 237, 0.4);
  --accent-warm: #f59e0b;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border: rgba(148, 163, 184, 0.08);
  --border-hover: rgba(0, 212, 255, 0.4);
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --shadow: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-glass: rgba(0, 0, 0, 0.03);
  --accent: #0ea5e9;
  --accent-glow: rgba(14, 165, 233, 0.2);
  --accent-alt: #6366f1;
  --accent-alt-glow: rgba(99, 102, 241, 0.2);
  --text: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --border: rgba(148, 163, 184, 0.15);
  --border-hover: rgba(14, 165, 233, 0.4);
  --shadow: rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "IBM Plex Sans", sans-serif;
  background: var(--bg-primary);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  transition:
    background 0.5s ease,
    color 0.5s ease;
  min-width: 1280px;
  overflow: auto;
}

/* ===== Multi-layer Background with Noise ===== */
.bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background:
    radial-gradient(ellipse at 20% 50%, var(--accent-glow) 0%, transparent 50%),
    radial-gradient(
      ellipse at 80% 20%,
      var(--accent-alt-glow) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 50% 100%,
      rgba(245, 158, 11, 0.05) 0%,
      transparent 40%
    ),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  transition: background 0.5s ease;
}

.bg-noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ===== Enhanced Particles ===== */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle 20s infinite ease-in-out;
}

.particle:nth-child(3n) {
  background: var(--accent-alt);
}
.particle:nth-child(5n) {
  background: var(--accent-warm);
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100px) translateX(100px);
    opacity: 0;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-100px) translateX(50px);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-50px) translateX(-30px);
    opacity: 0.4;
  }
  75% {
    transform: translateY(-150px) translateX(20px);
    opacity: 0.5;
  }
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 15, 26, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.5s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 20px var(--accent-glow);
}

.logo span {
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.access-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.access-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.access-item:hover {
  color: var(--accent);
  background: var(--bg-glass);
}

.access-item.active {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  box-shadow: 0 4px 15px var(--accent-glow);
}

.access-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
}

/* Auth Buttons */
.auth-btns {
  display: flex;
  gap: 8px;
}

.auth-btn {
  padding: 8px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: "IBM Plex Sans", sans-serif;
}

.auth-btn.login {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.auth-btn.login:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.auth-btn.signup {
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: white;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.auth-btn.signup:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.theme-switcher {
  position: relative;
}

.theme-btn {
  width: 40px;
  height: 40px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
}

.theme-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

.theme-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.theme-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s ease;
}

.theme-option:hover {
  background: var(--bg-glass);
}

.theme-option.active {
  color: var(--accent);
}

.theme-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border);
}

/* Main */
.main {
  padding-top: 90px;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
  padding-bottom: 60px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 40px 0 30px;
  animation: fadeSlideUp 0.8s ease forwards;
  opacity: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  color: var(--success);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  background: linear-gradient(
    135deg,
    var(--text) 0%,
    var(--accent) 50%,
    var(--accent-alt) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Search */
.search-container {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  animation: fadeSlideUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.search-container:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 60px var(--accent-glow);
}

.search-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.search-tab {
  padding: 10px 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "IBM Plex Sans", sans-serif;
}

.search-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.search-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.search-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.search-input {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text);
  font-size: 15px;
  font-family: "IBM Plex Sans", sans-serif;
  transition: all 0.3s ease;
  outline: none;
  width: 100%;
}

.search-input::placeholder {
  color: var(--text-dim);
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.search-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  border: none;
  border-radius: 12px;
  padding: 14px 32px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  font-family: "IBM Plex Sans", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  height: fit-content;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

/* Countries Section */
.countries-section {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 30px;
  animation: fadeSlideUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

.countries-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.countries-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.countries-badge {
  padding: 4px 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-muted);
}

.countries-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}

.country-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.country-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--accent-glow);
}
.country-item.active {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.country-item.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

.country-item.locked:hover {
  border-color: var(--border);
  transform: none;
  box-shadow: none;
}

.country-flag {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
}

/* Country colors */
.country-flag.us {
  background: linear-gradient(135deg, #3b82f6, #ef4444);
}
.country-flag.ca {
  background: linear-gradient(135deg, #ef4444, #ffffff);
  color: #ef4444;
}
.country-flag.mx {
  background: linear-gradient(135deg, #10b981, #ffffff, #ef4444);
  color: #10b981;
}
.country-flag.gb {
  background: linear-gradient(135deg, #3b82f6, #ef4444, #ffffff);
}
.country-flag.de {
  background: linear-gradient(135deg, #1f2937, #ef4444, #fbbf24);
}
.country-flag.fr {
  background: linear-gradient(135deg, #3b82f6, #ffffff, #ef4444);
  color: #3b82f6;
}
.country-flag.nl {
  background: linear-gradient(135deg, #ef4444, #ffffff, #3b82f6);
  color: #ef4444;
}
.country-flag.be {
  background: linear-gradient(135deg, #1f2937, #fbbf24, #ef4444);
}
.country-flag.it {
  background: linear-gradient(135deg, #10b981, #ffffff, #ef4444);
  color: #10b981;
}
.country-flag.es {
  background: linear-gradient(135deg, #ef4444, #fbbf24);
}
.country-flag.pl {
  background: linear-gradient(135deg, #ffffff, #ef4444);
  color: #ef4444;
}
.country-flag.cn {
  background: linear-gradient(135deg, #ef4444, #fbbf24);
}
.country-flag.jp {
  background: linear-gradient(135deg, #ffffff, #ef4444);
  color: #ef4444;
}
.country-flag.kr {
  background: linear-gradient(135deg, #3b82f6, #ef4444, #ffffff);
}
.country-flag.in {
  background: linear-gradient(135deg, #f97316, #ffffff, #10b981);
  color: #f97316;
}
.country-flag.vn {
  background: linear-gradient(135deg, #ef4444, #fbbf24);
}
.country-flag.th {
  background: linear-gradient(135deg, #ef4444, #ffffff, #3b82f6);
}
.country-flag.my {
  background: linear-gradient(135deg, #3b82f6, #ef4444, #ffffff, #fbbf24);
}
.country-flag.id {
  background: linear-gradient(135deg, #ef4444, #ffffff);
  color: #ef4444;
}
.country-flag.ph {
  background: linear-gradient(135deg, #3b82f6, #ef4444, #fbbf24);
}
.country-flag.br {
  background: linear-gradient(135deg, #10b981, #fbbf24);
}
.country-flag.ar {
  background: linear-gradient(135deg, #87ceeb, #ffffff, #87ceeb);
  color: #3b82f6;
}
.country-flag.cl {
  background: linear-gradient(135deg, #3b82f6, #ef4444, #ffffff);
}
.country-flag.co {
  background: linear-gradient(135deg, #fbbf24, #3b82f6, #ef4444);
}
.country-flag.au {
  background: linear-gradient(135deg, #1e3a8a, #ef4444, #ffffff);
}
.country-flag.nz {
  background: linear-gradient(135deg, #1e3a8a, #ef4444, #ffffff);
}
.country-flag.ae {
  background: linear-gradient(135deg, #10b981, #ef4444, #1f2937);
}
.country-flag.tr {
  background: linear-gradient(135deg, #ef4444, #ffffff);
  color: #ef4444;
}
.country-flag.il {
  background: linear-gradient(135deg, #3b82f6, #ffffff, #3b82f6);
  color: #3b82f6;
}
.country-flag.za {
  background: linear-gradient(
    135deg,
    #10b981,
    #fbbf24,
    #ef4444,
    #3b82f6,
    #ffffff,
    #ef4444
  );
}

.country-name {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

.country-lock {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 12px;
  color: var(--accent-warm);
}

.unlock-hint {
  text-align: center;
  padding: 16px;
  color: var(--text-muted);
  font-size: 13px;
}

.unlock-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--accent-warm), #f97316);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.unlock-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

/* Data Table */
.data-section {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 30px;
  animation: fadeSlideUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  transition: background 0.3s ease;
}

.data-table tr:hover td {
  background: var(--bg-glass);
}

.data-table .highlight {
  color: var(--accent);
  font-weight: 600;
}

.data-table .tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.data-table .tag.hot {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--accent-warm);
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.modal-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.modal-desc {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.modal-input {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text);
  font-size: 15px;
  font-family: "IBM Plex Sans", sans-serif;
  transition: all 0.3s ease;
  outline: none;
  width: 100%;
}

.modal-input::placeholder {
  color: var(--text-dim);
}

.modal-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.modal-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  font-family: "IBM Plex Sans", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.modal-btn:hover {
  /* transform: translateY(-2px); */
  box-shadow: 0 8px 30px var(--accent-glow);
}

.modal-close {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--accent);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 30px 40px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Animations */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .countries-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .search-grid {
    grid-template-columns: 1fr;
  }
  .access-bar {
    display: none;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0 20px;
  }
  .main {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero-title {
    font-size: 32px;
  }
  .countries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .data-table {
    font-size: 12px;
  }
  .data-table th,
  .data-table td {
    padding: 8px 10px;
  }
}

/* --- 遮罩层 --- */
.modal-overlay2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px); /* 背景模糊 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000000;
  animation: fadeIn 0.3s ease-out;
}

/* --- 弹窗容器 --- */
.payment-modal {
  background: #1e1b4b; /* 深紫色背景 */
  width: 380px;
  border-radius: 16px;
  border: 1px solid #4f46e5; /* 靛蓝色边框 */
  box-shadow: 0 0 30px rgba(79, 70, 229, 0.3); /* 发光阴影 */
  overflow: hidden;
  position: relative;
  text-align: center;
  color: #ffffff;
}

/* 装饰性顶部条纹 */
.modal-header-decoration {
  height: 4px;
  background: linear-gradient(90deg, #06b6d4, #8b5cf6); /* 青蓝到紫色渐变 */
  width: 100%;
}

/* --- 内容区域 --- */
.modal-content {
  padding: 30px 20px;
}

.modal-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #22d3ee 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-subtitle {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 25px;
}

.price-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 18px;
  font-weight: bold;
  color: #38bdf8; /* 亮青色 */
  border: 1px solid rgba(56, 189, 248, 0.3);
  margin-bottom: 25px;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.1);
}

/* --- 二维码区域 --- */
.qrcode-box {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px auto;
  background-color: #ffffff; /* 二维码通常是白底 */
  padding: 10px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* 模拟二维码图案 (实际使用时请替换为img标签) */
.qrcode-placeholder {
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(#000000 20%, transparent 20%),
    radial-gradient(#000000 20%, transparent 20%);
  background-color: #fff;
  background-size: 20px 20px;
  background-position:
    0 0,
    10px 10px;
  position: relative;
}
#qrcode img {
  width: 100%;
  height: 100%;
}
.qrcode-logo {
  width: 100%;
  height: 100%;
}
/* 二维码中间的Logo */
/* .qrcode-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: #1e1b4b;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  border: 2px solid #fff;
} */

.scan-tip {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.scan-tip span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #4ade80; /* 绿色呼吸灯 */
  border-radius: 50%;
  animation: breathe 2s infinite ease-in-out;
}

/* --- 底部支付方式 --- */
.payment-methods {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.method-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0.6;
}

.method-icon:hover,
.method-icon.active {
  background: #fff;
  color: #000;
  opacity: 1;
  transform: scale(1.1);
}

/* --- 关闭按钮 --- */
.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #fff;
}

/* --- 动画 --- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.4;
    box-shadow: 0 0 5px #4ade80;
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 15px #4ade80;
  }
}

/* ----- 验证码弹窗 (只有验证码输入核心) ----- */
.modal-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2001;
  visibility: hidden;
  opacity: 0;
  transition:
    visibility 0.2s,
    opacity 0.2s ease;
}

.modal-mask.active {
  visibility: visible;
  opacity: 1;
}

/* 弹窗容器 — 只包含验证码相关元素 */
.verify-modal {
  background: white;
  width: 90%;
  max-width: 400px;
  border-radius: 48px;
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.modal-mask.active .verify-modal {
  transform: scale(1);
}

.modal-header {
  padding: 28px 28px 8px 28px;
  position: relative;
}

.modal-header h3 {
  font-size: 1.7rem;
  font-weight: 700;
  color: #0a1e3c;
  margin-bottom: 6px;
}

.modal-sub {
  color: #5b6e8c;
  font-size: 0.85rem;
  margin-top: 4px;
}

.close-modal {
  position: absolute;
  right: 24px;
  top: 24px;
  background: #f0f2f5;
  width: 32px;
  height: 32px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: #4a5a7a;
  transition: 0.1s;
}

.close-modal:hover {
  background: #e2e8f0;
}

/* 只有验证码输入区域 - 没有手机号输入框 */
.modal-body {
  padding: 16px 28px 28px 28px;
}

.code-input-group {
  margin: 12px 0 20px;
}

.code-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2c3e66;
  margin-bottom: 10px;
  display: block;
}

.code-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f1f5f9;
  border-radius: 60px;
  padding: 4px 20px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

.code-wrapper:focus-within {
  border-color: #1e6ef0;
  background: white;
  box-shadow: 0 0 0 3px rgba(30, 110, 240, 0.15);
}

#verificationCode {
  flex: 1;
  border: none;
  background: transparent;
  padding: 16px 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 1px;
  outline: none;
  color: #0a1e3c;
}

#verificationCode::placeholder {
  color: #abbcd9;
  font-weight: 400;
  letter-spacing: normal;
}

.resend-btn {
  background: transparent;
  border: none;
  color: #1e6ef0;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 8px 0;
  white-space: nowrap;
  transition: 0.1s;
}

.resend-btn.disabled {
  color: #abbcd9;
  cursor: not-allowed;
}

.error-msg {
  color: #e5484d;
  font-size: 0.75rem;
  margin-top: 8px;
  padding-left: 8px;
  min-height: 20px;
}

.confirm-btn {
  width: 100%;
  background: #0a1e3c;
  color: white;
  border: none;
  padding: 16px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 24px;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.confirm-btn:active {
  transform: scale(0.97);
}

.cancel-tip {
  text-align: center;
  margin-top: 16px;
  font-size: 0.8rem;
  color: #8b9ab5;
  cursor: pointer;
}

.skill_box {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: left;
}

.skill_item {
}
.skill_item .skill_title {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--accent);
  display: block;
}
.skill_item .skill_cont {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--accent);
  display: block;
  border: 1px solid var(--accent);
  padding: 5px;
  border-radius: 5px;
  margin: 5px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.skill_item .skill_cont img {
  width: 20px;
}
