/* ============================================================
   Aceternity UI 前台模板样式
   参照 ui.aceternity.com 风格 - 深色主题 + 酷炫动画
   ============================================================ */

/* ==================== 全局重置 ==================== */
.ace-html {
  scroll-behavior: smooth;
}

.ace-body {
  background: #030014;
  color: rgba(255, 255, 255, 0.75);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.ace-body * {
  box-sizing: border-box;
}

.ace-body a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s;
}

.ace-body a:hover {
  color: #a78bfa;
}

/* ==================== 阅读进度条 ==================== */
.ace-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899);
  z-index: 9999;
  transition: width 0.1s;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* ==================== Header ==================== */
.ace-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 0, 20, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ace-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.ace-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}

.ace-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  font-size: 14px;
  color: #fff;
}

.ace-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.ace-nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s;
}

.ace-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.ace-nav-active {
  color: #a855f7 !important;
  background: rgba(168, 85, 247, 0.1);
}

.ace-header-search {
  margin-left: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 200px;
}

.ace-header-search svg {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.ace-header-search input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  width: 100%;
}

.ace-header-search input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.ace-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(10, 5, 30, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 200;
}

.ace-search-dropdown.active {
  display: block;
}

.ace-search-dropdown a {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.ace-search-dropdown a:last-child {
  border-bottom: none;
}

.ace-search-dropdown a:hover {
  background: rgba(168, 85, 247, 0.1);
}

.ace-github-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s;
}

.ace-github-link svg {
  width: 20px;
  height: 20px;
}

.ace-github-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.ace-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
}

.ace-mobile-toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .ace-mobile-toggle { display: block; }
  .ace-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 5, 30, 0.98);
    backdrop-filter: blur(20px);
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .ace-nav.active { display: flex; }
  .ace-header-search { min-width: 140px; }
  .ace-github-link { display: none; }
}

/* ==================== 主容器 ==================== */
.ace-site {
  min-height: calc(100vh - 64px);
}

.aceternity-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== Hero ==================== */
.ace-hero {
  position: relative;
  padding: 80px 0 60px;
  text-align: center;
  overflow: hidden;
}

.ace-spotlight {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  pointer-events: none;
}

.ace-spotlight-beam {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(120, 70, 255, 0.15) 0%, transparent 60%);
  filter: blur(60px);
}

.ace-grid-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* 粒子 */
.ace-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ace-particle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.6);
  animation: ace-float var(--d) ease-in-out infinite alternate;
  animation-delay: var(--delay);
}

@keyframes ace-float {
  0% { transform: translate(0, 0); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translate(20px, -30px); opacity: 0; }
}

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

.ace-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  font-size: 13px;
  color: #c4b5fd;
  margin-bottom: 24px;
}

.ace-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 8px #a855f7;
  animation: ace-pulse 2s ease-in-out infinite;
}

@keyframes ace-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.ace-hero-title {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.ace-gradient-text {
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 50%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.ace-gradient-text-2 {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ace-hero-desc {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
  max-width: 640px;
  margin: 0 auto 32px;
}

.ace-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.ace-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff !important;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  position: relative;
  overflow: hidden;
}

.ace-btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.ace-btn-primary:hover::before {
  left: 100%;
}

.ace-btn-primary svg {
  width: 18px;
  height: 18px;
}

.ace-btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

.ace-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s;
}

.ace-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(168, 85, 247, 0.3);
}

.ace-btn-ghost svg {
  width: 18px;
  height: 18px;
}

/* ==================== 统计条 ==================== */
.ace-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ace-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ace-stat-num {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ace-stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.ace-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
  .ace-stats-bar { gap: 20px; flex-wrap: wrap; }
  .ace-stat-divider { display: none; }
}

/* ==================== Section Header ==================== */
.ace-section-header {
  text-align: center;
  margin: 64px 0 32px;
}

.ace-section-title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.ace-section-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.4);
}

/* ==================== 分类网格 ==================== */
.ace-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.ace-category-card {
  position: relative;
  display: block;
  padding: 28px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.ace-category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.03);
}

.ace-cat-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.08), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}

.ace-category-card:hover .ace-cat-glow {
  opacity: 1;
}

.ace-cat-content {
  position: relative;
}

.ace-cat-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.2);
  margin-bottom: 16px;
  color: #a855f7;
}

.ace-cat-icon-wrap svg {
  width: 24px;
  height: 24px;
}

