@charset "UTF-8";

/* =========================================================
   抖漫 DouMan · 全局样式
   极速高清漫画在线阅读平台
   ========================================================= */

/* ---------- 01. 设计变量 ---------- */
:root {
  --bg: #07080f;
  --bg-soft: #0b0e1b;
  --panel: #11152a;
  --panel-2: #171c33;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0fb;
  --text-sub: #b6bcd6;
  --muted: #8b93b0;
  --brand: #7b5cff;
  --brand-2: #ff4d8d;
  --brand-3: #ffb020;
  --brand-4: #2ee6c5;
  --grad: linear-gradient(120deg, #7b5cff 0%, #ff4d8d 55%, #ffb020 100%);
  --grad-soft: linear-gradient(135deg, rgba(123, 92, 255, 0.22), rgba(255, 77, 141, 0.12));
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
  --shadow-brand: 0 18px 50px -18px rgba(123, 92, 255, 0.65);
  --container: 1200px;
  --header-h: 74px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 02. 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 500px at 12% -8%, rgba(123, 92, 255, 0.22), transparent 60%),
    radial-gradient(600px 480px at 92% 4%, rgba(255, 77, 141, 0.16), transparent 62%),
    radial-gradient(900px 700px at 50% 108%, rgba(46, 230, 197, 0.08), transparent 65%);
  pointer-events: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

::selection {
  background: rgba(123, 92, 255, 0.45);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--brand-3);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 03. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 92px 0;
  position: relative;
  scroll-margin-top: 92px;
}

section[id] {
  scroll-margin-top: 92px;
}

.section-sm {
  padding: 60px 0;
}

.bg-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

/* ---------- 04. 文字与装饰 ---------- */
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 12px var(--brand-2);
}

.section-head {
  max-width: 760px;
  margin-bottom: 52px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  margin-top: 18px;
  font-size: clamp(1.8rem, 3.4vw, 2.65rem);
}

.section-head p {
  margin-top: 16px;
  color: var(--text-sub);
  font-size: 1.03rem;
}

.lead {
  color: var(--text-sub);
  font-size: 1.06rem;
  line-height: 1.9;
}

.text-muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.glow.purple {
  background: rgba(123, 92, 255, 0.5);
}

.glow.pink {
  background: rgba(255, 77, 141, 0.4);
}

/* ---------- 05. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--grad);
  background-size: 160% 160%;
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 22px 58px -18px rgba(255, 77, 141, 0.7);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.32);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-3);
  font-weight: 700;
  font-size: 0.94rem;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}

.link-arrow:hover {
  gap: 14px;
  color: #ffd479;
}

/* ---------- 06. 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(7, 8, 15, 0.72);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(6, 7, 14, 0.92);
  box-shadow: 0 12px 34px -18px rgba(0, 0, 0, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--grad);
  color: #fff;
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 12px 30px -12px rgba(123, 92, 255, 0.9);
  transform: rotate(-4deg);
  transition: transform 0.4s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(4deg) scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-desc {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}

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

.nav-links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 9px;
  color: var(--text-sub);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s var(--ease);
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-links a[aria-current="page"] {
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  cursor: pointer;
}

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

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 07. Hero ---------- */
#hero {
  position: relative;
  padding: 84px 0 76px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  margin-top: 22px;
  font-size: clamp(2.15rem, 4.6vw, 3.55rem);
  font-weight: 900;
  letter-spacing: -0.025em;
}

.hero-copy h1 .line {
  display: block;
}

