/* ============================================
   苍穹宝藏ok动漫网 — 设计系统 CSS
   概念：苍穹色谱 / 温暖纸艺 / 云间光斑
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --paper: #FDF9F3;
  --paper-deep: #F5EFE6;
  --sky-mist: #EFF6F6;
  --coral: #EE6C4D;
  --coral-deep: #D6433A;
  --teal: #2D8C7F;
  --teal-deep: #1E6B62;
  --sun: #FFD275;
  --ink: #1D2B3A;
  --ink-2: #445566;
  --ink-3: #8496A8;
  --line: rgba(29, 43, 58, 0.08);
  --line-strong: rgba(45, 140, 127, 0.2);
  --shadow-xs: 0 2px 6px rgba(29, 43, 58, 0.04);
  --shadow-md: 0 8px 24px rgba(29, 43, 58, 0.06);
  --shadow-lg: 0 20px 48px rgba(238, 108, 77, 0.14);
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 30px;
}

body {
  font-family: system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 210, 117, 0.08), transparent 28%),
    radial-gradient(circle at 10% 70%, rgba(45, 140, 127, 0.06), transparent 24%),
    var(--paper);
  color: var(--ink-2);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--sun);
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--paper);
}
::-webkit-scrollbar-thumb {
  background: rgba(238, 108, 77, 0.28);
  border-radius: 4px;
}

/* ============ 容器 / 区块 ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section:nth-child(even) {
  background: var(--sky-mist);
}

/* ============ 导航 ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(253, 249, 243, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(238, 108, 77, 0.08);
}

.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: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 42% 58% 63% 37% / 36% 45% 55% 64%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--coral), var(--sun));
  color: #fff;
  box-shadow: 0 4px 12px rgba(238, 108, 77, 0.28);
  position: relative;
  overflow: hidden;
}

.logo-icon::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -40%;
  width: 70%;
  height: 70%;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: color 0.2s;
  position: relative;
  padding: 4px 2px;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--coral), var(--sun));
  transition: width 0.25s ease;
}

.main-nav a:hover {
  color: var(--coral);
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 9px 22px !important;
  border-radius: 999px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  box-shadow: 0 4px 14px rgba(238, 108, 77, 0.28);
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(238, 108, 77, 0.38);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background-color: transparent;
  border-radius: 12px;
  background-image:
    linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink));
  background-size: 20px 2px, 20px 2px, 20px 2px;
  background-position: center calc(50% - 8px), center calc(50%), center calc(50% + 8px);
  background-repeat: no-repeat;
  cursor: pointer;
  transition: background-color 0.2s;
}

.menu-toggle:hover {
  background-color: rgba(238, 108, 77, 0.05);
}

/* ============ Hero ============ */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  gap: 56px;
  background:
    radial-gradient(ellipse at 82% 20%, rgba(255, 210, 117, 0.28), transparent 55%),
    radial-gradient(ellipse at 15% 78%, rgba(45, 140, 127, 0.12), transparent 55%),
    var(--paper);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 2px dashed rgba(238, 108, 77, 0.18);
  animation: drift 14s infinite ease-in-out;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 8%;
  left: 4%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 210, 117, 0.14);
  filter: blur(1px);
}

@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-24px) rotate(8deg); }
}

.hero-content {
  flex: 1.1;
  max-width: 640px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(238, 108, 77, 0.08), rgba(255, 210, 117, 0.2));
  color: var(--coral-deep);
  border: 1px solid rgba(238, 108, 77, 0.14);
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 4.4rem);
  line-height: 1.08;
  margin-bottom: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.75;
  max-width: 560px;
  margin-bottom: 36px;
  color: var(--ink-2);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 0.9;
  aspect-ratio: 5 / 4;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  box-shadow:
    0 20px 48px rgba(238, 108, 77, 0.16),
    0 0 0 4px #fff,
    0 0 0 6px rgba(238, 108, 77, 0.14);
  transform: rotate(1.5deg);
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(29, 43, 58, 0.16));
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-image:hover img {
  transform: scale(1.03);
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  box-shadow: 0 6px 20px rgba(238, 108, 77, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(238, 108, 77, 0.36);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--teal);
  color: var(--teal);
}

.btn-outline:hover {
  background: rgba(45, 140, 127, 0.06);
  transform: translateY(-2px);
}

/* ============ 标签 / 标题 ============ */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  text-transform: uppercase;
  color: var(--coral);
  background: rgba(238, 108, 77, 0.06);
  padding: 6px 16px;
  border-radius: 999px;
}

.section-label::before {
  content: '✦ ';
  color: var(--coral);
}

