/* ============================================================
   淫院小妹 — 免费看片网页
   Design System: "纸墨庭院" — 编辑杂志风 × 东方留白 × 朱砂点缀
   域名：yinyuanxiaomei.net.cn
   ============================================================ */

/* 基础重置 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  overflow-x: hidden;
  background-color: #FAF7F2;       /* 米白底色 */
  color: #2B2823;                  /* 深暖灰 */
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.01em;
}

::selection {
  background: #E85D3D;
  color: #FAF7F2;
}

/* ============================================================
   核心布局
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section:nth-child(even) {
  background: #F2EDE6;  /* 暖灰米色 */
}

.section::before {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, #E85D3D, #E8A87C);
  border-radius: 4px;
  margin: 0 auto 40px;
}

.section:first-of-type::before {
  display: none;
}

/* ============================================================
   导航 — 固定顶部，纸张质感
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(43, 40, 35, 0.08);
  transition: all 0.3s ease;
}

.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: 12px;
  font-weight: 800;
  font-size: 1.35rem;
  text-decoration: none;
  color: #2B2823;
  letter-spacing: 0.02em;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 4px;  /* 方形印章感 */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #E85D3D, #D94A2A);
  color: #FAF7F2;
  box-shadow: 0 2px 8px rgba(232, 93, 61, 0.35);
  transform: rotate(-3deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: 0.2s;
  color: #2B2823;
  position: relative;
  padding: 4px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #E85D3D;
  transition: width 0.25s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav a:hover {
  color: #E85D3D;
}

.nav-cta {
  padding: 10px 24px;
  border-radius: 4px;
  color: #FAF7F2 !important;
  font-weight: 700;
  background: #2B2823;
  position: relative;
  transition: all 0.25s ease;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: #E85D3D;
  color: #FAF7F2 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 93, 61, 0.3);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(43, 40, 35, 0.2);
  border-radius: 4px;
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  color: #2B2823;
}

/* ============================================================
   Hero — 杂志封面式排版
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #FAF7F2 0%, #F2E6DA 50%, #E8D5C1 100%);
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 93, 61, 0.15), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '✦';
  position: absolute;
  font-size: 12rem;
  color: rgba(232, 93, 61, 0.06);
  right: 60px;
  bottom: 40px;
  font-family: serif;
  line-height: 1;
  pointer-events: none;
}

.hero-content {
  max-width: 780px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 6px 18px;
  border-radius: 3px;
  margin-bottom: 24px;
  background: #2B2823;
  color: #FAF7F2;
  text-transform: uppercase;
  box-shadow: 0 2px 0 rgba(232, 93, 61, 0.4);
}

.hero h1 {
  font-size: 4.2rem;
  line-height: 1.08;
  margin-bottom: 20px;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #2B2823;
}

.hero h1 .text-accent {
  color: #E85D3D;
  position: relative;
  display: inline-block;
}

.hero h1 .text-accent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 10px;
  background: rgba(232, 93, 61, 0.15);
  z-index: -1;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.75;
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.9;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-image {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(43, 40, 35, 0.12);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.25s ease;
  letter-spacing: 0.03em;
}

.btn-primary {
  background: #E85D3D;
  color: #FAF7F2;
  box-shadow: 0 4px 12px rgba(232, 93, 61, 0.3);
}

.btn-primary:hover {
  background: #C74A2C;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(232, 93, 61, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid #2B2823;
  color: #2B2823;
}

.btn-outline:hover {
  background: #2B2823;
  color: #FAF7F2;
  transform: translateY(-3px);
}

/* ============================================================
   标签 / 标题 — 编辑杂志风
   ============================================================ */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 4px;
  margin-bottom: 14px;
  text-transform: uppercase;
  color: #E85D3D;
  writing-mode: horizontal-tb;
  border-left: 3px solid #E85D3D;
  padding-left: 12px;
}

.section-title {
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #2B2823;
}

.section-desc {
  max-width: 620px;
  font-size: 1rem;
  opacity: 0.65;
  margin-bottom: 48px;
  line-height: 1.9;
}

