/* ============================================================
   屁屁影院 · «泡泡漫画» 设计系统
   屁股决定脑袋，影院决定笑点
   域名：pipiyingyuan.tj.cn
   ============================================================ */

:root {
  --brand-pink: #EF476F;
  --brand-yellow: #FFD166;
  --brand-mint: #06D6A0;
  --brand-blue: #118AB2;
  --brand-purple: #9B5DE5;
  --ink: #073B4C;
  --paper: #FFF9F2;
  --paper-warm: #FFF1E8;
  --paper-cool: #F0F7F6;
  --border-ink: 2px solid var(--ink);
  --shadow-pink: 6px 6px 0 rgba(239, 71, 111, 0.18);
}

/* ========== 基础重置 ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  overflow-x: hidden;
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--brand-pink);
  color: #fff;
}

::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--paper-warm);
  border-left: 1px dashed var(--ink);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(160deg, var(--brand-pink), var(--brand-yellow));
  border-radius: 20px;
  border: 2px solid var(--ink);
}

/* ========== 核心布局 ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section:nth-child(even) {
  background: linear-gradient(180deg, var(--paper-warm) 0%, var(--paper-cool) 100%);
}

/* ========== 全局动效 ========== */
@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg) scale(1.05); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(8deg); }
  50% { transform: translateY(-16px) rotate(4deg); }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========== 导航 ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 249, 242, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px dashed var(--ink);
  box-shadow: 0 4px 16px rgba(239, 71, 111, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: linear-gradient(135deg, var(--brand-yellow), var(--brand-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 3px 3px 0 var(--ink);
  animation: wiggle 4s ease-in-out infinite;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 3px dashed transparent;
  transition: all 0.2s ease;
}

.main-nav a:hover {
  color: var(--brand-pink);
  border-bottom-color: var(--brand-yellow);
}

.nav-cta {
  padding: 8px 20px;
  border-radius: 40px;
  color: #fff !important;
  background: var(--brand-pink);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 800;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
  color: #fff !important;
}

.menu-toggle {
  display: none;
  border: 2px solid var(--ink);
  background: var(--brand-yellow);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}

.menu-toggle::before {
  content: '☰';
  color: var(--ink);
}

.menu-toggle.open::before {
  content: '✕';
}

/* ========== Hero ========== */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  position: relative;
  isolation: isolate;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(239, 71, 111, 0.09) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 85% 20%, rgba(239, 71, 111, 0.14), transparent 40%),
    radial-gradient(circle at 8% 90%, rgba(6, 214, 160, 0.14), transparent 40%);
}

.hero::after {
  content: '🍿';
  position: absolute;
  right: 6%;
  bottom: 8%;
  font-size: 4.5rem;
  z-index: -1;
  filter: drop-shadow(6px 8px 0 rgba(7, 59, 76, 0.14));
  animation: float 5s ease-in-out infinite;
}

.hero .container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  z-index: 2;
}

.hero-content {
  flex: 1 1 500px;
  max-width: 720px;
  position: relative;
}

.hero-content::before {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -10px;
  width: 90px;
  height: 90px;
  border: 3px dashed var(--brand-blue);
  border-radius: 50%;
  opacity: 0.5;
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 40px;
  border: 2px dashed var(--ink);
  background: #fff;
  margin-bottom: 18px;
  box-shadow: 3px 3px 0 var(--brand-yellow);
  transform: rotate(-2deg);
  letter-spacing: 0.08em;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.8rem);
  line-height: 1.08;
  margin-bottom: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-shadow: 4px 4px 0 var(--brand-yellow);
  position: relative;
  display: inline-block;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.8;
  max-width: 560px;
  margin-bottom: 32px;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1 1 360px;
  max-width: 480px;
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--brand-blue);
  transform: rotate(2deg);
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image:hover {
  transform: rotate(0deg) scale(1.01);
  box-shadow: 12px 12px 0 var(--brand-mint);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 40px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid var(--ink);
  text-decoration: none;
  transition: all 0.18s ease;
}

.btn-primary {
  background: var(--brand-pink);
  color: #fff;
  box-shadow: 5px 5px 0 var(--ink);
}

.btn-primary:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
  background: #d5375b;
}

