/* ==========================================================================
   抖漫 - 高清漫画大全 - 热门漫画在线阅读免费平台
   全局样式表 style.css
   深色背景 + 霓虹渐变点缀 · 动漫潮流风 · 完全响应式
   ========================================================================== */

/* ---------- CSS 变量与重置 ---------- */
:root {
  --bg-deep: #0b0d17;
  --bg-dark: #12152a;
  --bg-card: #1a1e38;
  --bg-card-hover: #222747;
  --line: rgba(255, 255, 255, 0.08);
  --text-main: #eef0ff;
  --text-soft: #aab0d0;
  --text-mute: #7b81a8;
  --accent: #7c5cff;
  --accent-2: #ff4d8d;
  --accent-3: #00e5ff;
  --grad-main: linear-gradient(135deg, #7c5cff 0%, #ff4d8d 100%);
  --grad-hero: linear-gradient(120deg, #7c5cff 0%, #00e5ff 55%, #ff4d8d 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 30px rgba(124, 92, 255, 0.35);
  --font-main: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --nav-h: 72px;
  --max-w: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

ul {
  list-style: none;
}

::selection {
  background: rgba(124, 92, 255, 0.5);
  color: #fff;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: #2c3160;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3c4280;
}

/* ---------- 工具类 ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
}

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

.section-head .kicker {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-3);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  padding: 6px 18px;
  border-radius: 40px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-head p {
  color: var(--text-soft);
  font-size: 16px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 8px 28px rgba(255, 77, 141, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(255, 77, 141, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
  border-color: var(--accent-3);
  color: var(--accent-3);
  transform: translateY(-3px);
}

.btn-lg {
  padding: 16px 44px;
  font-size: 17px;
}

/* ---------- 导航栏 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(11, 13, 23, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled {
  background: rgba(11, 13, 23, 0.95);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--grad-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-glow);
}

.brand-name {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
  padding: 6px 0;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-main);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero 主视觉 ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 30%, rgba(124, 92, 255, 0.22) 0%, transparent 45%),
              radial-gradient(circle at 85% 70%, rgba(255, 77, 141, 0.18) 0%, transparent 40%),
              radial-gradient(circle at 60% 10%, rgba(0, 229, 255, 0.12) 0%, transparent 35%),
              var(--bg-deep);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 92, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 92, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  background: rgba(124, 92, 255, 0.35);
  top: -160px;
  right: -120px;
  animation: float-glow 7s ease-in-out infinite;
}

@keyframes float-glow {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
  50% { transform: translateY(30px) scale(1.08); opacity: 1; }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  padding: 8px 18px;
  border-radius: 40px;
  margin-bottom: 22px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 12px var(--accent-3);
  animation: pulse-dot 1.8s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

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

.hero-desc {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 560px;
  margin-bottom: 34px;
}

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

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

.hero-stats .stat {
  text-align: left;
}

.hero-stats .stat strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
}

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

.hero-visual {
  position: relative;
}

.hero-visual .cover-stack {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  transform: rotate(-2deg);
}

.cover-stack img {
  border-radius: 14px;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.3, 1.2);
}

.cover-stack img:nth-child(2) {
  transform: translateY(18px);
}

.cover-stack img:nth-child(3) {
  transform: translateY(-12px);
}

.cover-stack img:hover {
  transform: translateY(-10px) scale(1.04);
}

.floating-card {
  position: absolute;
  background: rgba(26, 30, 56, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  animation: float-card 5s ease-in-out infinite;
}

.floating-card .fc-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--grad-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.floating-card strong {
  display: block;
  font-size: 15px;
}

.floating-card span {
  font-size: 13px;
  color: var(--text-mute);
}

.fc-1 {
  top: -18px;
  left: -26px;
}

.fc-2 {
  bottom: 12%;
  right: -22px;
  animation-delay: 2.4s;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- 通用卡片 ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(124, 92, 255, 0.45);
}

/* ---------- 漫画卡片 ---------- */
.comic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.comic-card {
  overflow: hidden;
}

.comic-card .cover-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.comic-card .cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.comic-card:hover .cover-wrap img {
  transform: scale(1.08);
}

.cover-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 30px;
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 77, 141, 0.4);
}

.cover-tag.tag-new {
  background: linear-gradient(135deg, #00e5ff, #7c5cff);
  box-shadow: 0 4px 14px rgba(0, 229, 255, 0.35);
}

.cover-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 13, 23, 0.55);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.comic-card:hover .cover-hover {
  opacity: 1;
}

.cover-hover .btn {
  font-size: 14px;
  padding: 10px 22px;
}

.comic-info {
  padding: 16px 18px 18px;
}

.comic-info h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--text-mute);
}

.comic-meta .genre {
  color: var(--accent-3);
}