/* ============================================================
   卡片网格 — 纸张层叠感
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.category-card {
  border-radius: 4px;
  padding: 32px 28px;
  background: #FFFFFF;
  border: 1px solid rgba(43, 40, 35, 0.08);
  box-shadow: 4px 4px 0 rgba(43, 40, 35, 0.04);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #E85D3D, #E8A87C, transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.category-card:hover {
  transform: translateY(-4px) rotate(-0.3deg);
  box-shadow: 8px 8px 0 rgba(43, 40, 35, 0.06), 0 8px 24px rgba(43, 40, 35, 0.06);
  border-color: rgba(232, 93, 61, 0.25);
}

.category-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
  background: linear-gradient(135deg, #FDF6F0, #F7E8DF);
  color: #E85D3D;
  border: 1px solid rgba(232, 93, 61, 0.15);
}

.category-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #2B2823;
}

.category-card p {
  font-size: 0.9rem;
  opacity: 0.6;
  margin-bottom: 16px;
  line-height: 1.8;
}

.card-link {
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  color: #E85D3D;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.card-link:hover {
  gap: 12px;
}

/* ============================================================
   特性块 — 左右分栏
   ============================================================ */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-image {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 8px 8px 0 rgba(43, 40, 35, 0.05), 0 20px 40px rgba(43, 40, 35, 0.08);
  position: relative;
  background: linear-gradient(135deg, #F2E6DA, #E8D5C1);
  padding: 20px;
}

.feature-image::before {
  content: '✦';
  position: absolute;
  top: 12px;
  right: 16px;
  color: #E85D3D;
  font-size: 1.2rem;
  opacity: 0.7;
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.feature-text h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
}

.feature-text > p {
  font-size: 1rem;
  opacity: 0.7;
  margin-bottom: 24px;
  line-height: 1.9;
}

.feature-list {
  list-style: none;
  margin-top: 8px;
}

.feature-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  border-bottom: 1px dashed rgba(43, 40, 35, 0.08);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: '✓';
  font-weight: 900;
  color: #E85D3D;
  background: rgba(232, 93, 61, 0.1);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ============================================================
   数据条 — 统计栏
   ============================================================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 36px 24px;
  border-radius: 4px;
  border: 1px solid rgba(43, 40, 35, 0.08);
  background: #FFFFFF;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 4px 4px 0 rgba(43, 40, 35, 0.03);
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 rgba(232, 93, 61, 0.1);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: #2B2823;
  line-height: 1.1;
  font-family: serif;
  letter-spacing: -0.02em;
}

.stat-number::after {
  content: '+';
  color: #E85D3D;
  font-size: 1.8rem;
  vertical-align: top;
  margin-left: 2px;
  font-weight: 700;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.55;
  margin-top: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ============================================================
   内容墙 — 瀑布砖墙布局
   ============================================================ */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.content-wall-item {
  border-radius: 4px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid rgba(43, 40, 35, 0.08);
  transition: all 0.3s ease;
  box-shadow: 4px 4px 0 rgba(43, 40, 35, 0.03);
  position: relative;
}

.content-wall-item:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 8px 8px 0 rgba(232, 93, 61, 0.1), 0 16px 32px rgba(43, 40, 35, 0.08);
}

.content-wall-item::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #E85D3D 50%, transparent 51%);
  z-index: 1;
  opacity: 0.9;
}

.content-wall-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.content-wall-item:hover img {
  transform: scale(1.04);
}

.content-wall-body {
  padding: 24px;
  position: relative;
  z-index: 2;
}

.content-wall-body h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #2B2823;
}

.content-wall-body p {
  font-size: 0.88rem;
  opacity: 0.6;
  line-height: 1.8;
  margin-bottom: 12px;
}

.content-wall-body .card-link {
  font-size: 0.82rem;
}

/* ============================================================
   FAQ — 手风琴
   ============================================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.faq-list::before {
  content: '“”';
  position: absolute;
  top: -70px;
  left: -20px;
  font-size: 6rem;
  color: rgba(232, 93, 61, 0.08);
  font-family: serif;
  line-height: 1;
}

.faq-item {
  border: 1px solid rgba(43, 40, 35, 0.1);
  border-radius: 4px;
  margin-bottom: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #FFFFFF;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.faq-item:hover {
  border-color: rgba(232, 93, 61, 0.3);
}

.faq-item.open {
  border-color: #E85D3D;
  box-shadow: 4px 4px 0 rgba(232, 93, 61, 0.1);
}

.faq-item .faq-question {
  padding: 20px 24px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.98rem;
  color: #2B2823;
  transition: background 0.2s;
}

.faq-item.open .faq-question {
  color: #E85D3D;
  background: rgba(232, 93, 61, 0.04);
}

.faq-item .faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: #E85D3D;
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding: 0 24px 20px;
  display: none;
  opacity: 0.65;
  line-height: 1.9;
  font-size: 0.92rem;
}

.faq-item.open .faq-answer {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 0.65; transform: translateY(0); }
}

/* ============================================================
   CTA 横幅 — 朱红印章
   ============================================================ */
