/* ============================================
   玩美x玩媚动漫 — 漫画解构 × 和风纸感 设计系统
   ============================================ */

:root {
  --paper: #FFF9F0;
  --paper-deep: #F5EBDC;
  --ink: #2D2D2D;
  --ink-soft: #555;
  --primary: #FF4D6D;
  --primary-dark: #D63350;
  --secondary: #1E88E5;
  --accent: #FFB300;
  --mint: #00BFA6;
  --line: 2px solid #2D2D2D;
  --line-light: 2px solid rgba(45,45,45,0.15);
  --shadow-hard: 5px 5px 0 rgba(45,45,45,1);
  --shadow-hard-sm: 3px 3px 0 rgba(45,45,45,1);
}

/* ========== 基础重置 ========== */
*, *::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(45,45,45,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  line-height: 1.6;
  font-weight: 500;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--paper);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border: 2px solid var(--ink);
  border-radius: 8px;
}

/* ========== 核心布局 ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section:nth-child(even) {
  background: var(--paper-deep);
}

/* ========== 导航 — 固定顶部 ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,249,240,0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: var(--line);
}

.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.35rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  border: var(--line);
  box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(-4deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  transition: transform 0.2s;
}

.logo:hover .logo-icon {
  animation: logo-pop 0.4s ease;
}

@keyframes logo-pop {
  0%   { transform: rotate(-4deg) scale(1); }
  40%  { transform: rotate(-4deg) scale(1.15); }
  100% { transform: rotate(-4deg) scale(1); }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.main-nav a:not(.nav-cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.main-nav a:hover {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  border: var(--line);
  box-shadow: var(--shadow-hard-sm);
  border-radius: 10px;
  color: #fff !important;
  font-weight: 800;
  padding: 8px 22px !important;
  transition: all 0.15s ease;
}

.nav-cta:hover {
  transform: translate(3px, 3px);
  box-shadow: none;
  color: #fff !important;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow-hard-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink);
  font-weight: 900;
}

/* ========== 首页Hero ========== */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 160px 0 100px;
  position: relative;
  background:
    radial-gradient(circle at 80% 30%, rgba(255,77,109,0.12) 0%, transparent 28%),
    radial-gradient(circle at 85% 70%, rgba(30,136,229,0.12) 0%, transparent 30%),
    radial-gradient(circle at 30% 85%, rgba(0,191,166,0.08) 0%, transparent 25%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 35%;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 14px,
    rgba(30,136,229,0.06) 14px,
    rgba(30,136,229,0.06) 15px
  );
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 20px;
  background: var(--accent);
  border: var(--line);
  box-shadow: var(--shadow-hard-sm);
  transform: rotate(-1.5deg);
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 22px;
  position: relative;
}

.hero h1::after {
  content: '';
  display: block;
  width: 120px;
  height: 8px;
  background: var(--primary);
  border-radius: 4px;
  margin-top: 14px;
  box-shadow: 3px 3px 0 var(--ink);
}

.hero p {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 36px;
  padding-left: 18px;
  border-left: 4px solid var(--secondary);
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  border: var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper-deep);
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(2deg);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 10px 10px 0 var(--ink);
}

.hero-image::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 50%;
  width: 90px;
  height: 26px;
  background: rgba(255,179,0,0.65);
  transform: translateX(-50%) rotate(-2deg);
  border-radius: 3px;
  z-index: 2;
  box-shadow: 1px 1px 0 rgba(0,0,0,0.15);
}

.hero-image::after {
  content: '✦ 漫无止境 ✦';
  position: absolute;
  top: -14px;
  right: -18px;
  background: var(--secondary);
  color: #fff;
  border: var(--line);
  border-radius: 14px;
  padding: 6px 16px;
  font-weight: 800;
  font-size: 0.8rem;
  box-shadow: var(--shadow-hard-sm);
  transform: rotate(4deg);
  z-index: 3;
  white-space: nowrap;
}