.comic-score {
  color: #ffd166;
  font-weight: 700;
}

/* ---------- 特性 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.feature-item {
  padding: 34px 26px;
  text-align: center;
}

.feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.25), rgba(0, 229, 255, 0.2));
  border: 1px solid rgba(124, 92, 255, 0.35);
  box-shadow: var(--shadow-glow);
}

.feature-item h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-item p {
  font-size: 14px;
  color: var(--text-soft);
}

/* ---------- 服务介绍 ---------- */
.services {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-dark) 100%);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-item {
  padding: 38px 30px;
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-item:hover::before {
  transform: scaleX(1);
}

.service-item .num {
  font-size: 44px;
  font-weight: 900;
  color: rgba(124, 92, 255, 0.18);
  line-height: 1;
  margin-bottom: 14px;
}

.service-item h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-item p {
  font-size: 14.5px;
  color: var(--text-soft);
  margin-bottom: 16px;
}

.service-item ul {
  font-size: 14px;
  color: var(--text-mute);
}

.service-item ul li {
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.service-item ul li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--accent-3);
  font-size: 11px;
  top: 6px;
}

/* ---------- 榜单 / 数据 ---------- */
.rank-section {
  background: var(--bg-dark);
}

.rank-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.rank-box {
  padding: 30px;
}

.rank-box h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rank-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 10px;
  border-radius: 10px;
  transition: background 0.25s ease;
}

.rank-list li:hover {
  background: rgba(255, 255, 255, 0.04);
}

.rank-no {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--text-soft);
}

.rank-list li:nth-child(1) .rank-no,
.rank-list li:nth-child(2) .rank-no,
.rank-list li:nth-child(3) .rank-no {
  background: var(--grad-main);
  color: #fff;
}

.rank-name {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
}

.rank-score {
  font-size: 14px;
  color: #ffd166;
  font-weight: 700;
}

.data-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 50px;
}

.data-item {
  text-align: center;
  padding: 28px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.data-item strong {
  display: block;
  font-size: 34px;
  font-weight: 900;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.data-item span {
  font-size: 14px;
  color: var(--text-mute);
}

/* ---------- 资讯卡片 ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.news-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-card .news-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.news-card .news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.news-card:hover .news-thumb img {
  transform: scale(1.07);
}

.news-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-body .news-cat {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-3);
  margin-bottom: 10px;
}

.news-body h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
}

.news-body p {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-mute);
}

.news-foot .more {
  color: var(--accent-3);
  font-weight: 600;
}

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-soft);
  transition: all 0.25s ease;
}

.pagination .current {
  background: var(--grad-main);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(255, 77, 141, 0.35);
}

.pagination a:hover {
  border-color: var(--accent);
  color: var(--text-main);
  transform: translateY(-2px);
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(124, 92, 255, 0.16), rgba(255, 77, 141, 0.14), rgba(0, 229, 255, 0.12));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(110px);
  background: rgba(124, 92, 255, 0.4);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
}

.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.cta h2 {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 900;
  margin-bottom: 16px;
}

.cta p {
  color: var(--text-soft);
  font-size: 17px;
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- 时间线 ---------- */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), var(--accent-3));
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  padding: 0 0 38px 26px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 8px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 3px solid var(--accent-3);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.15);
}

.timeline-item .tl-year {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-3);
  margin-bottom: 4px;
}

.timeline-item h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-item p {
  font-size: 14.5px;
  color: var(--text-soft);
}

/* ---------- 团队 ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.team-card {
  text-align: center;
  padding: 30px 20px;
}

.team-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid transparent;
  background: var(--grad-main);
  background-clip: padding-box;
  box-shadow: 0 0 24px rgba(124, 92, 255, 0.4);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 14px;
  color: var(--accent-3);
  margin-bottom: 10px;
}

.team-card p {
  font-size: 13.5px;
  color: var(--text-mute);
}

/* ---------- 价值观 ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.value-item {
  padding: 34px 26px;
}

.value-item .val-icon {
  font-size: 36px;
  margin-bottom: 14px;
}

.value-item h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.value-item p {
  font-size: 14px;
  color: var(--text-soft);
}

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

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

.faq-item.open {
  border-color: rgba(124, 92, 255, 0.5);
}

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

.faq-q .q-icon {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(124, 92, 255, 0.2);
  color: var(--accent-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.3s ease;
}

.faq-item.open .q-icon {
  transform: rotate(45deg);
}

.faq-a {
  display: none;
  padding: 0 24px 20px;
  font-size: 14.5px;
  color: var(--text-soft);
}

.faq-item.open .faq-a {
  display: block;
}

/* ---------- 文章详情 ---------- */
.article-hero {
  padding-top: calc(var(--nav-h) + 50px);
  background: linear-gradient(180deg, var(--bg-dark), var(--bg-deep));
  text-align: center;
}