.section-title {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.section-desc {
  max-width: 600px;
  opacity: 0.7;
  margin-bottom: 44px;
  color: var(--ink-2);
}

.text-center .section-title,
.text-center .section-desc,
.text-center .section-label {
  margin-left: auto;
  margin-right: auto;
}

/* ============ 卡片网格 ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.category-card {
  border-radius: var(--r-md);
  padding: 30px 28px;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--sun));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(238, 108, 77, 0.15);
}

.category-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(238, 108, 77, 0.08), rgba(255, 210, 117, 0.14));
  color: var(--coral);
}

.card-link {
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  transition: color 0.2s;
}

.card-link::after {
  content: '→';
  transition: transform 0.2s;
}

.card-link:hover {
  color: var(--coral-deep);
}

.card-link:hover::after {
  transform: translateX(3px);
}

/* ============ 特性块 ============ */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-image {
  position: relative;
  border-radius: var(--r-lg);
  overflow: visible;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-lg);
  display: block;
  box-shadow: var(--shadow-lg);
}

.feature-image::after {
  content: '';
  position: absolute;
  top: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(238, 108, 77, 0.2);
  border-radius: var(--r-lg);
  z-index: -1;
}

.feature-text {
  padding: 20px 0;
}

.feature-list {
  list-style: none;
  margin-top: 20px;
}

.feature-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-weight: 500;
}

.feature-list li::before {
  content: '✦';
  font-weight: 700;
  color: var(--coral);
  background: rgba(238, 108, 77, 0.08);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ============ 数据条 ============ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 32px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: #fff;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, var(--coral), var(--sun));
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.6;
  margin-top: 8px;
  color: var(--ink-2);
  letter-spacing: 0.03em;
}

/* ============ 内容墙 ============ */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.content-wall-item {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.25s, box-shadow 0.25s;
}

.content-wall-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.content-wall-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.content-wall-item:hover img {
  transform: scale(1.04);
}

.content-wall-body {
  padding: 20px;
  color: var(--ink-2);
}

/* ============ FAQ ============ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  margin-bottom: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
  border-color: rgba(238, 108, 77, 0.2);
}

.faq-item.open {
  border-color: rgba(238, 108, 77, 0.3);
  box-shadow: var(--shadow-xs);
}

.faq-item .faq-question {
  padding: 18px 22px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.faq-item .faq-question::after {
  content: '+';
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--coral);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding: 0 22px 18px;
  display: none;
  opacity: 0.7;
  color: var(--ink-2);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ============ CTA 横幅 ============ */
.cta-banner {
  padding: 64px 48px;
  text-align: center;
  border-radius: var(--r-lg);
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 210, 117, 0.3), transparent 70%);
  border-radius: 50%;
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--teal-deep);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 1;
}

.cta-banner .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

/* ============ 页脚 ============ */
.site-footer {
  padding: 64px 0 28px;
  background: var(--paper-deep);
  border-top: 1px solid rgba(238, 108, 77, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  color: var(--ink-2);
}

.footer-brand .logo {
  margin-bottom: 14px;
}

.footer-col h4 {
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-col a {
  display: block;
  color: var(--ink-2);
  text-decoration: none;
  padding: 5px 0;
  font-size: 0.88rem;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s, color 0.2s;
}

.footer-col a:hover {
  opacity: 1;
  transform: translateX(3px);
  color: var(--coral);
}

.footer-bottom {
  border-top: 1px solid rgba(29, 43, 58, 0.06);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-3);
}

/* ============ 工具类 ============ */
.text-accent {
  color: var(--coral);
  font-weight: 700;
}

.text-center {
  text-align: center;
}

.seo-description {
  max-width: 600px;
  margin: 0 auto 48px;
  opacity: 0.7;
  color: var(--ink-2);
  line-height: 1.7;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ============ 响应式 ============ */
@media (max-width: 768px) {
  .feature-block {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(253, 249, 243, 0.98);
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(29, 43, 58, 0.08);
    animation: navFade 0.25s ease;
  }

  .main-nav.open {
    display: flex;
  }

  @keyframes navFade {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    flex-direction: column;
    gap: 40px;
    padding: 110px 0 48px;
  }

  .hero-image {
    width: 100%;
    transform: none;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 8vw, 3.2rem);
  }

  .cta-banner {
    padding: 48px 24px;
  }
}

@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;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 64px 0;
  }

  .header-inner {
    height: 64px;
    padding: 0 16px;
  }

  .main-nav {
    top: 64px;
  }

  .container {
    padding: 0 16px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .footer-bottom {
    font-size: 0.78rem;
  }
}