.hero-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  border: var(--line);
  text-decoration: none;
  box-shadow: var(--shadow-hard);
  transition: all 0.15s ease;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.btn:hover {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.btn:active {
  transform: translate(4px, 4px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-outline {
  background: var(--paper);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--accent);
}

/* ========== 标签 / 标题 ========== */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 14px;
  color: #fff;
  background: var(--secondary);
  border: var(--line);
  border-radius: 30px;
  padding: 5px 18px;
  box-shadow: var(--shadow-hard-sm);
  transform: rotate(-1deg);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  position: relative;
  line-height: 1.2;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 26px;
  height: 6px;
  background: var(--primary);
  margin-right: 12px;
  vertical-align: 0.2em;
  transform: skewX(-20deg);
}

.section-title::after {
  content: '◆';
  display: inline-block;
  margin-left: 8px;
  color: var(--primary);
  font-size: 0.7em;
  animation: spin 5s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.section-desc {
  max-width: 600px;
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 48px;
}

/* ========== 卡片网格 ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
}

.category-card {
  background: var(--paper);
  border: var(--line);
  border-radius: 18px;
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow-hard);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 14px;
  right: 14px;
  width: 46px;
  height: 46px;
  background: repeating-linear-gradient(
    45deg,
    rgba(45,45,45,0.06) 0,
    rgba(45,45,45,0.06) 2px,
    transparent 2px,
    transparent 5px
  );
  border-radius: 50%;
  z-index: 1;
}

.category-card::after {
  content: '✦';
  position: absolute;
  top: 10px;
  left: 22px;
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform 0.3s ease;
  z-index: 1;
}

.category-card:hover {
  transform: translate(-2px, -4px) rotate(-1deg);
  box-shadow: 8px 8px 0 var(--ink);
}

.category-card:hover::after {
  transform: rotate(90deg) scale(1.3);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--accent);
  border: var(--line);
  box-shadow: 2px 2px 0 var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
  transform: rotate(-3deg);
  position: relative;
  z-index: 2;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--secondary);
  text-decoration: none;
  margin-top: 10px;
  position: relative;
  z-index: 2;
}

.card-link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.card-link:hover::after {
  transform: translateX(5px);
}

/* ========== 特性块 ========== */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-image {
  border: var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--secondary);
  transform: rotate(-1.5deg);
  position: relative;
  background: var(--paper-deep);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-image:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 10px 10px 0 var(--secondary);
}

.feature-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.feature-text {
  padding: 20px 0;
}

.feature-list {
  list-style: none;
  margin-top: 20px;
}

.feature-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.feature-list li::before {
  content: '✓';
  font-weight: 900;
  width: 26px;
  height: 26px;
  background: var(--mint);
  color: #fff;
  border-radius: 50%;
  border: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 1px 1px 0 var(--ink);
  flex-shrink: 0;
  margin-right: 4px;
}

/* ========== 数据条 ========== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  text-align: center;
}

.stat-item {
  background: var(--paper);
  border: var(--line);
  border-radius: 22px;
  padding: 36px 18px;
  box-shadow: var(--shadow-hard);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-item:nth-child(odd) {
  --rot: -1.5deg;
}

.stat-item:nth-child(even) {
  --rot: 1.5deg;
}

.stat-item:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow: var(--shadow-hard);
}

.stat-number {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.1;
  display: inline-block;
  background: linear-gradient(to top, rgba(255,179,0,0.6) 40%, transparent 40%);
  padding: 0 4px;
  letter-spacing: -2px;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 8px;
  display: block;
}

/* ========== 内容墙 ========== */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
}

.content-wall-item {
  background: var(--paper);
  border: var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.content-wall-item:nth-child(3n+1) { transform: rotate(1deg); }
.content-wall-item:nth-child(3n+2) { transform: rotate(-1deg); }
.content-wall-item:nth-child(3n+3) { transform: rotate(0.5deg); }

.content-wall-item:hover {
  transform: translateY(-8px) rotate(0deg);
  box-shadow: var(--shadow-hard);
}

.content-wall-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: var(--line);
}

