/* ========================================
   搜涯CMS官方主题 - 样式表
   基于SECMS.txt中的Tailwind设计转换
   ======================================== */

/* ---------- 基础重置和变量 ---------- */
:root {
  --primary: #0F172A;
  --secondary: #0EA5E9;
  --accent: #22D3EE;
  --dark: #020617;
  --light: #F8FAFC;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--primary);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color 0.25s, opacity 0.25s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
input, textarea, button, select { font: inherit; }

/* ---------- 工具类 ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-gradient {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bg-grid {
  background-image: radial-gradient(rgba(14, 165, 233, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}
.card-hover {
  transition: all 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-8px);
}

/* ---------- 动画 ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delay { animation: float 6s ease-in-out 2s infinite; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: var(--primary);
}
.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.35);
  transform: translateY(-2px);
  color: var(--primary);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--secondary);
  color: var(--secondary);
}
.btn-outline:hover {
  background: rgba(14, 165, 233, 0.1);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--gray-600);
  color: var(--gray-300);
}
.btn-ghost:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s ease;
}
.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  transition: padding 0.3s ease;
}
.navbar.scrolled .navbar-inner { padding: 8px 0; }

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 800;
  font-size: 16px;
}
.logo-text {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 桌面导航 */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  color: var(--gray-300);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.25s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

/* 导航操作区 */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gray-300);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* 移动端菜单 */
.mobile-menu {
  display: none;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(16px);
  padding: 20px;
}
.mobile-menu.active {
  display: block;
}
.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--gray-300);
  font-size: 16px;
  border-bottom: 1px solid var(--gray-700);
}
.mobile-menu a:hover {
  color: var(--accent);
}
.mobile-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- Hero区域 ---------- */
.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(14, 165, 233, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.hero-glow-1 {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.hero-glow-2 {
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.1), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 10;
}
.hero-content { flex: 1; }
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-desc {
  font-size: 18px;
  color: var(--gray-400);
  margin-bottom: 32px;
  max-width: 540px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-users {
  display: flex;
  align-items: center;
  gap: 16px;
}
.avatar-group {
  display: flex;
}
.avatar-group img,
.avatar-group .avatar-more {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  margin-left: -10px;
}
.avatar-group img:first-child { margin-left: 0; }
.avatar-group .avatar-more {
  background: rgba(14, 165, 233, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--secondary);
}
.hero-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #FBBF24;
  font-size: 14px;
}
.hero-rating span { color: var(--gray-300); margin-left: 8px; }

/* Hero右侧装饰 */
.hero-visual {
  flex: 1;
  position: relative;
}
.hero-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(14, 165, 233, 0.15);
}
.hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-float-card {
  position: absolute;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--gray-700);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.hero-float-card.card-1 {
  bottom: -20px;
  left: -20px;
}
.hero-float-card.card-2 {
  top: -20px;
  right: -20px;
}
.float-label {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 4px;
}
.float-value {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.progress-bar {
  width: 160px;
  height: 6px;
  background: var(--gray-700);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 3px;
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22C55E;
  display: inline-block;
  margin-right: 8px;
}

/* ---------- 通用Section ---------- */
.section { padding: 80px 0; position: relative; }
.section-dark { background: var(--dark); }
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 18px;
  color: var(--gray-400);
  line-height: 1.7;
}

/* ---------- 特性卡片 ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: rgba(2, 6, 23, 0.5);
  backdrop-filter: blur(8px);
  padding: 32px 24px;
  border-radius: 16px;
  border: 1px solid var(--gray-700);
  transition: all 0.35s ease;
}
.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 12px 40px rgba(14, 165, 233, 0.1);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
  color: var(--secondary);
}
.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}
.feature-desc {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.7;
}

/* ---------- 性能对比区域 ---------- */
.performance-section {
  position: relative;
  overflow: hidden;
}
.performance-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 33%;
  height: 100%;
  background: linear-gradient(to left, rgba(14, 165, 233, 0.05), transparent);
  pointer-events: none;
}
.performance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.performance-chart-wrapper {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--gray-700);
  margin-bottom: 24px;
}
.performance-chart-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.performance-chart-title i {
  color: var(--secondary);
}

