/* ==========================================================================
   91漫画 - 全局样式
   深色漫画主题 · 响应式 · 动效
   ========================================================================== */

:root {
  --bg: #0f1020;
  --bg-soft: #171833;
  --bg-card: #1d1f3d;
  --bg-line: rgba(255, 255, 255, 0.08);
  --text: #eef0ff;
  --text-muted: #a5a9c9;
  --primary: #ff5e3a;
  --primary-2: #ff2a68;
  --accent: #7c4dff;
  --gold: #ffc94d;
  --gradient: linear-gradient(120deg, #ff5e3a 0%, #ff2a68 55%, #7c4dff 100%);
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --container: 1200px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 16, 32, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bg-line);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
}

.brand .logo-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 42, 104, 0.4);
}

.brand span em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu a {
  font-size: 15px;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active { color: var(--text); }
.nav-menu a:hover::after,
.nav-menu a.active::after { width: 100%; }

.nav-cta {
  padding: 9px 22px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(255, 42, 104, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
}

.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255, 42, 104, 0.5); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(800px 420px at 85% -10%, rgba(124, 77, 255, 0.35), transparent 60%),
    radial-gradient(700px 420px at 8% 110%, rgba(255, 42, 104, 0.28), transparent 60%),
    var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 94, 58, 0.45);
  background: rgba(255, 94, 58, 0.12);
  color: #ffb4a0;
  font-size: 13px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.25;
  font-weight: 900;
  margin-bottom: 20px;
}

.hero h1 .hl {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 42, 104, 0.4);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(255, 42, 104, 0.55); }

.btn-ghost {
  border: 1px solid var(--bg-line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-3px); }

.hero-cover {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  transition: transform 0.5s;
}

.hero-cover:hover { transform: rotate(0deg) scale(1.02); }
.hero-cover img { width: 100%; height: 460px; object-fit: cover; }

.hero-cover .cover-chip {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(15, 16, 32, 0.8);
  backdrop-filter: blur(8px);
  font-size: 13px;
  color: var(--gold);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.hero-stats .stat b {
  display: block;
  font-size: 30px;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stats .stat span { color: var(--text-muted); font-size: 14px; }

/* ---------- 通用 section ---------- */
section { padding: 84px 0; }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 54px; }

.section-head .kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 900; margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 16px; }

/* ---------- 特性卡片 ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-line);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 94, 58, 0.5);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.5);
}

.feature-card .icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 20px;
  box-shadow: 0 8px 22px rgba(124, 77, 255, 0.4);
}

.feature-card h3 { font-size: 19px; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- 漫画卡片 ---------- */
.comic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 22px;
}

.comic-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s, box-shadow 0.35s;
}

.comic-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }

.comic-card .thumb { position: relative; overflow: hidden; }
.comic-card .thumb img { width: 100%; height: 240px; object-fit: cover; transition: transform 0.6s; }
.comic-card:hover .thumb img { transform: scale(1.08); }

.comic-card .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  background: var(--gradient);
  color: #fff;
}

.comic-card .meta { padding: 14px 16px 18px; }
.comic-card h3 { font-size: 15.5px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comic-card .meta p { font-size: 12.5px; color: var(--text-muted); display: flex; justify-content: space-between; }

/* ---------- 分类标签 ---------- */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 40px; }

.cat-tabs button {
  padding: 9px 22px;
  border-radius: 999px;
  border: 1px solid var(--bg-line);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
  font-family: var(--font);
}

.cat-tabs button:hover,
.cat-tabs button.active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(255, 42, 104, 0.35);
}

/* ---------- 服务介绍 ---------- */
.services-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.services-wrap .pic { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.services-wrap .pic img { height: 420px; width: 100%; object-fit: cover; }

.service-list li {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--bg-line);
}

.service-list li:last-child { border-bottom: 0; }

