```css
/* ===== JMComic3 漫画站 - 完整样式表 ===== */
/* 深色/浅色主题变量 */
:root {
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --text-primary: #1f2937;
  --text-secondary: #374151;
  --text-tertiary: #6b7280;
  --heading: #111827;
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-dark: #1e3a8a;
  --border: #e5e7eb;
  --nav-bg: rgba(255, 255, 255, 0.9);
  --footer-bg: #0f172a;
  --footer-text: #cbd5e1;
  --btn-bg: #2563eb;
  --btn-text: #ffffff;
  --tag-bg: #eef2ff;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
  --banner-gradient: linear-gradient(135deg, #1e3a8a 0%, #2b3a67 50%, #3b5b9d 100%);
  --card-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --text-primary: #e2e8f0;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --heading: #f8fafc;
  --accent: #60a5fa;
  --accent-light: #93c5fd;
  --accent-dark: #3b82f6;
  --border: #334155;
  --nav-bg: rgba(15, 23, 42, 0.92);
  --footer-bg: #0b1120;
  --footer-text: #94a3b8;
  --btn-bg: #3b82f6;
  --btn-text: #ffffff;
  --tag-bg: #334155;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.5);
  --banner-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #2d3a52 100%);
  --glass-bg: rgba(30, 41, 59, 0.8);
  --glass-border: rgba(148, 163, 184, 0.2);
}

/* ===== 重置与基础 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.7;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
  min-height: 100vh;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dark);
}

/* 选中文本 */
::selection {
  background: var(--accent);
  color: #fff;
}

/* ===== 排版 ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-top: 2.5rem; margin-bottom: 1.2rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; color: var(--text-primary); }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-dark); text-decoration: underline; }
ul, ol { padding-left: 1.5rem; margin: 0.5rem 0 1rem; }
li { margin-bottom: 0.3rem; }
img, svg { max-width: 100%; height: auto; display: block; }

/* 容器 */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 导航栏 ===== */
.navbar {
  background-color: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 24px;
  max-width: 1240px;
  margin: 0 auto;
  gap: 1rem;
}

.logo {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--heading);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.logo span {
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

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

/* 搜索框 */
.search-box {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-box input {
  border: none;
  padding: 0.4rem 1rem;
  background: transparent;
  color: var(--text-primary);
  outline: none;
  font-size: 0.9rem;
  width: 180px;
}

.search-box button {
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: background 0.3s;
}

.search-box button:hover {
  background: var(--accent-dark);
}

/* 主题切换和菜单按钮 */
.theme-toggle, .mobile-menu {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 50%;
  transition: background 0.3s, transform 0.3s;
  line-height: 1;
}

.theme-toggle:hover, .mobile-menu:hover {
  background: var(--tag-bg);
  transform: rotate(15deg);
}

.mobile-menu {
  display: none;
}

/* 移动端导航 */
.mobile-nav {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 0.5rem 0;
  animation: slideDown 0.3s ease;
}

.mobile-nav a {
  display: block;
  padding: 0.7rem 1.5rem;
  color: var(--text-primary);
  font-weight: 500;
  transition: background 0.2s, padding-left 0.2s;
}

.mobile-nav a:hover {
  background: var(--tag-bg);
  padding-left: 2rem;
  text-decoration: none;
}

.mobile-nav.hidden {
  display: none;
}

/* 下拉动画 */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 面包屑 ===== */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  padding: 1rem 24px;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--accent);
  transition: color 0.2s;
}

.breadcrumb span {
  color: var(--text-tertiary);
}

/* ===== Banner ===== */
.banner {
  background: var(--banner-gradient);
  color: white;
  padding: 4rem 0;
  border-radius: 0 0 48px 48px;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}

.banner::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 50%;
  height: 150%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.banner .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.banner h2 {
  color: white;
  border: none;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  margin: 0;
}

.banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 800px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  background: #facc15;
  color: #1e293b;
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  font-size: 1rem;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background: #eab308;
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  font-size: 1rem;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

/* ===== 卡片通用 ===== */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

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

/* 卡片顶部渐变条 */
.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  opacity: 0;
  transition: opacity 0.3s;
}

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

/* ===== 网格布局 ===== */
.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 1.8rem;
  margin-top: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ===== 特性图标 ===== */
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  display: inline-block;
  transition: transform 0.3s;
}

.card:hover .feature-icon {
  transform: scale(1.15) rotate(5deg);
}

/* ===== 文章卡片 ===== */
.article-card {
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.article-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.meta {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex-grow: 1;
}

.article-card a {
  color: var(--accent);
  font-weight: 600;
  margin-top: 1rem;
  display: inline-block;
  transition: all 0.3s;
}

.article-card a:hover {
  color: var(--accent-dark);
  text-decoration: none;
  transform: translateX(5px);
}

/* ===== 表格 ===== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--card-radius);
  overflow: hidden;
}

th, td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

th {
  background: var(--tag-bg);
  color: var(--heading);
  font-weight: 600;
  letter-spacing: 0.02em;
}

tr:last-child td {
  border-bottom: none;
}

tr {
  transition: background 0.2s;
}

tr:hover td {
  background: rgba(37, 99, 235, 0.05);
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 1.2rem 0;
  font-weight: 600;
  color: var(--heading);
  transition: color 0.3s;
  font-size: 1.05rem;
}

.faq-question:hover {
  color: var(--accent);
}

.rotate {
  transition: transform 0.3s;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-answer {
  padding: 0 0 1.2rem;
  color: var(--text-secondary);
  line-height: 1.8;
  animation: fadeIn 0.3s ease;
}

.faq-item .faq-answer {
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .rotate {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-item.active {
  background: rgba(37, 99, 235, 0.02);
}

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

/* ===== 页脚 ===== */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

footer h4 {
  color: #f8fafc;
  margin-bottom: 1rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

footer p {
  color: var(--footer-text);
  font-size: 0.9rem;
}

footer a {
  color: #94a3b8;
  transition: color 0.3s;
}

footer a:hover {
  color: white;
  text-decoration: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
}

/* ===== 区块标题 ===== */
section {
  margin-bottom: 3rem;
}

section h2 {
  position: relative;
  padding-bottom: 0.5rem;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

/* ===== 返回顶部 ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--btn-bg);
  color: white;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  font-size: 1.5rem;
  border: none;
  z-index: 999;
  transition: transform 0.3s, background 0.3s, opacity 0.3s;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.1);
  background: var(--accent-dark);
}

/* ===== 数字统计样式 ===== */
.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--heading);
  font-variant-numeric: tabular-nums;
}

/* ===== 分隔线 ===== */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 2.5rem 0;
}

/* ===== 标签 ===== */
.tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--accent);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0.2rem;
  transition: all 0.3s;
}

.tag:hover {
  background: var(--accent);
  color: white;
  transform: scale(1.05);
}

/* ===== 友情链接区域 ===== */
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0;
}

.friend-links a {
  color: var(--text-secondary);
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.friend-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
}

/* ===== 滚动动画 ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 延迟动画 */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu {
    display: block;
  }
  
  .search-box input {
    width: 120px;
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .banner {
    padding: 2.5rem 0;
    border-radius: 0 0 24px 24px;
  }
  
  .banner h2 {
    font-size: 1.6rem;
  }
  
  .card {
    padding: 1.2rem;
  }
  
  .back-to-top {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .search-box {
    display: none;
  }
  
  .nav-wrap {
    padding: 0.6rem 16px;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .breadcrumb {
    padding: 0.8rem 16px;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  .btn-group .btn, .btn-group .btn-outline {
    width: 100%;
    text-align: center;
  }
  
  footer {
    padding: 2rem 0 0.8rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

/* ===== 打印样式 ===== */
@media print {
  .navbar, .banner, .back-to-top, .mobile-nav, .search-box, .btn-group {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ===== 高对比度支持 ===== */
@media (prefers-contrast: high) {
  :root {
    --border: #000;
    --shadow: none;
  }
}

/* ===== 减少动效偏好 ===== */
@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;
  }
}

/* ===== 特别为内容卡片添加的细节 ===== */
#about .card h3, #products .card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 漫画分类卡片特殊样式 */
#products .grid-4 .card {
  text-align: center;
  padding: 2rem 1.5rem;
}

#products .grid-4 .card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

#products .grid-4 .card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* 文章卡片标签 */
.article-card .meta::before {
  content: '📅';
  margin-right: 0.3rem;
}

/* FAQ 高亮 */
#faq .card {
  padding: 0;
}

#faqContainer {
  padding: 0 1.5rem;
}

/* 联系方式卡片 */
#contact .card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  #contact .card {
    grid-template-columns: 1fr;
  }
}

#contact .card p {
  margin-bottom: 0.5rem;
  padding: 0.3rem 0;
  border-bottom: 1px dashed var(--border);
}

#contact .card p:last-child {
  border-bottom: none;
}

/* 品牌简介加粗 */
#about .card p strong {
  color: var(--accent);
}

/* 教程列表样式 */
#howto .card ul, #howto .card ol {
  background: var(--tag-bg);
  border-radius: 8px;
  padding: 1rem 1.5rem 1rem 2.5rem;
  margin: 1rem 0;
}

#howto .card li {
  margin-bottom: 0.5rem;
}

#howto .card h4 {
  color: var(--accent);
  margin-top: 1.5rem;
}

/* 友情链接区块 */
section:last-of-type {
  background: var(--bg-card);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

section:last-of-type h4 {
  margin-top: 1rem;
}

section:last-of-type p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
```