/*
 * 文件名: index.css
 * 功能说明: GROK官网首页专用样式 - 2025 Vibrant Redesign
 * 版权: grok-4.top
 */

main {
  margin-top: var(--header-height);
}

/* 英雄区域 (Hero) - 震撼大气 */
.hero {
  position: relative;
  padding: 120px 0 160px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 英雄区背景光效 */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 800px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center; /* 居中对齐，更大气 */
  position: relative;
  z-index: 1;
}

.hero-content h2 {
  font-size: 72px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
  background: linear-gradient(to bottom, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(59, 130, 246, 0.2);
}

.hero-subtitle {
  font-size: 24px;
  color: var(--color-text-muted);
  margin: 0 auto 48px;
  line-height: 1.6;
  font-weight: 400;
  max-width: 700px;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 60px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: white;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 80px;
}

/* 访问提醒 */
.access-notice {
  margin: 0 auto;
  padding: 10px 20px;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.2);
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
}

.notice-text {
  margin: 0;
  color: #fbbf24;
  font-size: 14px;
  font-weight: 500;
}

/* 演示窗口 - 悬浮科技感 */
.hero-image {
  margin-top: -40px; /* 向上重叠一点，制造层次感 */
  display: flex;
  justify-content: center;
  perspective: 2000px;
}

.grok-demo {
  transform-style: preserve-3d;
}

.chat-window {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 20px;
  width: 900px; /* 更宽的演示窗口 */
  max-width: 90vw;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 50px 100px -20px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(59, 130, 246, 0.15); /* 底部发光 */
  backdrop-filter: blur(20px);
  overflow: hidden;
  transform: rotateX(10deg) translateY(20px);
  transition: transform 0.6s ease;
}

.hero:hover .chat-window {
  transform: rotateX(0) translateY(0);
}

.chat-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-controls {
  display: flex;
  gap: 8px;
}

.window-controls span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #334155;
}

.window-controls span:nth-child(1) { background-color: #ef4444; }
.window-controls span:nth-child(2) { background-color: #eab308; }
.window-controls span:nth-child(3) { background-color: #22c55e; }

.chat-title {
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 500;
}

.chat-messages {
  padding: 40px;
  min-height: 300px;
}

.message {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  max-width: 80%;
}

.message.ai-message {
  margin-right: auto;
}

.message.user-message {
  margin-left: auto;
  flex-direction: row-reverse;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--gradient-primary);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.message-content {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px 24px;
  border-radius: 0 20px 20px 20px;
  color: var(--color-text-main);
  line-height: 1.7;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.user-message .message-content {
  background: var(--gradient-primary);
  color: white;
  border-radius: 20px 0 20px 20px;
  box-shadow: var(--shadow-glow);
}

/* 区域通用样式 */
section {
  padding: 120px 0;
  position: relative;
}

section h3 {
  text-align: center;
  font-size: 42px;
  color: white;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -1px;
}

section h3 + p {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 18px;
  margin-bottom: 80px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* 服务亮点 (Highlights) - 玻璃卡片网格 */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.highlight-card {
  background: rgba(30, 41, 59, 0.4);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.highlight-card:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(96, 165, 250, 0.3);
  transform: translateY(-10px);
  box-shadow: var(--shadow-glow);
}

/* 卡片内部光效 */
.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
}

.highlight-card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 36px;
  margin-bottom: 24px;
  display: inline-flex;
  padding: 16px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 16px;
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.highlight-card h4 {
  font-size: 22px;
  color: white;
  margin-bottom: 12px;
  font-weight: 700;
}

.highlight-card p {
  color: var(--color-text-muted);
  line-height: 1.6;
  font-size: 16px;
}

/* 价格对比 (Pricing) - 高级感 */
.pricing-comparison {
  background: #0b1120; /* 更深的背景 */
}

.comparison-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.comparison-item {
  background: rgba(30, 41, 59, 0.4);
  border-radius: 32px;
  padding: 60px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

.comparison-item.official {
  opacity: 0.7;
  filter: grayscale(0.5);
  transition: all 0.3s;
}

.comparison-item.official:hover {
  opacity: 1;
  filter: grayscale(0);
}

.comparison-item.recommended {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(96, 165, 250, 0.5);
  box-shadow: 0 0 50px rgba(59, 130, 246, 0.15);
  transform: scale(1.05);
  z-index: 10;
}

.badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: 8px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-glow);
}

.comparison-item h4 {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  text-align: center;
}

.price {
  font-size: 64px;
  font-weight: 800;
  color: white;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: -2px;
}

.price span {
  font-size: 18px;
  color: var(--color-text-muted);
  font-weight: 400;
  letter-spacing: normal;
  margin-left: 8px;
}

.features {
  margin-bottom: 40px;
  flex-grow: 1;
}

.features li {
  padding: 16px 0;
  color: var(--color-text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.features li:last-child {
  border-bottom: none;
}

.pricing-button {
  display: block;
  background: var(--gradient-primary);
  color: white;
  padding: 20px 0;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: var(--shadow-glow);
}

.pricing-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.5);
}

/* 特性网格 (Features) - 2025风格 */
.features-section {
  background: var(--color-bg);
}

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

.feature-box {
  background: transparent;
  padding: 20px;
  border-radius: 20px;
  transition: all 0.3s;
}

.feature-box:hover {
  background: rgba(255, 255, 255, 0.03);
}

.feature-box h4 {
  font-size: 20px;
  color: white;
  margin-bottom: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-box p {
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: 16px;
}

/* 联系方式 (Contact) */
.contact {
  background: linear-gradient(to bottom, var(--color-bg), #0f172a);
  border-top: 1px solid var(--color-border);
}

.contact-info {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(20px);
  padding: 40px 60px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 60px;
  box-shadow: var(--shadow-lg);
}

.wechat-icon {
  font-size: 40px;
  color: #22c55e;
  filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.4));
}

.wechat-details strong {
  display: block;
  font-size: 24px;
  color: white;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.contact-button {
  background: #22c55e;
  color: white;
  padding: 16px 40px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.contact-button:hover {
  background: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.5);
}

/* 响应式调整 */
@media (max-width: 1024px) {
  .hero-content h2 {
    font-size: 56px;
  }
  
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 80px 0;
  }

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

  .hero-features {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .primary-button, .secondary-button {
    width: 100%;
    max-width: 300px;
  }

  .highlights-grid, .comparison-table {
    grid-template-columns: 1fr;
  }
  
  .comparison-item.recommended {
    transform: none;
  }
  
  .contact-info {
    flex-direction: column;
    width: 100%;
    gap: 30px;
    padding: 40px;
  }
}
