/* ==========================================
   每日大赛官方入口 | 视觉系统 V1.0
   设计语言: 印刷感暖调拼贴 / 硬阴影 / 珊瑚橙x水鸭青
   ========================================== */

:root {
  --coral: #FF5A5F;
  --coral-dark: #E0494E;
  --teal: #00A896;
  --teal-dark: #028090;
  --yellow: #FFD166;
  --cream: #FAF5EF;
  --sand: #F3EDE4;
  --navy: #1D3557;
  --white: #FFFFFF;
  --ink-soft: #4A4A6A;
  --shadow-hard: 4px 4px 0 var(--navy);
  --shadow-hard-sm: 2px 2px 0 var(--navy);
  --shadow-hard-lg: 8px 8px 0 var(--navy);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

/* === 基础重置 === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

/* === 核心布局 === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section:nth-child(even) {
  background: var(--sand);
}

/* === 导航 — 固定顶部 === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 245, 239, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 2px solid var(--navy);
  box-shadow: 0 2px 24px rgba(29, 53, 87, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--navy);
  letter-spacing: -0.5px;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.logo:hover { opacity: 0.8; }

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--coral);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-hard-sm);
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  padding: 5px 0;
  position: relative;
  letter-spacing: 0.2px;
  transition: color 0.2s;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--coral);
  transition: width 0.28s cubic-bezier(0.65, 0, 0.35, 1);
}

.main-nav a:hover { color: var(--coral); }
.main-nav a:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 24px;
  border-radius: 100px;
  background: var(--teal);
  color: #fff !important;
  font-weight: 800;
  box-shadow: var(--shadow-hard-sm);
  transition: all 0.2s;
}

.nav-cta::after { display: none; }

.nav-cta:hover {
  background: var(--teal-dark);
  color: #fff !important;
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--navy);
  opacity: 1;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 2px solid var(--navy);
  border-radius: 10px;
  cursor: pointer;
  padding: 8px;
  transition: background 0.2s;
}

.menu-toggle:hover { background: rgba(255, 90, 95, 0.08); }
.menu-toggle::before,
.menu-toggle::after {
  content: '';
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  width: 100%;
}
.menu-toggle::before { transform: translateY(0); }
.menu-toggle::after { transform: translateY(0); }

/* === 首页 Hero === */
.hero {
  min-height: 75vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 72px;
  border-bottom: 2px solid var(--navy);
  background:
    radial-gradient(circle at 88% 22%, rgba(255, 90, 95, 0.12) 0%, transparent 32%),
    radial-gradient(circle at 8% 68%, rgba(0, 168, 150, 0.10) 0%, transparent 28%),
    radial-gradient(circle at 55% 90%, rgba(255, 209, 102, 0.14) 0%, transparent 30%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29, 53, 87, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 53, 87, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-content {
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 7px 18px;
  border-radius: 100px;
  background: var(--yellow);
  color: var(--navy);
  margin-bottom: 20px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  box-shadow: var(--shadow-hard-sm);
}

.hero h1 {
  font-size: 3.1rem;
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--navy);
}

.hero p {
  font-size: 1.08rem;
  opacity: 0.7;
  max-width: 540px;
  margin-bottom: 32px;
  line-height: 1.7;
  color: var(--navy);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--navy);
  box-shadow: var(--shadow-hard-lg);
  background: linear-gradient(135deg, var(--coral), var(--yellow));
  min-width: 300px;
  flex: 1;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-image::after {
  content: '✦';
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.6);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* === 按钮 === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 100px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.22s;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
}

.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 3px 3px 0 var(--navy);
}

.btn-primary:hover {
  background: var(--coral-dark);
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--navy);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
  box-shadow: 3px 3px 0 rgba(29, 53, 87, 0.15);
}

.btn-outline:hover {
  background: rgba(29, 53, 87, 0.05);
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(29, 53, 87, 0.15);
}

