/* 现代化聚合登录服务首页样式 - 2024年设计风格 */

:root {
  /* 主要色彩 - 渐变主题 */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  
  /* 基础色彩 */
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #4facfe;
  --text-primary: #1a1a1a;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-light: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* 动画时间 */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  background-color: var(--bg-white);
  overflow-x: hidden;
}

/* 动画关键帧 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* 容器 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏 - 玻璃拟态效果 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-normal);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--border-light);
  padding: 15px 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand img {
  height: 40px;
  margin-right: 12px;
  transition: transform var(--transition-normal);
}

.navbar-brand:hover img {
  transform: rotate(5deg);
}

.navbar-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 8px;
}

.navbar-item {
  position: relative;
}

.navbar-link {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
  display: inline-block;
}

.header:not(.header-scrolled) .navbar-link {
  color: var(--text-primary);
}

.navbar-link:hover {
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.navbar-link.active {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-md);
}

.navbar-link.active:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--text-primary);
  padding: 8px;
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.navbar-toggle:hover {
  background: rgba(102, 126, 234, 0.1);
  transform: scale(1.1);
}

/* 横幅区域 - 现代渐变和动画 */
.banner {
  padding: 160px 0 100px;
  background: var(--primary-gradient);
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.banner-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.banner-title {
  animation: fadeInLeft 0.8s ease-out;
}

.banner-title h1 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
  background: linear-gradient(45deg, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.banner-title p {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.9;
  font-weight: 400;
}

.banner-image {
  animation: fadeInRight 0.8s ease-out;
  animation-delay: 0.2s;
  animation-fill-mode: both;
}

.banner-image img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  animation: float 6s ease-in-out infinite;
}

/* 现代按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::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 var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-white {
  background: white;
  color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: #f8fafc;
}

.banner-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* 内容区块 - 现代卡片设计 */
.section {
  padding: 100px 0;
  position: relative;
}

.section:nth-child(even) {
  background: var(--bg-light);
}

.section-title {
  text-align: center;
  margin-bottom: 64px;
  animation: fadeInUp 0.6s ease-out;
}

.section-title h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.section-intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
  animation: fadeInUp 0.6s ease-out;
  animation-delay: 0.2s;
  animation-fill-mode: both;
}

/* 特点卡片 - 现代设计 */
.feature-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
  animation: fadeInUp 0.8s ease-out;
}

.feature-card:nth-child(even) {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}

.feature-card:nth-child(even) .feature-content {
  direction: ltr;
}

.feature-image {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-normal);
}

.feature-image:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.feature-image img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-slow);
}

.feature-image:hover img {
  transform: scale(1.05);
}

.feature-content {
  padding: 0 20px;
}

.feature-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  position: relative;
}

.feature-title::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 30px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.feature-desc {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
  font-size: 16px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 12px 0;
}

.feature-icon {
  margin-right: 12px;
  color: var(--primary-color);
  font-size: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* 统计数据区域 */
.stats-section {
  background: var(--primary-gradient);
  color: white;
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item {
  animation: fadeInUp 0.6s ease-out;
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 8px;
  display: block;
}

.stat-label {
  font-size: 18px;
  opacity: 0.9;
}

/* 信任标识 */
.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  color: var(--text-secondary);
  transition: all var(--transition-normal);
}

.trust-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 友情链接 */
.links {
  background: var(--bg-light);
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
}

.links-content {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.links-content a {
  color: var(--text-secondary);
  text-decoration: none;
  margin: 0 12px;
  transition: all var(--transition-fast);
}

.links-content a:hover {
  color: var(--primary-color);
}

/* 页脚 - 现代设计 */
.footer {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
  text-align: center;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--primary-gradient);
}

.footer-content {
  position: relative;
  z-index: 2;
}

.footer p {
  margin-bottom: 16px;
  font-size: 14px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px -12px rgba(102, 126, 234, 0.25);
}

/* 加载动画 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-light);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 响应式设计 - 现代移动端适配 */
@media (max-width: 1200px) {
  .container {
    padding: 0 24px;
  }
  
  .banner-title h1 {
    font-size: 48px;
  }
}

@media (max-width: 992px) {
  .banner {
    padding: 140px 0 80px;
  }
  
  .banner-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .banner-title h1 {
    font-size: 42px;
  }
  
  .feature-card,
  .feature-card:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }
  
  .feature-content {
    text-align: center;
  }
  
  .feature-title::before {
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
  }
  
  .section-title h2 {
    font-size: 36px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 16px 16px;
    gap: 8px;
  }
  
  .navbar-menu.active {
    display: flex;
  }
  
  .navbar-link {
    width: 100%;
    text-align: center;
    padding: 16px 20px;
    border-radius: 12px;
  }
  
  .navbar-toggle {
    display: block;
  }
  
  .banner-title h1 {
    font-size: 36px;
  }
  
  .banner-buttons {
    justify-content: center;
  }
  
  .btn {
    padding: 14px 24px;
    font-size: 14px;
  }
  
  .section {
    padding: 80px 0;
  }
  
  .section-title h2 {
    font-size: 32px;
  }
  
  .feature-title {
    font-size: 24px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .trust-badges {
    gap: 20px;
  }
  
  .trust-badge {
    padding: 10px 16px;
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  .banner {
    padding: 120px 0 60px;
    min-height: auto;
  }
  
  .banner-title h1 {
    font-size: 32px;
  }
  
  .banner-title p {
    font-size: 18px;
  }
  
  .section-title h2 {
    font-size: 28px;
  }
  
  .feature-title {
    font-size: 22px;
  }
  
  .stat-number {
    font-size: 36px;
  }
  
  .footer-links {
    gap: 16px;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --bg-light: #1f2937;
    --bg-white: #111827;
    --border-light: #374151;
  }
  
  body {
    background: var(--bg-white);
  }
  
  .header-scrolled {
    background: rgba(17, 24, 39, 0.95);
  }
  
  .feature-image {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  }
}