.article-hero .container {
  max-width: 860px;
}

.article-hero .article-cat {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-3);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  padding: 5px 16px;
  border-radius: 30px;
  margin-bottom: 18px;
}

.article-hero h1 {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 18px;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--text-mute);
  font-size: 14px;
}

.article-body {
  max-width: 820px;
  margin: 0 auto;
}

.article-body .lead {
  font-size: 17px;
  color: var(--text-soft);
  border-left: 4px solid var(--accent);
  padding-left: 18px;
  margin-bottom: 26px;
}

.article-body h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 34px 0 14px;
  color: var(--text-main);
}

.article-body h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 26px 0 12px;
}

.article-body p {
  font-size: 16px;
  color: var(--text-soft);
  margin-bottom: 18px;
}

.article-body img {
  border-radius: var(--radius);
  margin: 24px 0;
  box-shadow: var(--shadow);
}

.article-body blockquote {
  border-left: 4px solid var(--accent-3);
  background: rgba(0, 229, 255, 0.06);
  padding: 18px 22px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
  color: var(--text-main);
  font-style: italic;
}

.article-body ul {
  margin: 0 0 18px 22px;
  list-style: disc;
  color: var(--text-soft);
}

.article-body ul li {
  padding: 4px 0;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0;
}

.article-tags span {
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 30px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text-soft);
}

.article-share {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
  color: var(--text-mute);
  font-size: 14px;
}

.share-btn {
  padding: 8px 18px;
  border-radius: 30px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.25s ease;
}

.share-btn:hover {
  border-color: var(--accent);
  color: var(--text-main);
}

/* ---------- 联系我们 ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 20px;
}

.contact-info-item .ci-icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--grad-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.contact-info-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: 14px;
  color: var(--text-mute);
  word-break: break-all;
}

.contact-form-card {
  padding: 38px 34px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 8px;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group select option {
  background: var(--bg-card);
}

.form-error {
  display: none;
  font-size: 13px;
  color: #ff6b81;
  margin-top: 6px;
}

.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea {
  border-color: #ff6b81;
}

.form-group.invalid .form-error {
  display: block;
}

.form-tip {
  font-size: 13px;
  color: var(--text-mute);
  margin-top: 4px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success .ok-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--grad-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: var(--shadow-glow);
}

.form-success h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}

.form-success p {
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 24px;
}

/* ---------- 筛选交互 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 9px 24px;
  border-radius: 40px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--text-main);
}

.filter-btn.active {
  background: var(--grad-main);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(255, 77, 141, 0.3);
}

.filter-empty {
  display: none;
  text-align: center;
  padding: 60px 0;
  color: var(--text-mute);
  font-size: 16px;
}

.filter-empty.show {
  display: block;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #080a14;
  border-top: 1px solid var(--line);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 46px;
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-mute);
  max-width: 300px;
}

.footer-col h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-col ul li {
  padding: 5px 0;
}

.footer-col ul a {
  font-size: 14px;
  color: var(--text-mute);
}

.footer-col ul a:hover {
  color: var(--accent-3);
}

.footer-newsletter {
  font-size: 14px;
  color: var(--text-mute);
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 11px 14px;
  border-radius: 8px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  color: var(--text-main);
  font-size: 14px;
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--accent);
}

.newsletter-form button {
  padding: 11px 20px;
  border-radius: 8px;
  background: var(--grad-main);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.newsletter-form button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-mute);
}

.footer-bottom .legal a {
  margin-left: 16px;
  color: var(--text-mute);
}

.footer-bottom .legal a:hover {
  color: var(--accent-3);
}

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed;
  right: 26px;
  bottom: 40px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--grad-main);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(255, 77, 141, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
  z-index: 900;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  transform: translateY(-4px);
}

/* ---------- 滚动渐入动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .comic-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    max-width: 460px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgba(11, 13, 23, 0.98);
    backdrop-filter: blur(14px);
    padding: 12px 24px 22px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
  }

  .nav-links a::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 30px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .hero-stats {
    gap: 24px;
  }

  .comic-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .rank-layout {
    grid-template-columns: 1fr;
  }

  .data-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-form-card {
    padding: 26px 20px;
  }

  .floating-card {
    display: none;
  }

  .back-top {
    right: 16px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .comic-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .comic-info {
    padding: 12px 12px 14px;
  }

  .comic-info h3 {
    font-size: 15px;
  }

  .section-head h2 {
    font-size: 26px;
  }

  .data-strip {
    grid-template-columns: 1fr 1fr;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* 无障碍：焦点可见 */
:focus-visible {
  outline: 2px solid var(--accent-3);
  outline-offset: 2px;
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
