/* =============================================
   禁漫天堂 · JM Comic 设计系统 — 「漫想纸趣」漫画杂志风
   亮色底 · 网点纸纹 · 气泡对话框 · 贴纸卡片
   ============================================= */

:root {
  --paper: #FFF9E8;
  --paper-deep: #FFEFD6;
  --coral: #FF6B6B;
  --teal: #4ECDC4;
  --gold: #FFD93D;
  --ink: #3A2E2E;
  --white: #FFFFFF;
}

/* ===== 基础重置 ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--paper);
}
::-webkit-scrollbar-thumb {
  background: var(--coral);
  border-radius: 6px;
  border: 2px solid var(--paper);
}

body {
  font-family: system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  overflow-x: hidden;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(58,46,46,0.065) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  line-height: 1.6;
}

/* ===== 核心布局 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
  position: relative;
}

.section:nth-child(even) {
  background-color: #FFF3E2;
  background-image: radial-gradient(rgba(58,46,46,0.04) 1px, transparent 1px);
  background-size: 18px 18px;
}

/* ===== 顶部导航 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,249,232,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 2px 0 var(--coral),
    0 5px 0 rgba(255,107,107,0.15);
  border-bottom: none;
}

.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;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s;
}

.logo:hover {
  transform: rotate(-1deg);
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px 12px 12px 4px;
  background: var(--coral);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(58,46,46,0.18);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  padding: 4px 6px;
  position: relative;
  transition: color 0.2s;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: -2px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:hover {
  color: var(--coral);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  background: var(--teal);
  color: #fff !important;
  border-radius: 20px 20px 20px 4px;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 rgba(58,46,46,0.18);
  font-weight: 800;
  padding: 8px 22px;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(58,46,46,0.24);
  color: var(--ink) !important;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  align-items: center;
  justify-content: center;
}

.menu-toggle::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 6px 0 var(--ink), 0 12px 0 var(--ink);
}

/* ===== Hero 首页英雄区 ===== */
.hero {
  min-height: 78vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: 72px;
  border-bottom: 2px dashed rgba(58,46,46,0.15);
  background:
    radial-gradient(circle at 82% 30%, rgba(255,217,61,0.35) 0%, transparent 42%),
    radial-gradient(circle at 12% 75%, rgba(78,205,196,0.28) 0%, transparent 45%),
    linear-gradient(135deg, #FFF9E8 0%, #FFEFD2 55%, #FFE6C4 100%);
}

.hero::before {
  content: '';
  position: absolute;
  right: 7%;
  top: 18%;
  width: 110px;
  height: 110px;
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 8px 8px 0 rgba(58,46,46,0.12);
  z-index: 0;
}

.hero::after {
  content: '✦';
  position: absolute;
  right: 15%;
  top: 62%;
  font-size: 4rem;
  color: var(--coral);
  z-index: 1;
  text-shadow: 2px 2px 0 var(--ink);
  animation: twinkle 3s ease-in-out infinite;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 18px 18px 18px 4px;
  margin-bottom: 18px;
  background: var(--teal);
  color: #fff;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 rgba(58,46,46,0.15);
}

.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  position: relative;
  text-shadow: 3px 3px 0 rgba(255,217,61,0.7);
}

.hero p {
  font-size: 1.05rem;
  color: #4A3B3B;
  opacity: 0.78;
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.8;
  padding: 12px 18px;
  background: rgba(255,255,255,0.55);
  border-left: 5px solid var(--coral);
  border-radius: 0 14px 14px 0;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-image {
  border-radius: 16px 16px 16px 4px;
  overflow: hidden;
  border: 3px solid var(--ink);
  box-shadow: 7px 7px 0 var(--gold);
  transform: rotate(2deg);
  background: var(--white);
  padding: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image:hover {
  transform: rotate(0deg) translate(-2px, -2px);
  box-shadow: 9px 9px 0 var(--teal);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  filter: saturate(1.12) contrast(1.04);
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 24px 24px 24px 6px;
  font-weight: 800;
  cursor: pointer;
  border: 2px solid var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.22s ease;
}

.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 3px 3px 0 rgba(58,46,46,0.22);
}

.btn-primary:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 rgba(58,46,46,0.28);
  background: #FF5B5B;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px dashed var(--ink);
  box-shadow: 2px 2px 0 rgba(58,46,46,0.12);
}

