/* ============================================================
   JMCOMIC «纸漫» 设计系统
   —————————————
   漫画分镜 · 硬阴影 · 粗描边 · 网点头
   色板: 暖纸白 / 珊瑚红 / 松石绿 / 明黄
   ============================================================ */
:root {
  --paper: #FFF9F0;
  --paper-2: #F7F1E5;
  --mint: #F0F7F4;
  --ink: #2D2A26;
  --muted: #8A8278;
  --line: #E8E0D4;
  --coral: #FF4D6D;
  --teal: #00B8A9;
  --yellow: #FFD166;
  --white: #FFFFFF;
}

/* 基础重置 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  overflow-x: hidden;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 15% 25%, rgba(255, 209, 102, 0.10) 0%, transparent 35%),
    radial-gradient(circle at 85% 70%, rgba(0, 184, 169, 0.07) 0%, transparent 40%),
    radial-gradient(circle, rgba(45, 42, 38, 0.045) 1px, transparent 1.5px);
  background-size: auto, auto, 24px 24px;
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--paper);
}
::-webkit-scrollbar-thumb {
  background: var(--teal);
  border: 3px solid var(--paper);
  border-radius: 8px;
}

/* 核心布局 — 必须居中 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.section {
  padding: 90px 0;
  position: relative;
}

.section:nth-child(even) {
  background-color: var(--mint);
  background-image: radial-gradient(circle, rgba(0, 184, 169, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* 导航 — 固定顶部 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 249, 240, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 6px 0 rgba(255, 209, 102, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px 4px 12px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 900;
  background: var(--yellow);
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-4deg);
  color: var(--ink);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover .logo-icon {
  transform: rotate(4deg) scale(1.08);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  padding: 4px 2px;
  position: relative;
  transition: color 0.2s;
}

.main-nav a:not(.nav-cta)::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--coral);
  transform: skewX(-20deg);
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.main-nav a:not(.nav-cta):hover {
  color: var(--coral);
}

.main-nav a:not(.nav-cta):hover::before {
  width: 100%;
}

.nav-cta {
  padding: 8px 22px;
  border-radius: 0;
  color: var(--white) !important;
  font-weight: 800;
  background: var(--coral);
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transition: all 0.15s ease;
  font-size: 0.85rem !important;
}

.nav-cta:hover {
  background: var(--yellow);
  color: var(--ink) !important;
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.menu-toggle {
  display: none;
}

/* 首页Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: '「POW」';
  position: absolute;
  top: 14%;
  right: -2%;
  font-size: 9rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2.5px rgba(45, 42, 38, 0.07);
  transform: rotate(12deg);
  z-index: 0;
  letter-spacing: -0.05em;
  pointer-events: none;
}

.hero::after {
  content: '✦';
  position: absolute;
  bottom: 18%;
  left: 4%;
  font-size: 2.6rem;
  color: var(--yellow);
  z-index: 0;
  transform: rotate(-15deg);
  filter: drop-shadow(3px 3px 0 var(--ink));
  pointer-events: none;
}

.hero-content {
  max-width: 680px;
  position: relative;
  z-index: 2;
  flex: 1 1 380px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.83rem;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 40px 40px 40px 8px;
  margin-bottom: 18px;
  background: var(--yellow);
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  letter-spacing: 2px;
  text-transform: uppercase;
  transform: rotate(-2deg);
  position: relative;
}

.hero h1 {
  font-size: 3.4rem;
  line-height: 1.12;
  margin-bottom: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
  position: relative;
  display: inline-block;
  z-index: 1;
}

.hero h1::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 42%;
  height: 14px;
  background: rgba(255, 209, 102, 0.5);
  z-index: -1;
  border-radius: 2px;
  transform: rotate(-1deg);
}

.hero p {
  font-size: 1.13rem;
  opacity: 1;
  color: #6B6158;
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 0 1 440px;
  min-width: 280px;
  min-height: 320px;
  border-radius: 0;
  overflow: hidden;
  background-color: #F0DCC9;
  background-image:
    radial-gradient(circle, rgba(45, 42, 38, 0.12) 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 77, 109, 0.25) 1px, transparent 1px);
  background-size: 18px 18px, 9px 9px;
  border: 4px solid var(--ink);
  box-shadow: 12px 12px 0 var(--coral);
  transform: rotate(1.5deg);
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.hero-image:hover {
  transform: rotate(0deg);
}

.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.04);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: 0;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  border: 3px solid var(--ink);
  text-decoration: none;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 4px 4px 0 var(--ink);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
}

.btn-primary:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-outline {
  background: var(--white);
  border: 3px solid var(--ink);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-outline:hover {
  background: var(--yellow);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

/* 标签/标题 */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 12px;
  padding: 5px 16px;
  background-color: #FFE8A1;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 4px,
    rgba(45, 42, 38, 0.04) 4px,
    rgba(45, 42, 38, 0.04) 8px
  );
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--teal);
  transform: rotate(-1deg);
  text-transform: uppercase;
}