.content-wall-body {
  padding: 22px;
}

.content-wall-body h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.content-wall-body p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ========== FAQ ========== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--paper);
  border: var(--line);
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.15s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-hard-sm);
}

.faq-item.open {
  box-shadow: var(--shadow-hard);
  transform: translateY(-2px);
}

.faq-question {
  padding: 18px 22px;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question::after {
  content: '＋';
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--secondary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  transform: rotate(135deg);
}

.faq-answer {
  max-height: 0;
  padding: 0 22px;
  overflow: hidden;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.7;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 22px 18px;
}

/* ========== CTA横幅 ========== */
.cta-banner {
  padding: 64px 48px;
  text-align: center;
  border-radius: 24px;
  background: var(--primary);
  color: #fff;
  border: var(--line);
  box-shadow: 10px 10px 0 var(--ink);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: repeating-linear-gradient(
    115deg,
    transparent 0,
    transparent 18px,
    rgba(255,255,255,0.08) 18px,
    rgba(255,255,255,0.08) 22px
  );
  pointer-events: none;
}

.cta-banner h2 {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 14px;
  color: #fff;
}

.cta-banner h2::after {
  content: none;
}

.cta-banner p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--primary-dark) !important;
  border: var(--line);
  box-shadow: 4px 4px 0 var(--ink);
}

.cta-banner .btn-primary:hover {
  transform: translate(4px, 4px);
  box-shadow: none;
}

/* ========== 页脚 ========== */
.site-footer {
  background: var(--paper-deep);
  border-top: var(--line);
  padding: 64px 0 28px;
  position: relative;
  margin-top: 20px;
}

.site-footer::after {
  content: '玩美';
  position: absolute;
  right: 60px;
  top: 44px;
  width: 58px;
  height: 58px;
  border: 3px solid var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 900;
  font-size: 0.9rem;
  transform: rotate(10deg);
  opacity: 0.5;
  pointer-events: none;
  letter-spacing: 2px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
}

.footer-brand .logo {
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  display: block;
  width: 22px;
  height: 3px;
  background: var(--primary);
  margin-top: 5px;
  border-radius: 3px;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col a:hover {
  color: var(--primary);
  transform: translateX(4px);
  font-weight: 700;
}

.footer-bottom {
  border-top: var(--line-light);
  margin-top: 48px;
  padding-top: 22px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ========== 工具类 ========== */
.text-accent {
  color: var(--primary);
}

.text-center {
  text-align: center;
}

.seo-description {
  max-width: 600px;
  margin: 0 auto 48px;
  color: var(--ink-soft);
  line-height: 1.7;
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .hero-image::after {
    display: none;
  }

  .site-footer::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 64px;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--paper);
    border-bottom: var(--line);
    padding: 20px 24px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    gap: 4px;
    align-items: flex-start;
  }

  .main-nav.open a {
    display: block;
    width: 100%;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(45,45,45,0.1);
    font-size: 1rem;
  }

  .main-nav.open .nav-cta {
    margin-top: 12px;
    text-align: center;
    border: var(--line);
  }

  .hero {
    padding: 130px 0 70px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-image img {
    height: 300px;
  }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-image img {
    height: 280px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .cta-banner {
    padding: 48px 24px;
  }

  .cta-banner h2 {
    font-size: 1.7rem;
  }

  .footer-bottom {
    margin-top: 32px;
  }
}

@media (max-width: 480px) {
  .cards-grid,
  .content-wall,
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero h1::after {
    width: 80px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section {
    padding: 60px 0;
  }

  .stat-number {
    font-size: 2.4rem;
  }

  .cta-banner {
    border-radius: 16px;
    box-shadow: 6px 6px 0 var(--ink);
    padding: 40px 20px;
  }

  .footer-bottom {
    font-size: 0.75rem;
  }
}