/* 每日大赛官网 - 主样式表 */

:root {
  --primary-color: #FF6B35;
  --secondary-color: #004E89;
  --accent-color: #F7931E;
  --text-dark: #333333;
  --text-light: #666666;
  --bg-light: #F5F5F5;
  --border-color: #DDDDDD;
  --success-color: #4CAF50;
  --warning-color: #FFC107;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #FFFFFF;
}

/* 头部导航 */
header {
  background-color: var(--secondary-color);
  color: white;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

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

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

nav a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
  font-weight: 500;
}

nav a:hover {
  color: var(--accent-color);
}

/* 搜索框 */
.search-container {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 8px 15px;
  gap: 10px;
}

.search-container input {
  background: none;
  border: none;
  color: white;
  outline: none;
  width: 200px;
  font-size: 14px;
}

.search-container input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-container button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
}

/* 主搜索框 */
.main-search {
  background-color: var(--bg-light);
  padding: 20px 40px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.main-search input {
  width: 100%;
  max-width: 500px;
  padding: 12px 20px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
}

/* Banner */
.banner {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: white;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="pattern" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="30" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="1200" height="600" fill="url(%23pattern)"/></svg>');
  pointer-events: none;
}

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

.banner h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: bold;
}

.banner p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.95;
}

.banner-image {
  max-width: 100%;
  height: auto;
  margin-top: 30px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* CTA按钮 */
.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 14px 40px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.cta-button:hover {
  background-color: #E67E0D;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(247, 147, 30, 0.3);
}

.cta-button.secondary {
  background-color: transparent;
  border: 2px solid white;
  margin-left: 15px;
}

.cta-button.secondary:hover {
  background-color: white;
  color: var(--secondary-color);
}

/* 功能模块 */
.features-section {
  padding: 60px 40px;
  background-color: white;
}

.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  color: var(--secondary-color);
  font-weight: bold;
}

.section-subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background-color: var(--bg-light);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 30px;
  color: white;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

/* 视频教程模块 */
.tutorials-section {
  padding: 60px 40px;
  background-color: var(--bg-light);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.video-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background-color: #000;
  overflow: hidden;
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

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

.video-info {
  padding: 20px;
}

.video-info h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--secondary-color);
  font-weight: bold;
}

.video-info p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

/* 场景应用 */
.scenarios-section {
  padding: 60px 40px;
  background-color: white;
}

.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.scenario-card {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: white;
  padding: 40px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.scenario-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.scenario-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: bold;
}

.scenario-card p {
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.95;
}

/* 更新日志 */
.changelog-section {
  padding: 60px 40px;
  background-color: var(--bg-light);
}

.changelog-list {
  max-width: 800px;
  margin: 0 auto;
}

.changelog-item {
  background-color: white;
  padding: 25px;
  margin-bottom: 20px;
  border-left: 4px solid var(--primary-color);
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.changelog-version {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.version-badge {
  background-color: var(--primary-color);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.changelog-date {
  font-size: 13px;
  color: var(--text-light);
}

.changelog-item h4 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.changelog-item p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* FAQ */
.faq-section {
  padding: 60px 40px;
  background-color: white;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.faq-question {
  background-color: var(--bg-light);
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  color: var(--secondary-color);
  transition: all 0.3s ease;
}

.faq-question:hover {
  background-color: #EEEEEE;
}

.faq-toggle {
  font-size: 20px;
  transition: transform 0.3s ease;
}

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

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: white;
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 500px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

/* 用户评价 */
.reviews-section {
  padding: 60px 40px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: white;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.review-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.review-stars {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--warning-color);
}

.review-text {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 15px;
  font-style: italic;
}

.review-author {
  font-weight: bold;
  font-size: 14px;
}

/* 联系我们 */
.contact-section {
  padding: 60px 40px;
  background-color: var(--bg-light);
}

.contact-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  gap: 20px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  flex-shrink: 0;
}

.contact-details h3 {
  font-size: 16px;
  margin-bottom: 5px;
  color: var(--secondary-color);
}

.contact-details p {
  font-size: 14px;
  color: var(--text-light);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 5px;
  color: var(--secondary-color);
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* 页脚 */
footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 40px;
  text-align: center;
  font-size: 14px;
}

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

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

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

.footer-links a:hover {
  color: var(--accent-color);
}

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

.social-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 13px;
}

/* 面包屑导航 */
.breadcrumb {
  background-color: var(--bg-light);
  padding: 15px 40px;
  font-size: 13px;
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .search-container {
    width: 100%;
  }

  .search-container input {
    width: 100%;
  }

  .banner {
    padding: 40px 20px;
  }

  .banner h1 {
    font-size: 32px;
  }

  .banner p {
    font-size: 16px;
  }

  .cta-button.secondary {
    display: block;
    margin-left: 0;
    margin-top: 10px;
  }

  .features-section,
  .tutorials-section,
  .scenarios-section,
  .changelog-section,
  .faq-section,
  .reviews-section,
  .contact-section {
    padding: 40px 20px;
  }

  .section-title {
    font-size: 28px;
  }

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

  .features-grid,
  .video-grid,
  .scenarios-grid,
  .reviews-grid {
    gap: 20px;
  }

  .footer-links {
    gap: 15px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .banner h1 {
    font-size: 24px;
  }

  .section-title {
    font-size: 22px;
  }

  nav ul {
    gap: 5px;
  }

  nav a {
    font-size: 12px;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 14px;
  }
}