/* 不同分类用不同颜色 */
.ace-cat-icon-0 { --cat-color: #6366f1; }
.ace-cat-icon-1 { --cat-color: #8b5cf6; }
.ace-cat-icon-2 { --cat-color: #ec4899; }
.ace-cat-icon-3 { --cat-color: #f59e0b; }
.ace-cat-icon-4 { --cat-color: #10b981; }
.ace-cat-icon-5 { --cat-color: #06b6d4; }
.ace-cat-icon-6 { --cat-color: #f43f5e; }
.ace-cat-icon-7 { --cat-color: #8b5cf6; }

.ace-cat-icon-0 .ace-cat-icon-wrap { background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(99,102,241,0.05)); border-color: rgba(99,102,241,0.2); color: #818cf8; }
.ace-cat-icon-1 .ace-cat-icon-wrap { background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(139,92,246,0.05)); border-color: rgba(139,92,246,0.2); color: #a78bfa; }
.ace-cat-icon-2 .ace-cat-icon-wrap { background: linear-gradient(135deg, rgba(236,72,153,0.15), rgba(236,72,153,0.05)); border-color: rgba(236,72,153,0.2); color: #f472b6; }
.ace-cat-icon-3 .ace-cat-icon-wrap { background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.05)); border-color: rgba(245,158,11,0.2); color: #fbbf24; }
.ace-cat-icon-4 .ace-cat-icon-wrap { background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(16,185,129,0.05)); border-color: rgba(16,185,129,0.2); color: #34d399; }
.ace-cat-icon-5 .ace-cat-icon-wrap { background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(6,182,212,0.05)); border-color: rgba(6,182,212,0.2); color: #22d3ee; }
.ace-cat-icon-6 .ace-cat-icon-wrap { background: linear-gradient(135deg, rgba(244,63,94,0.15), rgba(244,63,94,0.05)); border-color: rgba(244,63,94,0.2); color: #fb7185; }
.ace-cat-icon-7 .ace-cat-icon-wrap { background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(139,92,246,0.05)); border-color: rgba(139,92,246,0.2); color: #a78bfa; }

.ace-cat-name {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.ace-cat-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
  margin-bottom: 16px;
  min-height: 38px;
}

.ace-cat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ace-cat-count {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

.ace-cat-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s;
}

.ace-category-card:hover .ace-cat-arrow {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  transform: translateX(4px);
}

.ace-cat-arrow svg {
  width: 16px;
  height: 16px;
}

/* ==================== 最新组件网格 ==================== */
.ace-latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.ace-latest-card {
  position: relative;
  display: block;
  padding: 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s;
  overflow: hidden;
}

.ace-latest-card:hover {
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateY(-2px);
}

.ace-latest-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.ace-latest-card:hover .ace-latest-glow { opacity: 1; }

.ace-latest-body { position: relative; }

.ace-latest-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  font-size: 12px;
  color: #c4b5fd;
  margin-bottom: 12px;
}

.ace-latest-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.4;
}

.ace-latest-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
  margin-bottom: 16px;
}

.ace-latest-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

.ace-latest-link {
  color: #a855f7 !important;
  font-weight: 500;
}

/* ==================== CTA ==================== */
.ace-cta {
  position: relative;
  margin: 80px 0 60px;
  padding: 60px 40px;
  text-align: center;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.05));
  border: 1px solid rgba(168, 85, 247, 0.15);
  overflow: hidden;
}

.ace-cta-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.1), transparent 60%);
  filter: blur(40px);
}

.ace-cta-content { position: relative; }

.ace-cta h2 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.ace-cta p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
}

/* ==================== 子分类页 ==================== */
.aceternity-subcat .ace-subcat-hero {
  position: relative;
  padding: 48px 0 32px;
  overflow: hidden;
}

.ace-subcat-hero .ace-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  transform: none;
}

.ace-subcat-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(168, 85, 247, 0.1), transparent 60%);
  filter: blur(60px);
}

.ace-breadcrumb {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

.ace-breadcrumb .sep { opacity: 0.5; }
.ace-breadcrumb .current { color: #a855f7; }

.ace-subcat-title {
  position: relative;
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 12px;
}

.ace-subcat-desc {
  position: relative;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 640px;
}

/* ==================== 组件列表网格 ==================== */
.ace-component-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.ace-component-card {
  display: block;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s;
  overflow: hidden;
}

.ace-component-card:hover {
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateY(-4px);
}

.ace-comp-preview {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ace-comp-preview img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.ace-comp-preview-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.06), transparent 70%);
}

