/* ================================================
   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: #FAF3E8;
  color: #3D3B36;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 214, 102, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(118, 201, 160, 0.10) 0%, transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
}

/* 基础版式 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section:nth-child(even) {
  background: #FDF8EF;
}

/* ========== 导航栏 ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 243, 232, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid #3D3B36;
  box-shadow: 0 4px 20px rgba(61, 59, 54, 0.06);
}

.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.35rem;
  text-decoration: none;
  color: #3D3B36;
  letter-spacing: -0.5px;
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #FF6B57;
  border-radius: 99px;
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform 0.3s;
}

.logo:hover::after {
  transform: scaleX(1);
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px 12px 12px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: #FF6B57;
  color: #fff;
  box-shadow: 3px 3px 0 #3D3B36;
  transform: rotate(-3deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: #3D3B36;
  transition: 0.2s;
  position: relative;
  padding: 4px 0;
}

.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #FF6B57;
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s;
}

.main-nav a:not(.nav-cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 9px 24px;
  border-radius: 100px;
  color: #fff !important;
  font-weight: 700;
  background: #3D3B36;
  box-shadow: 3px 3px 0 #FF6B57;
  border: 2px solid #3D3B36;
  transition: 0.2s;
}

.nav-cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 #FF6B57;
}

.menu-toggle {
  display: none;
}

/* ========== Hero 区域 ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 72px;
  background: #FAF3E8;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 12%;
  right: max(-80px, calc(50% - 600px));
  width: 280px;
  height: 280px;
  background: #FFD966;
  border-radius: 50%;
  opacity: 0.25;
  filter: blur(40px);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 8%;
  left: max(-40px, calc(50% - 700px));
  width: 200px;
  height: 200px;
  background: #76C9A0;
  border-radius: 50%;
  opacity: 0.18;
  filter: blur(50px);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 640px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 3px;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 20px;
  background: #FF6B57;
  color: #fff;
  border: 2px solid #3D3B36;
  box-shadow: 3px 3px 0 #3D3B36;
  transform: rotate(-2deg);
  text-transform: uppercase;
}

.hero h1 {
  font-size: 3.4rem;
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 900;
  letter-spacing: -4px;
  color: #3D3B36;
  position: relative;
  display: inline-block;
}

.hero h1::after {
  content: '漫踏纸面';
  position: absolute;
  top: -18px;
  right: -20px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #FFD966;
  color: #3D3B36;
  border: 2px solid #3D3B36;
  border-radius: 4px;
  padding: 2px 10px;
  transform: rotate(6deg);
  letter-spacing: 0;
}

.hero p {
  font-size: 1.12rem;
  opacity: 0.68;
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.8;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 3px solid #3D3B36;
  box-shadow: 8px 8px 0 #FF6B57;
  transform: rotate(-1deg);
  transition: transform 0.3s;
  background: #FDF8EF;
}

.hero-image:hover {
  transform: rotate(0deg) translate(-2px, -2px);
  box-shadow: 12px 12px 0 #FF6B57;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-image::before {
  content: '☰';
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 1rem;
  background: rgba(250, 243, 232, 0.9);
  border: 2px solid #3D3B36;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

/* ========== 按钮系统 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 100px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid #3D3B36;
  text-decoration: none;
  transition: 0.2s;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
}

.btn-primary {
  color: #fff;
  background: #FF6B57;
  box-shadow: 4px 4px 0 #3D3B36;
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 #3D3B36;
  background: #ff5c47;
}

.btn-outline {
  background: transparent;
  border: 2px solid #3D3B36;
  color: #3D3B36;
  box-shadow: none;
}

.btn-outline:hover {
  background: #FFF;
  transform: translateY(-2px);
  border-color: #3D3B36;
  box-shadow: 4px 4px 0 #76C9A0;
}

/* ========== 标签/标题 ========== */
.section-label {
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 14px;
  padding: 4px 16px;
  background: #E8F6EF;
  color: #3D3B36;
  border-radius: 100px;
  border: 2px solid #3D3B36;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 16px;
  font-weight: 900;
  letter-spacing: -2px;
  color: #3D3B36;
  line-height: 1.2;
}

.section-desc {
  max-width: 620px;
  opacity: 0.7;
  margin-bottom: 44px;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ========== 卡片网格 ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.category-card {
  border-radius: 16px 16px 16px 4px;
  padding: 30px 26px;
  border: 2px solid #3D3B36;
  background: #FDF8EF;
  transition: 0.25s;
  position: relative;
}

.category-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: #FF6B57;
  border-radius: 0 0 16px 16px;
  opacity: 0;
  transition: opacity 0.25s;
}

