/* ============================================
   每日大赛官网 - 全局样式表
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
  overflow-x: hidden;
}

/* ============================================
   头部导航栏
   ============================================ */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, rgba(10, 20, 40, 0.95) 0%, rgba(20, 40, 80, 0.95) 100%);
  box-shadow: 0 2px 20px rgba(0, 200, 255, 0.1);
  border-bottom: 1px solid rgba(0, 200, 255, 0.2);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: bold;
  color: #00d4ff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  color: #00ffff;
}

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

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

nav a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00d4ff, #00ffff);
  transition: width 0.3s ease;
}

nav a:hover {
  color: #00ffff;
}

nav a:hover::after {
  width: 100%;
}

/* 搜索框 */
.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 200, 255, 0.3);
  border-radius: 20px;
  padding: 8px 15px;
  gap: 10px;
  transition: all 0.3s ease;
}

.search-box:hover,
.search-box:focus-within {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(0, 200, 255, 0.6);
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.2);
}

.search-box input {
  background: transparent;
  border: none;
  color: #fff;
  width: 150px;
  outline: none;
  font-size: 13px;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-box button {
  background: transparent;
  border: none;
  color: #00d4ff;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
}

.search-box button:hover {
  color: #00ffff;
  transform: scale(1.2);
}

/* ============================================
   首屏Banner
   ============================================ */

.hero-banner {
  position: relative;
  height: 100vh;
  background: linear-gradient(135deg, #0a1428 0%, #1a2a50 50%, #0f1f3f 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-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 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(0,200,255,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
  0% { transform: translateY(0); }
  100% { transform: translateY(40px); }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  max-width: 900px;
  padding: 20px;
}

.hero-content h1 {
  font-size: clamp(32px, 8vw, 72px);
  font-weight: 900;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #00d4ff, #00ffff, #ff00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content p {
  font-size: clamp(16px, 3vw, 24px);
  color: #b0d4ff;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-values {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-values span {
  padding: 10px 20px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  color: #00d4ff;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.hero-values span:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: rgba(0, 212, 255, 0.6);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn {
  padding: 15px 40px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, #00d4ff, #00ffff);
  color: #000;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
  background: transparent;
  color: #00d4ff;
  border: 2px solid #00d4ff;
}

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

/* ============================================
   内容区域通用样式
   ============================================ */

section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  font-size: clamp(28px, 5vw, 48px);
  margin-bottom: 50px;
  text-align: center;
  color: #0a1428;
  position: relative;
  padding-bottom: 20px;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #00d4ff, #00ffff);
  border-radius: 2px;
}

/* ============================================
   品牌故事模块
   ============================================ */

.brand-story {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8f0f7 100%);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.story-card {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 4px solid #00d4ff;
}

.story-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 212, 255, 0.15);
}

.story-card h3 {
  color: #0a1428;
  margin-bottom: 15px;
  font-size: 18px;
}

.story-card p {
  color: #666;
  line-height: 1.8;
}

/* ============================================
   品牌探索模块
   ============================================ */

.brand-explore {
  background: #fff;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.explore-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  height: 300px;
  cursor: pointer;
}

.explore-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.explore-card:hover img {
  transform: scale(1.1);
}

.explore-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 20, 40, 0.8), rgba(0, 212, 255, 0.3));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.explore-card:hover .explore-overlay {
  opacity: 1;
}

.explore-overlay h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.explore-overlay p {
  font-size: 14px;
  color: #b0d4ff;
}

/* ============================================
   视频卡片
   ============================================ */

.video-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  background: #000;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  group: 'video';
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(0, 212, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.video-card:hover .video-play-btn {
  opacity: 1;
}

.video-play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 25px solid #000;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  margin-left: 5px;
}

/* ============================================
   FAQ模块
   ============================================ */

.faq-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8f0f7 100%);
}

.faq-container {
  max-width: 800px;
  margin: 40px auto 0;
}

.faq-item {
  background: #fff;
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 5px 20px rgba(0, 212, 255, 0.1);
}

.faq-question {
  padding: 20px;
  background: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #0a1428;
  transition: all 0.3s ease;
}

.faq-item.active .faq-question {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 255, 0.05));
  color: #00d4ff;
}

.faq-question:hover {
  background: rgba(0, 212, 255, 0.05);
}

.faq-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d4ff;
  font-weight: bold;
  transition: transform 0.3s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(0, 212, 255, 0.05);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 20px;
  color: #666;
  line-height: 1.8;
}

/* ============================================
   用户评论模块
   ============================================ */

.testimonials-section {
  background: #fff;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8f0f7 100%);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-top: 3px solid #00d4ff;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.15);
}

.stars {
  color: #ffc107;
  font-size: 16px;
  margin-bottom: 15px;
}

.testimonial-text {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.8;
  font-style: italic;
}

.testimonial-author {
  color: #0a1428;
  font-weight: 600;
  font-size: 14px;
}

/* ============================================
   页脚
   ============================================ */

footer {
  background: linear-gradient(135deg, #0a1428 0%, #1a2a50 100%);
  color: #b0d4ff;
  padding: 60px 20px 30px;
  border-top: 1px solid rgba(0, 200, 255, 0.2);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-section h3 {
  color: #00d4ff;
  margin-bottom: 20px;
  font-size: 16px;
}

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

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: #b0d4ff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-section a:hover {
  color: #00ffff;
  transform: translateX(5px);
}

.footer-qr {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
}

.qr-item {
  text-align: center;
}

.qr-item img {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  margin-bottom: 10px;
  border: 2px solid rgba(0, 212, 255, 0.3);
}

.qr-item p {
  font-size: 12px;
  color: #b0d4ff;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 200, 255, 0.2);
  padding-top: 30px;
  text-align: center;
  font-size: 13px;
  color: #888;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #b0d4ff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #00ffff;
}

/* ============================================
   响应式设计
   ============================================ */

@media (max-width: 768px) {
  .header-container {
    height: 60px;
  }

  nav ul {
    gap: 15px;
  }

  nav a {
    font-size: 12px;
  }

  .search-box {
    display: none;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-values {
    gap: 15px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  section {
    padding: 50px 20px;
  }

  .story-grid,
  .explore-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-qr {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 18px;
  }

  nav ul {
    gap: 10px;
  }

  nav a {
    font-size: 11px;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .hero-content p {
    font-size: 14px;
  }

  .hero-values {
    gap: 10px;
  }

  .hero-values span {
    padding: 8px 15px;
    font-size: 12px;
  }

  .btn {
    padding: 12px 30px;
    font-size: 14px;
  }

  section h2 {
    font-size: 24px;
  }
}

/* ============================================
   动画和过渡效果
   ============================================ */

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
  }
}

.glow-effect {
  animation: glow 2s ease-in-out infinite;
}

/* ============================================
   加载动画
   ============================================ */

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 212, 255, 0.3);
  border-radius: 50%;
  border-top-color: #00d4ff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   工具类
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}