/* 占位预览 */
.ace-comp-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ace-ph-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.08), transparent);
  animation: ace-shimmer 2s infinite;
}

@keyframes ace-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.ace-ph-grid {
  width: 80%;
  height: 80%;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: 8px;
}

.ace-comp-body {
  padding: 20px;
}

.ace-comp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.ace-comp-cat {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.1);
  font-size: 11px;
  color: #c4b5fd;
}

.ace-comp-tag {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.ace-comp-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.4;
}

.ace-comp-excerpt {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
  margin-bottom: 12px;
}

.ace-comp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

.ace-comp-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #a855f7 !important;
  font-weight: 500;
}

.ace-comp-link svg {
  width: 14px;
  height: 14px;
}

/* ==================== 分页 ==================== */
.ace-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 32px 0;
}

.ace-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  transition: all 0.2s;
}

.ace-pagination .page-numbers:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
  color: #fff;
}

.ace-pagination .page-numbers.current {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  border-color: transparent;
  color: #fff;
}

.ace-pagination .page-numbers svg {
  width: 18px;
  height: 18px;
}

/* ==================== 空状态 ==================== */
.ace-empty-state {
  text-align: center;
  padding: 60px 20px;
}

.ace-empty-large {
  padding: 100px 20px;
}

.ace-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 20px;
}

.ace-empty-icon svg {
  width: 40px;
  height: 40px;
  color: rgba(255, 255, 255, 0.2);
}

.ace-empty-state h3 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.ace-empty-state p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 20px;
}

/* ==================== 同级分类 ==================== */
.ace-siblings-section {
  padding: 32px 0 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ace-siblings-title {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.ace-siblings-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ace-sibling-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s;
}

.ace-sibling-chip:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
  color: #fff;
}

.ace-sibling-count {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   详情页样式
   ============================================================ */

/* 面包屑 */
.ace-single-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  padding: 24px 0;
}

.ace-single-breadcrumb .sep { opacity: 0.5; }
.ace-single-breadcrumb .current { color: #a855f7; }

/* 标题区 */
.ace-single-header {
  position: relative;
  padding: 24px 0 40px;
  overflow: hidden;
}

.ace-single-glow {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(168, 85, 247, 0.08), transparent 60%);
  filter: blur(40px);
}

.ace-single-cat-badge {
  position: relative;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  font-size: 12px;
  color: #c4b5fd;
  margin-bottom: 16px;
}

