/* ========================================
   ACFun流鼻血 — 设计系统
   "Editorial Red Drip" 编辑部红滴风
   ======================================== */

/* ---------- 基础重置 ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-main: #FAF7F2;
  --bg-alt: #F2E8E1;
  --accent: #E63946;
  --accent-deep: #C12736;
  --accent-light: #FFD9D5;
  --text: #2B2118;
  --text-muted: #7A6E66;
  --card-bg: #FFFFFF;
  --border: rgba(43, 33, 24, 0.07);
  --shadow: 0 4px 20px rgba(43, 33, 24, 0.06);
  --radius: 20px 20px 8px 20px;
  --radius-small: 16px 16px 6px 16px;
}

body {
  font-family: system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  overflow-x: hidden;
  background-color: var(--bg-main);
  background-image: radial-gradient(rgba(43, 33, 24, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--text);
  line-height: 1.6;
}

::selection {
  background: var(--accent);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  border-radius: 10px;
}

/* ---------- 核心布局 ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section:nth-child(even) {
  background: var(--bg-alt);
}

/* ---------- 导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.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.2rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.3px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 50% 50% 50% 8px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.35);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
  padding: 8px 2px;
  position: relative;
}

.main-nav a:hover {
  color: var(--accent);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s;
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px !important;
  border-radius: var(--radius-small) !important;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.85rem !important;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.3);
  transition: transform 0.25s, box-shadow 0.25s !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(230, 57, 70, 0.4);
}

.nav-cta::after {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: background 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 75vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--bg-main) 0%, var(--bg-alt) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(43, 33, 24, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(43, 33, 24, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 56px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 20px 20px 20px 6px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.25);
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 22px;
  letter-spacing: -1.5px;
}

.hero h1 .accent-word {
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}

.hero h1 .accent-word::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 25%;
  width: 10px;
  height: 16px;
  background: var(--accent);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  opacity: 0.85;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.75;
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-image {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.hero-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 0 0 20px 20px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-small);
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.25s;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(230, 57, 70, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--text);
  color: var(--text);
  border-radius: 16px 16px 6px 16px;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- 区块标签/标题 ---------- */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--accent);
}

.section-title {
  font-size: 2.1rem;
  font-weight: 900;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  line-height: 1.2;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 44px;
  height: 5px;
  background: var(--accent);
  border-radius: 5px 5px 5px 2px;
  margin-top: 10px;
}

.text-center .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

.section-desc {
  max-width: 600px;
  opacity: 0.75;
  margin-bottom: 48px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.text-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 卡片网格 ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.category-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 10px rgba(43, 33, 24, 0.04);
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 20px 20px 0 0;
  opacity: 0.9;
}

.category-card:nth-child(odd) {
  transform: rotate(-0.6deg);
}

.category-card:nth-child(even) {
  transform: rotate(0.4deg);
}

.category-card:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 0 12px 30px rgba(43, 33, 24, 0.1);
  border-color: rgba(230, 57, 70, 0.25);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px 14px 14px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
  background: var(--accent-light);
  color: var(--accent);
}

.card-link {
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
}

.card-link::after {
  content: '→';
  display: inline-block;
  transition: transform 0.25s;
  margin-left: 4px;
}

.card-link:hover::after {
  transform: translateX(5px);
}

/* ---------- 特性块 ---------- */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.feature-image::before {
  content: '';
  position: absolute;
  top: -14px;
  left: -14px;
  width: 100%;
  height: 100%;
  border: 2px dashed rgba(230, 57, 70, 0.3);
  border-radius: var(--radius);
  z-index: -1;
}

.feature-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--accent);
  border-radius: 0 0 20px 20px;
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-list {
  list-style: none;
  margin-top: 24px;
}

.feature-list li {
  padding: 9px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px dashed rgba(43, 33, 24, 0.08);
  font-size: 0.95rem;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: '✓';
  font-weight: 700;
  color: var(--accent);
}

/* ---------- 数据条 ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 32px 20px 36px;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(43, 33, 24, 0.04);
  position: relative;
  overflow: hidden;
}

.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px 3px 3px 1px;
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -2px;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 10px;
}

/* ---------- 内容墙 ---------- */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.content-wall-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: all 0.35s ease;
  box-shadow: 0 2px 10px rgba(43, 33, 24, 0.03);
}

.content-wall-item:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 0 14px 32px rgba(43, 33, 24, 0.12);
  border-color: rgba(230, 57, 70, 0.15);
}

.content-wall-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.content-wall-item:hover img {
  transform: scale(1.05);
}

.content-wall-body {
  padding: 22px;
}

.content-wall-body h3 {
  font-weight: 700;
  margin-bottom: 8px;
}

.content-wall-body p {
  font-size: 0.9rem;
  opacity: 0.7;
  line-height: 1.6;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  margin-bottom: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--card-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
  border-color: rgba(230, 57, 70, 0.3);
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.06);
}

.faq-item.open {
  border-color: rgba(230, 57, 70, 0.3);
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.08);
}

.faq-item .faq-question {
  padding: 18px 22px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
}

.faq-item .faq-question::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform 0.3s;
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  background: var(--accent-light);
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding: 0 22px 20px;
  display: none;
  opacity: 0.8;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- CTA横幅 ---------- */
.cta-banner {
  padding: 64px 24px;
  text-align: center;
  border-radius: 24px 24px 12px 24px;
  background: linear-gradient(135deg, var(--accent) 0%, #FF6B6B 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(230, 57, 70, 0.3);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -50px;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.cta-banner h2 {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 900;
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto 28px;
  max-width: 480px;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.cta-banner .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ---------- 页脚 ---------- */
.site-footer {
  padding: 64px 0 32px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .logo {
  margin-bottom: 14px;
}

.footer-brand p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text);
}

.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(43, 33, 24, 0.07);
  margin-top: 48px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- 工具类 ---------- */
.text-accent {
  color: var(--accent) !important;
}

.text-center {
  text-align: center;
}

.seo-description {
  max-width: 600px;
  margin: 0 auto 48px;
  opacity: 0.75;
  line-height: 1.7;
}

.mt-0 {
  margin-top: 0 !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .feature-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .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: 72px;
    left: 0;
    width: 100%;
    background: var(--bg-main);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    align-items: flex-start;
  }

  .hero .container {
    flex-direction: column;
    gap: 32px;
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .cta-banner h2 {
    font-size: 1.6rem;
  }
}

@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;
    align-items: stretch;
  }

  .hero-buttons .btn {
    justify-content: center;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .footer-grid {
    gap: 32px;
  }
}