```css
/* ===== 云漫漫画 全局样式 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2b3a67;
  --primary-light: #3a4a7a;
  --primary-dark: #1c2547;
  --accent: #e65100;
  --accent-light: #ff6d1a;
  --bg: #f6f8fc;
  --bg-gradient: linear-gradient(145deg, #eef3ff 0%, #ffffff 50%, #fdf0e6 100%);
  --card-bg: #ffffff;
  --text: #1e2430;
  --text-secondary: #5a6a85;
  --text-light: #7b8aa5;
  --border: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 30px rgba(43, 58, 103, 0.08);
  --shadow-hover: 0 16px 40px rgba(43, 58, 103, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 40px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 暗色模式变量 */
body.dark {
  --primary: #a5b4fc;
  --primary-light: #818cf8;
  --primary-dark: #c7d2fe;
  --accent: #fb923c;
  --accent-light: #fdba74;
  --bg: #0f172a;
  --bg-gradient: linear-gradient(145deg, #0f172a 0%, #1e293b 50%, #1a1a2e 100%);
  --card-bg: #1e293b;
  --text: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-light: #64748b;
  --border: #334155;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.6);
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
  background: var(--bg);
}

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

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

input,
textarea {
  font-family: inherit;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ===== 面包屑导航 ===== */
.breadcrumb {
  background: var(--card-bg);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.85);
  transition: background-color 0.3s ease;
}

body.dark .breadcrumb {
  background: rgba(30, 41, 59, 0.85);
}

.breadcrumb .container {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--primary);
  margin: 0 6px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.breadcrumb span {
  color: var(--text-light);
  margin-left: 6px;
}

/* ===== 顶部导航栏 ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
}

body.dark .navbar {
  background: rgba(15, 23, 42, 0.85);
}

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 4px rgba(43, 58, 103, 0.2));
}

/* 导航链接 */
.nav-links {
  display: flex;
  gap: 24px;
  font-weight: 500;
  align-items: center;
}

.nav-links a {
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  position: relative;
  font-size: 0.95rem;
  color: var(--text);
}

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

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

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

/* 搜索框 */
.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  padding: 6px 8px 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  transition: var(--transition);
  flex-shrink: 1;
  max-width: 280px;
}

.search-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.1);
}

.search-wrap input {
  border: none;
  background: transparent;
  padding: 6px 0;
  width: 100%;
  outline: none;
  color: var(--text);
  font-size: 0.9rem;
}

.search-wrap input::placeholder {
  color: var(--text-light);
}

.search-wrap button {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
  white-space: nowrap;
}

.search-wrap button:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

/* 菜单图标 */
.menu-icon {
  display: none;
  cursor: pointer;
  font-size: 1.6rem;
  color: var(--text);
  background: none;
  border: none;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.menu-icon:hover {
  background: var(--bg);
}

/* 移动菜单 */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--card-bg);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  animation: slideDown 0.3s ease;
}

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

.mobile-menu a {
  display: block;
  padding: 14px 8px;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
  border-radius: var(--radius-sm);
}

.mobile-menu a:hover {
  color: var(--accent);
  padding-left: 16px;
  background: var(--bg);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* ===== Hero区域 ===== */
.hero {
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
  background: var(--bg-gradient);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(230, 81, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(43, 58, 103, 0.08) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.hero-grid {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hero-txt {
  flex: 1 1 400px;
  animation: fadeInUp 0.8s ease;
}

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

.hero-txt h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--primary-dark);
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: color 0.3s;
}

body.dark .hero-txt h1 {
  color: var(--primary-dark);
}

.hero-txt h1 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;
}

.hero-txt p {
  font-size: 1.15rem;
  margin-bottom: 28px;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn {
  background: var(--primary);
  color: white;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  display: inline-block;
  border: 2px solid transparent;
  box-shadow: 0 4px 14px rgba(43, 58, 103, 0.2);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43, 58, 103, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  box-shadow: none;
}

.btn-outline::before {
  background: rgba(43, 58, 103, 0.1);
}

.btn-outline:hover {
  background: rgba(43, 58, 103, 0.05);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(230, 81, 0, 0.15);
}

/* 统计数字 */
.stats {
  display: flex;
  gap: 40px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: left;
}

.stat-item h3 {
  font-size: 2.2rem;
  color: var(--primary);
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.stat-item span {
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: block;
  margin-top: 4px;
}

/* Hero视觉 */
.hero-visual {
  flex: 1 1 320px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float 4s ease-in-out infinite;
}

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

.hero-visual svg {
  max-width: 380px;
  width: 100%;
  filter: drop-shadow(0 12px 24px rgba(43, 58, 103, 0.15));
}

/* ===== 通用Section ===== */
.section {
  padding: 72px 0;
  position: relative;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--primary-dark);
  margin-bottom: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
}

.section-head h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}

body.dark .section-head h2 {
  color: #e2e8f0;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-top: 16px;
}

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

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

.card:hover::before {
  transform: scaleX(1);
}

.card svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--primary);
  transition: var(--transition);
}

.card:hover svg {
  transform: scale(1.1);
  color: var(--accent);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== 文章列表 ===== */
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.article-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.article-card .meta {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.article-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--text);
  transition: color 0.2s;
}

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

.article-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.article-card a {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

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

/* ===== FAQ ===== */
.faq-item {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  overflow: hidden;
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  transition: background-color 0.2s;
  font-size: 1rem;
}

.faq-question:hover {
  background: var(--bg);
}

.faq-question span {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  color: var(--accent);
}

.faq-item.open .faq-question span {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  line-height: 1.7;
  display: none;
  font-size: 0.95rem;
}

.faq-item.open .faq-answer {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===== HowTo 教程 ===== */
#howto .card {
  max-width: 800px;
  margin: 0 auto;
  padding: 36px;
}

#howto .card h3 {
  color: var(--accent);
  font-size: 1.1rem;
  margin-top: 20px;
  margin-bottom: 8px;
}

#howto .card h3:first-child {
  margin-top: 0;
}

#howto .card p {
  margin-bottom: 12px;
  padding-left: 16px;
  border-left: 3px solid var(--border);
}

/* ===== 页脚 ===== */
footer {
  background: var(--primary-dark);
  color: #cbd5e1;
  padding: 56px 0 24px;
  position: relative;
  overflow: hidden;
}

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

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

.footer-grid h4 {
  color: white;
  margin-bottom: 16px;
  font-size: 1.05rem;
  font-weight: 700;
}

.footer-grid a {
  color: #cbd5e1;
  display: block;
  padding: 5px 0;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-grid a:hover {
  color: var(--accent-light);
  padding-left: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* ===== 返回顶部 ===== */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 30px;
  background: var(--primary);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  font-size: 1.2rem;
  border: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

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

.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(230, 81, 0, 0.3);
}

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

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ===== 暗黑模式切换按钮 ===== */
.dark-toggle {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
  margin-left: 12px;
}

.dark-toggle:hover {
  background: var(--bg);
  transform: rotate(15deg);
}

/* ===== 响应式布局 ===== */
@media (max-width: 1024px) {
  .hero {
    padding: 40px 0 48px;
  }

  .hero-grid {
    gap: 32px;
  }

  .nav-links {
    gap: 16px;
  }

  .search-wrap {
    max-width: 200px;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .menu-icon {
    display: block;
  }

  .search-wrap {
    display: none;
  }

  .hero-txt h1 {
    font-size: 2.2rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .stats {
    gap: 24px;
  }

  .stat-item h3 {
    font-size: 1.8rem;
  }

  .section {
    padding: 48px 0;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
  }

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

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

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

  .nav-wrap {
    height: 56px;
  }

  .logo {
    font-size: 1.3rem;
  }

  .logo svg {
    width: 32px;
    height: 32px;
  }

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

  .hero-txt h1 {
    font-size: 1.8rem;
  }

  .hero-txt p {
    font-size: 1rem;
  }

  .stats {
    gap: 16px;
    justify-content: space-between;
  }

  .stat-item h3 {
    font-size: 1.5rem;
  }

  .stat-item span {
    font-size: 0.8rem;
  }

  .section-head h2 {
    font-size: 1.5rem;
  }

  .card {
    padding: 20px;
  }

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

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  #howto .card {
    padding: 24px;
  }
}

/* ===== 打印样式 ===== */
@media print {
  .navbar,
  .back-to-top,
  .breadcrumb,
  footer {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

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

/* ===== 无障碍 ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== 焦点可见性 ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== 工具类 ===== */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark .bg-glass {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
}

.hover-scale {
  transition: var(--transition);
}

.hover-scale:hover {
  transform: scale(1.03);
}

.hover-lift {
  transition: var(--transition);
}

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

/* ===== 渐变边框 ===== */
.gradient-border {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1px;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ===== 加载动画 ===== */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg) 25%, var(--border) 50%, var(--bg) 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
}

/* ===== 自定义滚动容器 ===== */
.scroll-container {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg);
}

.scroll-container::-webkit-scrollbar {
  width: 6px;
}

.scroll-container::-webkit-scrollbar-track {
  background: var(--bg);
}

.scroll-container::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

/* ===== 响应式字体 ===== */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
}

/* ===== 暗色模式下的特殊调整 ===== */
body.dark .card {
  background: #1e293b;
  border-color: #334155;
}

body.dark .search-wrap {
  background: #0f172a;
  border-color: #334155;
}

body.dark .btn {
  background: var(--accent);
  border-color: var(--accent);
}

body.dark .btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

body.dark .btn-outline:hover {
  background: rgba(251, 146, 60, 0.1);
}

body.dark .logo {
  color: #e2e8f0;
}

body.dark .menu-icon {
  color: #e2e8f0;
}

body.dark .footer-grid a {
  color: #94a3b8;
}

body.dark .footer-grid a:hover {
  color: #fb923c;
}

/* ===== 卡片图标动画 ===== */
@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.card:hover svg {
  animation: iconPulse 0.6s ease infinite;
}

/* ===== 数字计数器 ===== */
.stat-item h3 {
  font-feature-settings: "tnum";
}

/* ===== 移动设备的触控优化 ===== */
@media (hover: none) {
  .card:hover {
    transform: none;
  }

  .btn:hover {
    transform: none;
  }

  .article-card:hover {
    transform: none;
  }
}

/* ===== 高对比度模式 ===== */
@media (prefers-contrast: high) {
  :root {
    --primary: #1a2a5e;
    --accent: #cc4d00;
    --text: #000000;
    --text-secondary: #333333;
  }
}

/* ===== 确保所有交互元素有足够的点击区域 ===== */
button,
a,
input[type="submit"] {
  min-height: 44px;
  min-width: 44px;
}

@media (max-width: 600px) {
  button,
  a,
  input[type="submit"] {
    min-height: 40px;
    min-width: 40px;
  }
}
```