.ace-single-title {
  position: relative;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.ace-single-meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.ace-single-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ace-single-meta .meta-item svg {
  width: 14px;
  height: 14px;
}

/* 预览框 */
.ace-single-preview {
  margin-bottom: 40px;
}

.ace-preview-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.ace-preview-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ace-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ace-dot-red { background: #ef4444; }
.ace-dot-yellow { background: #f59e0b; }
.ace-dot-green { background: #10b981; }

.ace-preview-label {
  margin-left: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

.ace-preview-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 40px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(168, 85, 247, 0.03));
}

.ace-preview-content img {
  max-width: 100%;
  border-radius: 8px;
}

/* 文章内容 */
.ace-single-content {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  max-width: 820px;
  margin: 0 auto 40px;
}

.ace-single-content h2,
.ace-single-content h3,
.ace-single-content h4 {
  color: #fff;
  margin-top: 32px;
  margin-bottom: 12px;
  font-weight: 600;
}

.ace-single-content h2 { font-size: 24px; }
.ace-single-content h3 { font-size: 20px; }
.ace-single-content h4 { font-size: 18px; }

.ace-single-content p {
  margin-bottom: 16px;
}

.ace-single-content a {
  color: #a855f7;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ace-single-content ul,
.ace-single-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.ace-single-content li {
  margin-bottom: 8px;
}

.ace-single-content code {
  font-family: "SF Mono", "Fira Code", "Cascadia Code", Menlo, monospace;
  font-size: 0.875em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.1);
  color: #c4b5fd;
}

.ace-single-content pre {
  margin: 16px 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ace-single-content pre code {
  display: block;
  padding: 20px;
  background: rgba(10, 5, 30, 0.6);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  overflow-x: auto;
}

.ace-single-content blockquote {
  margin: 16px 0;
  padding: 12px 20px;
  border-left: 3px solid #a855f7;
  background: rgba(168, 85, 247, 0.05);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
}

.ace-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 16px 0;
}

/* 代码区 */
.ace-code-section {
  max-width: 820px;
  margin: 0 auto 40px;
}

.ace-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ace-code-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.ace-code-header h3 svg {
  width: 18px;
  height: 18px;
  color: #a855f7;
}

.ace-copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: #c4b5fd;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.ace-copy-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.4);
}

.ace-copy-btn.copied {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.ace-copy-btn svg {
  width: 14px;
  height: 14px;
}

.ace-code-block {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 5, 30, 0.6);
}

.ace-code-block pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
}

.ace-code-block code {
  font-family: "SF Mono", "Fira Code", "Cascadia Code", Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

/* 标签 */
.ace-single-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 820px;
  margin: 0 auto 32px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ace-tags-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.ace-tag-chip {
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s;
}

.ace-tag-chip:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
  color: #c4b5fd;
}

/* 上下篇导航 */
.ace-single-nav {
  display: flex;
  gap: 16px;
  max-width: 820px;
  margin: 0 auto 40px;
}

.ace-nav-card {
  flex: 1;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ace-nav-card:hover {
  border-color: rgba(168, 85, 247, 0.2);
  background: rgba(168, 85, 247, 0.03);
}

.ace-nav-placeholder {
  visibility: hidden;
}

.ace-nav-next { text-align: right; }

.ace-nav-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

.ace-nav-title {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

/* 相关组件 */
.ace-related-section {
  max-width: 820px;
  margin: 0 auto 60px;
}

.ace-related-title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}

.ace-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.ace-related-card {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s;
}

.ace-related-card:hover {
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateY(-2px);
}

.ace-related-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.ace-related-card:hover .ace-related-glow { opacity: 1; }

.ace-related-thumb {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
  overflow: hidden;
}

.ace-related-thumb img {
  max-width: 80%;
  max-height: 80%;
}

.ace-related-thumb-ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ace-related-body {
  padding: 12px 14px;
}

.ace-related-body h4 {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.4;
}

.ace-related-body time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

/* ==================== Footer ==================== */
.ace-footer {
  position: relative;
  background: rgba(3, 0, 20, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.ace-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 24px;
  position: relative;
}

.ace-footer-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(168, 85, 247, 0.06), transparent 60%);
  filter: blur(60px);
}

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

.ace-footer-brand h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.ace-footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
}

.ace-footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.ace-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ace-footer-col li {
  margin-bottom: 8px;
}

.ace-footer-col a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}

.ace-footer-col a:hover {
  color: #a855f7;
}

.ace-footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

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

.ace-footer-bottom a {
  color: rgba(255, 255, 255, 0.3);
}

.ace-footer-bottom a:hover {
  color: #a855f7;
}

@media (max-width: 768px) {
  .ace-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .ace-footer-brand {
    grid-column: 1 / -1;
  }
  .ace-single-nav {
    flex-direction: column;
  }
  .ace-nav-next {
    text-align: left;
  }
}

/* ==================== 入场动画 ==================== */
.ace-hero-content > * {
  animation: ace-fade-up 0.8s ease-out backwards;
}

.ace-hero-content > *:nth-child(1) { animation-delay: 0s; }
.ace-hero-content > *:nth-child(2) { animation-delay: 0.15s; }
.ace-hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.ace-hero-content > *:nth-child(4) { animation-delay: 0.45s; }

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

.ace-category-card {
  animation: ace-fade-up 0.5s ease-out backwards;
}

.ace-latest-card {
  animation: ace-fade-up 0.5s ease-out backwards;
}

.ace-latest-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ace-latest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ace-latest-card:hover .ace-latest-thumb img {
  transform: scale(1.05);
}

/* ============================================================
   组件详情页 - Preview/Code 切换 + 安装 + 示例 + Props
   ============================================================ */

/* 单组件描述 */
.ace-single-desc {
  position: relative;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
  max-width: 720px;
}

/* 标签行 */
.ace-single-tags-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ace-single-tag {
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* Demo Section - Preview/Code 切换 */
.ace-demo-section {
  max-width: 100%;
  margin: 0 0 48px;
}

.ace-demo-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px 12px 0 0;
  border-bottom: none;
}

