/* ============================================================
   黑料社 | 编辑·纸张·印章设计系统
   风格：墨印档案 / Editorial Paper Archive
   ============================================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --paper: #FDF8F2;
  --paper-deep: #F1E5D7;
  --paper-bright: #FFFCF7;
  --ink: #1B2836;
  --ink-soft: #5F6C7B;
  --seal: #E5383E;
  --seal-dark: #BA1826;
  --sand: #C49A6C;
  --line: rgba(27, 40, 54, 0.12);
  --line-strong: rgba(27, 40, 54, 0.35);
  --shadow: 0 24px 48px -16px rgba(27, 40, 54, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.7;
  font-size: 16px;
}

::selection {
  background: rgba(229, 56, 62, 0.22);
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--paper);
}
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--seal);
}

/* 标题使用衬线字体系 —— 编辑部印刷感 */
h1, h2, h3, h4, h5,
.logo,
.hero h1,
.section-title,
.stat-number,
.faq-question {
  font-family: Georgia, 'Times New Roman', 'Songti SC', 'STSong', 'SimSun', serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* ============================================================
   核心布局
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 88px 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(253, 248, 242, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 2px 24px rgba(27, 40, 54, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--ink);
  font-family: Georgia, 'Songti SC', serif;
  letter-spacing: 0.02em;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 3px;
  background: var(--seal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  font-family: system-ui, sans-serif;
  letter-spacing: 0;
  box-shadow: 2px 2px 0 var(--ink);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--ink);
  padding: 6px 2px;
  margin: 0 10px;
  border-bottom: 2px solid transparent;
  transition: all 0.25s ease;
}

.main-nav a:hover {
  color: var(--seal);
  border-bottom-color: var(--seal);
}

.main-nav a.active {
  color: var(--seal);
  border-bottom-color: var(--seal);
}

.nav-cta {
  background: var(--seal);
  color: #fff !important;
  border-radius: 2px;
  padding: 10px 22px !important;
  margin: 0 0 0 12px !important;
  border-bottom: none !important;
  box-shadow: 3px 3px 0 var(--ink);
  transition: all 0.25s ease !important;
}

.nav-cta:hover {
  background: var(--seal-dark);
  color: #fff !important;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.menu-toggle {
  display: none;
}

/* ============================================================
   Hero —— 点阵稿纸背景 + 记号笔高亮标题
   ============================================================ */
.hero {
  min-height: 72vh;
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 96px 0 48px;
  position: relative;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
}

.hero-content {
  flex: 1;
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 4px;
  padding: 6px 18px 6px 14px;
  background: var(--seal);
  color: #fff;
  border-radius: 999px 2px 2px 999px;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--ink);
  display: inline-block;
  position: relative;
  z-index: 0;
}

.hero h1::after {
  content: '';
  position: absolute;
  inset: 0.12em -4px -0.06em -4px;
  background: rgba(229, 56, 62, 0.18);
  z-index: -1;
  transform: rotate(-1.2deg);
  border-radius: 2px;
}

.hero p {
  font-size: 1.12rem;
  line-height: 1.95;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-image {
  border-radius: 2px;
  overflow: hidden;
  border: 12px solid var(--paper-bright);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  position: relative;
  flex-shrink: 0;
  max-width: 44%;
  transition: transform 0.4s ease;
}

.hero-image:hover {
  transform: rotate(0deg);
}

.hero-image::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  background: var(--seal);
  border-radius: 50%;
  border: 2px solid var(--paper-bright);
  opacity: 0.9;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   按钮 —— 硬边框印章按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 2px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--seal);
  color: #fff;
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-primary:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper-bright);
  box-shadow: 4px 4px 0 var(--seal);
  transform: translate(-2px, -2px);
}

/* ============================================================
   标签 / 标题
   ============================================================ */
.section-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 4px;
  padding: 5px 16px;
  margin-bottom: 16px;
  border: 1.5px solid var(--seal);
  color: var(--seal);
  border-radius: 2px;
  text-transform: uppercase;
  background: rgba(229, 56, 62, 0.04);
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 14px;
  color: var(--ink);
  line-height: 1.2;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--seal);
  margin-top: 14px;
}

.section-title.text-center::after {
  margin-left: auto;
  margin-right: auto;
}