/* CSS条形图 */
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bar-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.bar-label {
  width: 100px;
  font-size: 14px;
  color: var(--gray-400);
  flex-shrink: 0;
}
.bar-track {
  flex: 1;
  height: 28px;
  background: var(--gray-700);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.bar-fill {
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  font-size: 13px;
  font-weight: 600;
  transition: width 1s ease;
}
.bar-fill.highlight {
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  color: var(--primary);
}
.bar-fill.normal {
  background: var(--gray-600);
  color: var(--light);
}
.bar-value {
  width: 60px;
  text-align: right;
  font-size: 14px;
  color: var(--gray-400);
  font-weight: 500;
}

/* 统计数字 */
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.stat-card {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--gray-700);
  text-align: center;
}
.stat-value {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 14px;
  color: var(--gray-400);
}

/* 优势列表 */
.advantage-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.advantage-item {
  display: flex;
  gap: 20px;
}
.advantage-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 16px;
  flex-shrink: 0;
}
.advantage-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.advantage-desc {
  font-size: 15px;
  color: var(--gray-400);
  line-height: 1.7;
}

/* ---------- 界面展示 ---------- */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.showcase-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gray-700);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.1);
  transition: all 0.5s ease;
}
.showcase-card:hover {
  transform: scale(1.02);
}
.showcase-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.showcase-body {
  padding: 24px;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(8px);
}
.showcase-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.showcase-desc {
  font-size: 14px;
  color: var(--gray-400);
}

/* ---------- 下载区域 ---------- */
.download-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--dark), var(--primary));
}
.download-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  pointer-events: none;
}
.download-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.05);
  filter: blur(60px);
  pointer-events: none;
}
.download-card {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  border: 1px solid var(--gray-700);
  padding: 48px;
  position: relative;
  z-index: 10;
}
.download-header {
  text-align: center;
  margin-bottom: 40px;
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.download-item {
  background: rgba(2, 6, 23, 0.5);
  padding: 32px 24px;
  border-radius: 16px;
  border: 1px solid var(--gray-700);
  text-align: center;
}
.download-version {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.download-type {
  font-size: 15px;
  color: var(--gray-400);
  margin-bottom: 8px;
}
.download-date {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 24px;
}

/* 命令行 */
.code-block {
  background: var(--dark);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--gray-700);
}
.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 500;
}
.code-header i { color: var(--secondary); }
.code-content {
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray-300);
  overflow-x: auto;
}
.code-content .comment { color: var(--gray-500); }

/* ---------- 文档社区 ---------- */
.resource-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.resource-card {
  background: rgba(2, 6, 23, 0.5);
  backdrop-filter: blur(8px);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--gray-700);
  height: 100%;
}
.resource-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(14, 165, 233, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 24px;
  color: var(--secondary);
}
.resource-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}
.resource-desc {
  font-size: 15px;
  color: var(--gray-400);
  margin-bottom: 24px;
  line-height: 1.7;
}
.resource-list {
  margin-bottom: 24px;
}
.resource-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--gray-300);
  font-size: 15px;
  transition: color 0.25s;
}
.resource-list a:hover {
  color: var(--accent);
}
.resource-list i {
  color: var(--secondary);
}

/* 社区项 */
.community-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-700);
}
.community-item:last-child {
  border-bottom: none;
}
.community-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 18px;
  flex-shrink: 0;
}
.community-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
}
.community-desc {
  font-size: 14px;
  color: var(--gray-400);
}

