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

:root {
  --primary-color: #60a5fa;
  --secondary-color: #f87171;
  --accent-color: #34d399;
  --dark-bg: #0f1419;
  --darker-bg: #0a0e13;
  --card-bg: #1a202c;
  --text-primary: #f7fafc;
  --text-secondary: #a0aec0;
  --text-accent: #60a5fa;
  --border-color: #2d3748;
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #93c5fd 100%);
  --gradient-secondary: linear-gradient(135deg, #0f1419 0%, #1a202c 50%, #2d3748 100%);
  --glow-color: rgba(96, 165, 250, 0.3);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(96, 165, 250, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(52, 211, 153, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(248, 113, 113, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, #0f1419 0%, #1a202c 30%, #2d3748 70%, #0f1419 100%);
  z-index: -2;
}

.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.floating-shapes {
  position: relative;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.1;
  animation: float 20s infinite ease-in-out;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 25s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  top: 60%;
  right: 15%;
  animation-delay: -5s;
  animation-duration: 30s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  top: 30%;
  right: 30%;
  animation-delay: -10s;
  animation-duration: 20s;
}

.shape-4 {
  width: 250px;
  height: 250px;
  bottom: 20%;
  left: 20%;
  animation-delay: -15s;
  animation-duration: 35s;
}

.shape-5 {
  width: 100px;
  height: 100px;
  top: 80%;
  left: 60%;
  animation-delay: -20s;
  animation-duration: 15s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) scale(1);
    opacity: 0.1;
  }
  25% {
    transform: translateY(-30px) translateX(20px) scale(1.1);
    opacity: 0.15;
  }
  50% {
    transform: translateY(-60px) translateX(-10px) scale(0.9);
    opacity: 0.08;
  }
  75% {
    transform: translateY(-20px) translateX(-30px) scale(1.05);
    opacity: 0.12;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  padding: 20px 0;
  background: rgba(15, 20, 25, 0.95);
  backdrop-filter: blur(20px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(96, 165, 250, 0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  text-shadow: 0 0 20px var(--glow-color);
}

.logo-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 400;
}

.nav {
  display: flex;
  gap: 15px;
}

.nav-btn {
  padding: 12px 24px;
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-weight: 500;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.nav-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left 0.3s ease;
  z-index: -1;
}

.nav-btn:hover::before {
  left: 0;
}

.nav-btn:hover {
  color: white;
  box-shadow: 0 8px 25px var(--glow-color);
  transform: translateY(-2px);
}

.dev-btn {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.dev-btn::before {
  background: linear-gradient(135deg, #f87171 0%, #fca5a5 100%);
}

.dev-btn:hover {
  color: white;
  box-shadow: 0 8px 25px rgba(248, 113, 113, 0.4);
}

.main {
  margin-top: 80px;
}

.hero {
  padding: 120px 0;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 49%, rgba(96, 165, 250, 0.03) 50%, transparent 51%),
    linear-gradient(-45deg, transparent 49%, rgba(96, 165, 250, 0.03) 50%, transparent 51%);
  background-size: 60px 60px;
  opacity: 0.5;
  animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(60px, 60px);
  }
}

.hero-title {
  font-size: 56px;
  margin-bottom: 24px;
  color: var(--text-primary);
  font-weight: 800;
  text-shadow: 0 4px 20px var(--glow-color);
  position: relative;
  z-index: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 22px;
  margin-bottom: 80px;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
  font-weight: 400;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-bottom: 80px;
}

.feature-item {
  background: rgba(26, 32, 44, 0.8);
  padding: 40px 30px;
  border-radius: 16px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.feature-item:hover::before {
  transform: scaleX(1);
}

.feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(96, 165, 250, 0.2);
  border-color: var(--primary-color);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 8px var(--glow-color));
}

.feature-item h3 {
  color: var(--primary-color);
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 600;
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.cta-section {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.cta-button {
  position: relative;
  padding: 18px 36px;
  background: var(--gradient-primary);
  border: none;
  color: white;
  cursor: pointer;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px var(--glow-color);
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px var(--glow-color);
}

.cta-button.secondary {
  background: linear-gradient(135deg, #34d399 0%, #6ee7b7 100%);
  box-shadow: 0 8px 25px rgba(52, 211, 153, 0.3);
}

.cta-button.secondary:hover {
  box-shadow: 0 12px 35px rgba(52, 211, 153, 0.4);
}

.services {
  padding: 100px 0;
  background: rgba(26, 32, 44, 0.5);
  backdrop-filter: blur(10px);
}

.section-title {
  text-align: center;
  font-size: 42px;
  margin-bottom: 80px;
  color: var(--primary-color);
  font-weight: 700;
  text-shadow: 0 4px 20px var(--glow-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-category {
  background: rgba(15, 20, 25, 0.8);
  padding: 35px;
  border-radius: 16px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
  position: relative;
}

.service-category::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 16px 16px 0 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-category:hover::before {
  opacity: 1;
}

.service-category:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 15px 30px rgba(96, 165, 250, 0.15);
}

.service-category h3 {
  color: var(--primary-color);
  margin-bottom: 24px;
  font-size: 22px;
  font-weight: 600;
}

.service-category ul {
  list-style: none;
}

.service-category li {
  padding: 8px 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  transition: color 0.3s ease;
}

.service-category li:before {
  content: "▶";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 12px;
}

.service-category li:hover {
  color: var(--text-primary);
}

.credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 80px 0;
  padding: 50px;
  background: var(--gradient-primary);
  border-radius: 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 40px var(--glow-color);
}

.credential-item {
  text-align: center;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
}

.credential-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

.credential-icon {
  font-size: 36px;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.credential-item h4 {
  color: white;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
}

.credential-item p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.5;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.modal-content {
  background: var(--card-bg);
  margin: 5% auto;
  padding: 40px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: modalSlide 0.4s ease;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-content.large {
  max-width: 700px;
}

@keyframes modalSlide {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close {
  color: var(--text-secondary);
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

.modal-content h2 {
  color: var(--primary-color);
  margin-bottom: 30px;
  text-align: center;
  font-weight: 600;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(15, 20, 25, 0.8);
  border: 2px solid rgba(96, 165, 250, 0.2);
  color: var(--text-primary);
  border-radius: 8px;
  font-family: inherit;
  transition: all 0.3s ease;
  font-size: 15px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 20px var(--glow-color);
  background: rgba(15, 20, 25, 0.9);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

.btn {
  padding: 14px 28px;
  border: 2px solid;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: left 0.3s ease;
  z-index: -1;
}

.btn.primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn.primary::before {
  background: var(--gradient-primary);
}

.btn.primary:hover::before {
  left: 0;
}

.btn.primary:hover {
  color: white;
  box-shadow: 0 8px 25px var(--glow-color);
}

.btn.secondary {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.btn.secondary::before {
  background: linear-gradient(135deg, #f87171 0%, #fca5a5 100%);
}

.btn.secondary:hover::before {
  left: 0;
}

.btn.secondary:hover {
  color: white;
  box-shadow: 0 8px 25px rgba(248, 113, 113, 0.4);
}

.admin-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-bg);
  z-index: 3000;
  overflow-y: auto;
  padding: 20px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(96, 165, 250, 0.2);
}

.admin-header h2 {
  color: var(--primary-color);
  font-weight: 600;
}

.admin-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.queries-list,
.response-form {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 16px;
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.query-item {
  background: rgba(15, 20, 25, 0.8);
  padding: 20px;
  margin-bottom: 16px;
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.query-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--glow-color);
}

.query-item.selected {
  border-color: var(--primary-color);
  background: rgba(96, 165, 250, 0.1);
}

.query-meta {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 12px;
}

.query-details {
  color: var(--text-primary);
  line-height: 1.5;
}

.query-info {
  background: rgba(15, 20, 25, 0.8);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.no-data {
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
  padding: 60px 20px;
}

.business-item {
  background: rgba(15, 20, 25, 0.8);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.business-item h4 {
  color: var(--primary-color);
  margin-bottom: 12px;
  font-weight: 600;
}

.business-item .meta {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.business-item .result {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  white-space: pre-wrap;
  font-family: "Courier New", monospace;
}

.status-pending {
  color: #fbbf24;
}

.status-completed {
  color: var(--accent-color);
}

.telegram-support {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.telegram-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 8px 25px var(--glow-color);
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 15px;
  backdrop-filter: blur(10px);
}

.telegram-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px var(--glow-color);
  color: white;
}

.telegram-btn svg {
  width: 22px;
  height: 22px;
}

/* 管理员面板样式 */
.admin-dashboard {
  padding: 40px 0;
}

.dashboard-title {
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-primary);
  font-size: 2.5rem;
  font-weight: 700;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 15px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--glow-color);
}

.stat-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  color: white;
}

.stat-content h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.stat-content p {
  color: var(--text-secondary);
  margin: 5px 0 0 0;
}

.admin-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.queries-section {
  background: var(--card-bg);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 15px;
  padding: 30px;
}

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

.section-header h3 {
  color: var(--text-primary);
  margin: 0;
  font-size: 1.5rem;
}

.filters {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.filters select,
.filters input {
  padding: 10px 15px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 8px;
  background: rgba(15, 20, 25, 0.8);
  color: var(--text-primary);
  font-size: 14px;
}

.filters select option {
  background: #1a1a1a;
  color: var(--text-primary);
}

.filters input::placeholder {
  color: var(--text-secondary);
}

.queries-list {
  max-height: 500px;
  overflow-y: auto;
}

.response-section {
  background: var(--card-bg);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 15px;
  padding: 30px;
}

.nav-info {
  color: var(--text-primary);
  font-weight: 500;
  margin-right: 15px;
}

.auth-info {
  margin-top: 20px;
  padding: 15px;
  background: rgba(96, 165, 250, 0.1);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.auth-info p {
  color: var(--text-secondary);
  margin: 5px 0;
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

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

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

  .admin-content {
    grid-template-columns: 1fr;
  }

  .cta-section {
    flex-direction: column;
    align-items: center;
  }

  .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 30px 20px;
  }

  .telegram-support {
    bottom: 20px;
    right: 20px;
  }

  .telegram-btn {
    padding: 14px 18px;
    font-size: 13px;
  }

  .telegram-btn span {
    display: none;
  }

  .credentials {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }

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

  .section-header {
    flex-direction: column;
    align-items: stretch;
  }

  .filters {
    flex-direction: column;
  }
}

/* Loading效果 */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn.loading .btn-text {
  opacity: 0;
}

.nav-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.nav-btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.nav-btn.loading span {
  opacity: 0;
}
