
/* CSS 变量定义 */
:root {
  /* 主色调 */
  --primary: 221 83% 48%;
  --primary-foreground: 210 40% 98%;
  
  /* 次要色 */
  --secondary: 24 95% 53%;
  --secondary-foreground: 0 0% 100%;
  
  /* 强调色 */
  --accent: 215 16% 95%;
  --accent-foreground: 222 47% 11%;
  
  /* 背景色 */
  --background: 0 0% 100%;
  --foreground: 222 47% 11%;
  
  /* 卡片 */
  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;
  
  /* 边框 */
  --border: 214 32% 91%;
  
  /* 输入框 */
  --input: 214 32% 91%;
  
  /* 静音色 */
  --muted: 215 16% 47%;
  --muted-foreground: 215 16% 47%;
  
  /* 图表色 */
  --chart-1: 221 83% 53%;
  --chart-2: 24 95% 53%;
  --chart-3: 142 76% 36%;
  --chart-4: 280 65% 60%;
  --chart-5: 340 82% 52%;
  
  /* 圆角 */
  --radius: 0.5rem;
}

/* 暗色模式 */
.dark {
  --background: 222 47% 11%;
  --foreground: 210 40% 98%;
  --card: 222 47% 11%;
  --card-foreground: 210 40% 98%;
  --muted: 215 16% 25%;
  --muted-foreground: 215 16% 65%;
  --accent: 215 16% 20%;
  --accent-foreground: 210 40% 98%;
  --border: 215 16% 25%;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 容器 */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 1280px) {
  .container {
    padding: 0 2rem;
  }
}

/* ==========================================
   导航栏样式
   ========================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid hsl(var(--border));
  background-color: hsla(var(--background), 0.95);
  backdrop-filter: blur(10px);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: hsl(var(--foreground));
  transition: transform 0.3s ease;
}

.navbar-logo:hover {
  transform: scale(1.05);
}

.navbar-logo-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary-foreground));
  font-weight: bold;
  font-size: 1.125rem;
  transition: transform 0.3s ease;
}

.navbar-logo:hover .navbar-logo-icon {
  transform: scale(1.1);
}

.navbar-logo-text {
  font-weight: bold;
  font-size: 1.125rem;
}

.navbar-menu {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .navbar-menu {
    display: flex;
  }
}

.navbar-link {
  position: relative;
  text-decoration: none;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-link:hover,
.navbar-link.active {
  color: hsl(var(--primary));
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: hsl(var(--primary));
  transition: width 0.3s ease;
}

.navbar-link:hover::after,
.navbar-link.active::after {
  width: 100%;
}

.navbar-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1rem;
}

@media (min-width: 1024px) {
  .navbar-actions {
    display: flex;
  }
}

.navbar-mobile-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: hsl(var(--foreground));
}

@media (min-width: 1024px) {
  .navbar-mobile-toggle {
    display: none;
  }
}

.navbar-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: hsl(var(--background));
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 100;
  padding: 2rem;
  overflow-y: auto;
  display: none;
}

.navbar-mobile-menu.open {
  right: 0;
  display: block;
}

.navbar-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 99;
}

.navbar-mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

.navbar-mobile-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: hsl(var(--foreground));
}

.navbar-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
}

.navbar-mobile-link {
  text-decoration: none;
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.navbar-mobile-link:hover,
.navbar-mobile-link.active {
  color: hsl(var(--primary));
  background: hsla(var(--primary), 0.1);
}

.navbar-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
}

/* ==========================================
   按钮样式
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  background: hsl(221 83% 40%);
  transform: scale(1.05);
}

.btn-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
  background: hsl(24 95% 45%);
  transform: scale(1.05);
}

.btn-outline {
  background: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

.btn-outline:hover {
  background: hsl(var(--accent));
  transform: scale(1.05);
}

.btn-lg {
  padding: 1.5rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

/* ==========================================
   Hero Section 样式
   ========================================== */