/* ---------- CTA区域 ---------- */
.cta-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to right, var(--primary), var(--dark));
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(14, 165, 233, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
}
.cta-section::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  filter: blur(100px);
  opacity: 0.15;
}
.cta-inner {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
}
.cta-desc {
  font-size: 18px;
  color: var(--gray-400);
  margin-bottom: 40px;
  line-height: 1.7;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--dark);
  padding: 60px 0 0;
  border-top: 1px solid var(--gray-700);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .logo {
  margin-bottom: 20px;
}
.footer-desc {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 24px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 16px;
  transition: all 0.25s;
}
.footer-social a:hover {
  background: rgba(14, 165, 233, 0.2);
  color: var(--secondary);
}
.footer-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  font-size: 14px;
  color: var(--gray-400);
  transition: color 0.25s;
}
.footer-links a:hover {
  color: var(--secondary);
}
.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copyright {
  font-size: 14px;
  color: var(--gray-500);
}
.footer-copyright a {
  color: var(--gray-400);
}
.footer-copyright a:hover {
  color: var(--secondary);
}
.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a {
  font-size: 14px;
  color: var(--gray-500);
}

/* ---------- 回到顶部 ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  box-shadow: 0 6px 24px rgba(14, 165, 233, 0.5);
}

/* ---------- 文章列表页 ---------- */
.breadcrumb {
  padding: 20px 0;
  font-size: 14px;
  color: var(--gray-500);
}
.breadcrumb a {
  color: var(--gray-400);
}
.breadcrumb a:hover {
  color: var(--secondary);
}
.breadcrumb span {
  margin: 0 8px;
  color: var(--gray-600);
}

/* 分类导航 */
.cate-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--gray-700);
}
.cate-nav a {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--gray-400);
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--gray-700);
  transition: all 0.25s;
}
.cate-nav a:hover,
.cate-nav a.active {
  color: var(--primary);
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  border-color: transparent;
}

/* 文章卡片 */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid var(--gray-700);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s ease;
}
.article-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 12px 40px rgba(14, 165, 233, 0.1);
}
.article-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--gray-700);
}
.article-body {
  padding: 20px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 12px;
}
.article-meta i {
  color: var(--secondary);
  margin-right: 4px;
}
.article-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-title a {
  color: var(--light);
}
.article-title a:hover {
  color: var(--accent);
}
.article-intro {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 40px 0;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--gray-700);
  color: var(--gray-300);
  transition: all 0.25s;
}
.pagination a:hover {
  border-color: var(--secondary);
  color: var(--accent);
}
.pagination .current {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: var(--primary);
  border-color: transparent;
  font-weight: 600;
}

/* ---------- 文章详情页 ---------- */
.detail-wrap {
  padding: 40px 0 60px;
}
.detail-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.4;
}
.detail-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-700);
}
.detail-meta i {
  color: var(--secondary);
  margin-right: 6px;
}
.detail-intro {
  font-size: 16px;
  color: var(--gray-300);
  line-height: 1.8;
  padding: 20px 24px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.05);
  border-left: 3px solid var(--secondary);
  margin-bottom: 32px;
}
.detail-content {
  font-size: 16px;
  color: var(--gray-300);
  line-height: 1.9;
}
.detail-content p {
  margin-bottom: 20px;
}
.detail-content h2,
.detail-content h3,
.detail-content h4 {
  color: var(--light);
  margin: 32px 0 16px;
  font-weight: 600;
}
.detail-content img {
  border-radius: 12px;
  margin: 24px 0;
}
.detail-content a {
  color: var(--secondary);
  border-bottom: 1px solid rgba(14, 165, 233, 0.3);
}
.detail-content a:hover {
  color: var(--accent);
}
.detail-content pre,
.detail-content code {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 8px;
  font-family: 'Fira Code', monospace;
  font-size: 14px;
}
.detail-content code {
  padding: 2px 8px;
}
.detail-content pre {
  padding: 20px;
  overflow-x: auto;
  margin: 20px 0;
}
.detail-content pre code {
  padding: 0;
  background: none;
}

/* 版权声明 */
.copyright-notice {
  margin-top: 40px;
  padding: 20px 24px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.05);
  border: 1px solid var(--gray-700);
  font-size: 14px;
  color: var(--gray-500);
}
.copyright-notice p {
  margin-bottom: 8px;
}
.copyright-notice a {
  color: var(--secondary);
}

/* 上下篇 */
.detail-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-700);
}
.detail-nav a {
  flex: 1;
  padding: 20px 24px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--gray-700);
  font-size: 15px;
  color: var(--gray-300);
  transition: all 0.25s;
}
.detail-nav a:hover {
  border-color: var(--secondary);
  color: var(--accent);
}
.detail-nav-label {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 6px;
}

