/* 漫天星漫画 - 完整样式表 */
:root {
  --primary: #6d28d9;
  --primary-light: #8b5cf6;
  --primary-dark: #4c1d95;
  --primary-glow: rgba(109, 40, 217, 0.25);
  --bg-light: #f8f9fc;
  --bg-dark: #0b1120;
  --card-light: #ffffff;
  --card-dark: #1e293b;
  --text-light: #1e293b;
  --text-dark: #e2e8f0;
  --border-light: #e9eef3;
  --border-dark: #334155;
  --muted-light: #475569;
  --muted-dark: #94a3b8;
  --gradient-hero: linear-gradient(145deg, #f0eef9 0%, #e6e0f5 50%, #ddd6fe 100%);
  --gradient-hero-dark: linear-gradient(145deg, #1e293b 0%, #1a1a2e 50%, #2d1b4e 100%);
  --gradient-card: linear-gradient(135deg, rgba(109, 40, 217, 0.05) 0%, rgba(139, 92, 246, 0.02) 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg-light);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

body.dark {
  background: var(--bg-dark);
  color: var(--text-dark);
}

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

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-light), var(--primary));
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  border: 2px solid transparent;
  background-clip: padding-box;
}

::selection {
  background: var(--primary);
  color: white;
}

/* 吸顶导航 */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(109, 40, 217, 0.08);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

body.dark .navbar {
  background: rgba(2, 6, 23, 0.85);
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(109, 40, 217, 0.12);
}

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

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s ease;
}

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

.logo svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 8px rgba(109, 40, 217, 0.3));
  transition: transform 0.3s ease;
}

.logo:hover svg {
  transform: rotate(-8deg) scale(1.1);
}

body.dark .logo {
  color: var(--text-dark);
}

.nav-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 2px;
  transition: color 0.3s ease;
}

body.dark .nav-links a {
  color: var(--text-dark);
}

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

.nav-links a:hover {
  color: var(--primary);
}

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

.search-box {
  display: flex;
  align-items: center;
  background: rgba(241, 245, 249, 0.8);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(109, 40, 217, 0.1);
  transition: all 0.3s ease;
}

body.dark .search-box {
  background: rgba(51, 65, 85, 0.5);
  border-color: rgba(139, 92, 246, 0.2);
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: white;
}

body.dark .search-box:focus-within {
  background: var(--card-dark);
}

.search-box input {
  border: none;
  background: transparent;
  padding: 6px;
  width: 140px;
  outline: none;
  font-size: 0.9rem;
  color: var(--text-light);
  transition: width 0.3s ease;
}

body.dark .search-box input {
  color: var(--text-dark);
}

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

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

.search-box input:focus {
  width: 180px;
}

.search-box svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.mobile-menu {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-light);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.3s ease;
}

body.dark .mobile-menu {
  color: var(--text-dark);
}

.mobile-menu:hover {
  background: rgba(109, 40, 217, 0.1);
}

/* 首屏主视觉 */
.hero {
  background: var(--gradient-hero);
  padding: 60px 0;
  border-radius: 0 0 60px 60px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease;
}

body.dark .hero {
  background: var(--gradient-hero-dark);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

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

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

.hero-text {
  flex: 2;
  min-width: 300px;
}

.hero-text h1 {
  font-size: 3rem;
  line-height: 1.2;
  color: var(--text-light);
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease;
}

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

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

.hero-text p {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 620px;
  margin-bottom: 28px;
  opacity: 0.9;
  animation: fadeInUp 0.8s ease 0.2s both;
}

body.dark .hero-text p {
  color: var(--text-dark);
}

.hero-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.stat-item {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 16px 28px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

body.dark .stat-item {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(51, 65, 85, 0.5);
}

.stat-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(109, 40, 217, 0.15);
}

.stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  line-height: 1.3;
}

.stat-item {
  font-size: 0.9rem;
  color: var(--muted-light);
}

