/* ============================================================
   禁漫天堂ios — 格间宇宙 / iOS漫游
   设计系统：暖纸底 · 网格解构 · 硬阴影编辑风
   ============================================================ */

:root {
  --paper:      #FBF6EE;
  --paper-2:    #F2EADE;
  --paper-3:    #E8DFF7;
  --ink:        #1D1430;
  --ink-soft:   rgba(29, 20, 48, 0.62);
  --line:       rgba(29, 20, 48, 0.13);
  --line-hard:  #1D1430;
  --coral:      #FF4A25;
  --amber:      #FF9E2C;
  --aqua:       #00BFA6;
  --violet:     #6C4BF4;
  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-soft: 0 18px 44px -22px rgba(29, 20, 48, 0.42);
  --r: 4px;
  --grid: 44px;
}

/* ============ 基础重置 ============ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  overflow-x: hidden;
  background-color: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  background-image:
    linear-gradient(rgba(29, 20, 48, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 20, 48, 0.045) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

::selection {
  background: var(--coral);
  color: #fff;
}

/* ============ 核心布局 ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--line-hard) 0%, var(--line-hard) 60px, transparent 60px);
  opacity: 0.9;
}

.section:nth-child(even) {
  background: var(--paper-2);
}

.section:nth-child(even)::before {
  left: 0; right: 0;
}

/* ============ 导航 — 固定顶部 ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(251, 246, 238, 0.92);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border-bottom: 1px solid var(--line);
}

.site-header::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 180px; height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--amber), var(--aqua), var(--violet));
}

.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: 8px;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: inherit;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--coral) 0%, var(--violet) 100%);
  color: #fff;
  font-weight: 800;
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-4deg);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s;
}

.logo:hover .logo-icon {
  transform: rotate(4deg) translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: 0.2s;
  position: relative;
  padding-bottom: 2px;
  color: var(--ink);
}

.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
}

.main-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.main-nav a:not(.nav-cta):hover { color: var(--coral); }

.nav-cta {
  padding: 8px 20px;
  border-radius: 8px;
  color: #fff !important;
  font-weight: 600;
  background: var(--ink);
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--coral);
  transition: 0.25s cubic-bezier(.2,.8,.2,1);
}

.nav-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--aqua);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
  font-size: 1.1rem;
}

/* ============ 首页 Hero ============ */
.hero {
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 132px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 620px; height: 620px;
  right: -180px; top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 74, 37, 0.24), rgba(108, 75, 244, 0.12) 55%, transparent 72%);
  pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}

.hero::after {
  content: '格';
  position: absolute;
  right: 4%;
  bottom: -6%;
  font-size: 22rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(29, 20, 48, 0.09);
  pointer-events: none;
  user-select: none;
}

@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(-60px, 50px, 0) scale(1.12); }
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  color: var(--ink);
  background: rgba(0, 191, 166, 0.16);
  border: 1.5px dashed var(--aqua);
  letter-spacing: 0.08em;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 2.9rem);
  line-height: 1.14;
  margin-bottom: 20px;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero h1::after {
  content: '';
  display: block;
  width: 96px;
  height: 10px;
  margin-top: 18px;
  background: repeating-linear-gradient(
    -45deg,
    var(--coral) 0 6px,
    var(--amber) 6px 12px,
    var(--aqua) 12px 18px,
    var(--violet) 18px 24px
  );
  border-radius: 2px;
}

.hero p {
  font-size: 1.08rem;
  opacity: 0.7;
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-image {
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-hard);
}

.hero-image img {
  width: 100%;
  height: auto;
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--ink);
  text-decoration: none;
  transition: 0.22s cubic-bezier(.2,.8,.2,1);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  position: relative;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--coral), var(--violet));
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-primary:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--ink);
  filter: saturate(1.15);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(29, 20, 48, 0.14);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--amber);
}

/* ============ 标签 / 标题 ============ */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 12px;
  color: var(--coral);
  text-transform: uppercase;
  padding-left: 26px;
  position: relative;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 16px; height: 2px;
  background: var(--coral);
  transform: translateY(-50%);
}

.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2rem);
  margin-bottom: 14px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.section-title::before {
  content: '／';
  color: var(--violet);
  font-weight: 400;
  margin-right: 2px;
}

.section-desc {
  max-width: 600px;
  opacity: 0.7;
  margin-bottom: 40px;
}

/* ============ 卡片网格 ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.category-card {
  border-radius: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  transition: 0.28s cubic-bezier(.2,.8,.2,1);
  background: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(29, 20, 48, 0.04);
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--amber), var(--aqua));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}

.category-card::after {
  content: '';
  position: absolute;
  right: -30px; bottom: -30px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--paper-3);
  opacity: 0.6;
  transition: 0.4s;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1), 6px 6px 0 rgba(108, 75, 244, 0.16);
  border-color: rgba(29, 20, 48, 0.2);
}

.category-card:hover::before { transform: scaleX(1); }
.category-card:hover::after { transform: scale(1.4); opacity: 0.35; }

.category-card > * { position: relative; z-index: 2; }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--aqua);
}

.category-card:nth-child(2n) .card-icon { box-shadow: 3px 3px 0 var(--coral); }
.category-card:nth-child(3n) .card-icon { box-shadow: 3px 3px 0 var(--violet); }

.category-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.category-card p {
  font-size: 0.9rem;
  opacity: 0.66;
  margin-bottom: 16px;
}

.card-link {
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.card-link::after { content: '↗'; transition: transform 0.25s; }
.card-link:hover { gap: 10px; }
.card-link:hover::after { transform: translate(2px, -2px); }

/* ============ 特性块 ============ */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature-image {
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-hard);
  position: relative;
}

