* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #0a0e17;
  overflow-x: hidden;
}

/* ========== 背景动画 ========== */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 15s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #6c63ff, #00d4ff);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, #ff6b9d, #c44dff);
  bottom: -80px;
  right: -80px;
  animation-delay: -5s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, #00d4ff, #6c63ff);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
}

.grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(108, 99, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 99, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  33% {
    transform: translateY(-30px) scale(1.05);
  }

  66% {
    transform: translateY(20px) scale(0.95);
  }
}

/* ========== 顶部导航栏 ========== */
.top-nav {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  margin-top: 20px;
  background: rgba(20, 22, 40, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(108, 99, 255, 0.12);
  border-radius: 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  font-size: 28px;
}

.nav-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
}

.nav-actions {
  display: flex;
  gap: 12px;
}

.nav-btn {
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.nav-btn-outline {
  background: transparent;
  border: 1.5px solid rgba(108, 99, 255, 0.4);
  color: rgba(255, 255, 255, 0.8);
}

.nav-btn-outline:hover {
  border-color: #6c63ff;
  color: #ffffff;
  background: rgba(108, 99, 255, 0.1);
}

.nav-btn-primary {
  background: linear-gradient(135deg, #6c63ff 0%, #4f46e5 100%);
  border: none;
  color: #ffffff;
}

.nav-btn-primary:hover {
  box-shadow: 0 6px 24px rgba(108, 99, 255, 0.4);
  transform: translateY(-1px);
}

.nav-username {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
}

/* ========== 主体内容 ========== */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px 40px;
  flex: 1;
}

.hero-glass {
  background: rgba(20, 22, 40, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(108, 99, 255, 0.1);
  border-radius: 24px;
  padding: 40px 48px;
  text-align: center;
  margin-bottom: 48px;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.hero-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
}

/* ========== 功能卡片（完整版，无省略） ========== */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-bottom: 36px;
  max-width: 960px;
  width: 100%;
}

.feature-card {
  grid-column: span 2;
  background: rgba(20, 22, 40, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(108, 99, 255, 0.12);
  border-radius: 20px;
  padding: 28px 22px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: default;
}



.feature-card:hover {
  background: rgba(20, 22, 40, 0.7);
  border-color: rgba(108, 99, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(108, 99, 255, 0.15);
}

.card-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.card-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

/* CTA 按钮 */
.hero-btn {
  padding: 16px 48px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff;
  background: linear-gradient(135deg, #6c63ff 0%, #4f46e5 100%);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-btn:hover {
  box-shadow: 0 8px 36px rgba(108, 99, 255, 0.45);
  transform: translateY(-2px);
}

.btn-arrow {
  font-size: 20px;
  transition: transform 0.3s;
}

.hero-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ========== 弹窗 ========== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal-glass {
  background: rgba(20, 22, 40, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(108, 99, 255, 0.15);
  border-radius: 24px;
  padding: 40px 36px;
  width: 420px;
  max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #ffffff;
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 24px;
  text-align: center;
}

/* ========== 表单 ========== */
.form-group {
  margin-bottom: 18px;
}

.input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(15, 17, 30, 0.5);
  border: 1px solid rgba(108, 99, 255, 0.12);
  border-radius: 14px;
  padding: 0 16px;
  transition: all 0.3s ease;
}

.input-wrapper:focus-within {
  border-color: rgba(108, 99, 255, 0.6);
  background: rgba(15, 17, 35, 0.8);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.input-icon {
  font-size: 16px;
  margin-right: 10px;
  flex-shrink: 0;
  opacity: 0.7;
}

.input-wrapper input {
  flex: 1;
  padding: 14px 0;
  border: none;
  background: transparent;
  font-size: 15px;
  color: #ffffff;
  outline: none;
  width: 100%;
}

.input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.input-wrapper input:-webkit-autofill,
.input-wrapper input:-webkit-autofill:hover,
.input-wrapper input:-webkit-autofill:focus {
  -webkit-background-clip: text;
  -webkit-text-fill-color: #ffffff;
  box-shadow: 0 0 0px 1000px rgba(15, 17, 30, 0.5) inset;
  transition: background-color 5000s ease-in-out 0s;
}

.form-group .hint {
  font-size: 12px;
  color: #ff6b7a;
  margin-top: 6px;
  margin-left: 4px;
  display: none;
}

.agreement {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 18px;
}

.agreement a {
  color: #6c63ff;
  text-decoration: none;
}

.agreement input[type="checkbox"] {
  accent-color: #6c63ff;
}

/* ========== 按钮 ========== */
.btn-primary {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6c63ff 0%, #4f46e5 100%);
  color: white;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 2px;
}

.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(108, 99, 255, 0.4);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  color: rgba(255, 255, 255, 0.4);
}

.btn-cancel {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* ========== 消息和链接 ========== */
.message {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  min-height: 20px;
}

.message.success {
  color: #4ade80;
}

.message.error {
  color: #ff6b7a;
}

.switch-link {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.switch-link a {
  color: #6c63ff;
  text-decoration: none;
  font-weight: 600;
}

.switch-link a:hover {
  color: #8b83ff;
}

.modal-buttons {
  display: flex;
  gap: 12px;
}

.modal-buttons button {
  flex: 1;
}

.hidden {
  display: none !important;
}


 

/* ========== 响应式适配 ========== */

/* 平板竖屏 + 小笔记本 (768px ~ 1024px) */
@media (max-width: 1024px) {
  .top-nav {
    padding: 16px 28px;
  }

  .hero {
    padding: 40px 20px 30px;
  }

  .hero-glass {
    padding: 32px 36px;
    margin-bottom: 36px;
  }

  .hero-title {
    font-size: 26px;
  }

  .feature-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 700px;
  }

  .feature-card {
    grid-column: span 1;
  }

  .hero-btn {
    padding: 14px 40px;
    font-size: 16px;
  }
}

/* 小平板 + 大手机横屏 (480px ~ 768px) */
@media (max-width: 768px) {
  .top-nav {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 14px 20px;
  }

  .nav-actions {
    justify-content: center;
  }

  .nav-btn {
    padding: 8px 18px;
    font-size: 13px;
    border-radius: 10px;
  }

  .hero {
    padding: 30px 16px 24px;
  }

  .hero-glass {
    padding: 24px 28px;
    border-radius: 20px;
    margin-bottom: 28px;
  }

  .hero-title {
    font-size: 22px;
    letter-spacing: 1px;
  }

  .hero-desc {
    font-size: 14px;
  }

   .feature-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 28px;
  }

  .feature-card {
    grid-column: span 1;
    padding: 20px 16px;
    border-radius: 16px;
  }

  .card-icon {
    font-size: 30px;
    margin-bottom: 8px;
  }

  .card-title {
    font-size: 15px;
  }

  .card-desc {
    font-size: 12px;
  }

  .hero-btn {
    padding: 12px 36px;
    font-size: 15px;
    border-radius: 14px;
  }

  .modal-glass {
    width: 90vw;
    padding: 32px 24px;
    border-radius: 20px;
  }

  .modal-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .input-wrapper input {
    padding: 12px 0;
    font-size: 14px;
  }

  .btn-primary {
    padding: 12px;
    font-size: 14px;
  }
}

/* 手机竖屏 (< 480px) */
@media (max-width: 480px) {
  .top-nav {
    padding: 12px 16px;
    margin-top: 10px;
    border-radius: 16px;
  }

  .nav-logo {
    font-size: 24px;
  }

  .nav-title {
    font-size: 17px;
  }

  .nav-btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  .hero {
    padding: 20px 10px 20px;
  }

  .hero-glass {
    padding: 20px 18px;
    border-radius: 16px;
    margin-bottom: 24px;
  }

  .hero-title {
    font-size: 19px;
    margin-bottom: 8px;
  }

  .hero-desc {
    font-size: 13px;
  }

  .feature-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
  }

  .feature-card {
    grid-column: span 1;
    padding: 18px 14px;
    border-radius: 14px;
  }

  .card-icon {
    font-size: 28px;
  }

  .card-title {
    font-size: 14px;
  }

  .card-desc {
    font-size: 11px;
  }

  .hero-btn {
    padding: 10px 28px;
    font-size: 14px;
    border-radius: 12px;
    letter-spacing: 1px;
  }

  .btn-arrow {
    font-size: 16px;
  }

  .modal-glass {
    width: 95vw;
    padding: 24px 16px;
    border-radius: 16px;
  }

  .modal-title {
    font-size: 18px;
  }

  .modal-close {
    top: 12px;
    right: 14px;
    font-size: 18px;
  }

  .input-wrapper input {
    padding: 10px 0;
    font-size: 13px;
  }

  .btn-primary {
    padding: 10px;
    font-size: 13px;
    border-radius: 10px;
  }

  .btn-cancel {
    padding: 10px;
    font-size: 13px;
    border-radius: 10px;
  }

  .switch-link {
    font-size: 12px;
  }
}