.section-desc {
  max-width: 620px;
  color: var(--ink-soft);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

/* ============================================================
   卡片网格 —— 档案卡卷角
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.category-card {
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 32px 28px 26px;
  position: relative;
  box-shadow: 0 2px 10px rgba(27, 40, 54, 0.04);
  transition: all 0.3s ease;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  border-style: solid;
  border-width: 0 30px 30px 0;
  border-color: transparent rgba(27, 40, 54, 0.18) transparent transparent;
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.category-card:hover::before {
  border-color: transparent var(--seal) transparent transparent;
  opacity: 0.5;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 2px;
  background: var(--paper);
  color: var(--seal);
  font-size: 1.3rem;
  margin-bottom: 18px;
  border-bottom: 3px solid var(--seal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--seal);
  padding-bottom: 2px;
  margin-top: 14px;
  transition: all 0.25s ease;
}

.card-link:hover {
  color: var(--seal);
  gap: 12px;
}

/* ============================================================
   特性块
   ============================================================ */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-image {
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 10px solid var(--paper-bright);
  transform: rotate(-1.5deg);
  transition: transform 0.4s ease;
}

.feature-image:hover {
  transform: rotate(0deg);
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(60%);
  transition: filter 0.5s ease;
}

.feature-image:hover img {
  filter: grayscale(0);
}

.feature-text {
  font-size: 1.05rem;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  padding: 10px 0;
  color: var(--ink);
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-list li::before {
  content: '✓';
  font-weight: 900;
  color: var(--seal);
  background: rgba(229, 56, 62, 0.08);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   数据条
   ============================================================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 34px 16px;
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-top: 4px solid var(--seal);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 3.4rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  font-family: Georgia, 'Times New Roman', 'Songti SC', serif;
}

.stat-label {
  font-size: 0.78rem;
  letter-spacing: 2px;
  color: var(--ink-soft);
  margin-top: 10px;
  text-transform: uppercase;
  font-weight: 600;
}

/* ============================================================
   内容墙 —— 从灰度到彩色
   ============================================================ */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.content-wall-item {
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.content-wall-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.content-wall-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  transition: filter 0.5s ease;
  display: block;
}

.content-wall-item:hover img {
  filter: grayscale(0) contrast(1);
}

.content-wall-body {
  padding: 22px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  border-radius: 0;
  margin-bottom: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--paper-bright);
  transition: all 0.3s ease;
}

.faq-item.open {
  border-left-color: var(--seal);
  box-shadow: var(--shadow);
}

.faq-item .faq-question {
  padding: 18px 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: Georgia, 'Songti SC', serif;
  font-size: 1.05rem;
  color: var(--ink);
}

.faq-item .faq-question::after {
  content: '＋';
  font-size: 1.2rem;
  color: var(--seal);
  font-weight: 400;
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-question::after {
  content: '－';
}

.faq-item .faq-answer {
  padding: 14px 22px 20px;
  display: none;
  color: var(--ink-soft);
  line-height: 1.85;
  border-top: 1px dashed var(--line);
  font-size: 0.95rem;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ============================================================
   CTA 横幅
   ============================================================ */
.cta-banner {
  padding: 64px 32px;
  text-align: center;
  border-radius: 2px;
  color: #fff;
  background: var(--seal);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(255, 255, 255, 0.08) 8px,
    rgba(255, 255, 255, 0.08) 16px
  );
  pointer-events: none;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 14px;
  font-size: 2.2rem;
  position: relative;
  z-index: 1;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--seal);
  box-shadow: 4px 4px 0 rgba(27, 40, 54, 0.35);
  position: relative;
  z-index: 1;
}

.cta-banner .btn-primary:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(27, 40, 54, 0.35);
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  background: var(--paper-deep);
  border-top: 3px double var(--ink);
  padding: 64px 0 32px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.site-footer .container {
  max-width: 1200px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .logo {
  font-size: 1.7rem;
  color: var(--ink);
}

.footer-brand p {
  margin-top: 16px;
  line-height: 1.9;
  max-width: 260px;
}

.footer-col h4 {
  font-family: Georgia, 'Songti SC', serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 18px;
  letter-spacing: 1px;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(27, 40, 54, 0.15);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.footer-col a:hover {
  color: var(--seal);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(27, 40, 54, 0.15);
  margin-top: 48px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
  letter-spacing: 1px;
}

/* ============================================================
   工具类
   ============================================================ */
.text-accent {
  color: var(--seal);
  font-family: Georgia, 'Songti SC', serif;
  font-weight: 700;
}

.text-center {
  text-align: center;
}

.seo-description {
  max-width: 600px;
  margin: 0 auto 48px;
  color: var(--ink-soft);
  line-height: 1.9;
}

.mt-0 {
  margin-top: 0 !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 768px) {
  .feature-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: 1.5px solid var(--ink);
    border-radius: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--ink);
    cursor: pointer;
    box-shadow: 2px 2px 0 var(--ink);
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: var(--paper);
    padding: 28px 32px;
    gap: 14px;
    box-shadow: 0 16px 32px rgba(27, 40, 54, 0.12);
    border-bottom: 3px solid var(--seal);
  }

  .main-nav.open a {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    margin: 0;
    font-size: 1rem;
  }

  .main-nav.open .nav-cta {
    border-bottom: none !important;
    background: var(--seal);
    color: #fff !important;
    padding: 12px 20px !important;
    text-align: center;
    margin-top: 8px;
    width: auto;
  }

  .hero {
    flex-direction: column;
    gap: 40px;
    padding-top: 96px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-image {
    max-width: 100%;
    transform: rotate(0deg);
  }

  .nav-cta {
    display: none;
  }
}

@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: 2.4rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .container {
    padding: 0 20px;
  }
}