/* =========================================
   免费追剧网站 · mianfeizhuiju.net.cn
   Design System: Candy Neo-Brutalism
   ========================================= */

:root {
  --ink: #2b241f;
  --paper: #faf3ea;
  --card: #fffdf9;
  --coral: #ff4d6d;
  --teal: #20c4b2;
  --lemon: #d4f963;
  --yellow: #ffd166;
  --purple: #9b5cf0;
  --pink: #ff96c5;
  --radius: 24px;
}

*, *::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(circle at 10% 15%, rgba(255, 209, 102, 0.22) 0%, transparent 30%),
    radial-gradient(circle at 90% 75%, rgba(32, 196, 178, 0.18) 0%, transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(255, 77, 109, 0.1) 0%, transparent 40%);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--coral);
  color: #fff;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--paper);
}

::-webkit-scrollbar-thumb {
  background: var(--ink);
  border: 3px solid var(--paper);
  border-radius: 8px;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  text-wrap: balance;
}

/* ================= 核心布局 ================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section:nth-child(even) {
  background: rgba(255, 253, 249, 0.72);
}

/* ================= 顶部导航 ================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 243, 234, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--ink);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  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.25rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 6px 14px 6px 8px;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-1.5deg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.logo:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 5px 5px 0 var(--teal);
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  background: var(--teal);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.main-nav {
  margin-left: auto;
  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 4px;
  position: relative;
  z-index: 1;
}

.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 4px;
  right: 100%;
  bottom: 0;
  height: 8px;
  background: var(--yellow);
  z-index: -1;
  transition: right 0.3s ease;
}

.main-nav a:not(.nav-cta):hover::after {
  right: 4px;
}

.nav-cta {
  padding: 9px 22px;
  border-radius: 100px;
  color: #fff !important;
  font-weight: 800;
  background: var(--coral);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transition: all 0.2s ease;
}

.nav-cta:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
  color: #fff !important;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-toggle:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

/* ================= Hero ================= */
.hero {
  min-height: 70vh;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 40px solid var(--yellow);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '▶';
  position: absolute;
  left: 6%;
  bottom: -30px;
  font-size: 210px;
  line-height: 1;
  color: var(--teal);
  opacity: 0.1;
  transform: rotate(-15deg);
  pointer-events: none;
  z-index: 0;
}

.hero > .container,
.hero .container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-content,
.hero-image {
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1 1 480px;
  max-width: 720px;
}

.hero-image {
  flex: 1 1 380px;
  max-width: 560px;
  border: 2px solid var(--ink);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 10px 10px 0 var(--coral);
  transform: rotate(1deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 14px 14px 0 var(--yellow);
}

.hero-image img {
  width: 100%;
  height: auto;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
  background: var(--lemon);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-2deg);
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.05;
  margin-bottom: 20px;
  font-weight: 900;
  letter-spacing: -2px;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.78;
  max-width: 560px;
  margin-bottom: 32px;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ================= 按钮 ================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid var(--ink);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 5px 5px 0 var(--ink);
}

.btn-primary:hover {
  background: var(--purple);
  color: #fff;
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-outline {
  background: var(--card);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn-outline:hover {
  background: var(--yellow);
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

/* ================= 标签 / 标题 ================= */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 12px;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--teal);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(-1.5deg);
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.1;
  margin-bottom: 14px;
  font-weight: 900;
  letter-spacing: -1px;
  position: relative;
  display: inline-block;
  isolation: isolate;
  z-index: 1;
}

.section-title::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 2px;
  height: 40%;
  background: linear-gradient(90deg, var(--yellow), var(--lemon));
  border-radius: 6px;
  transform: rotate(-0.4deg);
  z-index: -1;
}

.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: 24px;
}

.category-card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:nth-child(odd) {
  transform: rotate(-0.6deg);
}

.category-card:nth-child(even) {
  transform: rotate(0.8deg);
}

.category-card::before {
  content: '';
  position: absolute;
  right: -24px;
  top: -24px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--ink);
  opacity: 0.55;
}

.category-card::after {
  content: '▶';
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 13px;
  color: var(--ink);
}

