/* =========================================================
   每日大赛yandex · meiridasaik.net.cn
   Design System — "Constructivist Warm Paper"
   Awwwards-inspired · Light Visual Language
   ========================================================= */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  overflow-x: hidden;
  background-color: #F6F2EA;
  background-image: radial-gradient(rgba(43, 41, 38, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  color: #2B2926;
  line-height: 1.6;
  counter-reset: section-index;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  z-index: 3000;
  background: repeating-linear-gradient(
    90deg,
    #E8431C 0 20%,
    #FFC600 20% 40%,
    #167C80 40% 60%,
    #FFFDF8 60% 80%,
    #2B2926 80% 100%
  );
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: #FFC600;
  color: #2B2926;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #EDE7DC;
}
::-webkit-scrollbar-thumb {
  background: #E8431C;
  border-radius: 8px;
  border: 3px solid #EDE7DC;
}

/* ============================
   容器 / 区块
   ============================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  counter-increment: section-index;
  position: relative;
  scroll-margin-top: 90px;
}

.section:nth-child(even) {
  background: #EDE7DC;
}

/* ============================
   顶部导航
   ============================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1.5px solid #2B2926;
  box-shadow: 0 5px 0 #FFC600;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  color: #2B2926;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 50% 50% 50% 0;
  background: #E8431C;
  color: #FFFDF8;
  border: 1.5px solid #2B2926;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 3px 3px 0 #FFC600;
  transition: transform 0.2s ease;
}

.logo:hover .logo-icon {
  transform: rotate(-8deg) scale(1.06);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  color: #2B2926;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 4px 0;
  position: relative;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 3px;
  background: #E8431C;
  transition: width 0.25s ease;
}

.main-nav a:hover {
  color: #E8431C;
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav a.nav-cta {
  background: #E8431C;
  color: #FFFDF8 !important;
  border: 1.5px solid #2B2926;
  border-radius: 6px;
  padding: 9px 22px;
  font-weight: 700;
  box-shadow: 3px 3px 0 #FFC600;
  transition: all 0.15s ease;
}

.main-nav a.nav-cta::after {
  display: none;
}

.main-nav a.nav-cta:hover {
  background: #FFC600;
  color: #2B2926 !important;
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #2B2926;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #2B2926;
  background: #FFC600;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  box-shadow: 3px 3px 0 #E8431C;
}

.menu-toggle::before {
  content: '☰';
  font-size: 1.5rem;
  font-weight: 800;
  color: #2B2926;
}

/* ============================
   首页 Hero
   ============================ */

.hero {
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  overflow: hidden;
  padding: 140px 0 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 12%;
  right: -120px;
  width: 360px;
  height: 360px;
  background: #FFC600;
  border: 2.5px solid #2B2926;
  border-radius: 50%;
  box-shadow: 14px 14px 0 rgba(232, 67, 28, 0.18);
  z-index: 0;
}

.hero::after {
  content: 'Д';
  position: absolute;
  bottom: -60px;
  right: 8%;
  font-size: 260px;
  font-weight: 900;
  color: #E8431C;
  opacity: 0.12;
  line-height: 1;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  flex: 1 1 55%;
  animation: rise-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  display: inline-block;
  background: #E8431C;
  color: #FFFDF8;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 7px 16px;
  border: 1.5px solid #2B2926;
  border-radius: 4px;
  box-shadow: 4px 4px 0 #2B2926;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.7rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  color: #2B2926;
}

.hero p {
  font-size: 1.12rem;
  color: #4A453F;
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  flex: 0 1 42%;
  min-width: 280px;
  border: 2.5px solid #2B2926;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 12px 12px 0 #167C80;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: auto;
}

/* ============================
   按钮
   ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border: 2px solid #2B2926;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-primary {
  background: #E8431C;
  color: #FFFDF8 !important;
  box-shadow: 5px 5px 0 #2B2926;
}

.btn-primary:hover {
  background: #167C80;
  color: #FFFDF8 !important;
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 #2B2926;
}

.btn-outline {
  background: transparent;
  border-color: #2B2926;
  color: #2B2926;
  box-shadow: 5px 5px 0 #FFC600;
}

.btn-outline:hover {
  background: #FFC600;
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 #2B2926;
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #2B2926;
}

/* ============================
   标签 / 标题
   ============================ */

.section-label {
  display: inline-block;
  background: #FFC600;
  color: #2B2926;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border: 1.5px solid #2B2926;
  border-radius: 4px;
  box-shadow: 3px 3px 0 #E8431C;
  margin-bottom: 18px;
}

.section-label::before {
  content: counter(section-index, decimal-leading-zero) " — ";
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: #5C564C;
  max-width: 640px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ============================
   卡片网格
   ============================ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.category-card {
  background: #FFFDF8;
  border: 2px solid #2B2926;
  border-radius: 8px;
  padding: 30px 28px;
  position: relative;
  box-shadow: 6px 6px 0 #E8431C;
  transition: all 0.18s ease;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 12px;
  height: 12px;
  background: #FFC600;
  border: 1.5px solid #2B2926;
  border-radius: 50%;
}

.category-card:nth-child(2n) {
  box-shadow: 6px 6px 0 #167C80;
}

.category-card:nth-child(3n) {
  box-shadow: 6px 6px 0 #FFC600;
}

.category-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 #E8431C;
}

.card-icon {
  width: 52px;
  height: 52px;
  background: #E8431C;
  color: #FFFDF8;
  border: 1.5px solid #2B2926;
  border-radius: 50% 50% 50% 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: 3px 3px 0 #FFC600;
}

.category-card:nth-child(2n) .card-icon {
  background: #167C80;
  box-shadow: 3px 3px 0 #E8431C;
}

.category-card:nth-child(3n) .card-icon {
  background: #FFC600;
  color: #2B2926;
  box-shadow: 3px 3px 0 #167C80;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #E8431C;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: 0.15s;
}

.card-link::after {
  content: '→';
  transition: transform 0.15s;
}

.card-link:hover {
  color: #167C80;
}

.card-link:hover::after {
  transform: translateX(4px);
}

/* ============================
   特性块
   ============================ */

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-image {
  border: 2px solid #2B2926;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 10px 10px 0 #FFC600;
  position: relative;
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-text {
  position: relative;
}

.feature-list {
  list-style: none;
  margin-top: 24px;
}

.feature-list li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #4A453F;
  font-size: 1.02rem;
  font-weight: 500;
}

.feature-list li::before {
  content: '✓';
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  background: #FFC600;
  border: 1.5px solid #2B2926;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 2px 2px 0 #E8431C;
}

/* ============================
   数据条
   ============================ */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  background: #FFFDF8;
  border: 2px solid #2B2926;
  border-radius: 8px;
  padding: 32px 20px;
  box-shadow: 6px 6px 0 #E8431C;
  transition: 0.18s ease;
}

