/* ============================================
   禁漫天堂 设计系统
   风格：漫画编辑部 / 米白纸张 × 朱红 × 粗边框拼贴
   ============================================ */

/* 基础重置 */
*, *::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-color: #F8F3E9;
  background-image: radial-gradient(circle, rgba(29,29,38,0.07) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  color: #1D1D26;
  line-height: 1.6;
}

::selection {
  background: #E84342;
  color: #F8F3E9;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #F8F3E9; }
::-webkit-scrollbar-thumb {
  background: #1D1D26;
  border: 2px solid #F8F3E9;
}

/* 核心布局 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section:nth-child(even) {
  background: rgba(255,255,255,0.5);
}

/* ==================== 导航 ==================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(248,243,233,0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 3px solid #1D1D26;
}

.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.3rem;
  text-decoration: none;
  color: #1D1D26;
  letter-spacing: 1px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: #E84342;
  color: #F8F3E9;
  border: 2px solid #1D1D26;
  box-shadow: 2px 2px 0 #1D1D26;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1D1D26;
  letter-spacing: 0.5px;
  position: relative;
  padding: 4px 0;
  transition: 0.2s;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #E84342;
  transition: width 0.3s cubic-bezier(0.6, 0.1, 0.1, 1);
}

.main-nav a:hover {
  color: #E84342;
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px;
  border-radius: 0;
  color: #F8F3E9 !important;
  background: #E84342;
  border: 2px solid #1D1D26;
  box-shadow: 3px 3px 0 #1D1D26;
  font-weight: 800;
  transition: 0.2s;
}

.nav-cta::after { display: none; }

.nav-cta:hover {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 #1D1D26;
  color: #F8F3E9 !important;
  background: #C93432;
}

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid #1D1D26;
  border-radius: 0;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  font-weight: 900;
  cursor: pointer;
  color: #1D1D26;
  align-items: center;
  justify-content: center;
  background: #FFF;
  box-shadow: 2px 2px 0 #1D1D26;
}

/* ==================== 首页 Hero ==================== */
.hero {
  min-height: 80vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
}

.hero::before {
  content: '禁漫';
  position: absolute;
  top: 80px;
  right: 10px;
  font-size: 8rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px rgba(232,67,66,0.12);
  z-index: 0;
  pointer-events: none;
  line-height: 1;
}

.hero::after {
  content: '';
  position: absolute;
  right: 12%;
  top: 28%;
  width: 220px;
  height: 220px;
  border: 3px dashed rgba(232,67,66,0.25);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 0;
  margin-bottom: 20px;
  background: #1D1D26;
  color: #FFC145;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 2px solid #1D1D26;
  box-shadow: 3px 3px 0 #E84342;
}

.hero h1 {
  font-size: 3.2rem;
  line-height: 1.12;
  margin-bottom: 24px;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: #1D1D26;
}

.hero h1 .accent {
  background: linear-gradient(to top, #FFC145 0%, #FFC145 30%, transparent 30%);
  padding: 0 4px;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.7;
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.7;
  position: relative;
  padding-left: 16px;
  border-left: 4px solid #E84342;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-image {
  position: relative;
  z-index: 1;
  border-radius: 0;
  overflow: hidden;
  border: 3px solid #1D1D26;
  box-shadow: 10px 10px 0 #E84342;
  background: #FFF;
  transform: rotate(1.5deg);
}

.hero-image::before {
  content: '';
  display: block;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, #FFC145 50%, transparent 50%);
  z-index: 2;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==================== 按钮 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 0;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid #1D1D26;
  text-decoration: none;
  transition: 0.2s;
  font-size: 0.95rem;
  color: #1D1D26;
}

.btn-primary {
  background: #E84342;
  color: #F8F3E9;
  border: 2px solid #1D1D26;
  box-shadow: 5px 5px 0 #1D1D26;
  font-weight: 800;
}

.btn-primary:hover {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 #1D1D26;
  background: #D63A38;
}

.btn-outline {
  background: #FFF;
  border: 2px solid #1D1D26;
  color: #1D1D26;
  box-shadow: 5px 5px 0 #1D1D26;
}

.btn-outline:hover {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 #1D1D26;
  background: #FFC145;
}

/* ==================== 标签 / 标题 ==================== */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 14px;
  text-transform: uppercase;
  background: #FFC145;
  color: #1D1D26;
  padding: 4px 14px;
  border: 2px solid #1D1D26;
  box-shadow: 3px 3px 0 #1D1D26;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 14px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.3;
  color: #1D1D26;
}

.section-desc {
  max-width: 600px;
  opacity: 0.65;
  margin-bottom: 40px;
  font-size: 1rem;
  line-height: 1.7;
}

/* ==================== 卡片网格 ==================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.category-card {
  border-radius: 0;
  padding: 28px;
  border: 2px solid #1D1D26;
  background: #FFF;
  box-shadow: 5px 5px 0 rgba(29,29,38,0.85);
  transition: 0.2s;
  position: relative;
}

.cards-grid .category-card:nth-child(3n+1) { transform: rotate(-0.8deg); }
.cards-grid .category-card:nth-child(3n+2) { transform: rotate(0.6deg); }
.cards-grid .category-card:nth-child(3n+3) { transform: rotate(-0.3deg); }

.category-card::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 12px;
  width: 16px;
  height: 16px;
  background: #E84342;
  transform: rotate(45deg);
}

.category-card:hover {
  transform: translate(-3px, -3px) rotate(0deg);
  box-shadow: 8px 8px 0 #E84342;
  background: #FFFDF7;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
  background: #F8F3E9;
  border: 2px solid #1D1D26;
  color: #E84342;
}

.card-link {
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  color: #E84342;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: 0.2s;
}

.card-link:hover {
  gap: 10px;
}

/* ==================== 特性块 ==================== */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature-image {
  border-radius: 0;
  overflow: hidden;
  border: 3px solid #1D1D26;
  box-shadow: 8px 8px 0 #06C1D1;
  position: relative;
}

.feature-image::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: -6px;
  width: 24px;
  height: 24px;
  background: #FFC145;
  border: 2px solid #1D1D26;
  z-index: 2;
}