.btn-outline:hover {
  background: var(--white);
  transform: translate(-1px, -1px);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(58,46,46,0.15);
}

/* ===== 区块标签 / 标题 ===== */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 7px 18px;
  border-radius: 16px 16px 16px 4px;
  border: 2px solid var(--ink);
  margin-bottom: 14px;
  box-shadow: 2px 2px 0 rgba(58,46,46,0.14);
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
  position: relative;
  display: inline-block;
  z-index: 1;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 8px;
  background: var(--coral);
  opacity: 0.25;
  border-radius: 4px;
  z-index: -1;
  transform: rotate(-0.8deg);
}

.section-desc {
  max-width: 600px;
  opacity: 0.7;
  margin-bottom: 44px;
  line-height: 1.8;
}

/* ===== 卡片网格 ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
}

.category-card {
  background: var(--white);
  border-radius: 16px 16px 16px 4px;
  padding: 26px 24px;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(58,46,46,0.1);
  transition: all 0.22s ease;
  position: relative;
}

.category-card:nth-child(3n+1) {
  transform: rotate(-0.8deg);
}

.category-card:nth-child(3n+2) {
  transform: rotate(0.6deg);
}

.category-card:nth-child(3n) {
  transform: rotate(1.1deg);
}

.category-card:hover {
  transform: translate(-3px, -3px) rotate(0deg);
  box-shadow: 7px 7px 0 var(--gold);
}

.category-card h3 {
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.category-card p {
  font-size: 0.88rem;
  opacity: 0.72;
  margin-bottom: 14px;
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px 12px 12px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: #fff;
  font-size: 1.35rem;
  border: 2px solid var(--ink);
  margin-bottom: 16px;
  box-shadow: 2px 2px 0 rgba(58,46,46,0.15);
}

.category-card .card-icon:nth-child(3n+2) {
  background: var(--coral);
}
.category-card .card-icon:nth-child(3n) {
  background: var(--gold);
  color: var(--ink);
}

.card-link {
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--coral);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.card-link:hover {
  border-color: var(--coral);
  color: var(--ink);
}

/* ===== 特性块 ===== */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 24px 24px 24px 4px;
  padding: 44px 40px;
  box-shadow: 6px 6px 0 rgba(58,46,46,0.1);
  position: relative;
}

.feature-block::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 120px;
  height: 30px;
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 4px;
  opacity: 0.95;
  box-shadow: 2px 2px 0 rgba(58,46,46,0.1);
  z-index: 2;
}

.feature-image {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(58,46,46,0.12);
  transform: rotate(-1.5deg);
  transition: transform 0.3s ease;
}

.feature-image:hover {
  transform: rotate(0deg);
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  filter: saturate(1.1) contrast(1.04);
}

.feature-text {
  position: relative;
}

.feature-text h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 900;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.feature-text p {
  opacity: 0.75;
  margin-bottom: 16px;
  line-height: 1.8;
}

.feature-list {
  list-style: none;
  margin-top: 10px;
}

.feature-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.feature-list li::before {
  content: '✓';
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--teal);
  color: #fff;
  border-radius: 50%;
  border: 2px solid var(--ink);
  font-size: 0.7rem;
  flex-shrink: 0;
  box-shadow: 1px 1px 0 rgba(58,46,46,0.15);
}

/* ===== 数据条 ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 26px 24px;
  border-radius: 16px 16px 16px 4px;
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 3px 3px 0 rgba(58,46,46,0.1);
  transition: all 0.22s ease;
}

.stat-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--gold);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--coral);
  text-shadow: 2px 2px 0 rgba(255,217,61,0.6);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.88rem;
  opacity: 0.7;
  margin-top: 8px;
  font-weight: 600;
}

/* ===== 内容墙 ===== */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.content-wall-item {
  background: var(--white);
  border-radius: 16px 16px 16px 4px;
  overflow: hidden;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(58,46,46,0.1);
  transition: all 0.22s ease;
}

.content-wall-item:nth-child(even) {
  transform: rotate(0.6deg);
}
.content-wall-item:nth-child(odd) {
  transform: rotate(-0.5deg);
}