.cta-banner {
  padding: 64px 32px;
  text-align: center;
  border-radius: 4px;
  background: linear-gradient(135deg, #E85D3D 0%, #D94A2A 40%, #C74325 100%);
  color: #FAF7F2;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '印';
  position: absolute;
  right: -20px;
  bottom: -40px;
  font-size: 12rem;
  font-family: serif;
  color: rgba(255, 255, 255, 0.08);
  transform: rotate(-15deg);
  line-height: 1;
}

.cta-banner::after {
  content: '✦';
  position: absolute;
  top: 20px;
  left: 40px;
  font-size: 2.4rem;
  color: rgba(255, 255, 255, 0.4);
}

.cta-banner h2 {
  color: #FAF7F2;
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cta-banner p {
  color: rgba(250, 247, 242, 0.9);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 2;
}

.cta-banner .btn-primary {
  background: #FAF7F2;
  color: #E85D3D;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
}

.cta-banner .btn-primary:hover {
  background: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.1);
}

/* ============================================================
   页脚 — 墨色排版
   ============================================================ */
.site-footer {
  padding: 72px 0 32px;
  background: #2B2823;
  color: rgba(250, 247, 242, 0.85);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #E85D3D, #E8A87C, #D94A2A, #F2E6DA);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.site-footer h4 {
  color: #FAF7F2;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 12px;
}

.site-footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: #E85D3D;
}

.footer-brand .logo {
  color: #FAF7F2;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.footer-brand .logo-icon {
  background: #E85D3D;
}

.footer-brand p {
  font-size: 0.88rem;
  opacity: 0.55;
  line-height: 1.9;
  max-width: 300px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: rgba(250, 247, 242, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-col a::before {
  content: '›';
  color: #E85D3D;
  font-weight: 700;
}

.footer-col a:hover {
  color: #E85D3D;
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(250, 247, 242, 0.08);
  margin-top: 48px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(250, 247, 242, 0.4);
  letter-spacing: 1px;
}

/* ============================================================
   工具类
   ============================================================ */
.text-accent {
  color: #E85D3D;
}

.text-center {
  text-align: center;
}

.seo-description {
  max-width: 640px;
  margin: 0 auto 56px;
  opacity: 0.6;
  font-size: 0.95rem;
  line-height: 2;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

/* 装饰分割线 */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 60px 0;
  color: #E85D3D;
}

.divider::before,
.divider::after {
  content: '';
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 93, 61, 0.3));
}

.divider::after {
  background: linear-gradient(90deg, rgba(232, 93, 61, 0.3), transparent);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 960px) {
  .hero h1 {
    font-size: 3rem;
  }

  .feature-block {
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    min-height: auto;
    padding-bottom: 72px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .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: rgba(250, 247, 242, 0.98);
    backdrop-filter: blur(12px);
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(43, 40, 35, 0.1);
  }

  .main-nav.open li {
    padding: 4px 0;
  }

  .main-nav.open .nav-cta {
    margin-top: 12px;
    text-align: center;
  }

  .section-title {
    font-size: 2rem;
  }

  .cta-banner {
    padding: 48px 24px;
  }

  .cta-banner h2 {
    font-size: 1.8rem;
  }

  .hero-buttons {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .cards-grid,
  .content-wall,
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-number {
    font-size: 2.4rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .feature-text h2 {
    font-size: 1.5rem;
  }
}

/* ============================================================
   自定义滚动条
   ============================================================ */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #F2EDE6;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #E8A87C, #E85D3D);
  border-radius: 5px;
  border: 2px solid #F2EDE6;
}

::-webkit-scrollbar-thumb:hover {
  background: #E85D3D;
}