/* ============================================
   ehviewer官网 — 暖纸拼贴视觉系统
   "漫无边界，一触即阅"
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  overflow-x: hidden;
  background: #FBF7F0;
  color: #2C3A47;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(255, 107, 94, 0.2);
  color: #2C3A47;
}

/* ============ 核心布局 ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section:nth-child(even) {
  background: #F5F0E9;
}

/* ============ 导航 ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(44, 58, 71, 0.08);
  transition: box-shadow 0.3s;
}

.site-header:hover {
  box-shadow: 0 4px 24px rgba(44, 58, 71, 0.04);
}

.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: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  color: #2C3A47;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: #FF6B5E;
  color: #fff;
  box-shadow: 3px 3px 0 rgba(255, 107, 94, 0.3);
  transform: rotate(-3deg);
  transition: transform 0.3s;
}

.logo:hover .logo-icon {
  transform: rotate(3deg) scale(1.05);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2C3A47;
  position: relative;
  padding: 4px 2px;
  transition: color 0.2s;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #FF6B5E;
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 9px 24px !important;
  border-radius: 100px;
  color: #fff !important;
  background: #FF6B5E;
  box-shadow: 2px 2px 0 rgba(255, 107, 94, 0.3);
  transition: all 0.3s !important;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(255, 107, 94, 0.3);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 12px;
  transition: background 0.2s;
}

.menu-toggle:hover {
  background: rgba(255, 107, 94, 0.1);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #2C3A47;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============ Hero ============ */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  gap: 60px;
  margin-top: 68px;
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  background: rgba(255, 107, 94, 0.07);
  border-radius: 50%;
  top: -120px;
  right: -140px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  background: rgba(246, 196, 83, 0.2);
  border-radius: 40px;
  bottom: -40px;
  right: 30%;
  transform: rotate(25deg);
  pointer-events: none;
}

.hero-content {
  flex: 1;
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 20px;
  background: rgba(255, 107, 94, 0.12);
  color: #E85A4F;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  color: #2C3A47;
}

.hero p {
  font-size: 1.1rem;
  color: #2C3A47;
  opacity: 0.65;
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
  min-width: 300px;
  border-radius: 28px;
  overflow: visible;
  position: relative;
  z-index: 2;
  background: linear-gradient(145deg, #FF6B5E, #E85A4F, #7BAAC4);
  border-radius: 28px;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 16px 16px 0 rgba(255, 107, 94, 0.15), 0 20px 60px rgba(44, 58, 71, 0.08);
  transform: rotate(2deg);
  transition: transform 0.4s;
}

.hero-image:hover {
  transform: rotate(0deg) scale(1.01);
}

.hero-image::before {
  content: '📖';
  font-size: 6rem;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

.hero-image::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  top: -24px;
  left: -24px;
  border: 2px dashed rgba(255, 255, 255, 0.4);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.65, 0, 0.35, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  color: #fff;
  background: #FF6B5E;
  box-shadow: 4px 4px 0 rgba(255, 107, 94, 0.3);
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(255, 107, 94, 0.35);
}

.btn-primary:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 rgba(255, 107, 94, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid #2C3A47;
  color: #2C3A47;
  box-shadow: 3px 3px 0 rgba(44, 58, 71, 0.1);
}

.btn-outline:hover {
  background: rgba(44, 58, 71, 0.05);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 rgba(44, 58, 71, 0.12);
}

/* ============ 标签/标题 ============ */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: #FF6B5E;
  background: rgba(255, 107, 94, 0.1);
  padding: 4px 16px;
  border-radius: 100px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  color: #2C3A47;
  line-height: 1.2;
}

.section-desc {
  max-width: 600px;
  color: #2C3A47;
  opacity: 0.6;
  margin-bottom: 40px;
  font-size: 1rem;
  line-height: 1.7;
}

/* ============ 卡片网格 ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.category-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px 28px;
  border: 1px solid rgba(44, 58, 71, 0.05);
  transition: all 0.35s cubic-bezier(0.65, 0, 0.35, 1);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #FF6B5E;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.category-card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: 8px 8px 0 rgba(255, 107, 94, 0.12);
  border-color: rgba(255, 107, 94, 0.2);
}

.category-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
  background: rgba(255, 107, 94, 0.12);
  transition: transform 0.3s;
}

.category-card:hover .card-icon {
  transform: scale(1.1) rotate(-5deg);
}

.card-link {
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  color: #FF6B5E;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  transition: gap 0.2s;
}

.card-link:hover {
  gap: 10px;
}

/* ============ 特性块 ============ */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-image {
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #7BAAC4, #83B49B);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 12px 12px 0 rgba(123, 170, 196, 0.2);
  transform: rotate(-1deg);
  transition: transform 0.4s;
}

.feature-image:hover {
  transform: rotate(0deg) scale(1.01);
}

.feature-image::before {
  content: '✨';
  font-size: 5rem;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.feature-text {
  position: relative;
}

.feature-text::before {
  content: '“';
  font-size: 6rem;
  font-weight: 800;
  color: rgba(255, 107, 94, 0.15);
  position: absolute;
  top: -30px;
  left: -10px;
  line-height: 1;
}

.feature-list {
  list-style: none;
  margin-top: 24px;
}

.feature-list li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  border-bottom: 1px dashed rgba(44, 58, 71, 0.1);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: '✓';
  font-weight: 800;
  color: #83B49B;
  background: rgba(131, 180, 155, 0.15);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ============ 数据条 ============ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  background: #fff;
  padding: 32px 20px;
  border-radius: 24px;
  border: 1px solid rgba(44, 58, 71, 0.04);
  box-shadow: 0 2px 12px rgba(44, 58, 71, 0.04);
  transition: all 0.3s;
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 rgba(255, 107, 94, 0.1);
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  color: #FF6B5E;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: #2C3A47;
  opacity: 0.55;
  margin-top: 8px;
  font-weight: 500;
}