.hero-section {
  position: relative;
  width: 100%;
  padding: 5rem 0;
  overflow: hidden;
}

@media (min-width: 1280px) {
  .hero-section {
    padding: 8rem 0;
  }
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=2000&h=800&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsl(221 83% 48%) 0%, hsl(221 83% 45%) 50%, hsl(221 83% 40%) 100%);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: hsla(var(--primary), 0.4);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 80rem;
  margin: 0 auto;
}

.hero-inner {
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: hsla(var(--secondary), 0.2);
  color: white;
  border: 1px solid hsla(var(--secondary), 0.3);
  border-radius: 9999px;
  font-size: 0.875rem;
  backdrop-filter: blur(10px);
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

@media (min-width: 1280px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 48rem;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

@media (min-width: 1280px) {
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (min-width: 1280px) {
  .hero-actions {
    flex-direction: row;
  }
}

.hero-btn {
  width: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

@media (min-width: 1280px) {
  .hero-btn {
    width: auto;
  }
}

.hero-btn:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.hero-btn-outline {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  backdrop-filter: blur(10px);
}

.hero-btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 1280px) {
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.hero-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.hero-stat-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.hero-stat-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-stat-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--secondary));
}

.hero-stat-number {
  font-size: 2.25rem;
  font-weight: bold;
  color: white;
}

@media (min-width: 1280px) {
  .hero-stat-number {
    font-size: 2.5rem;
  }
}

.hero-stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================
   卡片样式
   ========================================== */
.card {
  background: hsl(var(--card));
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: hsla(var(--primary), 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-0.5rem);
}

.card-header {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: hsl(var(--card-foreground));
}

.card-content {
  padding: 1.5rem;
  padding-top: 0;
}

/* ==========================================
   Section 通用样式
   ========================================== */
.section {
  width: 100%;
  padding: 4rem 0;
}

@media (min-width: 1280px) {
  .section {
    padding: 6rem 0;
  }
}

.section-bg-accent {
  background: hsla(var(--accent), 0.3);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

@media (min-width: 1280px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
}

/* ==========================================
   Grid 布局
   ========================================== */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-1 {
  grid-template-columns: 1fr;
}

@media (min-width: 1280px) {
  .grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

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

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* ==========================================
   页脚样式
   ========================================== */
.footer {
  width: 100%;
  background: hsl(var(--muted));
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 1280px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.footer-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-link {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: white;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* ==========================================
   工具类
   ========================================== */
.text-center {
  text-align: center;
}

.text-white {
  color: white;
}

.text-primary {
  color: hsl(var(--primary));
}

.text-secondary {
  color: hsl(var(--secondary));
}

.text-muted {
  color: hsl(var(--muted-foreground));
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.hidden {
  display: none;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

/* ==========================================
   响应式图片
   ========================================== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
   Badge 徽章
   ========================================== */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

/* ==========================================
   图标样式
   ========================================== */
.icon {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-block;
  vertical-align: middle;
}

.icon-lg {
  width: 2rem;
  height: 2rem;
}

.icon-xl {
  width: 3rem;
  height: 3rem;
}
.pagebar { padding:20px; overflow:hidden; clear:both}
.pagebar .pagination {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.pagination a {
  background: #fff;
  border: 1px solid #ccc;
  color: #333;
  font-size: 12px;
  padding: 8px 10px;
  margin: 0 2px;
  border-radius: 3px; line-height:100%
}
.pagination span {
  color: #333;
  font-size: 12px;
  padding: 7px 2px;
  margin: 0 2px;
  border-radius: 3px;
}
.pagination a:hover {
  color: #333;
  border: 1px solid #333;
}
.pagination a.page-num-current {
  color: #fff;
  background: hsl(var(--primary));
  border: 1px solid hsl(var(--primary));
}
.pagination .st{ font-family:宋体}
.text-secondary{ text-align:center; padding:20px 0}