/* ============================================
   JMCOMIC 漫画设计系统 · Manga Motif Edition
   ============================================ */

:root {
  --paper: #FBF7F0;
  --ink: #1F1F1F;
  --magenta: #F43F7A;
  --blue: #0FB5D6;
  --yellow: #FFC857;
  --lime: #A9E44B;
  --orange: #FF7A3D;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  overflow-x: hidden;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(31, 31, 31, 0.045) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--magenta);
  color: #fff;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 900;
}

/* ============ 核心布局 ============ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section:nth-child(even) {
  background: #FAEDEE;
  background-image: radial-gradient(rgba(31, 31, 31, 0.04) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}

/* ============ 导航 ============ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(251, 247, 240, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2.5px solid var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.28rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.5px;
  transition: transform 0.2s;
}

.logo:hover {
  transform: scale(1.02);
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 2.5px 2.5px 0 var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transform: rotate(-4deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 3px;
  background: var(--magenta);
  border-radius: 0;
  transition: width 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.main-nav a:hover {
  color: var(--magenta);
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 8px 22px;
  border-radius: 0;
  background: var(--magenta);
  border: 2px solid var(--ink);
  box-shadow: 2.5px 2.5px 0 var(--ink);
  color: #fff !important;
  font-weight: 800 !important;
  transition: all 0.15s;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  transform: translate(1.5px, 1.5px);
  box-shadow: 1px 1px 0 var(--ink);
  background: #E22F6E;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--ink);
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 2.5px 2.5px 0 var(--ink);
  transition: all 0.15s;
}

.menu-toggle:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
  background: var(--yellow);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  width: 22px;
  height: 2.5px;
  background: var(--ink);
  display: block;
  position: relative;
  transition: all 0.2s;
}

.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

/* ============ 首页 Hero ============ */

.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
}

.hero::before {
  content: '✦';
  position: absolute;
  top: 18%;
  right: 6%;
  font-size: 3.2rem;
  color: var(--yellow);
  text-shadow: 2.5px 2.5px 0 var(--ink);
  animation: floaty 4s ease-in-out infinite;
}

.hero::after {
  content: '★';
  position: absolute;
  bottom: 14%;
  left: 4%;
  font-size: 2rem;
  color: var(--blue);
  text-shadow: 2px 2px 0 var(--ink);
  animation: floaty 5s ease-in-out infinite reverse;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero-content {
  flex: 1;
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 6px 16px;
  border-radius: 0;
  margin-bottom: 18px;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 2.5px 2.5px 0 var(--magenta);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.02;
  margin-bottom: 22px;
  color: var(--paper);
  -webkit-text-stroke: 3px var(--ink);
  text-shadow: 5px 5px 0 var(--magenta);
  letter-spacing: -1.5px;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.8;
  color: #3A3A3A;
  max-width: 560px;
  margin-bottom: 34px;
  font-weight: 500;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 0 1 460px;
  border-radius: 0;
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--blue);
  overflow: hidden;
  position: relative;
  background: var(--yellow);
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1.5px dashed rgba(31, 31, 31, 0.7);
  pointer-events: none;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.05);
}

/* ============ 按钮 ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 0;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2.5px solid var(--ink);
  text-decoration: none;
  box-shadow: 3.5px 3.5px 0 var(--ink);
  transition: all 0.15s ease;
  background: transparent;
  color: var(--ink);
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 1.5px 1.5px 0 var(--ink);
}

.btn:active {
  transform: translate(3.5px, 3.5px);
  box-shadow: 0 0 0 var(--ink);
}

.btn-primary {
  background: var(--magenta);
  color: #fff;
}

.btn-primary:hover {
  background: #E22F6E;
}

.btn-outline {
  background: transparent;
  border: 2.5px solid var(--ink);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: #fff;
}

/* ============ 标签 / 标题 ============ */

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding: 4px 14px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  color: var(--ink);
}

.section:nth-child(even) .section-label {
  background: var(--blue);
  color: #fff;
  box-shadow: 2px 2px 0 var(--ink);
}