.feature-image img {
  width: 100%;
  height: auto;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}

.feature-image:hover img { transform: scale(1.04); }

.feature-text {
  padding-left: 6px;
  border-left: 3px solid var(--aqua);
  padding-left: 22px;
}

.feature-text h2 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  line-height: 1.28;
}

.feature-text p {
  opacity: 0.72;
  margin-bottom: 18px;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.feature-list li::before {
  content: '✓';
  font-weight: 700;
  color: #fff;
  background: var(--aqua);
  width: 20px; height: 20px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  border: 1px solid var(--ink);
}

/* ============ 数据条 ============ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  transition: 0.25s;
  position: relative;
}

.stat-item:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 4px 4px 0 var(--amber);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  background: linear-gradient(120deg, var(--coral), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.6;
  margin-top: 6px;
}

/* ============ 内容墙 ============ */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.content-wall-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: 0.28s cubic-bezier(.2,.8,.2,1);
  background: #fff;
  position: relative;
}

.content-wall-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1), 6px 6px 0 rgba(0, 191, 166, 0.2);
  border-color: rgba(29, 20, 48, 0.22);
}

.content-wall-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: saturate(1.05);
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}

.content-wall-item:hover img { transform: scale(1.05); }

.content-wall-body {
  padding: 20px;
}

.content-wall-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.content-wall-body p {
  font-size: 0.88rem;
  opacity: 0.65;
}

.content-wall-body time,
.content-wall-body .meta {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--violet);
  font-weight: 600;
  margin-bottom: 8px;
}

/* ============ FAQ ============ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  transition: 0.25s;
}

.faq-item:hover { border-color: rgba(29, 20, 48, 0.28); }

.faq-item.open {
  border-color: var(--ink);
  box-shadow: 4px 4px 0 rgba(255, 74, 37, 0.22);
}

.faq-item .faq-question {
  padding: 16px 20px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.98rem;
}

.faq-item .faq-question::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--coral);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-item .faq-answer {
  padding: 0 20px 16px;
  display: none;
  opacity: 0.7;
  font-size: 0.92rem;
}

.faq-item.open .faq-answer { display: block; }

/* ============ CTA横幅 ============ */
.cta-banner {
  padding: 56px 24px;
  text-align: center;
  border-radius: 12px;
  color: #fff;
  background:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(120deg, var(--coral) 0%, #FF7A3C 42%, var(--violet) 100%);
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-hard);
  position: relative;
  overflow: hidden;
}

.cta-banner::after {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  right: -80px; bottom: -120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(4px);
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 26px;
  position: relative;
  z-index: 2;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--ink) !important;
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  position: relative;
  z-index: 2;
}

.cta-banner .btn-primary:hover {
  box-shadow: 7px 7px 0 var(--ink);
  transform: translate(-3px, -3px);
}

/* ============ 页脚 ============ */
.site-footer {
  padding: 56px 0 28px;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 220px; height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--aqua), var(--amber), var(--coral));
}

.site-footer .container { }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand { }

.footer-brand .logo {
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.66;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--violet);
}

.footer-col ul {
  list-style: none;
}

.footer-col li { margin-bottom: 8px; }

.footer-col a {
  font-size: 0.9rem;
  text-decoration: none;
  opacity: 0.72;
  transition: 0.2s;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--coral);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(29, 20, 48, 0.14);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ============ 工具类 ============ */
.text-accent {
  color: var(--coral);
  font-weight: 700;
  background: linear-gradient(transparent 62%, rgba(255, 158, 44, 0.42) 62%);
  padding: 0 2px;
}

.text-center { text-align: center; }

.text-center .section-desc { margin-left: auto; margin-right: auto; }

.seo-description {
  max-width: 600px;
  margin: 0 auto 48px;
  opacity: 0.7;
  font-size: 0.95rem;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .hero::after { font-size: 14rem; opacity: 0.7; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .feature-block { grid-template-columns: 1fr; gap: 32px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .main-nav {
    display: none;
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: var(--paper);
    padding: 20px;
    gap: 16px;
    border-bottom: 1.5px solid var(--ink);
    box-shadow: 0 12px 30px -18px rgba(29,20,48,0.5);
    align-items: flex-start;
  }

  .main-nav.open a { font-size: 1rem; }

  .menu-toggle { display: flex; }

  .hero {
    padding: 120px 0 72px;
    min-height: auto;
  }

  .feature-text { border-left-width: 3px; }
  .category-card { transform: none !important; }
}

@media (max-width: 480px) {
  .cards-grid,
  .content-wall,
  .stats-bar,
  .footer-grid { grid-template-columns: 1fr; }

  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { justify-content: center; }

  .hero h1 { font-size: 1.9rem; }
  .hero::after { display: none; }

  .cta-banner { padding: 40px 18px; }
  .btn { width: 100%; justify-content: center; }
  .nav-cta { width: auto; }
}