.section-title {
  font-size: 2.3rem;
  margin-bottom: 14px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  position: relative;
  display: inline-block;
  z-index: 1;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow),
    var(--yellow) 6px,
    #FFF0C4 6px,
    #FFF0C4 12px
  );
  z-index: -1;
  border-radius: 2px;
}

.section-desc {
  max-width: 620px;
  opacity: 1;
  color: #6B6158;
  margin-bottom: 44px;
  font-size: 1.05rem;
  line-height: 1.75;
}

/* 卡片网格 */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.category-card {
  border-radius: 0;
  padding: 28px;
  border: 3px solid var(--ink);
  background: var(--white);
  box-shadow: 6px 6px 0 var(--ink);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.category-card:nth-child(3n+1) { transform: rotate(-0.6deg); }
.category-card:nth-child(3n+2) { transform: rotate(0.5deg); }
.category-card:nth-child(3n+3) { transform: rotate(-0.3deg); }

.category-card:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 10px 10px 0 var(--coral);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px 5px 14px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
  background: #F0F7F4;
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-3deg);
  transition: transform 0.3s ease;
}

.category-card:hover .card-icon {
  transform: rotate(4deg) scale(1.1);
}

.card-link {
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--coral);
  border-bottom: 2px solid var(--coral);
  padding-bottom: 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.card-link:hover {
  background: var(--yellow);
  color: var(--ink);
  border-bottom-color: var(--ink);
  padding: 0 4px;
}

/* 特性块 */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-image {
  border-radius: 0;
  overflow: hidden;
  border: 3.5px solid var(--ink);
  box-shadow: 10px 10px 0 var(--yellow);
  background: #F0DCC9;
  position: relative;
  transition: transform 0.3s ease;
}

.feature-image:hover {
  transform: rotate(-0.5deg);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 280px;
}

.feature-text {
  position: relative;
}

.feature-text .section-label {
  margin-bottom: 10px;
}

.feature-list {
  list-style: none;
  margin-top: 20px;
}

.feature-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 1rem;
}

.feature-list li::before {
  content: '✓';
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: var(--teal);
  color: var(--white);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 0.75rem;
  box-shadow: 2px 2px 0 rgba(45, 42, 38, 0.4);
}

/* 数据条 */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 28px 20px;
  border-radius: 0;
  border: 2.5px solid var(--ink);
  background: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
  transition: all 0.2s ease;
  position: relative;
}

.stat-item:nth-child(2n) {
  transform: rotate(0.5deg);
}

.stat-item:nth-child(2n+1) {
  transform: rotate(-0.4deg);
}

.stat-item:hover {
  transform: rotate(0deg) translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--teal);
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--coral);
  text-shadow: 3px 3px 0 rgba(255, 209, 102, 0.6);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.88rem;
  opacity: 1;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* 内容墙 */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.content-wall-item {
  border-radius: 0;
  overflow: hidden;
  border: 3px solid var(--ink);
  background: var(--white);
  box-shadow: 6px 6px 0 var(--teal);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.content-wall-item:nth-child(2n) { transform: rotate(0.6deg); }
.content-wall-item:nth-child(2n+1) { transform: rotate(-0.4deg); }

.content-wall-item:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 10px 10px 0 var(--yellow);
}

.content-wall-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 3px solid var(--ink);
  background: #F0DCC9;
}