.section-title {
  font-size: 2.3rem;
  font-weight: 900;
  margin-bottom: 16px;
  display: inline-block;
  line-height: 1.25;
  background: linear-gradient(transparent 58%, rgba(255, 200, 87, 0.75) 58%);
  padding: 0 4px;
}

.section-desc {
  max-width: 600px;
  opacity: 0.75;
  color: #333;
  margin-bottom: 44px;
  font-size: 1.02rem;
  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: 30px 26px;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  box-shadow: 4px 4px 0 rgba(31, 31, 31, 0.95);
  transition: all 0.18s;
  position: relative;
}

.category-card:nth-child(odd) {
  transform: rotate(-0.6deg);
}

.category-card:nth-child(even) {
  transform: rotate(0.6deg);
}

.category-card:hover {
  transform: translate(-3px, -3px) rotate(0deg);
  box-shadow: 6px 6px 0 var(--magenta);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
  background: var(--lime);
  border: 2.5px solid var(--ink);
  box-shadow: 2.5px 2.5px 0 var(--ink);
}

.category-card:nth-child(2n) .card-icon {
  background: var(--blue);
}

.category-card:nth-child(3n) .card-icon {
  background: var(--yellow);
}

.category-card:nth-child(4n) .card-icon {
  background: var(--magenta);
}

.category-card h3 {
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.category-card p {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 16px;
  line-height: 1.6;
}

.card-link {
  font-weight: 900;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--magenta);
  display: inline-flex;
  align-items: center;
}

.card-link::after {
  content: '→';
  margin-left: 6px;
  transition: transform 0.2s;
}

.card-link:hover::after {
  transform: translateX(4px);
}

/* ============ 特性块 ============ */

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-image {
  border-radius: 0;
  overflow: hidden;
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--lime);
  position: relative;
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-text h3 {
  font-size: 1.7rem;
  font-weight: 900;
  margin-bottom: 14px;
  line-height: 1.3;
}

.feature-text p {
  opacity: 0.75;
  margin-bottom: 20px;
  line-height: 1.75;
}

.feature-list {
  list-style: none;
  margin-top: 10px;
}

.feature-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.98rem;
}

.feature-list li::before {
  content: '✦';
  font-weight: 700;
  color: var(--magenta);
  font-size: 1.15rem;
}

/* ============ 数据条 ============ */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}

.stat-item {
  padding: 30px 20px;
  border-radius: 0;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  transition: all 0.15s;
}

.stat-item:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--blue);
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  text-shadow: 3px 3px 0 var(--yellow);
}

.stat-item:nth-child(2) .stat-number {
  text-shadow: 3px 3px 0 var(--blue);
}

.stat-item:nth-child(3) .stat-number {
  text-shadow: 3px 3px 0 var(--lime);
}

.stat-item:nth-child(4) .stat-number {
  text-shadow: 3px 3px 0 var(--magenta);
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.65;
  margin-top: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ============ 内容墙 ============ */

.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.content-wall-item {
  border-radius: 0;
  overflow: hidden;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  box-shadow: 4px 4px 0 rgba(31, 31, 31, 0.95);
  transition: all 0.18s;
  position: relative;
}

.content-wall-item:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--magenta);
}

.content-wall-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2.5px solid var(--ink);
}

.content-wall-body {
  padding: 22px;
}

.content-wall-body h3 {
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 6px;
  line-height: 1.3;
}

.content-wall-body p {
  font-size: 0.9rem;
  opacity: 0.65;
  line-height: 1.5;
  margin-bottom: 8px;
}

.content-wall-body .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 10px;
  background: var(--yellow);
  border: 1.5px solid var(--ink);
  box-shadow: 1.5px 1.5px 0 var(--ink);
  margin-top: 6px;
}

.content-wall-item:nth-child(3n+2) img {
  border-bottom-color: var(--magenta);
}

.content-wall-item:nth-child(3n+3) img {
  border-bottom-color: var(--blue);
}

/* ============ FAQ ============ */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 2.5px solid var(--ink);
  border-radius: 0;
  margin-bottom: 16px;
  overflow: hidden;
  cursor: pointer;
  background: var(--paper);
  box-shadow: 3px 3px 0 rgba(31, 31, 31, 0.6);
  transition: all 0.15s;
}