.hero-desc {
  margin-top: 22px;
  max-width: 560px;
  color: var(--text-sub);
  font-size: 1.05rem;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-tags span {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.hero-stats .num {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stats .label {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* 首屏封面堆叠 */
.hero-visual {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-ring {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  animation: spin 46s linear infinite;
}

.hero-ring::after {
  content: "";
  position: absolute;
  top: 28px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 24px var(--brand-2);
}

.hero-ring.small {
  width: 310px;
  height: 310px;
  animation-direction: reverse;
  animation-duration: 34s;
  border-color: rgba(255, 255, 255, 0.1);
}

.cover-stack {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 460px;
}

.cover-item {
  position: absolute;
  width: 190px;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.95);
  background: var(--panel);
}

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

.cover-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(4, 5, 10, 0.88));
}

.cover-item .cover-name {
  position: absolute;
  left: 14px;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
}

.cover-item .cover-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(7, 8, 15, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.68rem;
  color: #e7e9ff;
}

.cover-item.c1 {
  top: 24px;
  left: 8%;
  transform: rotate(-9deg);
  animation: floaty 7s ease-in-out infinite;
}

.cover-item.c2 {
  top: 110px;
  left: 38%;
  z-index: 3;
  width: 208px;
  transform: rotate(3deg);
  animation: floaty 8.5s ease-in-out infinite 0.6s;
}

.cover-item.c3 {
  top: 66px;
  right: 2%;
  transform: rotate(11deg);
  animation: floaty 7.8s ease-in-out infinite 1.2s;
}

.hero-badge {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(17, 21, 42, 0.9);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  backdrop-filter: blur(10px);
}

.hero-badge b {
  color: var(--brand-3);
}

.hero-badge.b1 {
  top: 4%;
  right: 4%;
  animation: floaty 6s ease-in-out infinite 0.3s;
}

.hero-badge.b2 {
  bottom: 3%;
  left: 4%;
  animation: floaty 7.4s ease-in-out infinite 0.9s;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-4);
  box-shadow: 0 0 12px var(--brand-4);
}

/* ---------- 08. 热门跑马灯 ---------- */
.ticker {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(123, 92, 255, 0.12), rgba(255, 77, 141, 0.08));
  padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 44px;
  animation: marquee 34s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-sub);
  font-size: 0.9rem;
  white-space: nowrap;
}

.ticker-item i {
  font-style: normal;
  color: var(--brand-2);
  font-weight: 800;
}

.ticker-item em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---------- 09. 特性卡 ---------- */
.feature-card {
  position: relative;
  padding: 32px 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -30%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 92, 255, 0.32), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.feature-card:hover {
  transform: translateY(-7px);
  border-color: rgba(123, 92, 255, 0.42);
  box-shadow: 0 26px 50px -26px rgba(0, 0, 0, 0.9);
}

.feature-card:hover::before {
  opacity: 1;
  transform: translate(-20px, 40px);
}

.feature-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--grad-soft);
  border: 1px solid rgba(123, 92, 255, 0.32);
  color: #cbbcff;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  margin-top: 22px;
  font-size: 1.15rem;
}

.feature-card p {
  margin-top: 10px;
  color: var(--text-sub);
  font-size: 0.93rem;
  line-height: 1.85;
}

.feature-meta {
  display: inline-block;
  margin-top: 18px;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(255, 176, 32, 0.12);
  color: var(--brand-3);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

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

.comic-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.comic-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 77, 141, 0.42);
  box-shadow: 0 28px 48px -26px rgba(0, 0, 0, 0.95);
}

.comic-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--panel-2);
}

.comic-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

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

.comic-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(5, 6, 12, 0.92));
}

.comic-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--grad);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.comic-badge.hot {
  background: linear-gradient(120deg, #ff4d4d, #ff9a3c);
}

.comic-badge.new {
  background: linear-gradient(120deg, #2ee6c5, #3f8cff);
}

.comic-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(7, 8, 15, 0.55);
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.comic-card:hover .comic-play {
  opacity: 1;
  transform: translateY(0);
}

.comic-body {
  padding: 14px 16px 16px;
}

.comic-body h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.comic-body h3 a:hover {
  color: #cbbcff;
}

.comic-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.comic-meta .tag {
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--text-sub);
}

.comic-meta .views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------- 11. 排行榜 ---------- */
.rank-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.rank-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.rank-head h3 {
  font-size: 1.05rem;
}

.rank-head span {
  font-size: 0.75rem;
  color: var(--muted);
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  transition: transform 0.3s var(--ease);
}

.rank-item:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.rank-item:hover {
  transform: translateX(5px);
}

.rank-no {
  width: 26px;
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 900;
  font-style: italic;
  color: var(--muted);
  text-align: center;
}

.rank-item:nth-child(2) .rank-no {
  color: #ff5d5d;
}

.rank-item:nth-child(3) .rank-no {
  color: #ff9f43;
}

.rank-item:nth-child(4) .rank-no {
  color: #ffd479;
}

.rank-thumb {
  width: 52px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel-2);
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-info {
  min-width: 0;
}

.rank-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-info p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
}