body.dark .stat-item {
  color: var(--muted-dark);
}

.hero-svg {
  flex: 1;
  min-width: 200px;
  text-align: center;
  animation: float 6s ease-in-out infinite;
}

.hero-svg svg {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(109, 40, 217, 0.2));
}

/* 内容模块通用 */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 50px 0 24px;
  color: var(--text-light);
  border-left: 6px solid var(--primary);
  padding-left: 20px;
  position: relative;
}

body.dark .section-title {
  color: var(--text-dark);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 26px;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 3px;
}

/* 网格布局 */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
  margin: 30px 0;
}

/* 卡片样式 */
.card {
  background: var(--card-light);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

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

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(109, 40, 217, 0.2);
}

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

.card svg {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--primary);
  transition: transform 0.3s ease;
}

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

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

body.dark .card h3 {
  color: var(--text-dark);
}

.card p {
  color: var(--muted-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

body.dark .card p {
  color: var(--muted-dark);
}

.badge {
  display: inline-block;
  background: linear-gradient(135deg, #e0e7ff, #ede9fe);
  color: var(--primary-dark);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 8px;
  transition: all 0.3s ease;
}

.badge:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  transform: translateY(-2px);
}

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

.article-card {
  background: var(--card-light);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

body.dark .article-card {
  background: var(--card-dark);
  border-color: var(--border-dark);
}

.article-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

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

.article-card h3 {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

body.dark .article-card h3 {
  color: var(--text-dark);
}

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

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

body.dark .article-meta {
  color: var(--muted-dark);
}

.article-card p {
  color: var(--muted-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

body.dark .article-card p {
  color: var(--muted-dark);
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  transition: gap 0.3s ease;
}

.read-more::after {
  content: '→';
  transition: transform 0.3s ease;
}

.read-more:hover {
  gap: 12px;
}

.read-more:hover::after {
  transform: translateX(4px);
}

/* FAQ手风琴 */
.faq-item {
  background: var(--card-light);
  border-radius: var(--radius-md);
  padding: 0;
  margin-bottom: 12px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
}

body.dark .faq-item {
  background: var(--card-dark);
  border-color: var(--border-dark);
}

.faq-item:hover {
  border-color: rgba(109, 40, 217, 0.3);
  box-shadow: var(--shadow-sm);
}

.faq-item.open {
  border-color: var(--primary);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.faq-q {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-light);
  transition: background 0.3s ease;
}

body.dark .faq-q {
  color: var(--text-dark);
}

.faq-q:hover {
  background: rgba(109, 40, 217, 0.04);
}

.faq-a {
  padding: 0 24px 20px;
  color: var(--muted-light);
  display: none;
  line-height: 1.7;
  animation: fadeInDown 0.3s ease;
}

body.dark .faq-a {
  color: var(--muted-dark);
}

.faq-item.open .faq-a {
  display: block;
}

.faq-toggle {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 300;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

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

/* 客户评价 */
.testimonial {
  background: var(--card-light);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border-light);
  position: relative;
  transition: var(--transition);
}

body.dark .testimonial {
  background: var(--card-dark);
  border-color: var(--border-dark);
}

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

.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.2;
  font-family: Georgia, serif;
}

.testimonial p {
  font-style: italic;
  color: var(--text-light);
  line-height: 1.8;
}

body.dark .testimonial p {
  color: var(--text-dark);
}

/* 解决方案区域 */
#solutions .grid-3 .card {
  background: var(--gradient-card);
}

/* 页脚 */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 50px 0 30px;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

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

.footer a {
  color: #a5b4fc;
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

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

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

.footer-grid h4 {
  color: #e2e8f0;
  margin-bottom: 16px;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 8px;
}

.footer-grid h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-light);
  border-radius: 2px;
}

.footer-grid p {
  margin-bottom: 8px;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  font-size: 0.9rem;
  text-align: center;
  color: #94a3b8;
}

.footer-bottom p {
  margin-bottom: 4px;
}

/* 返回顶部 */
.backtop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.4);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 999;
  font-size: 1.4rem;
  border: none;
  outline: none;
}

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

.backtop:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 12px 32px rgba(109, 40, 217, 0.5);
}