.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: 500;
}

.feature-list li::before {
  content: '→';
  font-weight: 900;
  color: #E84342;
  font-size: 1.1rem;
}

/* ==================== 数据条 ==================== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 28px 20px;
  border-radius: 0;
  border: 2px solid #1D1D26;
  background: #FFF;
  box-shadow: 5px 5px 0 #1D1D26;
  position: relative;
  transition: 0.2s;
}

.stat-item:nth-child(odd) {
  transform: rotate(-1deg);
}

.stat-item:nth-child(even) {
  transform: rotate(1deg);
}

.stat-item:hover {
  transform: rotate(0) translate(-3px, -3px);
  box-shadow: 8px 8px 0 #FFC145;
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.2;
  color: #E84342;
}

.stat-number::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: #1D1D26;
  margin: 8px auto 0;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: 8px;
  font-weight: 600;
}

/* ==================== 内容墙 ==================== */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.content-wall-item {
  border-radius: 0;
  overflow: hidden;
  border: 2px solid #1D1D26;
  background: #FFF;
  box-shadow: 5px 5px 0 rgba(29,29,38,0.75);
  transition: 0.2s;
}

.content-wall .content-wall-item:nth-child(3n+1) { transform: rotate(-0.6deg); }
.content-wall .content-wall-item:nth-child(3n+2) { transform: rotate(0.4deg); }
.content-wall .content-wall-item:nth-child(3n+3) { transform: rotate(-0.2deg); }

.content-wall-item:hover {
  transform: translate(-3px, -3px) rotate(0deg);
  box-shadow: 8px 8px 0 #06C1D1;
}

