/* 每日大赛官方网站 - 极简高端风格 CSS */

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

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #f5f5f5;
  --accent-color: #0066cc;
  --text-color: #333333;
  --light-text: #666666;
  --border-color: #e0e0e0;
  --spacing-unit: 16px;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
  color: var(--text-color);
  background-color: #ffffff;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* 头部导航 */
header {
  position: sticky;
  top: 0;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: -0.5px;
}

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

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

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

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

.search-box {
  display: flex;
  align-items: center;
  background-color: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 8px 16px;
  width: 200px;
  transition: all 0.3s ease;
}

.search-box:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 13px;
  color: var(--text-color);
}

.search-box input::placeholder {
  color: var(--light-text);
}

/* Hero Banner */
.hero {
  position: relative;
  height: 600px;
  background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(20px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 var(--spacing-unit);
}

.hero-image {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  max-width: 500px;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 16px;
  letter-spacing: -1px;
  line-height: 1.2;
}

.hero .sub-slogan {
  font-size: 18px;
  color: var(--light-text);
  margin-bottom: 32px;
  font-weight: 400;
}

.cta-button {
  display: inline-block;
  padding: 14px 40px;
  background-color: var(--accent-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  border: 2px solid var(--accent-color);
  cursor: pointer;
}

.cta-button:hover {
  background-color: transparent;
  color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.2);
}

/* 通用容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: -0.5px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 20px auto 0;
}

/* 关于品牌部分 */
.about {
  background-color: var(--secondary-color);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.about-text p {
  font-size: 16px;
  color: var(--light-text);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* 服务卡片 */
.services {
  background-color: #ffffff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.service-card {
  padding: 40px 30px;
  background-color: var(--secondary-color);
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.service-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 102, 204, 0.1);
}

.service-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

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

/* 视频案例展示 */
.cases {
  background-color: #ffffff;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.video-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background-color: var(--secondary-color);
  transition: all 0.3s ease;
  cursor: pointer;
  aspect-ratio: 16 / 9;
}

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

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

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.play-button {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent-color);
  transition: all 0.3s ease;
}

.video-card:hover .play-button {
  transform: scale(1.1);
  background-color: #ffffff;
}

.video-info {
  padding: 20px;
  background-color: #ffffff;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1.4;
}

.video-stats {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: var(--light-text);
}

.video-stat {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* 数据统计 */
.stats {
  background: linear-gradient(135deg, var(--primary-color) 0%, #2a2a2a 100%);
  color: #ffffff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
  text-align: center;
}

.stat-item h3 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--accent-color);
}

.stat-item p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

/* 用户评价 */
.testimonials {
  background-color: var(--secondary-color);
}

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

.testimonial-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  border-left: 4px solid var(--accent-color);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.testimonial-text {
  font-size: 15px;
  color: var(--light-text);
  line-height: 1.7;
  font-style: italic;
}

/* FAQ 部分 */
.faq {
  background-color: #ffffff;
}

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

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
  transition: all 0.3s ease;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question::after {
  content: '▼';
  font-size: 12px;
  color: var(--accent-color);
  transition: transform 0.3s ease;
}

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

.faq-answer {
  display: none;
  margin-top: 16px;
  font-size: 14px;
  color: var(--light-text);
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  display: block;
  animation: slideDown 0.3s ease;
}

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

/* 联系表单 */
.contact {
  background-color: var(--secondary-color);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.contact-item {
  margin-bottom: 24px;
}

.contact-item label {
  font-size: 13px;
  font-weight: 600;
  color: var(--light-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 6px;
}

.contact-item p {
  font-size: 15px;
  color: var(--primary-color);
}

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

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

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-color);
  transition: all 0.3s ease;
  background-color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

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

.form-submit {
  padding: 14px 40px;
  background-color: var(--accent-color);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.form-submit:hover {
  background-color: #0052a3;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.2);
}

/* 页脚 */
footer {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 40px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.footer-logo img {
  height: 30px;
  width: auto;
}

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

.footer-links h4 {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease;
}

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

.social-links {
  display: flex;
  gap: 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: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 18px;
}

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

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .services-grid,
  .cases-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-image {
    display: none;
  }

  .hero h1 {
    font-size: 36px;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  nav ul {
    gap: 20px;
  }

  nav a {
    font-size: 13px;
  }

  .search-box {
    width: 150px;
  }

  .hero {
    height: 400px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero .sub-slogan {
    font-size: 15px;
  }

  .section {
    padding: 50px 0;
  }

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

  .services-grid,
  .cases-grid,
  .stats-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

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

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

  .footer-links {
    grid-template-columns: 1fr;
  }
}

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

  .logo {
    font-size: 18px;
  }

  nav ul {
    gap: 15px;
  }

  nav a {
    font-size: 12px;
  }

  .search-box {
    display: none;
  }

  .hero h1 {
    font-size: 22px;
  }

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

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

  .stat-item h3 {
    font-size: 28px;
  }
}