/* 懒加载占位 */
.lazy-placeholder {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

body.dark .lazy-placeholder {
  background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
  background-size: 200% 100%;
}

/* 暗黑模式 */
body.dark {
  background: var(--bg-dark);
  color: var(--text-dark);
}

body.dark .card,
body.dark .article-card,
body.dark .faq-item,
body.dark .testimonial {
  background: var(--card-dark);
  border-color: var(--border-dark);
}

body.dark .hero {
  background: var(--gradient-hero-dark);
}

body.dark .navbar {
  background: rgba(2, 6, 23, 0.85);
}

body.dark .search-box {
  background: rgba(51, 65, 85, 0.5);
}

body.dark .search-box input {
  color: var(--text-dark);
}

body.dark .logo {
  color: var(--text-dark);
}

body.dark .nav-links a {
  color: var(--text-dark);
}

body.dark .section-title {
  color: var(--text-dark);
}

/* 移动端响应式 */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border-light);
    animation: slideDown 0.3s ease;
  }

  body.dark .nav-links {
    background: rgba(2, 6, 23, 0.98);
    border-bottom-color: var(--border-dark);
  }

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

  .nav-links a {
    font-size: 1.1rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(109, 40, 217, 0.1);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero {
    padding: 40px 0;
    border-radius: 0 0 40px 40px;
  }

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

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

  .hero-grid {
    gap: 30px;
  }

  .hero-stats {
    gap: 12px;
  }

  .stat-item {
    padding: 12px 20px;
    font-size: 0.85rem;
  }

  .stat-num {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.6rem;
    margin: 40px 0 20px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .card {
    padding: 20px;
  }

  .article-card {
    padding: 20px;
  }

  .search-box {
    display: none;
  }

  .backtop {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

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

  .hero-svg {
    display: none;
  }
}

/* 平板响应式 */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-text h1 {
    font-size: 2.4rem;
  }

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

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

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

  .search-box input:focus {
    width: 140px;
  }
}

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

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

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

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

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

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

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 自定义滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  z-index: 1001;
  width: 0;
  transition: width 0.1s ease;
}

/* 卡片装饰 */
.card .decorator {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.1), transparent);
  pointer-events: none;
}

/* 文章卡片图标 */
.article-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3);
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 16px rgba(109, 40, 217, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.4);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* 分隔线 */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  margin: 40px 0;
  opacity: 0.3;
}

/* 标签组 */
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 高亮文字 */
.highlight {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.1), rgba(139, 92, 246, 0.1));
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* 图片圆角 */
.rounded-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* 链接样式 */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-light);
}

/* 强调区域 */
.callout {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.08), rgba(139, 92, 246, 0.05));
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 20px 0;
}

/* 列表样式 */
.list-styled {
  list-style: none;
  padding: 0;
}

.list-styled li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-light);
}

body.dark .list-styled li {
  color: var(--text-dark);
}

.list-styled li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* 响应式排版 */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.7rem;
  }

  .stat-item {
    padding: 10px 16px;
  }

  .stat-num {
    font-size: 1.3rem;
  }

  .hero-stats {
    gap: 8px;
  }

  .footer-bottom {
    font-size: 0.8rem;
  }
}

/* 打印样式 */
@media print {
  .navbar,
  .backtop,
  .mobile-menu,
  .search-box {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .card,
  .article-card,
  .faq-item,
  .testimonial {
    break-inside: avoid;
    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;
  }
}

/* 焦点可见性 */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
  :root {
    --primary: #4c1d95;
    --primary-light: #6d28d9;
  }
}