/* 抖漫 - 全站样式 */
:root {
  --primary: #fe2c55;
  --secondary: #25f4ee;
  --dark: #0f0f1a;
  --dark-2: #16162a;
  --dark-3: #1e1e36;
  --text: #e8e8f0;
  --text-muted: #a0a0b8;
  --gradient: linear-gradient(135deg, #fe2c55 0%, #ff6b9d 50%, #25f4ee 100%);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

.container { width: 92%; max-width: 1200px; margin: 0 auto; }

/* ============ 导航栏 ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-size: 1.6rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}
.brand span { font-size: 0.75rem; -webkit-text-fill-color: var(--text-muted); font-weight: 400; margin-left: 6px; }

.nav-menu { display: flex; gap: 2rem; align-items: center; }
.nav-menu a {
  position: relative;
  font-size: 0.95rem;
  color: var(--text);
  padding: 6px 2px;
  transition: color 0.25s;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--secondary); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  align-items: center;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  transition: 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background:
    radial-gradient(circle at 15% 20%, rgba(254, 44, 85, 0.18), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(37, 244, 238, 0.12), transparent 45%),
    var(--dark);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(37, 244, 238, 0.4);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--secondary);
  margin-bottom: 1.2rem;
  animation: fadeInDown 0.8s ease both;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.25;
  font-weight: 900;
  margin-bottom: 1.2rem;
  animation: fadeInUp 0.9s ease both;
}
.hero h1 em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease both;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeInUp 1.1s ease both; }

.btn {
  display: inline-block;
  padding: 13px 34px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(254, 44, 85, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(254, 44, 85, 0.5); }
.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover { border-color: var(--secondary); color: var(--secondary); transform: translateY(-3px); }

.hero-cover {
  position: relative;
  animation: float 5s ease-in-out infinite;
}
.hero-cover img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-cover::after {
  content: "热门连载";
  position: absolute;
  top: 16px; left: -12px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* ============ 通用 Section ============ */
.section { padding: 90px 0; }
.section.alt { background: var(--dark-2); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-head .tag {
  color: var(--secondary);
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin: 0.6rem 0 0.8rem;
}
.section-head p { color: var(--text-muted); }

/* ============ 特性卡片 ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.6rem;
}
.feature-card {
  background: var(--dark-3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(254, 44, 85, 0.5);
  box-shadow: 0 16px 40px rgba(254, 44, 85, 0.15);
}
.feature-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  border-radius: 14px;
  background: rgba(254, 44, 85, 0.12);
  margin-bottom: 1.2rem;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ============ 数据展示 ============ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stat-item { padding: 1.5rem 1rem; }
.stat-item .num {
  font-size: 2.6rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-item .label { color: var(--text-muted); font-size: 0.92rem; margin-top: 4px; }

/* ============ 漫画卡片 ============ */
.comic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.6rem;
}
.comic-card {
  background: var(--dark-3);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.comic-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.comic-card .cover { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.comic-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.comic-card:hover .cover img { transform: scale(1.08); }
.comic-card .badge {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(254, 44, 85, 0.9);
  color: #fff;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 600;
}
.comic-card .info { padding: 1rem 1.1rem 1.3rem; }
.comic-card .info h3 { font-size: 1rem; margin-bottom: 4px; }
.comic-card .info .meta { font-size: 0.8rem; color: var(--text-muted); display: flex; justify-content: space-between; }

/* ============ 分类标签 ============ */
.tag-list { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-bottom: 2.5rem; }
.tag-list .tag-item {
  padding: 8px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: 0.3s;
}
.tag-list .tag-item:hover, .tag-list .tag-item.active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

/* ============ 服务介绍 ============ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.8rem; }
.service-item {
  display: flex;
  gap: 1.2rem;
  background: var(--dark-3);
  border-radius: var(--radius);
  padding: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s, transform 0.3s;
}
.service-item:hover { border-color: rgba(37, 244, 238, 0.5); transform: translateY(-4px); }
.service-item .s-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(37, 244, 238, 0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.service-item h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.service-item p { color: var(--text-muted); font-size: 0.9rem; }

/* ============ 新闻列表 ============ */
.news-list { display: grid; gap: 1.5rem; }
.news-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.6rem;
  background: var(--dark-3);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s, border-color 0.3s;
}
.news-item:hover { transform: translateX(6px); border-color: rgba(254, 44, 85, 0.4); }
.news-item img { width: 100%; height: 100%; object-fit: cover; min-height: 170px; }
.news-item .news-body { padding: 1.4rem 1.4rem 1.4rem 0; }
.news-item time { font-size: 0.8rem; color: var(--secondary); }
.news-item h3 { font-size: 1.15rem; margin: 0.4rem 0 0.6rem; }
.news-item p { color: var(--text-muted); font-size: 0.9rem; }
.news-item .more-link { color: var(--primary); font-size: 0.88rem; font-weight: 600; display: inline-block; margin-top: 0.7rem; }

/* ============ 文章详情 ============ */
.article-wrap { max-width: 820px; margin: 0 auto; }
.article-wrap .article-head { text-align: center; margin-bottom: 2.5rem; }
.article-wrap .article-head h1 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); line-height: 1.4; margin-bottom: 1rem; }
.article-meta { color: var(--text-muted); font-size: 0.88rem; display: flex; gap: 1.5rem; justify-content: center; }
.article-cover { border-radius: var(--radius); margin-bottom: 2.5rem; box-shadow: var(--shadow); }
.article-body h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; padding-left: 14px; border-left: 4px solid var(--primary); }
.article-body h3 { font-size: 1.2rem; margin: 1.8rem 0 0.8rem; }
.article-body p { margin-bottom: 1.1rem; color: #cfcfe0; }
.article-body ul { padding-left: 1.4rem; margin-bottom: 1.2rem; list-style: disc; color: #cfcfe0; }
.article-body img { border-radius: var(--radius); margin: 1.5rem 0; }

/* ============ FAQ ============ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--dark-3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 600;
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}
.faq-q::after { content: "+"; font-size: 1.4rem; color: var(--primary); transition: transform 0.3s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-a .faq-a-inner { padding: 0 1.5rem 1.3rem; color: var(--text-muted); font-size: 0.93rem; }

/* ============ CTA ============ */
.cta-section {
  position: relative;
  padding: 100px 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(254, 44, 85, 0.25), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(37, 244, 238, 0.15), transparent 50%),
    var(--dark-2);
  text-align: center;
  overflow: hidden;
}
.cta-section h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 900; margin-bottom: 1rem; }
.cta-section p { color: var(--text-muted); max-width: 600px; margin: 0 auto 2.2rem; }