/* === 标签 / 标题 === */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 14px;
  color: var(--teal);
  text-transform: uppercase;
  position: relative;
  padding-left: 18px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--coral);
}

.section-title {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 14px;
  color: var(--navy);
  letter-spacing: -1px;
  line-height: 1.25;
}

.section-desc {
  max-width: 600px;
  opacity: 0.7;
  margin-bottom: 44px;
  line-height: 1.7;
  color: var(--navy);
  font-size: 1.02rem;
}

/* === 卡片网格 === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.category-card {
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 2px solid var(--navy);
  background: var(--white);
  position: relative;
  overflow: hidden;
  transition: transform 0.22s, box-shadow 0.22s;
  box-shadow: var(--shadow-hard);
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 46px 46px;
  border-color: transparent transparent var(--yellow) transparent;
}

.category-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--yellow), var(--teal));
  opacity: 0.7;
}

.category-card:hover {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--navy);
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--sand);
  border: 2px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
  box-shadow: 2px 2px 0 rgba(29, 53, 87, 0.2);
}

.category-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--navy);
}

.category-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.card-link {
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.card-link:hover { gap: 8px; color: var(--coral-dark); }

/* === 特性块 === */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--navy);
  box-shadow: 6px 6px 0 var(--yellow);
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.feature-image::after {
  content: '✦';
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.5);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.feature-text h2 {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.feature-text > p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 20px;
  opacity: 0.85;
}

.feature-list {
  list-style: none;
  margin-top: 8px;
}

.feature-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 600;
}

.feature-list li::before {
  content: '✓';
  font-weight: 900;
  color: var(--teal);
  font-size: 1.15rem;
  background: rgba(0, 168, 150, 0.1);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* === 数据条 === */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item {
  padding: 34px 20px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--navy);
  background: var(--white);
  position: relative;
  box-shadow: 4px 4px 0 rgba(29, 53, 87, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
}

.stat-item:nth-child(1) { background: #FFE8E6; }
.stat-item:nth-child(1)::after { background: var(--coral); }
.stat-item:nth-child(2) { background: #FFF3D6; }
.stat-item:nth-child(2)::after { background: var(--yellow); }
.stat-item:nth-child(3) { background: #D9F5EF; }
.stat-item:nth-child(3)::after { background: var(--teal); }
.stat-item:nth-child(4) { background: #E8E0FF; }
.stat-item:nth-child(4)::after { background: #6C5CE7; }

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 rgba(29, 53, 87, 0.2);
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.92rem;
  opacity: 0.7;
  margin-top: 8px;
  font-weight: 600;
  color: var(--navy);
}

/* === 内容墙 === */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.content-wall-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--navy);
  background: var(--white);
  transition: transform 0.22s, box-shadow 0.22s;
  box-shadow: 4px 4px 0 rgba(29, 53, 87, 0.18);
}

.content-wall-item:hover {
  transform: translateY(-4px) rotate(-0.6deg);
  box-shadow: 8px 8px 0 rgba(29, 53, 87, 0.22);
}

.content-wall-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2px solid var(--navy);
}

.content-wall-body {
  padding: 22px;
}

.content-wall-body h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--navy);
  line-height: 1.35;
}

.content-wall-body p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.content-wall-body .card-link {
  margin-top: 12px;
  display: inline-flex;
}

/* === FAQ === */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 2px solid var(--navy);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--white);
  transition: box-shadow 0.2s, transform 0.2s;
}

.faq-item:hover {
  transform: translateY(-1px);
}

.faq-item.open {
  box-shadow: 4px 4px 0 var(--coral);
}

.faq-item .faq-question {
  padding: 18px 22px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--navy);
  font-size: 1rem;
  letter-spacing: 0.2px;
}

.faq-item .faq-question::after {
  content: '+';
  font-size: 1.6rem;
  color: var(--coral);
  font-weight: 400;
  transition: transform 0.25s;
  line-height: 1;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding: 0 22px 18px;
  display: none;
  opacity: 0.8;
  line-height: 1.7;
  color: var(--navy);
  border-top: 1px dashed rgba(29, 53, 87, 0.15);
  margin-top: 0;
  padding-top: 14px;
}