.stat-item:nth-child(2n) {
  box-shadow: 6px 6px 0 #FFC600;
}

.stat-item:nth-child(3n) {
  box-shadow: 6px 6px 0 #167C80;
}

.stat-item:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 #E8431C;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #E8431C;
}

.stat-item:nth-child(2n) .stat-number {
  color: #167C80;
}

.stat-item:nth-child(3n) .stat-number {
  color: #2B2926;
}

.stat-label {
  font-size: 0.9rem;
  color: #6B645A;
  margin-top: 10px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* ============================
   内容墙
   ============================ */

.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.content-wall-item {
  background: #FFFDF8;
  border: 2px solid #2B2926;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 5px 5px 0 rgba(22, 124, 128, 0.45);
  transition: 0.2s ease;
}

.content-wall-item:hover {
  transform: translateY(-5px);
  box-shadow: 9px 9px 0 #167C80;
}

.content-wall-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1.5px solid #2B2926;
  transition: transform 0.35s ease;
}

.content-wall-item:hover img {
  transform: scale(1.04);
}

.content-wall-body {
  padding: 24px;
}

/* ============================
   FAQ
   ============================ */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #FFFDF8;
  border: 2px solid #2B2926;
  border-radius: 8px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: 0.2s ease;
}

.faq-item .faq-question {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.faq-item .faq-question::after {
  content: '+';
  font-size: 1.6rem;
  font-weight: 800;
  color: #E8431C;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s;
}

.faq-item .faq-answer {
  display: none;
  padding: 0 22px 20px;
  color: #5C564C;
  line-height: 1.75;
  font-size: 0.97rem;
}

.faq-item.open {
  box-shadow: 5px 5px 0 #FFC600;
}

.faq-item.open .faq-answer {
  display: block;
  border-top: 1.5px dashed #C9C2B6;
  padding-top: 16px;
  animation: faq-fade 0.25s ease;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
  color: #167C80;
}

@keyframes faq-fade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================
   CTA 横幅
   ============================ */

.cta-banner {
  background: linear-gradient(135deg, #E8431C 0%, #FF6B3D 100%);
  padding: 64px 24px;
  text-align: center;
  border-radius: 12px;
  border: 2px solid #2B2926;
  color: #FFFDF8;
  box-shadow: 10px 10px 0 #FFC600;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: 'Д';
  position: absolute;
  right: 10px;
  bottom: -30px;
  font-size: 150px;
  font-weight: 900;
  color: rgba(255, 253, 248, 0.1);
  line-height: 1;
  pointer-events: none;
}

.cta-banner h2 {
  color: #FFFDF8;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.cta-banner .btn-primary {
  background: #FFFDF8;
  color: #2B2926 !important;
  box-shadow: 5px 5px 0 #2B2926;
  position: relative;
  z-index: 1;
}

.cta-banner .btn-primary:hover {
  background: #FFC600;
  color: #2B2926 !important;
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 #2B2926;
}

/* ============================
   页脚
   ============================ */

.site-footer {
  padding: 64px 0 28px;
  background: #EDE7DC;
  border-top: 2px solid #2B2926;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    #E8431C 0 20px,
    #FFC600 20px 40px,
    #FFFDF8 40px 60px,
    #167C80 60px 80px
  );
}

.site-footer .container {
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
}

.footer-brand p {
  color: #5C564C;
  line-height: 1.7;
  font-size: 0.95rem;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 18px;
  color: #E8431C;
}

.footer-col a {
  display: block;
  color: #5C564C;
  text-decoration: none;
  font-size: 0.92rem;
  padding: 6px 0;
  transition: 0.15s;
}

.footer-col a:hover {
  color: #E8431C;
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1.5px solid #C9C2B6;
  margin-top: 48px;
  padding-top: 22px;
  text-align: center;
  font-size: 0.85rem;
  color: #8A8278;
}

/* ============================
   工具类
   ============================ */

.text-accent {
  position: relative;
  display: inline-block;
  color: #2B2926;
  font-weight: 800;
}

.text-accent::after {
  content: '';
  position: absolute;
  left: 0;
  right: -2px;
  bottom: 3px;
  height: 10px;
  background: #FFC600;
  z-index: -1;
}

.text-center {
  text-align: center;
}

.seo-description {
  max-width: 640px;
  margin: 0 auto 48px;
  color: #5C564C;
  font-size: 1.02rem;
  line-height: 1.8;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

/* ============================
   响应式
   ============================ */

@media (max-width: 768px) {

  .feature-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 24px;
    right: 24px;
    flex-direction: column;
    align-items: stretch;
    background: #FFFDF8;
    border: 2px solid #2B2926;
    border-radius: 8px;
    padding: 24px;
    gap: 6px;
    box-shadow: 8px 8px 0 #FFC600;
    z-index: 999;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 8px;
    font-size: 1rem;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a.nav-cta {
    text-align: center;
    margin-top: 6px;
  }

  .hero {
    min-height: auto;
    padding: 130px 0 60px;
    flex-direction: column;
    gap: 32px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero::before {
    width: 180px;
    height: 180px;
    right: -60px;
  }

  .hero::after {
    font-size: 160px;
    opacity: 0.08;
  }

  .section {
    padding: 64px 0;
  }

  .section-desc {
    margin-bottom: 32px;
  }
}

@media (max-width: 480px) {

  .cards-grid,
  .content-wall,
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .stat-item {
    padding: 28px 16px;
  }
}