/* ============ 页脚 ============ */
.site-footer {
  background: #0a0a12;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-grid h4 { font-size: 1rem; margin-bottom: 1.1rem; color: #fff; }
.footer-grid p, .footer-grid a { color: var(--text-muted); font-size: 0.88rem; }
.footer-grid ul li { margin-bottom: 0.6rem; }
.footer-grid a:hover { color: var(--secondary); }
.footer-brand { font-size: 1.5rem; font-weight: 900; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 0.8rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.4rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ============ 联系页 ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; }
.contact-info-card {
  background: var(--dark-3);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1.4rem;
}
.contact-info-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; color: var(--secondary); }
.contact-info-card p { color: var(--text-muted); font-size: 0.92rem; }
.contact-form {
  background: var(--dark-3);
  border-radius: var(--radius);
  padding: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.form-group { margin-bottom: 1.3rem; }
.form-group label { display: block; font-size: 0.9rem; margin-bottom: 0.5rem; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--dark);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

/* ============ 关于页时间线 ============ */
.timeline { position: relative; max-width: 720px; margin: 0 auto; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--primary), var(--secondary)); }
.timeline-item { position: relative; padding-bottom: 2.2rem; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2rem; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(254, 44, 85, 0.2);
}
.timeline-item h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.timeline-item time { color: var(--secondary); font-size: 0.82rem; }
.timeline-item p { color: var(--text-muted); font-size: 0.92rem; margin-top: 0.4rem; }

/* ============ 回到顶部 ============ */
.back-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 900;
  box-shadow: var(--shadow);
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { transform: translateY(-4px); }

/* ============ 页面头部横幅（子页） ============ */
.page-hero {
  padding: 160px 0 70px;
  text-align: center;
  background:
    radial-gradient(circle at 25% 20%, rgba(254, 44, 85, 0.15), transparent 50%),
    radial-gradient(circle at 75% 80%, rgba(37, 244, 238, 0.1), transparent 50%),
    var(--dark);
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 0.8rem; }
.page-hero p { color: var(--text-muted); max-width: 640px; margin: 0 auto; }
.breadcrumb { margin-top: 1rem; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb a { color: var(--secondary); }

/* ============ 动画 ============ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-cover { max-width: 420px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; }
  .news-item .news-body { padding: 0 1.4rem 1.4rem; }
  .news-item img { max-height: 220px; }
}
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(15, 15, 26, 0.98);
    flex-direction: column;
    padding: 1.5rem 0 2rem;
    gap: 1.2rem;
    transform: translateY(-120%);
    transition: transform 0.35s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-menu.open { transform: translateY(0); }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}