.ace-demo-tab {
  padding: 8px 20px;
  border-radius: 8px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.ace-demo-tab:hover {
  color: rgba(255, 255, 255, 0.8);
}

.ace-demo-tab.active {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.ace-demo-tab-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 8px;
}

.ace-demo-pkg {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 12px;
  color: #c4b5fd;
  background: rgba(168, 85, 247, 0.08);
  padding: 3px 10px;
  border-radius: 6px;
}

.ace-copy-sm {
  padding: 4px 8px !important;
  font-size: 12px !important;
}

.ace-copy-sm svg {
  width: 14px !important;
  height: 14px !important;
}

/* Demo Panel */
.ace-demo-panel {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

.ace-demo-panel.active {
  display: block;
}

/* 预览区 */
.ace-demo-preview .ace-preview-frame {
  border: none;
  border-radius: 0;
}

.ace-demo-preview .ace-preview-content {
  min-height: 400px;
}

.ace-demo-preview .ace-preview-content img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 0;
}

/* 占位预览 */
.ace-preview-placeholder {
  position: relative;
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ace-preview-placeholder .ace-ph-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.06), transparent);
  animation: ace-shimmer 2s infinite;
}

.ace-preview-placeholder .ace-ph-grid {
  width: 60%;
  height: 200px;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: 8px;
}

/* Code 面板 */
.ace-code-large {
  border: none !important;
  border-radius: 0 !important;
  background: rgba(10, 5, 30, 0.8) !important;
}

.ace-code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ace-code-lang {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-family: "SF Mono", monospace;
}

.ace-code-large pre {
  margin: 0;
  padding: 20px;
  max-height: 600px;
  overflow-y: auto;
}

.ace-code-large code {
  font-family: "SF Mono", "Fira Code", "Cascadia Code", Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  white-space: pre;
}

/* 安装区 */
.ace-install-section {
  margin-bottom: 48px;
}

.ace-install-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ace-install-cmd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(10, 5, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.ace-install-cmd code {
  flex: 1;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 14px;
  color: #c4b5fd;
  overflow-x: auto;
}

/* 文档区 */
.ace-doc-section {
  margin-bottom: 48px;
}

.ace-doc-content {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}

.ace-doc-content h2,
.ace-doc-content h3 {
  color: #fff;
  font-weight: 600;
  margin: 24px 0 12px;
}

.ace-doc-content h2 { font-size: 22px; }
.ace-doc-content h3 { font-size: 18px; }

.ace-doc-content p {
  margin-bottom: 14px;
}

.ace-doc-content a {
  color: #a855f7;
  text-decoration: underline;
}

.ace-doc-content ul, .ace-doc-content ol {
  margin: 12px 0;
  padding-left: 24px;
}

.ace-doc-content code {
  font-family: "SF Mono", monospace;
  font-size: 0.85em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.1);
  color: #c4b5fd;
}

/* 示例区 */
.ace-examples-section {
  margin-bottom: 48px;
}

.ace-examples-title {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ace-example-block {
  margin-bottom: 32px;
}

.ace-example-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

/* Props 表格 */
.ace-props-section {
  margin-bottom: 48px;
}

.ace-props-title {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ace-props-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ace-props-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ace-props-table thead {
  background: rgba(255, 255, 255, 0.03);
}

.ace-props-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.ace-props-table td {
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ace-props-table td code {
  font-family: "SF Mono", monospace;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.08);
  color: #c4b5fd;
}

.ace-props-table td .ace-type {
  color: #f472b6;
  background: rgba(236, 72, 153, 0.08);
}

.ace-required {
  color: #f87171;
  font-weight: 600;
}

.ace-props-table tr:hover td {
  background: rgba(168, 85, 247, 0.03);
}

/* 元信息栏 */
.ace-single-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 32px;
}

.ace-single-meta-bar .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ace-single-meta-bar .meta-item svg {
  width: 14px;
  height: 14px;
}

/* 滚动条样式 */
.ace-code-large pre::-webkit-scrollbar,
.ace-props-table-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.ace-code-large pre::-webkit-scrollbar-track,
.ace-props-table-wrap::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.ace-code-large pre::-webkit-scrollbar-thumb,
.ace-props-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.2);
  border-radius: 4px;
}

.ace-code-large pre::-webkit-scrollbar-thumb:hover,
.ace-props-table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.4);
}

/* 响应式 */
@media (max-width: 768px) {
  .ace-demo-tabs {
    flex-wrap: wrap;
  }
  .ace-demo-tab-right {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    padding-top: 4px;
  }
  .ace-props-table {
    font-size: 12px;
  }
  .ace-props-table th,
  .ace-props-table td {
    padding: 8px 10px;
  }
}