.content-wall-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2px solid #1D1D26;
  display: block;
}

.content-wall-body {
  padding: 22px;
}

.content-wall-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.content-wall-body p {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ==================== FAQ ==================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 2px solid #1D1D26;
  border-radius: 0;
  margin-bottom: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #FFF;
  box-shadow: 3px 3px 0 rgba(29,29,38,0.4);
  transition: 0.2s;
}

.faq-item.open {
  box-shadow: 5px 5px 0 #FFC145;
}

.faq-item .faq-question {
  padding: 18px 22px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  gap: 16px;
}

.faq-item .faq-question::after {
  content: '+';
  font-size: 1.6rem;
  font-weight: 900;
  color: #E84342;
  line-height: 1;
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding: 0 22px 18px;
  display: none;
  opacity: 0.7;
  line-height: 1.7;
}

.faq-item .faq-answer::before {
  content: '';
  display: block;
  border-top: 2px dashed rgba(29,29,38,0.25);
  margin-bottom: 14px;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ==================== CTA 横幅 ==================== */
.cta-banner {
  padding: 64px 32px;
  text-align: center;
  border-radius: 0;
  color: #F8F3E9;
  background: #E84342;
  border: 3px solid #1D1D26;
  box-shadow: 10px 10px 0 #1D1D26;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255,193,69,0.15) 0px,
    rgba(255,193,69,0.15) 12px,
    transparent 12px,
    transparent 24px
  );
  pointer-events: none;
}

.cta-banner h2 {
  color: #F8F3E9;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  opacity: 0.85;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  color: #F8F3E9;
}

.cta-banner .btn-primary {
  background: #1D1D26;
  color: #FFC145;
  border: 2px solid #1D1D26;
  box-shadow: 5px 5px 0 #FFC145;
}

.cta-banner .btn-primary:hover {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 #FFC145;
  background: #1D1D26;
}

/* ==================== 页脚 ==================== */
.site-footer {
  padding: 64px 0 30px;
  background: rgba(255,255,255,0.4);
  border-top: 3px solid #1D1D26;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  opacity: 0.65;
  max-width: 260px;
  line-height: 1.6;
  margin-top: 12px;
  font-size: 0.9rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 24px;
  height: 3px;
  background: #E84342;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  padding: 4px 0;
}

.footer-col ul a {
  text-decoration: none;
  color: #1D1D26;
  opacity: 0.7;
  font-size: 0.9rem;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul a:hover {
  opacity: 1;
  color: #E84342;
}

.footer-bottom {
  border-top: 2px dashed rgba(29,29,38,0.25);
  margin-top: 48px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.55;
}

/* ==================== 工具类 ==================== */
.text-accent {
  color: #E84342;
  font-weight: 700;
}

.text-center {
  text-align: center;
}

.seo-description {
  max-width: 600px;
  margin: 0 auto 48px;
  opacity: 0.65;
  line-height: 1.8;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 110px 0 60px;
    gap: 40px;
  }

  .hero-image {
    order: -1;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .hero::before {
    font-size: 5rem;
    top: 40px;
  }

  .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;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #F8F3E9;
    padding: 24px;
    border-bottom: 3px solid #1D1D26;
    gap: 6px;
  }

  .main-nav.open a {
    padding: 10px 0;
    border-bottom: 1px solid rgba(29,29,38,0.1);
  }

  .section {
    padding: 60px 0;
  }

  .cta-banner {
    padding: 48px 20px;
    box-shadow: 6px 6px 0 #1D1D26;
  }
}

@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: 2rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .header-inner {
    padding: 0 16px;
  }

  .container {
    padding: 0 16px;
  }

  .stat-item:nth-child(odd),
  .stat-item:nth-child(even) {
    transform: none;
  }

  .stat-item:hover {
    transform: translate(-3px, -3px);
  }
}