.category-card:hover {
  transform: translateY(-4px) rotate(0deg) scale(1.02);
  box-shadow: 8px 8px 0 var(--teal);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
  background: linear-gradient(135deg, var(--pink), var(--coral));
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-6deg);
}

.category-card:nth-child(2n) .card-icon {
  background: var(--teal);
  color: var(--ink);
}

.category-card:nth-child(3n) .card-icon {
  background: var(--lemon);
  color: var(--ink);
}

.card-link {
  font-weight: 900;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-bottom: 3px solid var(--coral);
  transition: background 0.2s ease;
}

.card-link:hover {
  background: var(--yellow);
}

/* ================= 特性块 ================= */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-image {
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--coral);
  transform: rotate(-1deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-image:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 12px 12px 0 var(--yellow);
}

.feature-image img {
  width: 100%;
  height: auto;
}

.feature-text .section-title {
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.feature-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.feature-list li::before {
  content: '✓';
  font-weight: 900;
  font-size: 0.7rem;
  width: 24px;
  height: 24px;
  background: var(--lemon);
  border: 2px solid var(--ink);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
  transform: rotate(-4deg);
  box-shadow: 2px 2px 0 var(--ink);
}

/* ================= 数据条 ================= */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 30px 20px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: 5px 5px 0 var(--ink);
}

.stat-item:nth-child(1) {
  border-radius: 24px 44px 24px 24px;
}

.stat-item:nth-child(2) {
  background: var(--yellow);
  transform: rotate(0.4deg);
}

.stat-item:nth-child(3) {
  background: var(--teal);
}

.stat-item:nth-child(4) {
  background: var(--pink);
}

.stat-number {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--ink);
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.75;
  margin-top: 6px;
}

/* ================= 内容墙 ================= */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.content-wall-item {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.content-wall-item:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--coral);
}

.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.04);
}

.content-wall-body {
  padding: 20px;
}

.content-wall-body p {
  opacity: 0.75;
  font-size: 0.9rem;
  margin-top: 8px;
}

/* ================= FAQ ================= */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 18px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 4px 4px 0 rgba(43, 36, 31, 0.18);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 900;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.faq-item.open .faq-question {
  background: var(--yellow);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}

.faq-item.open .faq-question::after {
  content: '–';
}

.faq-answer {
  padding: 0 24px;
  display: none;
  opacity: 0.75;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
  padding: 16px 24px 20px;
  border-top: 2px solid var(--ink);
}

/* ================= CTA 横幅 ================= */
.cta-banner {
  padding: 60px 32px;
  text-align: center;
  border-radius: 40px;
  color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--purple), var(--teal));
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '▶';
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-size: 180px;
  line-height: 1;
  opacity: 0.12;
  transform: rotate(-15deg);
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  opacity: 0.92;
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.cta-banner .btn-primary:hover {
  background: var(--yellow);
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

/* ================= 页脚 ================= */
.site-footer {
  background: var(--card);
  border-top: 2px solid var(--ink);
  padding: 64px 0 28px;
  color: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand > p {
  opacity: 0.75;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-weight: 900;
  margin-bottom: 16px;
  font-size: 1rem;
  letter-spacing: 2px;
}

.footer-col a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.8;
  padding: 4px 0;
  transition: all 0.2s ease;
}

.footer-col a:hover {
  opacity: 1;
  transform: translateX(4px);
  color: var(--coral);
}

.footer-bottom {
  border-top: 2px solid rgba(43, 36, 31, 0.15);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ================= 工具类 ================= */
.text-accent {
  color: var(--coral);
  font-weight: 900;
}

.text-center {
  text-align: center;
}

.seo-description {
  max-width: 600px;
  margin: 0 auto 48px;
  opacity: 0.7;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

/* ================= 响应式 ================= */
@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
    gap: 32px;
  }

  .hero-content,
  .hero-image {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .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: var(--paper);
    padding: 24px;
    border-bottom: 2px solid var(--ink);
    box-shadow: 0 8px 0 rgba(43, 36, 31, 0.12);
    gap: 16px;
    align-items: flex-start;
  }

  .main-nav.open .nav-cta {
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .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.4rem;
    letter-spacing: -1px;
  }

  .section-title {
    font-size: 2rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-banner {
    padding: 40px 20px;
    border-radius: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}