/* 
 * 每日大赛官方网站 - 主样式表
 * 品牌色：科技蓝 + 活力紫
 * 设计理念：现代活力、科技未来感、沉浸式交互
 */

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf1 100%);
  overflow-x: hidden;
}

/* ==================== 排版系统 ==================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #0a0e27;
}

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;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.8;
}

a {
  color: #0066ff;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #0052cc;
  text-decoration: underline;
}

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

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

.section {
  padding: 5rem 0;
}

@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }
}

/* ==================== 导航栏 ==================== */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0066ff 0%, #6600ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: #333;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #0066ff;
  text-decoration: none;
}

.search-box {
  display: flex;
  align-items: center;
  background: #f0f2f5;
  border-radius: 25px;
  padding: 0.5rem 1rem;
  margin-left: 1rem;
  transition: all 0.3s ease;
}

.search-box:hover {
  background: #e4e6eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 150px;
  font-size: 0.9rem;
}

.search-box button {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  font-size: 1.1rem;
}

/* 移动端菜单 */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    padding: 1rem;
    gap: 0.5rem;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .search-box {
    margin-left: 0;
    margin-top: 1rem;
  }

  .navbar {
    flex-wrap: wrap;
  }
}

/* ==================== 首屏Banner ==================== */
.hero {
  background: linear-gradient(135deg, #0066ff 0%, #6600ff 100%);
  color: white;
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::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(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 4rem;
  color: white;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.95);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 2rem auto 0;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: white;
  color: #0066ff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* ==================== 品牌故事模块 ==================== */
.brand-story {
  background: white;
  padding: 5rem 2rem;
}

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

.story-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf1 100%);
  padding: 2rem;
  border-radius: 15px;
  transition: all 0.3s ease;
  border-left: 4px solid #0066ff;
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.story-card h3 {
  color: #0066ff;
  margin-bottom: 1rem;
}

/* ==================== 品牌探索模块 ==================== */
.brand-explore {
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf1 100%);
  padding: 5rem 2rem;
}

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

.explore-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.explore-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.explore-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  position: relative;
  overflow: hidden;
}

.explore-card-image::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.explore-card:hover .explore-card-image::after {
  opacity: 1;
}

.explore-card-content {
  padding: 1.5rem;
}

.explore-card h3 {
  margin-bottom: 0.5rem;
  color: #0066ff;
}

.explore-card p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.explore-card-link {
  color: #0066ff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.explore-card-link:hover {
  gap: 1rem;
}

/* ==================== 品牌创造模块 ==================== */
.brand-creation {
  background: white;
  padding: 5rem 2rem;
}

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

.creation-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf1 100%);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.creation-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.creation-card-content {
  padding: 1.5rem;
}

.creation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ==================== 品牌灵感模块 ==================== */
.brand-inspiration {
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf1 100%);
  padding: 5rem 2rem;
}

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

.inspiration-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

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

.inspiration-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

/* ==================== FAQ模块 ==================== */
.faq-section {
  background: white;
  padding: 5rem 2rem;
}

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

.faq-item {
  margin-bottom: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.faq-question {
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf1 100%);
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #0a0e27;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 1.5rem;
  background: white;
  display: none;
  color: #666;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==================== 用户评价模块 ==================== */
.reviews-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf1 100%);
  padding: 5rem 2rem;
}

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

.review-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

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

.review-stars {
  color: #ffc107;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.review-text {
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.review-author {
  font-weight: 600;
  color: #0a0e27;
}

.review-date {
  color: #999;
  font-size: 0.9rem;
}

/* ==================== 联系模块 ==================== */
.contact-section {
  background: white;
  padding: 5rem 2rem;
}

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

.contact-info {
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf1 100%);
  padding: 2rem;
  border-radius: 15px;
}

.contact-info h3 {
  color: #0066ff;
  margin-bottom: 1rem;
}

.contact-item {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item-icon {
  font-size: 1.5rem;
  color: #0066ff;
  margin-top: 0.2rem;
}

.contact-item-text {
  color: #666;
}

.qr-codes {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

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

.qr-code-image {
  width: 150px;
  height: 150px;
  background: #f0f0f0;
  border-radius: 10px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

/* ==================== 页脚 ==================== */
footer {
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
  color: white;
  padding: 3rem 2rem 1rem;
}

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

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

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #0066ff;
}

/* ==================== 动画 ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.875rem;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 3rem 1rem;
  }

  .story-grid,
  .explore-grid,
  .creation-grid,
  .inspiration-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 1rem;
  }

  .search-box input {
    width: 100px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 1.875rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .container {
    padding: 0 0.75rem;
  }

  .navbar {
    padding: 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .nav-links {
    gap: 0.5rem;
  }
}

/* ==================== 视频卡片样式 ==================== */
.video-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  background: #000;
}

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

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

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #0066ff;
  opacity: 0;
  transition: all 0.3s ease;
  cursor: pointer;
}

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

/* ==================== 加载动画 ==================== */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #0066ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