.service-list .num {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(124, 77, 255, 0.18);
  color: #b79aff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.service-list h3 { font-size: 17px; margin-bottom: 6px; }
.service-list p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- CTA ---------- */
.cta-box {
  position: relative;
  border-radius: 24px;
  padding: 70px 40px;
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% -40%, rgba(255, 201, 77, 0.22), transparent 60%),
    var(--gradient);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cta-box h2 { font-size: clamp(26px, 3.4vw, 40px); color: #fff; margin-bottom: 14px; font-weight: 900; }
.cta-box p { color: rgba(255, 255, 255, 0.88); margin-bottom: 32px; font-size: 17px; }

.cta-box .btn {
  background: #fff;
  color: #e0306b;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.cta-box .btn:hover { transform: translateY(-3px) scale(1.03); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--bg-line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  font-family: var(--font);
}

.faq-q .arrow { transition: transform 0.3s; color: var(--primary); flex: none; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-a p { padding: 0 24px 22px; color: var(--text-muted); font-size: 14.5px; }

/* ---------- 新闻 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; }

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s, box-shadow 0.35s;
  display: flex;
  flex-direction: column;
}

.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.news-card .thumb { overflow: hidden; }
.news-card .thumb img { height: 200px; width: 100%; object-fit: cover; transition: transform 0.6s; }
.news-card:hover .thumb img { transform: scale(1.06); }

.news-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.news-card time { font-size: 12.5px; color: var(--primary); font-weight: 700; }
.news-card h3 { font-size: 18px; margin: 8px 0 10px; }
.news-card p { color: var(--text-muted); font-size: 14px; flex: 1; }
.news-card .more { margin-top: 16px; color: var(--primary); font-weight: 700; font-size: 14px; }

/* ---------- 文章详情 ---------- */
.article-wrap { max-width: 860px; margin: 0 auto; }

.article-head { margin-bottom: 34px; }
.article-head h1 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.4; margin-bottom: 16px; font-weight: 900; }
.article-meta { color: var(--text-muted); font-size: 14px; display: flex; gap: 20px; flex-wrap: wrap; }

.article-hero { border-radius: 18px; overflow: hidden; margin-bottom: 36px; box-shadow: var(--shadow); }
.article-hero img { width: 100%; max-height: 420px; object-fit: cover; }

.article-body h2 { font-size: 24px; margin: 38px 0 16px; padding-left: 14px; border-left: 4px solid var(--primary); }
.article-body p { color: #c9cbe4; margin-bottom: 18px; font-size: 16px; }
.article-body ul { margin: 0 0 18px 22px; color: #c9cbe4; }
.article-body ul li { list-style: disc; margin-bottom: 8px; }

/* ---------- 关于页 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-grid .pic { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.about-grid .pic img { width: 100%; height: 400px; object-fit: cover; }
.about-grid h2 { font-size: 30px; margin-bottom: 18px; font-weight: 900; }
.about-grid p { color: var(--text-muted); margin-bottom: 14px; }

.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }

.timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--gradient); }
.timeline li { position: relative; padding: 0 0 34px 26px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(255, 94, 58, 0.2);
}
.timeline b { color: var(--gold); margin-right: 10px; }
.timeline p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }

.contact-info li {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--bg-line);
}

.contact-info .ic {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 94, 58, 0.15);
  display: grid;
  place-items: center;
  font-size: 20px;
}

.contact-info h3 { font-size: 16px; }
.contact-info p { color: var(--text-muted); font-size: 14px; }

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-line);
  border-radius: 18px;
  padding: 36px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; margin-bottom: 8px; color: var(--text-muted); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--bg-line);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 94, 58, 0.18);
}

.form-group textarea { resize: vertical; min-height: 130px; }
.form-tip { font-size: 13px; color: var(--text-muted); margin-top: 14px; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--bg-line);
  background: #0b0c1a;
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-grid h3 { font-size: 16px; margin-bottom: 18px; }
.footer-grid p, .footer-grid a { color: var(--text-muted); font-size: 14px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--primary); }

.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 900; margin-bottom: 16px; }

.footer-bottom {
  border-top: 1px solid var(--bg-line);
  padding: 22px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
}

/* ---------- 页头横幅(内页) ---------- */
.page-hero {
  padding: 90px 0 70px;
  text-align: center;
  background:
    radial-gradient(700px 360px at 50% -30%, rgba(124, 77, 255, 0.35), transparent 65%),
    var(--bg);
}

.page-hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 900; margin-bottom: 14px; }
.page-hero p { color: var(--text-muted); max-width: 640px; margin: 0 auto; }

.breadcrumb { font-size: 13.5px; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--primary); }

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  border: 0;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 90;
  box-shadow: 0 8px 22px rgba(255, 42, 104, 0.4);
}

.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-4px); }

/* ---------- 滚动渐入动画 ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.float-anim { animation: floatY 5s ease-in-out infinite; }

/* ---------- 筛选隐藏 ---------- */
.comic-card.hide { display: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner, .services-wrap, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 60px; }
  .hero-cover img { height: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(15, 16, 32, 0.98);
    border-bottom: 1px solid var(--bg-line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .nav-menu.open { max-height: 420px; }
  .nav-menu a { padding: 15px 24px; border-top: 1px solid var(--bg-line); }
  .nav-menu a::after { display: none; }
  .nav-cta { margin: 14px 24px; text-align: center; }
  section { padding: 60px 0; }
  .comic-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
  .comic-card .thumb img { height: 190px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-stats { gap: 24px; }
  .cta-box { padding: 50px 22px; }
}