.rank-heat {
  margin-left: auto;
  color: var(--brand-3);
  font-size: 0.75rem;
  font-weight: 700;
}

.library-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: start;
}

/* ---------- 12. 服务介绍 ---------- */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 46px 0;
  border-bottom: 1px dashed var(--line);
}

.service-row:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.service-row.reverse .service-media {
  order: 2;
}

.service-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--panel);
}

.service-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(123, 92, 255, 0.18), transparent 55%, rgba(255, 77, 141, 0.16));
}

.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--brand-3);
  text-transform: uppercase;
}

.service-tag::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brand-3);
}

.service-copy h2 {
  margin-top: 14px;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

.service-copy p {
  margin-top: 14px;
  color: var(--text-sub);
  font-size: 0.97rem;
}

.service-list {
  margin-top: 22px;
}

.service-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--text-sub);
  font-size: 0.93rem;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(46, 230, 197, 0.14);
  border: 1px solid rgba(46, 230, 197, 0.4);
}

.service-list li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-4);
}

/* ---------- 13. 资讯卡片 ---------- */
.news-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 176, 32, 0.4);
}

.news-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--panel-2);
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

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

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

.news-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.news-date::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--muted);
}

.news-body h3 {
  margin-top: 10px;
  font-size: 1.05rem;
  line-height: 1.5;
}

.news-body p {
  margin-top: 10px;
  color: var(--text-sub);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-body .link-arrow {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.85rem;
}

/* ---------- 14. CTA ---------- */
#cta {
  padding: 40px 0 96px;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: 68px 56px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(600px 320px at 8% 0%, rgba(123, 92, 255, 0.55), transparent 65%),
    radial-gradient(520px 300px at 92% 100%, rgba(255, 77, 141, 0.45), transparent 62%),
    linear-gradient(135deg, #1a1140, #221027 60%, #2a1a0f);
  text-align: center;
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 72%);
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 72%);
  opacity: 0.7;
}

.cta-panel > * {
  position: relative;
  z-index: 2;
}

.cta-panel h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
}

.cta-panel p {
  max-width: 620px;
  margin: 16px auto 0;
  color: #d8d5ee;
  font-size: 1.02rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
}

.cta-note {
  margin-top: 22px !important;
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 0.82rem !important;
}

