/* 全局重置与基础样式 */
:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --dark-color: #2d3436;
    --light-color: #f5f6fa;
    --text-color: #636e72;
    --text-light: #b2bec3;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --danger-color: #d63031;
    --border-radius: 12px;
    --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--dark-color);
    color: var(--light-color);
    line-height: 1.7;
    overflow-x: hidden;
  }
  
  a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
  }
  
  a:hover {
    color: var(--primary-color);
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* 按钮样式 */
  .btn {
    display: inline-block;
    padding: 10px 24px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
  }
  
  .btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
  }
  
  .btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
  }
  
  .btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
  }
  
  /* 头部样式 */
  header {
    background-color: rgba(45, 52, 54, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    font-size: 28px;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
  }
  
  .logo span {
    color: var(--primary-color);
    margin-left: 8px;
  }
  
  /* 导航菜单 */
  .nav-menu {
    display: flex;
    list-style: none;
  }
  
  .nav-item {
    margin-left: 30px;
    position: relative;
  }
  
  .nav-link {
    color: var(--light-color);
    font-weight: 600;
    padding: 8px 0;
    position: relative;
  }
  
  .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
  }
  
  .nav-link:hover:after {
    width: 100%;
  }
  
  /* 主要内容区域 */
  .main {
    margin-top: 100px;
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 32px;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
  }
  
  .section-title:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    bottom: -10px;
    left: 0;
    background: linear-gradient(to right, var(--primary-color), transparent);
    border-radius: 2px;
  }
  
  /* 卡片样式 */
  .card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(5px);
  }
  
  .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  }
  
  .card-img {
    height: 200px;
    overflow: hidden;
  }
  
  .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
  }
  
  .card:hover .card-img img {
    transform: scale(1.05);
  }
  
  .card-body {
    padding: 20px;
  }
  
  .card-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: white;
  }
  
  .card-text {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 14px;
  }
  
  .card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
  }
  
  /* 网格布局 */
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
  }
  
  /* 文章详情页 */
  .article-header {
    margin-bottom: 40px;
    text-align: center;
  }
  
  .article-title {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.3;
  }
  
  .article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--text-light);
    margin-bottom: 20px;
  }
  
  .article-meta span {
    display: flex;
    align-items: center;
  }
  
  .article-meta i {
    margin-right: 8px;
    color: var(--primary-color);
  }
  
  .article-cover {
    height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 40px;
  }
  
  .article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .article-content {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .article-content p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.8;
  }
  
  .article-content h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    color: white;
  }
  
  .article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 30px auto;
  }
  
  /* 分页导航 */
  .pagination {
    display: flex;
    justify-content: center;
    margin: 50px 0;
  }
  
  .page-link {
    display: inline-block;
    padding: 12px 20px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    transition: var(--transition);
  }
  
  .page-link:hover, .page-link.active {
    background-color: var(--primary-color);
    color: white;
  }
  
  /* 友情链接 */
  .friend-links {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 50px;
  }
  
  .friend-links-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: white;
  }
  
  .friend-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .friend-link {
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 14px;
    transition: var(--transition);
  }
  
  .friend-link:hover {
    background-color: var(--primary-color);
    color: white;
  }
  
  /* 页脚 */
  footer {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 50px 0 20px;
    text-align: center;
  }
  
  .footer-content {
    margin-bottom: 30px;
  }
  
  .copyright {
    color: var(--text-light);
    font-size: 14px;
  }
  
  /* 响应式设计 */
  @media (max-width: 992px) {
    .article-cover {
      height: 400px;
    }
  }
  
  @media (max-width: 768px) {
    .header-container {
      flex-direction: column;
    }
    
    .nav-menu {
      margin-top: 20px;
    }
    
    .nav-item {
      margin-left: 15px;
      margin-right: 15px;
    }
    
    .article-title {
      font-size: 32px;
    }
    
    .article-cover {
      height: 300px;
    }
  }
  
  @media (max-width: 576px) {
    .grid {
      grid-template-columns: 1fr;
    }
    
    .article-meta {
      flex-direction: column;
      gap: 10px;
    }
    
    .article-cover {
      height: 250px;
    }
  }