/* ============================================
   每日大赛 - 官方网站 CSS 样式表
   现代极简高端风格
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background-color: #ffffff;
  font-size: 16px;
}

/* 链接样式 */
a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #0052a3;
}

/* 按钮样式 */
button, .btn {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  padding: 12px 24px;
  font-size: 16px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-primary {
  background-color: #0066cc;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #0052a3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
  background-color: #f0f0f0;
  color: #2c3e50;
  border: 1px solid #e0e0e0;
}

.btn-secondary:hover {
  background-color: #e8e8e8;
  border-color: #d0d0d0;
}

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

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

/* ============================================
   Header 导航栏
   ============================================ */

header {
  background-color: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #0066cc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo:hover {
  color: #0052a3;
}

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

nav a {
  color: #2c3e50;
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding-bottom: 4px;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #0066cc;
  transition: width 0.3s ease;
}

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

/* 搜索框 */
.search-box {
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
  border-radius: 20px;
  padding: 8px 16px;
  width: 200px;
}

.search-box input {
  background: none;
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
  color: #2c3e50;
}

.search-box input::placeholder {
  color: #999;
}

.search-box button {
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 0;
  font-size: 16px;
}

@media (max-width: 768px) {
  nav ul {
    gap: 16px;
  }
  
  .search-box {
    width: 150px;
  }
}

/* ============================================
   Hero Banner
   ============================================ */

.hero {
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  color: #0066cc;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: 20px;
  color: #555;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 16px;
  }
}

/* ============================================
   Section 通用样式
   ============================================ */

section {
  padding: 60px 0;
}

section h2 {
  font-size: 36px;
  font-weight: 700;
  color: #0066cc;
  margin-bottom: 16px;
  text-align: center;
}

section .subtitle {
  font-size: 18px;
  color: #666;
  text-align: center;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   关于部分
   ============================================ */

.about {
  background-color: #f9f9f9;
}

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

.about-text h3 {
  font-size: 28px;
  color: #0066cc;
  margin-bottom: 16px;
}

.about-text p {
  color: #555;
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-features {
  list-style: none;
  margin-top: 24px;
}

.about-features li {
  padding: 12px 0;
  color: #555;
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-features li::before {
  content: '✓';
  color: #0066cc;
  font-weight: bold;
  font-size: 18px;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

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

/* ============================================
   服务卡片
   ============================================ */

.services {
  background-color: #ffffff;
}

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

.service-card {
  background: #f9f9f9;
  padding: 32px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-color: #0066cc;
}

.service-card .icon {
  font-size: 48px;
  margin-bottom: 16px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card h3 {
  font-size: 20px;
  color: #0066cc;
  margin-bottom: 12px;
}

.service-card p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-card a {
  color: #0066cc;
  font-weight: 500;
  display: inline-block;
  transition: all 0.3s ease;
}

.service-card a:hover {
  transform: translateX(4px);
}

/* ============================================
   视频展示
   ============================================ */

.video-showcase {
  background-color: #f9f9f9;
}

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

.video-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background-color: #e0e0e0;
  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: rgba(0, 102, 204, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.video-play-button::after {
  content: '▶';
  color: #ffffff;
  font-size: 24px;
  margin-left: 4px;
}

.video-card:hover .video-play-button {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
  padding: 20px;
}

.video-info h3 {
  font-size: 16px;
  color: #0066cc;
  margin-bottom: 8px;
  line-height: 1.4;
  font-weight: 600;
}

.video-info p {
  font-size: 13px;
  color: #999;
  margin-bottom: 12px;
  line-height: 1.4;
}

.video-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #999;
}

.video-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================
   用户案例
   ============================================ */

.cases {
  background-color: #ffffff;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.case-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.case-image {
  width: 100%;
  height: 200px;
  background-color: #e0e0e0;
  overflow: hidden;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-content {
  padding: 24px;
  background: #ffffff;
}

.case-content h3 {
  font-size: 18px;
  color: #0066cc;
  margin-bottom: 12px;
  line-height: 1.4;
}

.case-content p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* ============================================
   数据统计
   ============================================ */

.stats {
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.stat-item {
  text-align: center;
  padding: 32px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: #0066cc;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.stat-description {
  font-size: 13px;
  color: #999;
}

/* ============================================
   用户评价
   ============================================ */

.testimonials {
  background-color: #f9f9f9;
}

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

.testimonial-card {
  background: #ffffff;
  padding: 28px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 4px solid #0066cc;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #0066cc;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.testimonial-info h4 {
  font-size: 15px;
  color: #2c3e50;
  margin-bottom: 2px;
}

.testimonial-info p {
  font-size: 12px;
  color: #999;
}

.testimonial-rating {
  margin-bottom: 12px;
  color: #ffc107;
  font-size: 14px;
}

.testimonial-content {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  font-style: italic;
}

/* ============================================
   FAQ
   ============================================ */

.faq {
  background-color: #ffffff;
}

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

.faq-item {
  border-bottom: 1px solid #f0f0f0;
  padding: 24px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: #0066cc;
  user-select: none;
}

.faq-toggle {
  font-size: 20px;
  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;
  color: #666;
  line-height: 1.6;
  margin-top: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  margin-top: 16px;
}

/* ============================================
   联系方式
   ============================================ */

.contact {
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

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

.contact-info h3 {
  font-size: 20px;
  color: #0066cc;
  margin-bottom: 24px;
}

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

.contact-item label {
  display: block;
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.contact-item p {
  font-size: 16px;
  color: #2c3e50;
}

.contact-form {
  background: #ffffff;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: #2c3e50;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

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

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

.form-submit {
  width: 100%;
  background-color: #0066cc;
  color: #ffffff;
  padding: 14px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

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

/* ============================================
   Footer
   ============================================ */

footer {
  background-color: #2c3e50;
  color: #bdc3c7;
  padding: 48px 0 24px;
  border-top: 1px solid #34495e;
}

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

.footer-section h4 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 16px;
}

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

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

.footer-section a {
  color: #bdc3c7;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #0066cc;
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 24px;
  text-align: center;
  font-size: 14px;
  color: #95a5a6;
}

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

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #34495e;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: #0066cc;
  color: #ffffff;
}

@media (max-width: 768px) {
  footer {
    padding: 32px 0 16px;
  }
  
  .footer-content {
    gap: 24px;
  }
}

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

@media (max-width: 768px) {
  section {
    padding: 40px 0;
  }
  
  section h2 {
    font-size: 28px;
  }
  
  section .subtitle {
    font-size: 16px;
  }
  
  nav ul {
    display: none;
  }
  
  .search-box {
    display: none;
  }
}

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

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

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

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

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

/* 平滑过渡 */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

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

/* 加载动画 */
.loading {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #0066cc;
  animation: loading 1.4s infinite;
}

@keyframes loading {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* 打印样式 */
@media print {
  header, footer, .contact-form {
    display: none;
  }
}