.category-card:hover {
  transform: translate(-3px, -5px);
  box-shadow: 6px 6px 0 #3D3B36;
}

.category-card:hover::after {
  opacity: 1;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px 14px 14px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
  background: #FFD966;
  border: 2px solid #3D3B36;
  box-shadow: 2px 2px 0 #3D3B36;
}

.category-card:nth-child(2n) .card-icon {
  background: #76C9A0;
}

.category-card:nth-child(3n) .card-icon {
  background: #FFAD80;
}

.card-link {
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  color: #3D3B36;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  transition: gap 0.2s;
}

.card-link:hover {
  gap: 12px;
  color: #FF6B57;
}

/* ========== 特性块 ========== */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-image {
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid #3D3B36;
  box-shadow: 8px 8px 0 #76C9A0;
  transform: rotate(2deg);
  transition: 0.3s;
  background: #FFF;
}

.feature-image:hover {
  transform: rotate(0deg);
  box-shadow: 12px 12px 0 #76C9A0;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-text {
  padding: 8px 0;
}

.feature-text .section-label {
  background: #FFE4DC;
}

.feature-text h3 {
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 16px;
  color: #3D3B36;
}

.feature-list {
  list-style: none;
  margin-top: 20px;
}

.feature-list li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.98rem;
  font-weight: 500;
  border-bottom: 1px dashed rgba(61, 59, 54, 0.12);
}

.feature-list li::before {
  content: '┆';
  font-weight: 900;
  color: #FF6B57;
  font-size: 1.2rem;
  transform: rotate(15deg);
}

/* ========== 数据条 ========== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}

.stat-item {
  padding: 32px 20px;
  border-radius: 16px 16px 16px 4px;
  border: 2px solid #3D3B36;
  background: #FDF8EF;
  position: relative;
  transition: 0.25s;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 0 rgba(61, 59, 54, 0.08);
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 5px;
  background: #FF6B57;
  border-radius: 0 0 99px 99px;
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -2px;
  color: #3D3B36;
  line-height: 1.2;
}

.stat-number sup {
  font-size: 1rem;
  font-weight: 600;
  vertical-align: super;
  color: #FF6B57;
}

.stat-label {
  font-size: 0.88rem;
  opacity: 0.6;
  margin-top: 6px;
  font-weight: 500;
  letter-spacing: 1px;
}

/* ========== 内容墙 ========== */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.content-wall-item {
  border-radius: 16px 16px 16px 4px;
  overflow: hidden;
  border: 2px solid #3D3B36;
  background: #FDF8EF;
  transition: 0.25s;
  position: relative;
}

.content-wall-item:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 #FF6B57;
}

.content-wall-item img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-bottom: 2px solid #3D3B36;
  display: block;
  transition: transform 0.4s;
}

.content-wall-item:hover img {
  transform: scale(1.04);
}

.content-wall-body {
  padding: 24px 22px;
}

.content-wall-body h4 {
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #3D3B36;
  letter-spacing: -0.5px;
}

.content-wall-body p {
  font-size: 0.88rem;
  opacity: 0.6;
  line-height: 1.6;
}

/* ========== FAQ ========== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 2px solid #3D3B36;
  border-radius: 14px 14px 14px 4px;
  margin-bottom: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #FDF8EF;
  transition: 0.2s;
}

.faq-item:hover {
  box-shadow: 3px 3px 0 #3D3B36;
}

.faq-item .faq-question {
  padding: 18px 24px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 1.02rem;
  color: #3D3B36;
  position: relative;
}

.faq-item .faq-question::after {
  content: '＋';
  font-size: 1.3rem;
  font-weight: 500;
  color: #FF6B57;
  transition: transform 0.25s;
}

.faq-item .faq-answer {
  padding: 0 24px 18px;
  display: none;
  opacity: 0.7;
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.open {
  background: #FFF8EE;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-item.open .faq-answer {
  display: block;
}

/* ========== CTA 横幅 ========== */
.cta-banner {
  padding: 64px 40px;
  text-align: center;
  border-radius: 20px 20px 20px 6px;
  color: #fff;
  background: linear-gradient(135deg, #FF6B57 0%, #FF8A73 60%, #FFAD80 100%);
  border: 3px solid #3D3B36;
  box-shadow: 10px 10px 0 #3D3B36;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: #FFD966;
  border-radius: 50%;
  border: 3px solid #3D3B36;
  opacity: 0.8;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 80px;
  height: 80px;
  background: #76C9A0;
  border-radius: 50%;
  border: 3px solid #3D3B36;
  opacity: 0.6;
}

.cta-banner h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
  text-shadow: 2px 2px 0 rgba(61, 59, 54, 0.5);
}

