```css
/* ========== 汗汗漫画 全站样式 ========== */
/* 基础重置 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  background: #f0f4f8;
  color: #1a202c;
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

body.dark {
  background: #0f1115;
  color: #e2e8f0;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

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

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

/* ========== 导航栏 ========== */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

body.dark .sticky-nav {
  background: rgba(15, 17, 21, 0.85);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.logo {
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.5px;
  color: #2563eb;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

body.dark .logo {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: inherit;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  transition: width 0.3s ease;
  border-radius: 2px;
}

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

.nav-links a:hover {
  color: #2563eb;
}

body.dark .nav-links a:hover {
  color: #60a5fa;
}

.search-box {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 40px;
  padding: 6px 16px;
  gap: 4px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid transparent;
}

.search-box:focus-within {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  border-color: #2563eb;
}

body.dark .search-box {
  background: #1e293b;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  padding: 4px 8px;
  width: 160px;
  color: inherit;
  font-size: 0.9rem;
}

.search-box input::placeholder {
  color: #94a3b8;
}

.search-box button {
  font-size: 1.1rem;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.search-box button:hover {
  transform: scale(1.1);
}

.menu-btn {
  display: none;
  font-size: 1.8rem;
  color: inherit;
  padding: 4px 8px;
  line-height: 1;
}

/* 移动端导航 */
@media (max-width: 800px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 24px 24px 32px;
    gap: 20px;
    flex-direction: column;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 24px 24px;
  }

  body.dark .nav-links {
    background: #0f1115;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.6);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-btn {
    display: block;
  }

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

  .search-box {
    padding: 6px 12px;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }
}

/* ========== 面包屑 ========== */
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
  color: #64748b;
  margin: 20px 0;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #2563eb;
}

body.dark .breadcrumb a {
  color: #60a5fa;
}

.breadcrumb span {
  color: #94a3b8;
}

/* ========== Banner ========== */
.banner {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 50%, #1e1b4b 100%);
  color: white;
  border-radius: 32px;
  padding: 48px 40px;
  margin: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(30, 27, 75, 0.3);
}

.banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.banner-text {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 280px;
}

.banner-text h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
  background: linear-gradient(90deg, #ffffff, #c7d2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.banner-text p {
  font-size: 1.15rem;
  opacity: 0.85;
  max-width: 600px;
  line-height: 1.8;
}

.banner-cta {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 60px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: none;
  backdrop-filter: blur(4px);
}

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

.banner svg {
  flex-shrink: 0;
  filter: drop-shadow(0 8px 24px rgba(96, 165, 250, 0.2));
  animation: float 6s ease-in-out infinite;
}

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

@media (max-width: 768px) {
  .banner {
    padding: 32px 24px;
    border-radius: 24px;
  }

  .banner-text h1 {
    font-size: 2rem;
  }

  .banner-text p {
    font-size: 1rem;
  }

  .banner svg {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }
}

/* ========== 区块标题 ========== */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 60px 0 28px;
  border-left: 6px solid #2563eb;
  padding-left: 16px;
  line-height: 1.3;
  position: relative;
}

body.dark .section-title {
  border-left-color: #60a5fa;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.5rem;
  }
}

/* ========== 卡片网格 ========== */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.card {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

body.dark .card {
  background: #1a1d25;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.05);
}

body.dark .card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1a202c;
}

body.dark .card h3 {
  color: #e2e8f0;
}

.card p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
}

body.dark .card p {
  color: #94a3b8;
}

.card svg {
  margin-bottom: 16px;
}

/* ========== 文章卡片 ========== */
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.article-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

body.dark .article-card {
  background: #1a1d25;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.05);
}

body.dark .article-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.article-card .content {
  padding: 20px;
}

.article-card .date {
  color: #2563eb;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

body.dark .article-card .date {
  color: #60a5fa;
}

.article-card h4 {
  font-size: 1.15rem;
  margin: 10px 0;
  line-height: 1.4;
  font-weight: 700;
}

.article-card p {
  color: #475569;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

body.dark .article-card p {
  color: #94a3b8;
}

.article-card a {
  color: #2563eb;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.article-card a:hover {
  gap: 8px;
}

body.dark .article-card a {
  color: #60a5fa;
}

/* ========== FAQ ========== */
.faq-list {
  max-width: 900px;
}

.faq-item {
  border-bottom: 1px solid #e2e8f0;
  padding: 20px 0;
  cursor: pointer;
  transition: padding 0.3s ease;
}

body.dark .faq-item {
  border-color: #2d3748;
}

.faq-item:first-child {
  border-top: 1px solid #e2e8f0;
}

body.dark .faq-item:first-child {
  border-color: #2d3748;
}

.faq-question {
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question span {
  font-size: 1.5rem;
  font-weight: 400;
  color: #2563eb;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

body.dark .faq-question span {
  color: #60a5fa;
}

.faq-item.active .faq-question span {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin 0.3s ease;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.7;
}

body.dark .faq-answer {
  color: #94a3b8;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  margin-top: 12px;
}

/* ========== 教程卡片 ========== */
.card ol {
  margin-left: 20px;
  padding-left: 0;
  list-style: decimal;
}

.card ol li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.card p {
  margin-bottom: 12px;
}

.card strong {
  color: #2563eb;
}

body.dark .card strong {
  color: #60a5fa;
}

/* ========== 页脚 ========== */
footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 60px 0 30px;
  margin-top: 80px;
  border-radius: 32px 32px 0 0;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #7c3aed, #2563eb);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-grid h5 {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-grid a {
  color: #94a3b8;
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-grid a:hover {
  color: #60a5fa;
  padding-left: 4px;
}

.copyright {
  border-top: 1px solid #1e293b;
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.9rem;
  color: #64748b;
}

.copyright p {
  margin-bottom: 8px;
}

/* ========== 返回顶部 ========== */
#backTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

#backTop.show {
  opacity: 1;
  pointer-events: auto;
}

#backTop:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

/* 暗黑模式切换按钮 */
#darkToggle {
  position: fixed;
  bottom: 90px;
  right: 30px;
  background: #334155;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 999;
  font-size: 1.2rem;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#darkToggle:hover {
  transform: scale(1.1);
}

body.dark #darkToggle {
  background: #475569;
}

/* ========== 滚动动画 ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ========== 数字动画 ========== */
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #2563eb;
  line-height: 1.2;
}

body.dark .stat-number {
  color: #60a5fa;
}

.banner .stat-number {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.banner .stat-div {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.banner .stat-div > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.banner .stat-div span:not(.stat-number) {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ========== 工具类 ========== */
.flex-between {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.svg-icon {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* ========== 响应式调整 ========== */
@media (max-width: 640px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .article-list {
    grid-template-columns: 1fr;
  }

  .banner-text h1 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.3rem;
    margin-top: 40px;
  }

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

  #backTop, #darkToggle {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  #darkToggle {
    bottom: 80px;
  }
}

@media (max-width: 400px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== 打印样式 ========== */
@media print {
  .sticky-nav, #backTop, #darkToggle, .banner-cta, .search-box, .menu-btn {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .card, .article-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ========== 无障碍 ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
```