.content-wall-item:hover {
  transform: translate(-2px, -2px) rotate(0deg);
  box-shadow: 6px 6px 0 var(--teal);
}

.content-wall-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2px solid var(--ink);
  transition: transform 0.4s ease;
}

.content-wall-item:hover img {
  transform: scale(1.05);
}

.content-wall-body {
  padding: 20px;
}

.content-wall-body h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.content-wall-body p {
  font-size: 0.85rem;
  opacity: 0.7;
  line-height: 1.6;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 16px 16px 16px 4px;
  margin-bottom: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(58,46,46,0.1);
  transition: all 0.2s ease;
}

.faq-item:hover {
  box-shadow: 4px 4px 0 rgba(58,46,46,0.14);
}

.faq-item .faq-question {
  padding: 18px 24px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  transition: background 0.2s;
}

.faq-item .faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--coral);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding: 0 24px 18px;
  display: none;
  opacity: 0.72;
  line-height: 1.75;
  border-top: 1px dashed rgba(58,46,46,0.1);
  padding-top: 12px;
}

.faq-item.open .faq-answer {
  display: block;
  animation: fadeAnswer 0.25s ease;
}

@keyframes fadeAnswer {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 0.72; transform: translateY(0); }
}

/* ===== CTA 横幅 ===== */
.cta-banner {
  padding: 64px 40px;
  text-align: center;
  border-radius: 24px 24px 24px 4px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 50%, rgba(255,217,61,0.35) 0%, transparent 50%),
    linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--gold);
  position: relative;
  overflow: hidden;
}

.cta-banner::after {
  content: '✦';
  position: absolute;
  top: 12px;
  right: 24px;
  font-size: 3.2rem;
  color: rgba(255,255,255,0.25);
  animation: twinkle 2.5s ease-in-out infinite;
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 12px;
  text-shadow: 2px 2px 0 rgba(58,46,46,0.15);
}

.cta-banner p {
  max-width: 600px;
  margin: 0 auto 24px;
  opacity: 0.9;
  line-height: 1.7;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 rgba(58,46,46,0.25);
}

.cta-banner .btn-primary:hover {
  background: var(--gold);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 rgba(58,46,46,0.3);
}

@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.18) rotate(12deg); }
}

/* ===== 页脚 ===== */
.site-footer {
  padding: 64px 0 28px;
  background-color: var(--paper-deep);
  background-image: radial-gradient(rgba(58,46,46,0.045) 1px, transparent 1px);
  background-size: 18px 18px;
  border-top: 2px solid var(--ink);
  color: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.72;
  line-height: 1.75;
  max-width: 280px;
}

.footer-col h4 {
  margin-bottom: 16px;
  font-weight: 900;
  font-size: 1rem;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  display: block;
  height: 3px;
  width: 100%;
  background: var(--coral);
  border-radius: 3px;
  margin-top: 4px;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.72;
  transition: all 0.2s ease;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--coral);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 2px dashed rgba(58,46,46,0.15);
  margin-top: 40px;
  padding-top: 22px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

.footer-bottom span {
  color: var(--coral);
  font-weight: 700;
}

/* ===== 工具类 ===== */
.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;
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ===== 响应式适配 ===== */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-image {
    max-width: 70%;
    margin: 0 auto;
    order: -1;
  }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 28px 24px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .feature-block {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .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: var(--paper);
    padding: 20px 24px;
    border-bottom: 2px solid var(--ink);
    box-shadow: 0 8px 0 rgba(58,46,46,0.1);
    gap: 4px;
  }

  .main-nav.open a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(58,46,46,0.08);
    font-size: 1rem;
  }

  .main-nav.open a::after {
    display: none;
  }

  .main-nav.open .nav-cta {
    text-align: center;
    margin-top: 10px;
    border-bottom: 2px solid var(--ink);
  }
}

@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;
    text-align: center;
  }

  .hero {
    min-height: 60vh;
    margin-top: 64px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2.1rem;
  }

  .cta-banner {
    padding: 44px 20px;
  }

  .cta-banner::after {
    font-size: 2.2rem;
  }

  .header-inner {
    height: 64px;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }
}