/* ========================================
   ACFUN 次元入口 — COMIC POP DESIGN SYSTEM
   漫画波普 · 弹幕精神 · 亮色冲击
   ======================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #FF5A00;
  --secondary: #7B2FF7;
  --accent: #FFD166;
  --bg: #FFFAF2;
  --bg-alt: #F3F0FF;
  --ink: #1A1A1A;
  --muted: rgba(26, 26, 26, 0.68);
  --card-bg: #FFFFFF;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-sm: 2px 2px 0 var(--ink);
}

body {
  font-family: system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

/* ===== 容器与区块 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section:nth-child(even) {
  background: var(--bg-alt);
}

/* ===== 导航 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 250, 242, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--ink);
}

.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: 900;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--ink);
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.15rem;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm);
  transform: rotate(-6deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 8px 22px;
  background: var(--primary);
  color: #fff !important;
  border: 2px solid var(--ink);
  border-radius: 10px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}

.nav-cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.nav-cta::after {
  display: none;
}

.menu-toggle {
  display: none;
  background: var(--card-bg);
  border: 2px solid var(--ink);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
}

/* ===== Hero ===== */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 30%, rgba(255, 209, 102, 0.35) 0%, transparent 55%),
    radial-gradient(circle at 85% 70%, rgba(123, 47, 247, 0.18) 0%, transparent 50%),
    var(--bg);
}

.hero::before {
  content: 'AC';
  position: absolute;
  top: 12%;
  right: 4%;
  font-size: 14rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(26, 26, 26, 0.04);
  z-index: 0;
  letter-spacing: -0.03em;
  pointer-events: none;
}

.hero::after {
  content: '✦ ✦ ✦';
  position: absolute;
  bottom: 6%;
  left: 4%;
  font-size: 1.4rem;
  color: var(--secondary);
  opacity: 0.35;
  letter-spacing: 1em;
  z-index: 0;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 24px;
  background: var(--accent);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
  letter-spacing: 1px;
  transform: rotate(-2deg);
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 900;
  color: var(--ink);
  text-shadow: 3px 3px 0 var(--accent);
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.hero-image {
  flex-shrink: 0;
  max-width: 480px;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
  background: var(--card-bg);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-image::after {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 34px;
  height: 34px;
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: 10px;
  transform: rotate(12deg);
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  border: 2px solid var(--ink);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  font-size: 0.95rem;
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn-outline {
  background: var(--card-bg);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.btn-outline:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

/* ===== 标签 / 标题 ===== */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 12px;
  color: var(--primary);
  text-transform: uppercase;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 14px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-shadow: 2px 2px 0 rgba(255, 209, 102, 0.6);
}

.section-desc {
  max-width: 600px;
  color: var(--muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ===== 卡片网格 ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.category-card {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 28px;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}

.category-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--ink);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm);
}

.category-card:nth-child(1) .card-icon { background: var(--accent); }
.category-card:nth-child(2) .card-icon { background: #FFB3A0; }
.category-card:nth-child(3) .card-icon { background: #CBB4FF; }
.category-card:nth-child(4) .card-icon { background: #B8E6D8; }

.card-link {
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--primary);
  display: inline-block;
  margin-top: 10px;
}

.card-link::after {
  content: ' →';
  transition: margin-left 0.2s;
}

.card-link:hover::after {
  margin-left: 6px;
}

/* ===== 特性块 ===== */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature-image {
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  background: var(--card-bg);
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-text {
  position: relative;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
}

.feature-list li::before {
  content: '✦';
  font-weight: 900;
  color: var(--secondary);
}

/* ===== 数据条 ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  background: var(--card-bg);
  padding: 24px 16px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}

.stat-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  text-shadow: 2px 2px 0 rgba(255, 209, 102, 0.5);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 6px;
}

/* ===== 内容墙 ===== */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.content-wall-item {
  background: var(--card-bg);
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}

.content-wall-item:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--ink);
}

.content-wall-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid var(--ink);
}

.content-wall-body {
  padding: 20px;
}

.content-wall-body h3 {
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--ink);
}

.content-wall-body p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border: 2px solid var(--ink);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}

.faq-item:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.faq-question {
  padding: 18px 22px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1rem;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 22px 20px;
  display: none;
  color: var(--muted);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ===== CTA 横幅 ===== */
.cta-banner {
  background: var(--primary);
  padding: 56px 24px;
  text-align: center;
  border-radius: 16px;
  color: #fff;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '★';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.35;
  transform: rotate(15deg);
}

.cta-banner h2 {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 900;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
  position: relative;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 0 auto 24px;
  font-weight: 600;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--ink) !important;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.cta-banner .btn-primary:hover {
  box-shadow: 6px 6px 0 var(--ink);
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--bg-alt);
  padding: 64px 0 28px;
  border-top: 2px solid var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 8px;
}

.footer-col h4 {
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 0.95rem;
}

.footer-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(26, 26, 26, 0.15);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ===== 工具类 ===== */
.text-accent {
  color: var(--primary);
}

.text-center {
  text-align: center;
}

.seo-description {
  max-width: 600px;
  margin: 0 auto 48px;
  color: var(--muted);
  line-height: 1.7;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .feature-block {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--bg);
    padding: 24px;
    gap: 18px;
    border-bottom: 2px solid var(--ink);
    box-shadow: 0 8px 16px rgba(26, 26, 26, 0.08);
  }

  .hero {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    min-height: 70vh;
    padding: 80px 0 48px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero::before {
    font-size: 8rem;
  }
}

@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 h1 {
    font-size: 1.9rem;
  }

  .section {
    padding: 48px 0;
  }

  .hero-image {
    max-width: 100%;
  }
}