/* ---------- 15. FAQ ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 4px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  transition: color 0.25s var(--ease);
}

.faq-question:hover {
  color: #cbbcff;
}

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-sub);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  background: rgba(123, 92, 255, 0.18);
  border-color: rgba(123, 92, 255, 0.5);
}

.faq-item.open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item.open .faq-icon::before,
.faq-item.open .faq-icon::after {
  background: #cbbcff;
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease);
}

.faq-item.open .faq-answer {
  max-height: 400px;
  opacity: 1;
}

.faq-answer p {
  padding: 0 4px 24px;
  color: var(--text-sub);
  font-size: 0.94rem;
  line-height: 1.9;
}

.faq-side {
  padding: 32px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(123, 92, 255, 0.14), rgba(255, 255, 255, 0.02));
}

.faq-side h3 {
  font-size: 1.2rem;
}

.faq-side p {
  margin-top: 12px;
  color: var(--text-sub);
  font-size: 0.93rem;
}

.faq-side .btn {
  margin-top: 24px;
}

/* ---------- 16. 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.35));
  padding: 72px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  margin-top: 18px;
  max-width: 320px;
  color: var(--text-sub);
  font-size: 0.9rem;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.footer-tags span {
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

.footer-col h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 11px;
}

.footer-col a {
  color: var(--text-sub);
  font-size: 0.88rem;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.footer-col a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-bottom p {
  max-width: 780px;
}

.footer-bottom .meta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-bottom a:hover {
  color: var(--text);
}

/* ---------- 17. 内页头部 ---------- */
.page-hero {
  position: relative;
  padding: 72px 0 60px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(520px 300px at 12% 0%, rgba(123, 92, 255, 0.26), transparent 65%),
    radial-gradient(460px 280px at 88% 10%, rgba(255, 77, 141, 0.16), transparent 65%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb span.sep {
  color: rgba(255, 255, 255, 0.3);
}

.page-hero h1 {
  margin-top: 20px;
  max-width: 900px;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.page-hero .lead {
  margin-top: 18px;
  max-width: 720px;
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.85rem;
}

.page-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* ---------- 18. 文章正文 ---------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 46px;
  align-items: start;
}

.prose {
  font-size: 1rem;
  color: var(--text-sub);
}

.prose > p {
  margin-bottom: 20px;
  line-height: 2;
}

.prose h2 {
  margin: 42px 0 16px;
  font-size: 1.42rem;
  color: var(--text);
}

.prose h3 {
  margin: 30px 0 12px;
  font-size: 1.14rem;
  color: var(--text);
}

.prose ul,
.prose ol {
  margin: 0 0 22px;
  padding-left: 22px;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 9px;
  line-height: 1.9;
}

.prose figure {
  margin: 30px 0;
}

.prose figure img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.prose figcaption {
  margin-top: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.quote-box {
  margin: 30px 0;
  padding: 22px 26px;
  border-left: 3px solid var(--brand);
  border-radius: 0 12px 12px 0;
  background: rgba(123, 92, 255, 0.09);
  color: var(--text-sub);
  font-size: 0.95rem;
}

.article-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-tags span {
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--text-sub);
  font-size: 0.78rem;
}

.aside-stack > * + * {
  margin-top: 22px;
}

.aside-card {
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.aside-card h3 {
  font-size: 1rem;
}

.aside-card p {
  margin-top: 10px;
  color: var(--text-sub);
  font-size: 0.88rem;
}

.aside-links {
  margin-top: 16px;
}

.aside-links a {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--text-sub);
  font-size: 0.86rem;
  transition: color 0.25s var(--ease);
}

.aside-links a:last-child {
  border-bottom: 0;
}

.aside-links a:hover {
  color: #fff;
}

.aside-links a::before {
  content: "›";
  color: var(--brand-3);
  font-weight: 700;
}

/* ---------- 19. 时间线 ---------- */
.timeline {
  position: relative;
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.timeline-item {
  position: relative;
  padding-bottom: 34px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -41px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 5px rgba(123, 92, 255, 0.12);
}

.timeline-year {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--brand-3);
}

.timeline-item h3 {
  margin-top: 6px;
  font-size: 1.05rem;
}

.timeline-item p {
  margin-top: 6px;
  color: var(--text-sub);
  font-size: 0.9rem;
}

/* ---------- 20. 数据条 ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.stat-cell {
  padding: 30px 26px;
  background: #0e1222;
  transition: background 0.35s var(--ease);
}

.stat-cell:hover {
  background: #141a30;
}

.stat-cell .num {
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-cell .label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- 21. 筛选栏 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.filter-bar .filter-label {
  margin-right: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-sub);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.filter-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.filter-btn.active {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(123, 92, 255, 0.8);
}

/* ---------- 22. 联系页 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.contact-card {
  padding: 30px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(123, 92, 255, 0.4);
}

.contact-card .ct-label {
  color: var(--brand-3);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.contact-card h3 {
  margin-top: 12px;
  font-size: 1.08rem;
}

.contact-card p {
  margin-top: 8px;
  color: var(--text-sub);
  font-size: 0.9rem;
}

.contact-card .ct-value {
  display: block;
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #d8d2ff;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 46px;
  align-items: start;
}

.form-panel {
  padding: 38px 34px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
}

.form-panel h2 {
  font-size: 1.4rem;
}

.form-panel > p {
  margin-top: 10px;
  color: var(--text-sub);
  font-size: 0.92rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--text-sub);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(7, 8, 15, 0.6);
  color: var(--text);
  font-size: 0.92rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6c7492;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(123, 92, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(123, 92, 255, 0.16);
  background: rgba(13, 15, 28, 0.9);
}

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

.form-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.78rem;
}

.form-feedback {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(46, 230, 197, 0.4);
  background: rgba(46, 230, 197, 0.1);
  color: #9ff5e3;
  font-size: 0.88rem;
}

.form-feedback.show {
  display: block;
  animation: fadeUp 0.5s var(--ease) both;
}

.contact-aside {
  padding: 34px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(123, 92, 255, 0.12), rgba(255, 255, 255, 0.02));
}

.contact-aside h2 {
  font-size: 1.25rem;
}

.contact-aside p {
  margin-top: 12px;
  color: var(--text-sub);
  font-size: 0.9rem;
}

.contact-aside ul {
  margin-top: 20px;
}

.contact-aside li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.88rem;
}

.contact-aside li span:first-child {
  color: var(--muted);
}

.contact-aside li span:last-child {
  color: #d8d2ff;
  font-weight: 600;
}

.map-frame {
  margin-top: 28px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}

.map-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---------- 23. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(17, 21, 42, 0.92);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s, background 0.3s;
  backdrop-filter: blur(10px);
}

.to-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.to-top:hover {
  background: var(--brand);
  border-color: transparent;
}

/* ---------- 24. 动画 ---------- */
@keyframes floaty {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -14px;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(123, 92, 255, 0.45);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(123, 92, 255, 0);
  }
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  will-change: opacity, transform;
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-enabled .reveal[data-delay="1"] {
  transition-delay: 0.08s;
}

.js-enabled .reveal[data-delay="2"] {
  transition-delay: 0.16s;
}

.js-enabled .reveal[data-delay="3"] {
  transition-delay: 0.24s;
}

.js-enabled .reveal[data-delay="4"] {
  transition-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js-enabled .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 25. 响应式 ---------- */
@media (max-width: 1100px) {
  .hero-grid {
    gap: 32px;
  }

  .hero-visual {
    min-height: 440px;
  }

  .cover-stack {
    transform: scale(0.9);
  }

  .library-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }

  .comic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-grid .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 14px 24px 22px;
    background: rgba(8, 10, 18, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.9);
  }

  .nav.open {
    display: flex;
    animation: fadeUp 0.35s var(--ease) both;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-links a {
    padding: 13px 12px;
    font-size: 0.95rem;
  }

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

  .nav-actions {
    margin-top: 12px;
  }

  .nav-actions .btn {
    flex: 1;
  }

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

  .hero-visual {
    order: -1;
    min-height: 380px;
  }

  .cover-stack {
    transform: scale(0.78);
    height: 340px;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-stats {
    margin-top: 36px;
  }

  .grid-3,
  .grid-4,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-row,
  .service-row.reverse {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-row.reverse .service-media {
    order: 0;
  }

  .faq-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cta-panel {
    padding: 52px 28px;
  }

  .comic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 68px 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 18px;
  }

  .header-inner {
    min-height: 64px;
  }

  :root {
    --header-h: 64px;
  }

  .brand-desc {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.85rem, 8.4vw, 2.5rem);
  }

  .hero-visual {
    min-height: 320px;
  }

  .cover-stack {
    transform: scale(0.62);
    height: 300px;
  }

  .hero-badge {
    font-size: 0.74rem;
    padding: 7px 12px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .comic-body {
    padding: 11px 12px 13px;
  }

  .comic-body h3 {
    font-size: 0.9rem;
  }

  .comic-meta {
    font-size: 0.72rem;
  }

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

  .form-panel,
  .contact-aside,
  .faq-side {
    padding: 26px 20px;
  }

  .cta-panel {
    padding: 40px 20px;
    border-radius: 22px;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .page-hero {
    padding: 50px 0 44px;
  }

  .rank-panel {
    padding: 18px;
  }

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

  .article-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .to-top {
    right: 14px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
}