.cta-banner p {
  position: relative;
  z-index: 2;
  color: rgba(255,255,255,0.9);
  max-width: 500px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.cta-banner .btn {
  position: relative;
  z-index: 2;
  background: #fff;
  color: #3D3B36;
  border-color: #3D3B36;
  box-shadow: 4px 4px 0 #3D3B36;
}

.cta-banner .btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 #3D3B36;
}

/* ========== 页脚 ========== */
.site-footer {
  padding: 64px 0 32px;
  background: #F0E8DB;
  border-top: 2px solid #3D3B36;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: repeating-linear-gradient(90deg,
    #FF6B57 0px, #FF6B57 20px,
    #FFD966 20px, #FFD966 40px,
    #76C9A0 40px, #76C9A0 60px,
    #FFAD80 60px, #FFAD80 80px);
}

.site-footer .container {
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {
  position: relative;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .logo-icon {
  background: #FF6B57;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.6;
  line-height: 1.8;
  max-width: 260px;
}

.footer-col {}

.footer-col h5 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 18px;
  color: #3D3B36;
  position: relative;
  display: inline-block;
}

.footer-col h5::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 24px;
  height: 3px;
  background: #FF6B57;
  border-radius: 99px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  text-decoration: none;
  font-size: 0.88rem;
  color: rgba(61, 59, 54, 0.75);
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul a::before {
  content: '›';
  color: #FF6B57;
  font-weight: 900;
}

.footer-col ul a:hover {
  color: #FF6B57;
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 2px solid rgba(61, 59, 54, 0.1);
  margin-top: 48px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(61, 59, 54, 0.5);
  font-weight: 500;
}

/* ========== 工具类 ========== */
.text-accent {
  color: #FF6B57;
}

.text-center {
  text-align: center;
}

.seo-description {
  max-width: 600px;
  margin: 0 auto 48px;
  opacity: 0.7;
  text-align: center;
  font-size: 1.02rem;
  line-height: 1.8;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ========== hero 装饰线 ========== */
.hero .container::before {
  content: '';
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px;
  height: 12px;
  border: 2px solid #3D3B36;
  border-radius: 99px;
  background: repeating-linear-gradient(45deg,
    #FF6B57, #FF6B57 8px,
    transparent 8px, transparent 16px,
    #76C9A0 16px, #76C9A0 24px);
  opacity: 0.4;
  z-index: 1;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .hero h1 {
    font-size: 2.4rem;
    letter-spacing: -2px;
  }

  .hero-image {
    max-width: 100%;
  }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .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;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 2px solid #3D3B36;
    background: #FDF8EF;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 900;
    box-shadow: 2px 2px 0 #3D3B36;
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #FAF3E8;
    padding: 24px;
    border-bottom: 2px solid #3D3B36;
    box-shadow: 0 10px 0 rgba(61, 59, 54, 0.05);
    gap: 16px;
  }

  .main-nav.open a {
    font-size: 1rem;
    padding: 10px 8px;
    border-radius: 8px;
  }

  .main-nav.open a:hover {
    background: rgba(255, 107, 87, 0.08);
  }

  .nav-cta {
    margin-top: 8px;
    justify-content: center;
  }
}

@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.1rem;
  }
  
  .hero h1::after {
    display: none;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .cta-banner {
    padding: 40px 24px;
    box-shadow: 7px 7px 0 #3D3B36;
  }
}

/* ========== 额外装饰元素 ========== */
.section-label::before {
  content: '◆ ';
  color: #FF6B57;
  font-size: 0.7em;
  vertical-align: middle;
}

.section-title::selection,
h1::selection,
p::selection {
  background: #FFD966;
  color: #3D3B36;
}

::-webkit-scrollbar {
  width: 14px;
}

::-webkit-scrollbar-track {
  background: #FAF3E8;
  border-left: 1px solid rgba(61, 59, 54, 0.08);
}

::-webkit-scrollbar-thumb {
  background: #FF6B57;
  border-radius: 99px;
  border: 3px solid #FAF3E8;
}

::-webkit-scrollbar-thumb:hover {
  background: #3D3B36;
}