/* 抖阴品牌网站 - 全局样式表 */

/* ==================== 颜色变量与主题 ==================== */
:root {
  --color-dark-bg: #0f0f1e;
  --color-dark-purple: #1a1a3e;
  --color-neon-purple: #a855f7;
  --color-bright-pink: #ec4899;
  --color-light-gray: #f1f5f9;
  --color-medium-gray: #64748b;
  --color-border: #2d2d4a;
  
  --transition-fast: 150ms ease-out;
  --transition-normal: 200ms ease-out;
  --transition-slow: 300ms ease-out;
}

/* ==================== 全局重置与基础样式 ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-dark-bg);
  color: var(--color-light-gray);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==================== 排版 ==================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--color-light-gray);
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.875rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: rgba(241, 245, 249, 0.85);
}

a {
  color: var(--color-neon-purple);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-bright-pink);
}

/* ==================== 容器与布局 ==================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 1.875rem;
  }
}

/* ==================== 导航栏 ==================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 30, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

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

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-light-gray);
}

.navbar-logo img {
  height: 40px;
  width: auto;
}

.navbar-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.navbar-menu a {
  color: var(--color-light-gray);
  transition: color var(--transition-fast);
  font-size: 0.95rem;
}

.navbar-menu a:hover {
  color: var(--color-neon-purple);
}

.navbar-search {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-box {
  background: rgba(45, 45, 74, 0.5);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  color: var(--color-light-gray);
  width: 200px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.search-box:focus {
  outline: none;
  background: rgba(45, 45, 74, 0.8);
  border-color: var(--color-neon-purple);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

@media (max-width: 768px) {
  .navbar-menu {
    gap: 1rem;
    font-size: 0.9rem;
  }
  
  .search-box {
    width: 150px;
  }
}

/* ==================== Hero 英雄区 ==================== */
.hero {
  position: relative;
  height: 600px;
  background: linear-gradient(135deg, rgba(26, 26, 62, 0.8) 0%, rgba(15, 15, 30, 0.9) 100%),
              url('https://d2xsxph8kpxj0f.cloudfront.net/310519663689510996/jmrXaJJZacKAcxy6QjtZnr/51video_hero_bg-c64vFCWDzVs57UzKm2TmdL.webp') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--color-light-gray) 0%, var(--color-neon-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(241, 245, 249, 0.8);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-neon-purple) 0%, var(--color-bright-pink) 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-neon-purple);
  color: var(--color-neon-purple);
}

.btn-secondary:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--color-bright-pink);
  color: var(--color-bright-pink);
}

@media (max-width: 768px) {
  .hero {
    height: 400px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
}

/* ==================== 内容模块 ==================== */
.section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--color-border);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 0.5rem;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--color-medium-gray);
}

/* ==================== 卡片网格 ==================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.card {
  background: rgba(26, 26, 62, 0.5);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--color-neon-purple);
  box-shadow: 0 12px 32px rgba(168, 85, 247, 0.2);
}

.card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--color-dark-purple) 0%, var(--color-neon-purple) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(168, 85, 247, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition-normal);
}

.play-button::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 15px solid white;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 3px;
}

.card:hover .play-button {
  opacity: 1;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--color-medium-gray);
  line-height: 1.5;
}

/* ==================== 特性卡片 ==================== */
.feature-card {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--color-neon-purple) 0%, var(--color-bright-pink) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--color-medium-gray);
  font-size: 0.95rem;
}

/* ==================== 专家卡片 ==================== */
.expert-card {
  background: rgba(26, 26, 62, 0.5);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-normal);
}

.expert-card:hover {
  border-color: var(--color-neon-purple);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.15);
}

.expert-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--color-neon-purple) 0%, var(--color-bright-pink) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.expert-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.expert-title {
  color: var(--color-neon-purple);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.expert-bio {
  color: var(--color-medium-gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.expert-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.expert-actions a {
  padding: 0.5rem 1rem;
  background: rgba(168, 85, 247, 0.2);
  border-radius: 4px;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.expert-actions a:hover {
  background: rgba(168, 85, 247, 0.4);
}

/* ==================== FAQ 折叠菜单 ==================== */
.faq-item {
  background: rgba(26, 26, 62, 0.5);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast);
  font-weight: 600;
}

.faq-question:hover {
  background: rgba(168, 85, 247, 0.1);
}

.faq-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal);
}

.faq-toggle::after {
  content: '▼';
  font-size: 0.75rem;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  color: var(--color-medium-gray);
  margin: 0;
}

/* ==================== 用户评论 ==================== */
.review-card {
  background: rgba(26, 26, 62, 0.5);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-neon-purple) 0%, var(--color-bright-pink) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.review-info h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.review-rating {
  color: #fbbf24;
  font-size: 0.9rem;
}

.review-text {
  color: var(--color-medium-gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ==================== 页脚 ==================== */
.footer {
  background: rgba(26, 26, 62, 0.3);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--color-medium-gray);
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--color-neon-purple);
}

.footer-qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.qrcode-img {
  width: 120px;
  height: 120px;
  background: white;
  border-radius: 8px;
  padding: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--color-medium-gray);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* ==================== 懒加载与动画 ==================== */
.lazy-load {
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-slow);
}

.lazy-load.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .navbar-menu {
    display: none;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}

/* ==================== 工具类 ==================== */
.text-center {
  text-align: center;
}

.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 4rem; }

.hidden {
  display: none;
}

.visible {
  display: block;
}