.btn-outline {
  background: #fff;
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--brand-blue);
}

.btn-outline:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--brand-blue);
}

/* ========== 标签 / 标题 ========== */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--brand-pink);
  background: #fff;
  border: 2px dashed var(--ink);
  border-radius: 40px;
  padding: 6px 16px;
  margin-bottom: 14px;
  transform: rotate(-1deg);
  box-shadow: 2px 2px 0 var(--brand-yellow);
}

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin-bottom: 14px;
  font-weight: 900;
  line-height: 1.15;
  position: relative;
  text-shadow: 3px 3px 0 rgba(255, 209, 102, 0.7);
}

.section-desc {
  max-width: 600px;
  opacity: 0.75;
  margin-bottom: 40px;
  font-size: 1.05rem;
}

/* ========== 卡片网格 ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.category-card {
  position: relative;
  border-radius: 20px;
  padding: 30px;
  border: 2px solid var(--ink);
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 5px 5px 0 var(--brand-mint);
}

.category-card::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  width: 60px;
  height: 18px;
  background: repeating-linear-gradient(45deg, var(--brand-yellow) 0 6px, var(--brand-pink) 6px 12px);
  transform: translateX(-50%) rotate(-2deg);
  border-radius: 3px;
  border: 1px solid var(--ink);
  z-index: 2;
}

.category-card:nth-child(even) {
  transform: rotate(1deg);
  box-shadow: 6px 6px 0 var(--brand-yellow);
}

.category-card:nth-child(odd) {
  transform: rotate(-1deg);
}

.category-card:nth-child(3n) {
  box-shadow: 6px 6px 0 var(--brand-blue);
}

.category-card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 10px 10px 0 var(--brand-pink);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.6rem;
  border: 2px solid var(--ink);
  background: var(--brand-yellow);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-5deg);
}

.category-card:nth-child(2n) .card-icon {
  background: var(--brand-mint);
}

.category-card:nth-child(3n) .card-icon {
  background: var(--brand-blue);
}

.card-link {
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--brand-pink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link::after {
  content: '→';
  transition: transform 0.2s;
}

.category-card:hover .card-link::after {
  transform: translateX(4px);
}

/* ========== 特性块 ========== */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature-image {
  border-radius: 30px;
  overflow: hidden;
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--brand-yellow);
  transform: rotate(-1.5deg);
  transition: transform 0.3s ease;
}

.feature-image:hover {
  transform: rotate(0deg) scale(1.01);
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-text {
  position: relative;
}

.feature-text h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-weight: 800;
}

.feature-list {
  list-style: none;
  margin-top: 18px;
}

.feature-list li {
  padding: 10px 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  font-weight: 600;
  box-shadow: 3px 3px 0 rgba(7, 59, 76, 0.08);
}

.feature-list li::before {
  content: '✓';
  font-weight: 900;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-mint);
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ========== 数据条 ========== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  position: relative;
  padding: 30px 20px;
  border-radius: 24px;
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: 6px 6px 0 var(--brand-yellow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-item:nth-child(2) {
  box-shadow: 6px 6px 0 var(--brand-mint);
}

.stat-item:nth-child(3) {
  box-shadow: 6px 6px 0 var(--brand-pink);
}

.stat-item:nth-child(4) {
  box-shadow: 6px 6px 0 var(--brand-blue);
}

.stat-item:hover {
  transform: translateY(-4px);
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--brand-pink), var(--brand-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.65;
  margin-top: 8px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ========== 内容墙 ========== */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.content-wall-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: 5px 5px 0 var(--brand-blue);
  transition: transform 0.2s, box-shadow 0.2s;
}

.content-wall-item:nth-child(even) {
  box-shadow: 5px 5px 0 var(--brand-pink);
}

.content-wall-item:nth-child(3n) {
  box-shadow: 5px 5px 0 var(--brand-mint);
}

.content-wall-item:hover {
  transform: rotate(-0.5deg) translateY(-4px);
  box-shadow: 9px 9px 0 var(--ink);
}

.content-wall-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2px solid var(--ink);
  display: block;
}

.content-wall-body {
  padding: 22px;
}

