```css
/* ==========================================================================
   情漫网 quqmh.cn - 情趣漫画内容平台样式表
   设计方向：紫粉渐变 / 毛玻璃 / 圆角卡片 / 治愈系暖调
   ========================================================================== */

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- 设计变量 ---------- */
:root {
  --brand: #7c3aed;
  --brand-2: #ec4899;
  --brand-3: #f59e0b;
  --brand-soft: rgba(124, 58, 237, 0.08);
  --brand-soft-2: rgba(236, 72, 153, 0.06);
  --bg: #ffffff;
  --bg-alt: #faf7ff;
  --text: #1f2937;
  --text-strong: #111827;
  --muted: #6b7280;
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #f9fafb;
  --border: #e5e7eb;
  --border-soft: rgba(229, 231, 235, 0.7);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.6);
  --shadow-sm: 0 2px 8px rgba(31, 41, 55, 0.06);
  --shadow-md: 0 8px 28px rgba(31, 41, 55, 0.08);
  --shadow-lg: 0 18px 48px rgba(124, 58, 237, 0.16);
  --shadow-brand: 0 10px 30px rgba(124, 58, 237, 0.28);
  --grad-brand: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(236, 72, 153, 0.1));
  --grad-hero: linear-gradient(150deg, #f5f0ff 0%, #fdf2f8 45%, #fff7ed 100%);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 暗色模式 ---------- */
[data-theme="dark"] {
  --brand: #a78bfa;
  --brand-2: #f472b6;
  --brand-3: #fbbf24;
  --brand-soft: rgba(167, 139, 250, 0.12);
  --brand-soft-2: rgba(244, 114, 182, 0.1);
  --bg: #0b1120;
  --bg-alt: #0f172a;
  --text: #e2e8f0;
  --text-strong: #f1f5f9;
  --muted: #94a3b8;
  --card: rgba(30, 41, 59, 0.62);
  --card-solid: #1e293b;
  --border: #334155;
  --border-soft: rgba(51, 65, 85, 0.7);
  --glass: rgba(15, 23, 42, 0.55);
  --glass-border: rgba(148, 163, 184, 0.18);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
  --shadow-brand: 0 10px 30px rgba(124, 58, 237, 0.4);
  --grad-brand: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(236, 72, 153, 0.14));
  --grad-hero: linear-gradient(150deg, #131a2e 0%, #1a1330 45%, #1f1524 100%);
}

/* ---------- 全局 ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  letter-spacing: 0.01em;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

a:hover {
  color: var(--brand-2);
  text-decoration: none;
}

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

button,
input {
  font-family: inherit;
  font-size: inherit;
}

::selection {
  background: var(--brand-soft);
  color: var(--brand);
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand);
}

/* ---------- 容器 ---------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ---------- 头部导航 ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4), var(--shadow-sm);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}

[data-theme="dark"] header.site-header {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), var(--shadow-sm);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text-strong);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.logo:hover {
  transform: translateY(-1px);
  color: var(--text-strong);
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  box-shadow: var(--shadow-brand);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.logo:hover .logo-mark {
  transform: rotate(-6deg) scale(1.05);
}

/* 主导航 */
nav.main-nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
  align-items: center;
}

nav.main-nav a {
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  position: relative;
  white-space: nowrap;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}

nav.main-nav a:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

nav.main-nav a:hover::after {
  transform: scaleX(1);
}

/* 导航工具栏 */
.nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 6px 4px 14px;
  background: var(--card);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
  background: var(--bg);
}

.search-box input {
  border: none;
  background: transparent;
  color: var(--text);
  outline: none;
  width: 132px;
  font-size: 14px;
  padding: 4px 0;
}

.search-box input::placeholder {
  color: var(--muted);
}

.search-box button {
  border: none;
  background: var(--grad-brand);
  cursor: pointer;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.search-box button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand);
}

.theme-btn {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s var(--ease);
}

.theme-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}

.menu-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding: 16px 0 4px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.breadcrumb a {
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.breadcrumb a:hover {
  color: var(--brand);
}

/* ---------- Hero 渐变 Banner ---------- */
.hero {
  position: relative;
  padding: 64px 0 52px;
  background: var(--grad-hero);
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  width: 420px;
  height: 420px;
  top: -160px;
  right: -100px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.45), transparent 70%);
  animation: floatBlob 14s ease-in-out infinite;
}

.hero::after {
  width: 380px;
  height: 380px;
  bottom: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.4), transparent 70%);
  animation: floatBlob 18s ease-in-out infinite reverse;
}

@keyframes floatBlob {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-30px, 30px) scale(1.08);
  }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(26px, 4.2vw, 42px);
  line-height: 1.32;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  color: var(--text-strong);
  max-width: 900px;
}

.hero h1 .hl {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.hero p.lead {
  font-size: 16.5px;
  color: var(--muted);
  max-width: 800px;
  margin-bottom: 26px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background-color 0.3s var(--ease), color 0.3s var(--ease);
  will-change: transform;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.btn:hover::after {
  transform: translateX(120%);
}

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

.btn-primary:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.4);
}

.btn-ghost {
  border: 1px solid var(--border);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text);
}

.btn-ghost:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ---------- 标签 ---------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tag {
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
  cursor: default;
  transition: all 0.3s var(--ease);
}

.tag:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ---------- 区块 ---------- */
.section {
  padding: 56px 0;
  position: relative;
}

.section:nth-of-type(even) {
  background: var(--bg-alt);
}

.section-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--text-strong);
  position: relative;
  padding-left: 18px;
  line-height: 1.4;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1.1em;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
}

.section-sub {
  color: var(--muted);
  margin-bottom: 30px;
  max-width: 860px;
  font-size: 15.5px;
  line-height: 1.85;
}

/* ---------- 网格布局 ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

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

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

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease), background-color 0.4s var(--ease);
  will-change: transform;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(236, 72, 153, 0.25), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-size: 17.5px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-strong);
  line-height: 1.45;
  transition: color 0.3s var(--ease);
}

.card:hover h3 {
  color: var(--brand);
}

.card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

/* ---------- 统计数字 ---------- */
.stat {
  text-align: center;
  padding: 28px 12px;
  border-radius: var(--radius-lg);
  background: var(--card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat .num {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat .num::after {
  content: "+";
  font-size: 0.55em;
  margin-left: 2px;
  opacity: 0.7;
}

.stat .lbl {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 8px;
  font-weight: 500;
}

/* ---------- 文章卡片 ---------- */
.article-card {
  background: var(--card);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
  will-change: transform;
}

.article-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.article-card:hover::after {
  transform: scaleX(1);
}

.article-card .meta {
  font-size: 12.5px;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.5;
  color: var(--text-strong);
  transition: color 0.3s var(--ease);
}

.article-card:hover h3 {
  color: var(--brand);
}

.article-card p {
  font-size: 14px;
  color: var(--muted);
  flex: 1;
  line-height: 1.8;
}

.article-card .read {
  font-size: 14px;
  margin-top: 16px;
  font-weight: 600;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}

.article-card:hover .read {
  gap: 10px;
  color: var(--brand-2);
}

/* ---------- FAQ 手风琴 ---------- */
.faq-item {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.faq-item:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.faq-item.open {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  background: var(--bg);
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  background: transparent;
  border: none;
  color: var(--text-strong);
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  line-height: 1.55;
  transition: color 0.3s var(--ease);
}

.faq-q:hover {
  color: var(--brand);
}

.faq-q .icon {
  color: var(--brand);
  font-size: 20px;
  font-weight: 400;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-soft);
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease),
    color 0.35s var(--ease);
}

.faq-item.open .faq-q .icon {
  transform: rotate(45deg);
  background: var(--grad-brand);
  color: #fff;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 0 22px;
}

.faq-item.open .faq-a {
  padding: 0 22px 20px;
}

.faq-a p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.85;
  border-top: 1px dashed var(--border);
  padding-top: 14px;
}

/* ---------- 时间线 ---------- */
.timeline {
  position: relative;
  padding-left: 28px;
}

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

.timeline-item {
  position: relative;
  margin-bottom: 24px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
  transition: transform 0.3s var(--ease);
}

.timeline-item:hover::before {
  transform: scale(1.3);
}

.timeline-item h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-strong);
}

.timeline-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

/* ---------- 步骤 ---------- */
.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 62px;
  margin-bottom: 28px;
  transition: transform 0.3s var(--ease);
}

.step:hover {
  transform: translateX(4px);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
  box-shadow: var(--shadow-brand);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.step:hover::before {
  transform: scale(1.08) rotate(-6deg);
  box-shadow: 0 14px 34px rgba(124, 58, 237, 0.4);
}

.step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-strong);
  line-height: 1.5;
}

.step p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.8;
}

/* ---------- 读者评价 ---------- */
.testimonial {
  background: var(--card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.testimonial::before {
  content: "\201C";
  position: absolute;
  top: -18px;
  right: 18px;
  font-size: 96px;
  line-height: 1;
  font-family: Georgia, serif;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.16;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.testimonial:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.testimonial:hover::before {
  opacity: 0.28;
}

.testimonial .quote {
  font-size: 14.5px;
  color: var(--text);
  margin-bottom: 16px;
  font-style: italic;
  line-height: 1.85;
  position: relative;
  z-index: 1;
}

.testimonial .who {
  font-size: 13.5px;
  color: var(--brand);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.testimonial .who::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  display: inline-block;
}

/* ---------- 联系信息 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-soft);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}

.contact-item .ci-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--grad-brand-soft);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand);
  font-weight: 700;
  font-size: 16px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.contact-item:hover .ci-icon {
  background: var(--grad-brand);
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
}

.contact-item h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--text-strong);
}

.contact-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  word-break: break-word;
}

/* ---------- 作者框 ---------- */
.author-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.author-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}

.author-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--grad-brand);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 23px;
  box-shadow: var(--shadow-brand);
  transition: transform 0.4s var(--ease);
}

.author-box:hover .author-avatar {
  transform: scale(1.06) rotate(6deg);
}

.author-box h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-strong);
}

.author-box p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
}

/* ---------- 提示框 ---------- */
.note {
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--muted);
  margin: 20px 0;
  line-height: 1.8;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s var(--ease);
}

.note::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--grad-brand);
  transition: width 0.35s var(--ease);
}

.note:hover::after {
  width: 6px;
}

/* ---------- Banner 轮播 ---------- */
.banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  background: var(--grad-brand-soft);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.4s var(--ease);
}

.banner:hover {
  box-shadow: var(--shadow-lg);
}

.banner::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -20%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.28), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.banner-slide {
  display: none;
  padding: 38px 34px;
  position: relative;
  z-index: 1;
  animation: fadeSlide 0.6s var(--ease);
}

.banner-slide.active {
  display: block;
}

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

.banner-slide h3 {
  font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-strong);
  line-height: 1.4;
}

.banner-slide p {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 660px;
  line-height: 1.85;
}

.banner-dots {
  display: flex;
  gap: 8px;
  padding: 0 34px 24px;
  position: relative;
  z-index: 1;
}

.banner-dots button {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: width 0.35s var(--ease), background 0.35s var(--ease);
}

.banner-dots button:hover {
  background: var(--brand);
  opacity: 0.7;
}

.banner-dots button.active {
  width: 28px;
  background: var(--grad-brand);
}

/* ---------- 草图 ---------- */
.sketch {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* ---------- 页脚 ---------- */
footer.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 52px 0 26px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}

footer.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0.85;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 34px;
}

.footer-grid h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-strong);
  position: relative;
  padding-bottom: 10px;
}

.footer-grid h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 9px;
}

.footer-grid a {
  color: var(--muted);
  font-size: 14px;
  display: inline-block;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.footer-grid a:hover {
  color: var(--brand);
  transform: translateX(4px);
}

.footer-grid p {
  line-height: 1.85;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  line-height: 1.8;
}

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

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

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99;
  box-shadow: var(--shadow-brand);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    opacity 0.3s var(--ease);
  opacity: 0;
}

.back-top.show {
  display: flex;
  opacity: 1;
  animation: popIn 0.4s var(--ease);
}

.back-top:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.45);
}

@keyframes popIn {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ---------- 滚动动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 交错延迟 */
.grid-3 > .reveal:nth-child(3n + 2),
.grid-4 > .reveal:nth-child(4n + 2),
.grid-2 > .reveal:nth-child(2n + 2) {
  transition-delay: 0.08s;
}

.grid-3 > .reveal:nth-child(3n),
.grid-4 > .reveal:nth-child(4n + 3),
.grid-2 > .reveal:nth-child(2n) {
  transition-delay: 0.16s;
}

.grid-4 > .reveal:nth-child(4n) {
  transition-delay: 0.24s;
}

/* ---------- 焦点可见性（无障碍） ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 减少动画偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   响应式布局
   ========================================================================== */

/* 平板横屏 / 小桌面 */
@media (max-width: 1024px) {
  .nav-bar {
    gap: 12px;
  }

  nav.main-nav ul {
    gap: 2px;
  }

  nav.main-nav a {
    font-size: 13.5px;
    padding: 8px 9px;
  }

  .search-box input {
    width: 100px;
  }

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

/* 平板竖屏 */
@media (max-width: 900px) {
  .grid-3,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero {
    padding: 52px 0 44px;
  }

  .section {
    padding: 46px 0;
  }

  .footer-grid {
    gap: 26px;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

/* 手机 */
@media (max-width: 768px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--glass);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    padding: 18px 20px 22px;
    box-shadow: var(--shadow-md);
    animation: navDrop 0.35s var(--ease);
  }

  @keyframes navDrop {
    from {
      opacity: 0;
      transform: translateY(-12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  nav.main-nav.open {
    display: block;
  }

  nav.main-nav ul {
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
  }

  nav.main-nav a {
    display: block;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 15px;
  }

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

  .menu-toggle {
    display: flex;
  }

  .search-box {
    display: none;
  }

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

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

  .hero h1 {
    font-size: 26px;
  }

  .hero p.lead {
    font-size: 15px;
  }

  .section {
    padding: 36px 0;
  }

  .section-sub {
    font-size: 14.5px;
    margin-bottom: 24px;
  }

  .card,
  .article-card,
  .testimonial {
    padding: 22px;
  }

  .banner-slide {
    padding: 28px 24px;
  }

  .banner-dots {
    padding: 0 24px 20px;
  }

  .step {
    padding-left: 54px;
  }

  .step::before {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .author-box {
    padding: 20px;
  }

  .back-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}

/* 超小屏 */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .nav-bar {
    height: 62px;
  }

  nav.main-nav {
    top: 62px;
  }

  .logo {
    font-size: 18px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .theme-btn {
    padding: 6px 12px;
    font-size: 12.5px;
  }

  .hero {
    padding: 40px 0 34px;
  }

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

  .btn {
    width: 100%;
    padding: 12px 22px;
  }

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

  .faq-q {
    padding: 15px 18px;
    font-size: 14.5px;
  }

  .faq-a {
    padding: 0 18px;
  }

  .faq-item.open .faq-a {
    padding: 0 18px 18px;
  }

  .contact-item {
    padding: 16px;
    gap: 13px;
  }

  .contact-item .ci-icon {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .stat {
    padding: 22px 10px;
  }
}

/* ---------- 打印样式 ---------- */
@media print {
  header.site-header,
  .back-top,
  .hero-actions,
  .banner-dots,
  footer.site-footer {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .card,
  .article-card,
  .faq-item,
  .testimonial {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }

  .faq-a {
    max-height: none !important;
    padding: 0 22px 18px !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
```