/* ============ 内容墙 ============ */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.content-wall-item {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(44, 58, 71, 0.04);
  transition: all 0.35s;
}

.content-wall-item:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 rgba(255, 107, 94, 0.1);
}

.content-wall-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s;
}

.content-wall-item:hover img {
  transform: scale(1.04);
}

.content-wall-body {
  padding: 24px;
}

.content-wall-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.content-wall-body p {
  font-size: 0.88rem;
  color: #2C3A47;
  opacity: 0.6;
  line-height: 1.6;
}

/* ============ FAQ ============ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid rgba(44, 58, 71, 0.06);
  border-radius: 20px;
  margin-bottom: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

.faq-item:hover {
  border-color: rgba(255, 107, 94, 0.2);
}

.faq-item.open {
  box-shadow: 4px 4px 0 rgba(255, 107, 94, 0.1);
  border-color: rgba(255, 107, 94, 0.15);
}

.faq-item .faq-question {
  padding: 18px 24px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: #2C3A47;
  position: relative;
}

.faq-item .faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: #FF6B5E;
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding: 0 24px 20px;
  display: none;
  color: #2C3A47;
  opacity: 0.6;
  font-size: 0.92rem;
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 0.6; transform: translateY(0); }
}

/* ============ CTA横幅 ============ */
.cta-banner {
  padding: 64px 48px;
  text-align: center;
  border-radius: 28px;
  background: linear-gradient(135deg, #FF6B5E, #E85A4F);
  position: relative;
  overflow: hidden;
  box-shadow: 12px 12px 0 rgba(255, 107, 94, 0.2);
}

.cta-banner::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border: 3px dashed rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  top: -60px;
  right: -60px;
}

.cta-banner::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  bottom: -20px;
  left: 10%;
  transform: rotate(30deg);
}

.cta-banner h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}

.cta-banner .btn-primary {
  background: #fff;
  color: #FF6B5E;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.cta-banner .btn-primary:hover {
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.15);
}

/* ============ 页脚 ============ */
.site-footer {
  padding: 64px 0 28px;
  background: #F5F0E9;
  border-top: 1px solid rgba(44, 58, 71, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {
  padding-right: 20px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: #2C3A47;
  opacity: 0.6;
  line-height: 1.65;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #2C3A47;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: #2C3A47;
  opacity: 0.55;
  margin-bottom: 10px;
  text-decoration: none;
  transition: all 0.2s;
}

.footer-col a:hover {
  color: #FF6B5E;
  opacity: 1;
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(44, 58, 71, 0.08);
  margin-top: 48px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: #2C3A47;
  opacity: 0.45;
}

/* ============ 工具类 ============ */
.text-accent {
  color: #FF6B5E;
}

.text-center {
  text-align: center;
}

.seo-description {
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1rem;
  line-height: 1.7;
  color: #2C3A47;
  opacity: 0.6;
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

/* ============ 装饰性补充 ============ */
/* 内容墙图片渐变占位（无图时） */
.content-wall-item:nth-child(1) img {
  background: linear-gradient(135deg, #FF6B5E, #F6C453);
}
.content-wall-item:nth-child(2) img {
  background: linear-gradient(135deg, #7BAAC4, #83B49B);
}
.content-wall-item:nth-child(3) img {
  background: linear-gradient(135deg, #F6C453, #FF6B5E);
}
.content-wall-item:nth-child(4) img {
  background: linear-gradient(135deg, #83B49B, #7BAAC4);
}
.content-wall-item:nth-child(5) img {
  background: linear-gradient(135deg, #E85A4F, #F6C453);
}
.content-wall-item:nth-child(6) img {
  background: linear-gradient(135deg, #2C3A47, #7BAAC4);
}

/* 卡片icon不同色 */
.cards-grid .category-card:nth-child(2) .card-icon {
  background: rgba(123, 170, 196, 0.15);
}
.cards-grid .category-card:nth-child(3) .card-icon {
  background: rgba(246, 196, 83, 0.18);
}
.cards-grid .category-card:nth-child(4) .card-icon {
  background: rgba(131, 180, 155, 0.18);
}

/* ============ 响应式 ============ */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    gap: 40px;
    padding: 40px 0 60px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-image {
    width: 100%;
    min-height: 280px;
  }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-image {
    order: -1;
    min-height: 240px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .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: 68px;
    left: 0;
    width: 100%;
    background: rgba(251, 247, 240, 0.97);
    padding: 24px 24px 32px;
    border-bottom: 1px solid rgba(44, 58, 71, 0.06);
    gap: 18px;
    align-items: flex-start;
    box-shadow: 0 20px 30px rgba(44, 58, 71, 0.06);
    backdrop-filter: blur(16px);
  }

  .main-nav.open a {
    font-size: 1rem;
    padding: 6px 0;
    width: 100%;
  }

  .main-nav.open .nav-cta {
    display: inline-block;
    text-align: center;
    padding: 10px 28px !important;
  }

  .cta-banner {
    padding: 48px 24px;
  }

  .cta-banner h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .cards-grid,
  .content-wall,
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    justify-content: center;
  }

  .section {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}