/* ========== 公共模板样式 - 白底 + #8B8CBE 主色 + 蓝紫粉光晕 ========== */

:root {
  --primary: #8B8CBE;
  --primary-hover: #7a7bb0;
  --primary-light: #b3b4d6;
  --primary-bg: rgba(139, 140, 190, 0.08);
  --glow-blue: #6366f1;
  --glow-purple: #8B8CBE;
  --glow-pink: #ec4899;
}

/* 覆盖 Bootstrap primary */
.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  box-shadow: 0 4px 15px rgba(139, 140, 190, 0.4) !important;
}
.btn-outline-primary {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}
.btn-outline-primary:hover {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}
.text-primary {
  color: var(--primary) !important;
}
a {
  color: var(--primary);
}
a:hover {
  color: var(--primary-hover);
}

/* 基础布局 */
html, body {
  min-height: 100vh;
}
body {
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #333;
  background: #fff;
}
main {
  flex: 1;
}

/* ===== 导航栏 ===== */
.navbar {
  padding: .75rem 0;
}
.navbar-brand span {
  font-size: 1.15rem;
  color: #1a1a2e;
  font-weight: 700;
}
.navbar .nav-link {
  font-weight: 500;
  color: #555;
  padding: .5rem 1rem;
  border-radius: .375rem;
  transition: all .2s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary);
  background: var(--primary-bg);
}

/* ===== Hero 区域 ===== */
.hero-section {
  position: relative;
  padding: 100px 0 90px;
  background-color: #f9f9fb;
  background-image:
    linear-gradient(rgba(139, 140, 190, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 140, 190, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  overflow: hidden;
}
/* 蓝紫粉三色光晕 */
.hero-section::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.12) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.hero-glow-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(139, 140, 190, 0.1) 0%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.hero-section h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 1.2rem;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}
.hero-section h1 .gradient-text {
  color: var(--primary);
}
.hero-section .hero-desc {
  font-size: 1.1rem;
  color: #666;
  max-width: 560px;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

/* ===== 统计区域 ===== */
.stats-section {
  padding: 50px 0;
  background-color: #f9f9fb;
  background-image:
    linear-gradient(rgba(139, 140, 190, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 140, 190, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  border-top: 1px solid rgba(139, 140, 190, 0.1);
  border-bottom: 1px solid rgba(139, 140, 190, 0.1);
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}
.stat-label {
  color: #888;
  font-size: .9rem;
}

/* ===== 功能特色卡片 ===== */
.feature-card {
  background: #fff;
  border: 1px solid rgba(139, 140, 190, 0.12);
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  opacity: 0;
  transition: opacity .3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(139, 140, 190, 0.15);
  border-color: rgba(139, 140, 190, 0.25);
}
.feature-card:hover::before {
  opacity: 1;
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 1.2rem;
  background: var(--primary-bg);
  color: var(--primary);
}
.feature-card h5 {
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: .5rem;
}

/* ===== 应用卡片 ===== */
.app-card {
  border: 1px solid rgba(139, 140, 190, 0.12);
  border-radius: .75rem;
  transition: all .3s ease;
  overflow: hidden;
}
.app-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 8px 30px rgba(139, 140, 190, 0.12);
  transform: translateY(-3px);
}

/* ===== CTA 区域 ===== */
.cta-section {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: #fff;
}
.cta-section::before {
  content: '';
  position: absolute;
  bottom: -80px;
  left: 30%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: 25%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.06) 0%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.cta-section h3 {
  font-weight: 700;
  color: #1a1a2e;
  position: relative;
  z-index: 1;
}

/* ===== 渐变按钮 ===== */
.btn-gradient {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: .65rem 2rem;
  border-radius: .5rem;
  font-weight: 600;
  transition: all .3s;
}
.btn-gradient:hover {
  color: #fff;
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 140, 190, 0.4);
}

/* ===== 页脚 ===== */
.site-footer {
  background: #fff;
  border-top: 1px solid rgba(139, 140, 190, 0.1);
  padding-top: 3rem;
  padding-bottom: 1.5rem;
}
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: .5rem;
}
.footer-links a {
  color: #888;
  text-decoration: none;
  font-size: .9rem;
  transition: color .2s;
}
.footer-links a:hover {
  color: var(--primary);
}

/* ===== 光晕装饰 (可复用) ===== */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  opacity: .6;
}
.glow-blob.blue {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent 70%);
}
.glow-blob.purple {
  background: radial-gradient(circle, rgba(139, 140, 190, 0.2), transparent 70%);
}
.glow-blob.pink {
  background: radial-gradient(circle, rgba(236, 72, 153, 0.15), transparent 70%);
}

/* ===== Section 通用 ===== */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: .4rem;
}
.section-title p {
  color: #888;
  font-size: 1rem;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0 50px;
  }
  .hero-section h1 {
    font-size: 2.2rem;
  }
  .stat-number {
    font-size: 1.8rem;
  }
  .auth-section {
    padding: 40px 0;
  }
  .auth-card {
    padding: 1.75rem 1.25rem;
    max-width: 100%;
  }
}

/* ===== 登录/注册统一认证区域 ===== */
.auth-section {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  background-color: #f9f9fb;
  background-image:
    linear-gradient(rgba(139, 140, 190, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 140, 190, 0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  overflow: hidden;
}
/* 左上蓝色光晕 */
.auth-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  animation: authGlowFloat 8s ease-in-out infinite;
}
/* 右下粉色光晕 */
.auth-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -60px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.12) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  animation: authGlowFloat 8s ease-in-out infinite reverse;
}
/* 中心紫色光晕 */
.auth-glow-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(139, 140, 190, 0.08) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
@keyframes authGlowFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, 15px); }
}

/* 认证卡片 */
.auth-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 140, 190, 0.12);
  border-radius: 1rem;
  padding: 2.5rem 2.5rem;
  box-shadow: 0 4px 24px rgba(139, 140, 190, 0.06);
  max-width: 480px;
  width: 100%;
  transition: box-shadow 0.3s ease;
}
.auth-card:hover {
  box-shadow: 0 8px 32px rgba(139, 140, 190, 0.1);
}
.auth-card .auth-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .75rem;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 24px;
}
.auth-card h4 {
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: .2rem;
  font-size: 1.25rem;
}
.auth-card .auth-subtitle {
  color: #999;
  font-size: .82rem;
  margin-bottom: 1.5rem;
}
.auth-card .form-label {
  font-weight: 500;
  color: #555;
  font-size: .82rem;
  margin-bottom: .3rem;
}
.auth-card .form-control {
  border-radius: .5rem;
  border: 1px solid #e2e4ea;
  padding: .55rem .8rem;
  font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
}
.auth-card .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 140, 190, 0.1);
}
.auth-card .input-group-text {
  border-radius: .5rem 0 0 .5rem;
  border: 1px solid #e2e4ea;
  background: #f9f9fb;
  color: #888;
  font-size: .9rem;
}
.auth-card .btn-primary {
  border-radius: .5rem;
  padding: .6rem;
  font-weight: 600;
  font-size: .9rem;
}
.auth-card .auth-footer {
  text-align: center;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f5;
  font-size: .82rem;
}
