/* ============================================================
   EHENTAI 下载站 · 浮世绘和纸风设计系统
   配色：米白纸底 + 朱红/绀蓝 + 金箔点缀
   ============================================================ */

*, *::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: #faf6f0;
  color: #3a3226;
  line-height: 1.6;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(201, 162, 75, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(60, 74, 138, 0.04) 0%, transparent 40%),
    linear-gradient(rgba(0,0,0,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.015) 1px, transparent 1px);
  background-size: auto, auto, 40px 40px, 40px 40px;
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section:nth-child(even) {
  background: #fbf8f2;
}

/* ============================================================
   导航 — 顶部固定 · 纸拉门风格
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e8e0d4;
  box-shadow: 0 1px 0 #d4c8b8;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  color: #2c3e75;
  letter-spacing: 1px;
  position: relative;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px 8px 8px 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: #c73e3a;
  color: #faf6f0;
  box-shadow: 2px 2px 0 rgba(199, 62, 58, 0.3);
  transform: rotate(-3deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: #5a5044;
  letter-spacing: 0.8px;
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #c73e3a;
  transition: width 0.3s ease;
}

.main-nav a:hover {
  color: #c73e3a;
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 8px 22px;
  border-radius: 6px 6px 6px 2px;
  color: #faf6f0 !important;
  background: #2c3e75;
  font-weight: 700;
  box-shadow: 2px 2px 0 rgba(44, 62, 117, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(44, 62, 117, 0.25);
  color: #faf6f0 !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: 2px solid #d4c8b8;
  border-radius: 6px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #2c3e75;
  border-radius: 2px;
}

/* ============================================================
   Hero — 大标题 · 印章式排版
   ============================================================ */
.hero {
  min-height: 75vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: 'E界';
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-size: 12rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(44, 62, 117, 0.10);
  letter-spacing: 12px;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 2px 6px 2px 6px;
  margin-bottom: 20px;
  background: #c73e3a;
  color: #faf6f0;
  letter-spacing: 3px;
  box-shadow: 3px 3px 0 rgba(199, 62, 58, 0.2);
  transform: rotate(-2deg);
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #2c3e75;
  letter-spacing: -1px;
  position: relative;
}

.hero h1::after {
  content: '';
  display: block;
  width: 80px;
  height: 5px;
  background: #c9a24b;
  border-radius: 2px;
  margin-top: 16px;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.75;
  max-width: 560px;
  margin-bottom: 36px;
  color: #5a5044;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 8px 8px 0 rgba(44, 62, 117, 0.15), 0 0 40px rgba(0,0,0,0.06);
  border: 3px solid #fff;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   按钮 — 药袋和纸按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: #c73e3a;
  color: #fff;
  box-shadow: 3px 3px 0 rgba(199, 62, 58, 0.3);
  border-radius: 6px 6px 6px 2px;
}

.btn-primary:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(199, 62, 58, 0.3);
  background: #b73531;
}

.btn-outline {
  background: transparent;
  border: 2px solid #2c3e75;
  color: #2c3e75;
  border-radius: 2px 6px 2px 6px;
}

.btn-outline:hover {
  background: #2c3e75;
  color: #faf6f0;
  transform: translateY(-2px);
}

/* ============================================================
   标签 / 标题 — 日式印章标题
   ============================================================ */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 4px;
  margin-bottom: 14px;
  color: #c73e3a;
  text-transform: uppercase;
  padding: 4px 16px;
  border: 1.5px solid #c73e3a;
  border-radius: 2px 6px 2px 6px;
  transform: rotate(-1deg);
}

.section-title {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 16px;
  color: #2c3e75;
  line-height: 1.2;
}

.section-desc {
  max-width: 620px;
  opacity: 0.7;
  margin-bottom: 48px;
  color: #5a5044;
  font-size: 1.05rem;
}

/* ============================================================
   卡片网格 — 和纸卡片带拼贴角
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.category-card {
  border-radius: 4px 12px 4px 12px;
  padding: 32px 24px;
  background: #fff;
  border: 1px solid #e8e0d4;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  box-shadow: 3px 3px 0 rgba(212, 200, 184, 0.4);
}

.category-card::before {
  content: '';
  position: absolute;
  top: -5px;
  right: -5px;
  width: 12px;
  height: 12px;
  background: #c9a24b;
  opacity: 0.4;
  border-radius: 0 0 0 4px;
}

.category-card:hover {
  transform: translateY(-4px) rotate(0.3deg);
  box-shadow: 6px 8px 0 rgba(44, 62, 117, 0.12);
  border-color: #c9a24b;
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 4px 10px 4px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #f5ead5, #faf6f0);
  border: 1px solid #e8e0d4;
}

.card-link {
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  color: #c73e3a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link:hover {
  text-decoration: underline;
}

/* ============================================================
   特性块 — 杂志式不对称排版
   ============================================================ */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-image {
  border-radius: 4px 16px 4px 16px;
  overflow: hidden;
  box-shadow: 6px 6px 0 rgba(201, 162, 75, 0.25);
  border: 2px solid #fff;
  transform: rotate(-1deg);
  transition: transform 0.3s;
}

