/* =====================================================
   仙逆在线观看 ·「朱砂云笺」设计系统
   Ink-on-paper editorial · Awwwards-inspired
   Light & Warm · Cinnabar / Jade / Gold on Rice Paper
   ===================================================== */

:root {
  --paper: #faf6ef;
  --paper-deep: #f2ecdf;
  --ink: #27221c;
  --ink-soft: #5c5549;
  --cinnabar: #c73e2e;
  --cinnabar-deep: #a83326;
  --jade: #2f7d6b;
  --jade-pale: #e4efe8;
  --gold: #b5905a;
  --gold-pale: #f3ead8;
  --white: #fffdf8;
  --line: rgba(39, 34, 28, 0.12);
  --shadow-1: 0 2px 10px rgba(39, 34, 28, 0.05);
  --shadow-2: 0 20px 50px rgba(39, 34, 28, 0.09);
}

/* ---------- 基础重置 ---------- */
*, *::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(39, 34, 28, 0.03) 1px, transparent 1px);
  background-size: 26px 26px;
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '仙逆';
  position: fixed;
  right: -40px;
  bottom: -60px;
  font-family: Georgia, 'Songti SC', 'STSong', serif;
  font-size: 20rem;
  font-weight: 900;
  color: rgba(39, 34, 28, 0.025);
  pointer-events: none;
  z-index: 0;
  letter-spacing: 0.08em;
}

::selection {
  background: var(--cinnabar);
  color: #fff;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb {
  background: rgba(39, 34, 28, 0.22);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--cinnabar); }

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: Georgia, 'Songti SC', 'STSong', 'SimSun', serif;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

/* ---------- 核心布局 ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199, 62, 46, 0.18), transparent);
  pointer-events: none;
}

.section:nth-child(even) {
  background: var(--paper-deep);
  background-image: radial-gradient(rgba(39, 34, 28, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
}

.section > .container {
  position: relative;
  z-index: 1;
}

/* ---------- 导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--cinnabar) 0%, var(--cinnabar) 55%, var(--gold) 100%);
  z-index: 1;
}

.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-family: Georgia, 'Songti SC', 'STSong', 'SimSun', serif;
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ink);
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  background: var(--cinnabar);
  color: #fff;
  box-shadow: 0 4px 14px rgba(199, 62, 46, 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(--ink);
  padding: 5px 0;
  position: relative;
  transition: color 0.2s ease;
}

.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--cinnabar);
  transition: width 0.3s ease;
}

.main-nav a:not(.nav-cta):hover::after {
  width: 100%;
}

.main-nav a:hover { color: var(--cinnabar); }

.nav-cta {
  padding: 9px 22px;
  border-radius: 3px;
  color: #fff !important;
  font-weight: 600;
  background: var(--cinnabar);
  box-shadow: 0 4px 14px rgba(199, 62, 46, 0.28);
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--cinnabar-deep);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  padding: 0 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- 首页Hero ---------- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 88% 18%, rgba(181, 144, 90, 0.14), transparent 55%),
    radial-gradient(ellipse at 6% 92%, rgba(47, 125, 107, 0.1), transparent 50%);
}

.hero::after {
  content: '仙逆 · 免费看';
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  font-family: Georgia, 'Songti SC', 'STSong', serif;
  font-size: 3.2rem;
  font-weight: 900;
  color: rgba(39, 34, 28, 0.08);
  -webkit-text-stroke: 1px rgba(39, 34, 28, 0.12);
  writing-mode: vertical-rl;
  letter-spacing: 0.35em;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.hero > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1 1 auto;
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  padding: 6px 16px;
  border-radius: 3px;
  margin-bottom: 20px;
  background: var(--cinnabar);
  color: #fff;
  box-shadow: 0 4px 14px rgba(199, 62, 46, 0.3);
  text-transform: uppercase;
}

.hero h1 {
  font-size: 3.2rem;
  line-height: 1.22;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.hero h1::after {
  content: '';
  display: block;
  width: 96px;
  height: 5px;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold));
  margin-top: 20px;
  border-radius: 3px;
}

.hero p {
  font-size: 1.08rem;
  opacity: 0.68;
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 0 0 auto;
  width: min(420px, 36vw);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-2);
  border: 10px solid var(--white);
  transform: rotate(2.5deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-image:hover {
  transform: rotate(0deg) scale(1.01);
  box-shadow: 0 28px 64px rgba(39, 34, 28, 0.14);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--cinnabar);
  color: #fff;
  box-shadow: 0 8px 22px rgba(199, 62, 46, 0.28);
}

.btn-primary:hover {
  background: var(--cinnabar-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(199, 62, 46, 0.34);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

/* ---------- 标签 / 标题 ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--cinnabar);
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(199, 62, 46, 0.35);
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 14px;
  color: var(--ink);
  letter-spacing: 0.03em;
}

.section-desc {
  max-width: 600px;
  opacity: 0.68;
  margin-bottom: 44px;
  font-size: 1rem;
  line-height: 1.8;
}

/* ---------- 卡片网格 ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.category-card {
  position: relative;
  border-radius: 4px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: rgba(199, 62, 46, 0.3);
}

.category-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--jade-pale);
  color: var(--jade);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--cinnabar);
  transition: gap 0.2s ease;
}

.card-link:hover { gap: 8px; }

/* ---------- 特性块 ---------- */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-image {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-2);
}

