
/* 全局样式 */
:root {
  --primary-color: #0d47a1;
  --secondary-color: #1976d2;
  --accent-color: #ff9800;
  --light-color: #ffffff;
  --dark-color: #121212;
  --text-color: #333333;
  --gray-light: #f5f5f5;
  --transition: all 0.3s ease;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  color: var(--text-color);
  background: linear-gradient(135deg, var(--gray-light) 0%, var(--light-color) 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 粒子背景动画 */
@keyframes particle-move {
  0% { transform: translate(0, 0); }
  100% { transform: translate(100px, 100px); }
}

.particle-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.1;
  background-image: 
    radial-gradient(circle at 20% 30%, var(--primary-color) 0%, transparent 20%),
    radial-gradient(circle at 80% 70%, var(--secondary-color) 0%, transparent 20%);
  background-size: 200px 200px;
  animation: particle-move 20s infinite alternate;
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

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

/* 主容器 */
.main-container {
  max-width: 1200px;
  margin: 6rem auto 3rem;
  padding: 0 2rem;
}

/* 标题样式 */
.page-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* 文章内容 */
.article-content {
  background: var(--light-color);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  margin-bottom: 3rem;
}

.article-content h2 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1rem;
}

.article-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.article-content h3 {
  font-size: 1.4rem;
  color: var(--secondary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* 代码块样式 */
pre {
  background: #282c34;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  overflow: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

code {
  font-family: 'Fira Code', monospace;
  color: #abb2bf;
  font-size: 0.9rem;
}

/* 图片样式 */
.article-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.article-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* 卡片样式 */
.card {
  background: var(--light-color);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin: 2rem 0;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card-title {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* 表格样式 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background: var(--primary-color);
  color: var(--light-color);
  font-weight: 500;
}

tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}

tr:hover {
  background: rgba(25, 118, 210, 0.05);
}

/* 状态标签 */
.status-success {
  color: #4caf50;
  font-weight: bold;
}

.status-pending {
  color: var(--accent-color);
  font-weight: bold;
}

/* 提示信息 */
.notice {
  background: rgba(25, 118, 210, 0.1);
  border-left: 4px solid var(--secondary-color);
  padding: 1rem;
  margin: 2rem 0;
  border-radius: 0 4px 4px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav-links {
    margin-top: 1rem;
    width: 100%;
    justify-content: space-between;
  }
  
  .main-container {
    margin-top: 8rem;
    padding: 0 1rem;
  }
  
  .article-content {
    padding: 2rem 1rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background: var(--dark-color);
    color: #e0e0e0;
  }
  
  .article-content, .card {
    background: #1e1e1e;
    color: #e0e0e0;
  }
  
  .navbar {
    background: rgba(30, 30, 30, 0.95);
  }
  
  .nav-link {
    color: #e0e0e0;
  }
  
  .nav-logo {
    color: var(--secondary-color);
  }
  
  th {
    background: var(--secondary-color);
  }
  
  tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
  }
  
  tr:hover {
    background: rgba(25, 118, 210, 0.1);
  }
  
  .notice {
    background: rgba(25, 118, 210, 0.2);
  }
  
  pre {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  }
}