.content-wall-body h3 {
  margin-bottom: 6px;
  font-weight: 800;
  font-size: 1.1rem;
}

.content-wall-body p {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ========== FAQ ========== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 2px solid var(--ink);
  border-radius: 18px;
  margin-bottom: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  box-shadow: 4px 4px 0 var(--brand-yellow);
  transition: all 0.2s ease;
}

.faq-item.open {
  box-shadow: 8px 8px 0 var(--brand-pink);
  transform: translate(-2px, -2px);
}

.faq-item .faq-question {
  padding: 18px 22px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.faq-item .faq-question::after {
  content: '＋';
  font-size: 1.4rem;
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  content: '－';
}

.faq-item .faq-answer {
  padding: 0 22px 18px;
  display: none;
  opacity: 0.75;
  border-top: 1px dashed rgba(7, 59, 76, 0.2);
  margin-top: 0;
}

.faq-item.open .faq-answer {
  display: block;
  padding-top: 14px;
  animation: fade-in 0.25s ease;
}

/* ========== CTA 横幅 ========== */
.cta-banner {
  position: relative;
  padding: 64px 24px;
  text-align: center;
  border-radius: 40px;
  background: linear-gradient(135deg, var(--brand-yellow), #FFE29A);
  border: 3px solid var(--ink);
  box-shadow: 14px 14px 0 var(--brand-pink);
  overflow: hidden;
  color: var(--ink);
}

.cta-banner::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  background: repeating-linear-gradient(45deg, var(--brand-blue) 0 8px, transparent 8px 16px);
}

.cta-banner p {
  max-width: 480px;
  margin: 0 auto 28px;
  opacity: 0.75;
  font-weight: 600;
}

.cta-banner h2 {
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 16px;
  text-shadow: 3px 3px 0 rgba(255, 255, 255, 0.6);
}

.cta-banner .btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 5px 5px 0 var(--brand-pink);
}

.cta-banner .btn-primary:hover {
  background: #0a4d64;
}

/* ========== 页脚 ========== */
.site-footer {
  padding: 72px 0 28px;
  background: var(--paper-cool);
  border-top: 3px dashed var(--brand-blue);
  margin-top: 40px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  opacity: 0.65;
  margin-top: 12px;
  max-width: 260px;
  font-size: 0.9rem;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 900;
  margin-bottom: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-left: 12px;
  position: relative;
}

.footer-col h4::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 6px;
  height: 14px;
  background: var(--brand-pink);
  border-radius: 2px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  text-decoration: none;
  color: var(--ink);
  opacity: 0.7;
  font-size: 0.9rem;
  transition: 0.2s;
  border-bottom: 1px solid transparent;
}

.footer-col ul a:hover {
  color: var(--brand-pink);
  border-bottom-color: var(--brand-pink);
  opacity: 1;
}

.footer-bottom {
  border-top: 2px dashed rgba(7, 59, 76, 0.25);
  margin-top: 48px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ========== 工具类 ========== */
.text-accent {
  color: var(--brand-pink);
  font-weight: 800;
  text-decoration: underline wavy var(--brand-yellow);
  text-underline-offset: 4px;
}

.text-center {
  text-align: center;
}

.seo-description {
  max-width: 600px;
  margin: 0 auto 48px;
  opacity: 0.7;
  text-align: center;
}

.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;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: rgba(255, 249, 242, 0.98);
    padding: 24px;
    border-bottom: 2px dashed var(--ink);
    gap: 14px;
    box-shadow: 0 12px 20px rgba(7, 59, 76, 0.08);
  }

  .main-nav.open a {
    padding: 12px 0;
    font-size: 1.1rem;
    border-bottom: 1px dashed rgba(7, 59, 76, 0.2);
  }

  .main-nav.open .nav-cta {
    text-align: center;
    margin-top: 8px;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
  }

  .hero .container {
    gap: 24px;
  }

  .hero-content,
  .hero-image {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .hero-image {
    transform: rotate(1deg);
  }
}

@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: 2.2rem;
  }

  .section {
    padding: 56px 0;
  }

  .container {
    padding: 0 16px;
  }

  .cta-banner {
    padding: 48px 16px;
    border-radius: 28px;
  }
}

/* 无障碍 · 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}