/* 标签 */
.detail-tags {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-700);
}
.detail-tags i {
  color: var(--secondary);
  margin-right: 10px;
}
.detail-tags a {
  display: inline-block;
  padding: 6px 14px;
  margin: 4px 8px 4px 0;
  border-radius: 6px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.15);
  font-size: 13px;
  color: var(--secondary);
  transition: all 0.25s;
}
.detail-tags a:hover {
  background: rgba(14, 165, 233, 0.15);
}

/* ---------- 侧边栏 ---------- */
.sidebar-widget {
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid var(--gray-700);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}
.widget-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-700);
  display: flex;
  align-items: center;
  gap: 10px;
}
.widget-title i {
  color: var(--secondary);
  font-size: 14px;
}
.widget-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-700);
}
.widget-list li:last-child {
  border-bottom: none;
}
.widget-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-300);
  font-size: 14px;
}
.widget-list a:hover {
  color: var(--accent);
}
.widget-list .date {
  color: var(--gray-500);
  font-size: 12px;
  flex-shrink: 0;
}
.widget-list .rank {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 12px;
  background: rgba(14, 165, 233, 0.12);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.widget-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.widget-tags a {
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.15);
  font-size: 13px;
  color: var(--secondary);
  transition: all 0.25s;
}
.widget-tags a:hover {
  background: rgba(14, 165, 233, 0.15);
}

/* ---------- 评论区域 ---------- */
.comment-section {
  margin-top: 48px;
}
.comment-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-700);
}
.comment-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-700);
}
.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.12);
  flex-shrink: 0;
  overflow: hidden;
}
.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comment-body {
  flex: 1;
}
.comment-author {
  font-size: 15px;
  font-weight: 600;
  color: var(--light);
}
.comment-date {
  font-size: 13px;
  color: var(--gray-500);
  margin-left: 12px;
}
.comment-text {
  font-size: 15px;
  color: var(--gray-300);
  line-height: 1.7;
  margin-top: 8px;
}
.comment-reply {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(14, 165, 233, 0.05);
  font-size: 13px;
  color: var(--gray-400);
}

/* 评论表单 */
.comment-form {
  margin-top: 32px;
}
.comment-form textarea {
  width: 100%;
  min-height: 120px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--gray-700);
  color: var(--light);
  font-size: 15px;
  resize: vertical;
  outline: none;
  transition: border-color 0.25s;
}
.comment-form textarea:focus {
  border-color: var(--secondary);
}
.comment-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* ---------- 404页面 ---------- */
.page-404 {
  text-align: center;
  padding: 120px 20px;
}
.code-404 {
  font-size: 140px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.title-404 {
  font-size: 26px;
  color: var(--light);
  margin: 24px 0 12px;
}
.desc-404 {
  font-size: 16px;
  color: var(--gray-400);
  margin-bottom: 32px;
}

/* ---------- 搜索页 ---------- */
.search-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-700);
  margin-bottom: 32px;
}
.search-keyword {
  font-size: 20px;
  color: var(--light);
}
.search-keyword span {
  color: var(--secondary);
  font-weight: 600;
}

/* ---------- 页面布局 ---------- */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  padding: 32px 0 60px;
}
.page-main {
  min-width: 0;
}

/* ---------- 响应式设计 ---------- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .performance-grid { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .page-layout { grid-template-columns: 1fr; }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-users { justify-content: center; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .nav-actions .btn { display: none; }
  .menu-toggle { display: block; }
  .hero { padding: 120px 0 60px; }
  .features-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .detail-nav { flex-direction: column; }
  .section { padding: 60px 0; }
  .download-card { padding: 32px 24px; }
  .resource-card { padding: 28px; }
  .cta-actions { flex-direction: column; align-items: center; }
  .bar-label { width: 80px; font-size: 12px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-desc { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-float-card { display: none; }
  .section-title { font-size: 1.6rem; }
  .stat-value { font-size: 28px; }
}