.feature-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(39, 34, 28, 0.08);
  border-radius: 4px;
  pointer-events: none;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.feature-text h3 {
  font-size: 1.7rem;
  margin-bottom: 14px;
  color: var(--ink);
}

.feature-text > p {
  opacity: 0.65;
  margin-bottom: 22px;
  line-height: 1.8;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  padding: 7px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.feature-list li::before {
  content: '✓';
  font-weight: 700;
  color: #fff;
  background: var(--jade);
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  flex-shrink: 0;
}

/* ---------- 数据条 ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  position: relative;
  padding: 32px 24px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 3px;
  background: var(--gold);
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}

.stat-number {
  font-family: Georgia, 'Songti SC', 'STSong', serif;
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--cinnabar);
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.62;
  margin-top: 8px;
  letter-spacing: 0.1em;
}

/* ---------- 内容墙 ---------- */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.content-wall-item {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-wall-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}

.content-wall-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.content-wall-item:hover img {
  transform: scale(1.05);
}

.content-wall-body {
  padding: 22px;
}

.content-wall-body h4 {
  font-family: Georgia, 'Songti SC', 'STSong', serif;
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}

.content-wall-body p {
  font-size: 0.88rem;
  opacity: 0.6;
  line-height: 1.65;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-bottom: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--white);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(199, 62, 46, 0.3);
}

.faq-item.open {
  border-color: rgba(199, 62, 46, 0.4);
  box-shadow: var(--shadow-1);
}

.faq-item .faq-question {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 0.98rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--ink);
}

.faq-item .faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--cinnabar);
  line-height: 1;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding: 0 22px 18px;
  display: none;
  opacity: 0.68;
  font-size: 0.93rem;
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ---------- CTA横幅 ---------- */
.cta-banner {
  position: relative;
  padding: 64px 48px;
  text-align: center;
  border-radius: 4px;
  color: #fff;
  background: linear-gradient(120deg, #b73528 0%, #c73e2e 55%, #d1713e 130%);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(199, 62, 46, 0.28);
}

.cta-banner::before {
  content: '仙';
  position: absolute;
  right: -10px;
  bottom: -50px;
  font-family: Georgia, 'Songti SC', 'STSong', serif;
  font-size: 12rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.08);
  line-height: 1;
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.cta-banner h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  position: relative;
  z-index: 1;
  opacity: 0.88;
  margin-bottom: 26px;
  font-size: 1rem;
}

.cta-banner .btn-primary {
  position: relative;
  z-index: 1;
  background: #fff;
  color: var(--cinnabar) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta-banner .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

/* ---------- 页脚 ---------- */
.site-footer {
  padding: 64px 0 28px;
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-brand p {
  opacity: 0.62;
  font-size: 0.9rem;
  max-width: 260px;
  line-height: 1.7;
}

.footer-col h5 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
  color: var(--cinnabar);
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  padding: 4px 0;
}

.footer-col ul a {
  text-decoration: none;
  font-size: 0.88rem;
  opacity: 0.65;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-col ul a:hover {
  opacity: 1;
  color: var(--cinnabar);
}

.footer-bottom {
  border-top: 1px solid rgba(39, 34, 28, 0.12);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.58;
  letter-spacing: 0.04em;
}

/* ---------- 工具类 ---------- */
.text-accent {
  color: transparent;
  background: linear-gradient(120deg, var(--cinnabar) 0%, #d9823e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 800;
}

.text-center {
  text-align: center;
}

.seo-description {
  max-width: 600px;
  margin: 0 auto 48px;
  opacity: 0.7;
  text-align: center;
  font-size: 0.96rem;
  line-height: 1.8;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .hero::after {
    display: none;
  }

  .hero > .container {
    flex-direction: column;
    gap: 40px;
    padding-top: 76px;
  }

  .hero-image {
    width: 100%;
    transform: rotate(0deg);
  }

  .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;
    gap: 18px;
    box-shadow: var(--shadow-2);
    border-bottom: 1px solid var(--line);
  }

  .section-title {
    font-size: 1.9rem;
  }

  .cta-banner {
    padding: 48px 28px;
  }
}

@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-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .section-title {
    font-size: 1.6rem;
  }
}