.faq-item.open .faq-answer {
  display: block;
}

/* === CTA 横幅 === */
.cta-banner {
  padding: 64px 40px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--coral) 0%, #FF8A5C 55%, var(--yellow) 100%);
  border: 2px solid var(--navy);
  box-shadow: var(--shadow-hard-lg);
  position: relative;
  overflow: hidden;
}

.cta-banner::before,
.cta-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.cta-banner::before {
  width: 180px;
  height: 180px;
  top: -60px;
  right: -40px;
}

.cta-banner::after {
  width: 100px;
  height: 100px;
  bottom: -30px;
  left: 10%;
}

.cta-banner h2 {
  color: #fff;
  font-size: 2.3rem;
  font-weight: 900;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  text-shadow: 1px 1px 0 rgba(29, 53, 87, 0.2);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 28px;
  font-size: 1.05rem;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--coral);
  box-shadow: 3px 3px 0 rgba(29, 53, 87, 0.4);
  position: relative;
  z-index: 1;
}

.cta-banner .btn-primary:hover {
  background: var(--sand);
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(29, 53, 87, 0.4);
}

/* === 页脚 === */
.site-footer {
  padding: 56px 0 28px;
  background: var(--sand);
  border-top: 2px solid var(--navy);
  margin-top: 0;
}

.site-footer .container {
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
}

.footer-brand .logo {
  margin-bottom: 14px;
  font-size: 1.2rem;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.65;
  opacity: 0.75;
  color: var(--navy);
  max-width: 280px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--navy);
  position: relative;
  padding-bottom: 6px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--coral);
}

.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-col a:hover {
  color: var(--coral);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 2px solid var(--navy);
  margin-top: 44px;
  padding-top: 22px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 500;
  opacity: 0.85;
}

/* === 工具类 === */
.text-accent {
  color: var(--coral);
  font-weight: 800;
}

.text-center {
  text-align: center;
}

.seo-description {
  max-width: 600px;
  margin: 0 auto 48px;
  opacity: 0.72;
  line-height: 1.8;
  color: var(--navy);
  font-size: 1.02rem;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* === 登录 / 表单通用（额外组件支持） === */
.input-field {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--navy);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--navy);
  outline: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.input-field:focus {
  box-shadow: 3px 3px 0 rgba(29, 53, 87, 0.15);
  border-color: var(--teal);
}

.input-field::placeholder {
  color: rgba(29, 53, 87, 0.4);
}

/* === 响应式 === */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.6rem; }
  .hero .container { flex-direction: column; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-image { width: 100%; max-width: 560px; min-height: 200px; }
  .feature-block { gap: 36px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-title { font-size: 2rem; }
  .feature-block { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--cream);
    border-bottom: 2px solid var(--navy);
    padding: 24px;
    gap: 18px;
    box-shadow: 0 12px 32px rgba(29, 53, 87, 0.12);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    font-size: 1rem;
    padding: 8px 0;
  }

  .nav-cta {
    text-align: center;
    padding: 12px 24px;
  }

  .menu-toggle {
    display: flex;
  }

  .hero { padding-top: 72px; min-height: auto; padding-bottom: 0; }
  .hero .container { padding-top: 40px; padding-bottom: 48px; }
  .hero-image { max-width: 100%; }
  .cta-banner { padding: 48px 24px; }
  .cta-banner h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .cards-grid,
  .content-wall,
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    justify-content: center;
    width: 100%;
  }

  .hero h1 {
    font-size: 2.1rem;
    letter-spacing: -0.8px;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .feature-block {
    gap: 28px;
  }

  .cta-banner {
    padding: 40px 20px;
    border-radius: 16px;
  }

  .cta-banner h2 {
    font-size: 1.5rem;
  }

  .site-footer {
    padding-top: 40px;
  }
}