.faq-item:hover {
  box-shadow: 4px 4px 0 var(--blue);
}

.faq-item .faq-question {
  padding: 18px 22px;
  font-weight: 900;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--yellow);
  border-bottom: 2px solid var(--ink);
  transition: all 0.2s;
}

.faq-item .faq-question::before {
  content: 'Q.';
  color: var(--magenta);
  font-weight: 900;
  margin-right: 10px;
}

.faq-item .faq-question::after {
  content: '+';
  font-weight: 900;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink);
  transition: transform 0.2s;
}

.faq-item .faq-answer {
  padding: 0 22px 20px;
  display: none;
  opacity: 0.75;
  line-height: 1.7;
  font-weight: 500;
}

.faq-item.open .faq-answer {
  display: block;
  padding-top: 16px;
}

.faq-item.open .faq-question {
  background: var(--magenta);
  color: #fff;
  border-bottom-color: var(--ink);
}

.faq-item.open .faq-question::before {
  color: var(--yellow);
}

.faq-item.open .faq-question::after {
  content: '−';
  color: #fff;
}

/* ============ CTA 横幅 ============ */

.cta-banner {
  padding: 64px 32px;
  text-align: center;
  border-radius: 0;
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--yellow);
  background: var(--magenta);
  background-image: radial-gradient(rgba(255,255,255,0.12) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  color: #fff;
  position: relative;
}

.cta-banner::before {
  content: '✦ ✦ ✦';
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.1rem;
  color: var(--ink);
  background: var(--paper);
  padding: 2px 18px;
  border: 2px solid var(--ink);
  letter-spacing: 6px;
  box-shadow: 2px 2px 0 var(--ink);
}

.cta-banner h2 {
  color: #fff;
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 12px;
  text-shadow: 3px 3px 0 var(--blue);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 28px;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--ink);
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.cta-banner .btn-primary:hover {
  background: var(--yellow);
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

/* ============ 页脚 ============ */

.site-footer {
  background: #E3F0F2;
  background-image: radial-gradient(rgba(31, 31, 31, 0.05) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  border-top: 3px solid var(--ink);
  padding: 56px 0 28px;
  color: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  padding-right: 24px;
}

.footer-brand .logo {
  margin-bottom: 14px;
}

.footer-brand p {
  opacity: 0.7;
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background: var(--magenta);
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: #3A3A3A;
  padding: 4px 0;
  font-weight: 500;
  font-size: 0.92rem;
  transition: all 0.15s;
}

.footer-col a:hover {
  color: var(--magenta);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 2px solid rgba(31, 31, 31, 0.15);
  margin-top: 40px;
  padding-top: 22px;
  text-align: center;
  font-size: 0.85rem;
  color: #555;
  font-weight: 500;
}

.footer-bottom span {
  color: var(--magenta);
  font-weight: 900;
}

/* ============ 工具类 ============ */

.text-accent {
  color: var(--magenta);
}

.text-center {
  text-align: center;
}

.seo-description {
  max-width: 600px;
  margin: 0 auto 48px;
  opacity: 0.75;
  line-height: 1.75;
  font-weight: 500;
}

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ============ 响应式 ============ */

@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    flex: 0 1 auto;
    max-width: 100%;
    width: 100%;
  }

  .feature-block {
    gap: 40px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@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;
    flex-direction: column;
    gap: 18px;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--paper);
    padding: 24px 24px 28px;
    border-bottom: 2.5px solid var(--ink);
    box-shadow: 0 8px 0 rgba(31, 31, 31, 0.15);
    z-index: 999;
  }

  .main-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding-top: 120px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 10vw, 3.2rem);
  }
}

@media (max-width: 480px) {
  .cards-grid,
  .content-wall,
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 2.3rem;
    text-shadow: 3px 3px 0 var(--magenta);
  }

  .section-title {
    font-size: 1.7rem;
  }

  .cta-banner {
    padding: 48px 20px;
  }

  .cta-banner h2 {
    font-size: 1.8rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}