.content-wall-body {
  padding: 20px;
}

.content-wall-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.content-wall-body p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 2.5px solid var(--ink);
  border-radius: 0;
  margin-bottom: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--line);
  transition: all 0.25s ease;
}

.faq-item.open {
  box-shadow: 6px 6px 0 var(--teal);
  transform: translate(-2px, -2px);
}

.faq-item .faq-question {
  padding: 18px 22px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
}

.faq-item .faq-question::after {
  content: '＋';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--coral);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  line-height: 1;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding: 0 22px 18px;
  display: none;
  opacity: 1;
  color: #6B6158;
  line-height: 1.7;
  font-size: 0.93rem;
}

.faq-item.open .faq-answer {
  display: block;
}

/* CTA横幅 */
.cta-banner {
  padding: 64px 32px;
  text-align: center;
  border-radius: 0;
  color: var(--white);
  background-color: var(--coral);
  border: 4px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.13) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  pointer-events: none;
}

.cta-banner::after {
  content: 'BOOM!';
  position: absolute;
  bottom: 10px;
  right: 16px;
  font-size: 2.2rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.12);
  transform: rotate(-8deg);
  pointer-events: none;
}

.cta-banner h2 {
  color: var(--white);
  position: relative;
  z-index: 2;
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-shadow: 3px 3px 0 var(--ink);
}

.cta-banner .btn-primary {
  background: var(--yellow);
  color: var(--ink) !important;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  position: relative;
  z-index: 2;
}

.cta-banner .btn-primary:hover {
  background: var(--white);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

/* 页脚 */
.site-footer {
  padding: 64px 0 28px;
  background-color: var(--paper);
  border-top: 3px solid var(--ink);
  box-shadow: 0 -4px 0 var(--yellow);
  position: relative;
}

.site-footer .container {
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-brand span {
  color: var(--coral);
}

.footer-col {
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--ink);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  padding: 4px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-col a:hover {
  color: var(--coral);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 2px dashed var(--line);
  margin-top: 48px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.83rem;
  color: var(--muted);
}

/* 工具类 */
.text-accent {
  color: var(--coral);
  font-weight: 800;
}

.text-center {
  text-align: center;
}

.seo-description {
  max-width: 620px;
  margin: 0 auto 48px;
  opacity: 1;
  color: #6B6158;
  line-height: 1.8;
  font-size: 1.02rem;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  .hero-image {
    flex-basis: 360px;
  }
}

@media (max-width: 768px) {
  .feature-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    background: var(--paper);
    border: 2.5px solid var(--ink);
    border-radius: 10px 4px 10px 4px;
    box-shadow: 3px 3px 0 var(--ink);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--ink);
    transition: all 0.15s ease;
  }

  .menu-toggle:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--ink);
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    background: var(--paper);
    padding: 24px;
    border: 3px solid var(--ink);
    box-shadow: 8px 8px 0 var(--yellow);
    z-index: 999;
    align-items: stretch;
  }

  .main-nav.open a {
    font-size: 1.05rem;
    padding: 12px 8px;
    border-bottom: 2px dashed var(--line);
    display: block;
  }

  .main-nav.open a:last-child {
    border-bottom: none;
  }

  .main-nav.open .nav-cta {
    margin-top: 8px;
    text-align: center;
    font-size: 1rem !important;
    border-bottom: 2.5px solid var(--ink);
  }

  .main-nav.open a:not(.nav-cta)::before {
    display: none;
  }

  .hero {
    padding: 120px 0 60px;
    justify-content: center;
  }

  .hero-content {
    text-align: center;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    min-height: 260px;
    max-width: 100%;
    flex-basis: 100%;
  }

  .hero-image img {
    min-height: 260px;
  }

  .section-title {
    font-size: 2rem;
  }
}

@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-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero::before {
    font-size: 4.5rem;
    top: 10%;
  }

  .section {
    padding: 56px 0;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .cta-banner {
    padding: 48px 20px;
  }

  .cta-banner h2 {
    font-size: 1.6rem;
  }

  .feature-image img {
    min-height: 200px;
  }

  .main-nav.open {
    left: 12px;
    right: 12px;
  }
}