.feature-image:hover {
  transform: rotate(0deg) scale(1.01);
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-text {
  padding: 20px 0;
}

.feature-text .section-label {
  margin-bottom: 12px;
}

.feature-text h3 {
  font-size: 1.9rem;
  font-weight: 800;
  color: #2c3e75;
  margin-bottom: 16px;
  line-height: 1.3;
}

.feature-text p {
  color: #5a5044;
  opacity: 0.85;
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  margin-top: 8px;
}

.feature-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  border-bottom: 1px dashed #e8e0d4;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: '☰';
  font-weight: 700;
  color: #c73e3a;
  background: rgba(199, 62, 58, 0.1);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.7rem;
}

/* ============================================================
   数据条 — 日式算盘风
   ============================================================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item {
  padding: 32px 16px;
  border-radius: 4px 12px 4px 12px;
  background: #fff;
  border: 1px solid #e8e0d4;
  position: relative;
  transition: transform 0.3s;
}

.stat-item:hover {
  transform: scale(1.02);
}

.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: #c9a24b;
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 900;
  color: #c73e3a;
  line-height: 1;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.6;
  margin-top: 10px;
  color: #5a5044;
  font-weight: 500;
  letter-spacing: 1px;
}

/* ============================================================
   内容墙 — 浮世绘画廊
   ============================================================ */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.content-wall-item {
  border-radius: 4px 12px 4px 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8e0d4;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 2px 2px 0 rgba(212, 200, 184, 0.3);
}

.content-wall-item:hover {
  transform: translateY(-4px);
  box-shadow: 5px 6px 0 rgba(44, 62, 117, 0.1);
}

.content-wall-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2px solid #f5ead5;
}

.content-wall-body {
  padding: 20px;
}

.content-wall-body h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #2c3e75;
  margin-bottom: 6px;
}

.content-wall-body p {
  font-size: 0.85rem;
  opacity: 0.7;
  color: #5a5044;
}

.content-wall-body .tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 3px 10px;
  background: #f5ead5;
  color: #c73e3a;
  border-radius: 2px 6px 2px 6px;
  margin-top: 10px;
  font-weight: 700;
}

/* ============================================================
   FAQ — 和式折叠屏风
   ============================================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid #e8e0d4;
  border-radius: 4px 10px 4px 10px;
  margin-bottom: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  transition: box-shadow 0.2s;
}

.faq-item:hover {
  box-shadow: 3px 3px 0 rgba(201, 162, 75, 0.2);
}

.faq-item .faq-question {
  padding: 18px 22px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #2c3e75;
  font-size: 1rem;
  letter-spacing: 0.3px;
}

.faq-item .faq-question::after {
  content: '結';
  font-size: 0.7rem;
  background: rgba(199, 62, 58, 0.1);
  color: #c73e3a;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.3s;
  font-weight: 800;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
  background: #c73e3a;
  color: #fff;
}

.faq-item .faq-answer {
  padding: 0 22px 18px;
  display: none;
  opacity: 0.8;
  color: #5a5044;
  font-size: 0.95rem;
  line-height: 1.8;
  border-top: 1px dashed #e8e0d4;
  padding-top: 14px;
  margin-top: -2px;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ============================================================
   CTA 横幅 — 金箔底纹
   ============================================================ */
.cta-banner {
  padding: 72px 40px;
  text-align: center;
  border-radius: 4px 20px 4px 20px;
  color: #faf6f0;
  background: linear-gradient(135deg, #2c3e75 0%, #3b4a8c 60%, #2c3e75 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 8px 8px 0 rgba(201, 162, 75, 0.3);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 160%;
  background: radial-gradient(circle, rgba(201, 162, 75, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner h2 {
  color: #faf6f0;
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 12px;
  position: relative;
}

.cta-banner p {
  color: rgba(250, 246, 240, 0.8);
  max-width: 500px;
  margin: 0 auto 32px;
  position: relative;
  font-size: 1.05rem;
}

.cta-banner .btn-primary {
  background: #faf6f0;
  color: #2c3e75 !important;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

.cta-banner .btn-primary:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
}

/* ============================================================
   页脚 — 下町暖帘风
   ============================================================ */
.site-footer {
  padding: 72px 0 32px;
  background: #e8ded0;
  border-top: 4px solid #c9a24b;
  color: #3a3226;
}

.site-footer .container {
  max-width: 1200px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {
  padding-right: 30px;
}

.footer-brand h3 {
  font-size: 1.4rem;
  font-weight: 900;
  color: #2c3e75;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.8;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #2c3e75;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #c9a24b;
  display: inline-block;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  padding: 5px 0;
}

.footer-col ul a {
  font-size: 0.88rem;
  color: #5a5044;
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-col ul a:hover {
  color: #c73e3a;
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(58, 50, 38, 0.1);
  margin-top: 48px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #8a7f6e;
}

/* ============================================================
   工具类
   ============================================================ */
.text-accent {
  color: #c73e3a;
}

.text-center {
  text-align: center;
}

.seo-description {
  max-width: 600px;
  margin: 0 auto 48px;
  opacity: 0.7;
  color: #5a5044;
  line-height: 1.8;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

/* ============================================================
   Hero 两列布局辅助
   ============================================================ */
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: 100px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .hero::before {
    font-size: 6rem;
    right: -20px;
  }

  .hero-image {
    max-width: 400px;
  }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #faf6f0;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    border-bottom: 2px solid #c9a24b;
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
  }

  .main-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .cta-banner {
    padding: 48px 24px;
  }

  .cta-banner h2 {
    font-size: 1.7rem;
  }

  .section {
    padding: 72px 0;
  }
}

@media (max-width: 480px) {
  .cards-grid,
  .content-wall,
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    justify-content: center;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .logo {
    font-size: 1.1rem;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}