﻿/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f4f4f4;
  }
  
  /* 顶部导航栏样式 */
  header {
    background-color: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
  }
  
  .user-actions {
    display: flex;
    align-items: center;
  }
  
  .user-actions a {
    margin-left: 20px;
    color: #333;
    text-decoration: none;
  }
  
  .user-actions a:first-child {
    border-right: 1px solid #ccc;
    padding-right: 20px;
  }
  
  /* 搜索栏容器样式 */
  .search-container {
    /* 添加背景图片，替换 'your - background - image.jpg' 为实际图片路径 */
    background-image: url('https://www.sxjlw.cn/images/bg_search.jpg'); 
    background-size: cover; /* 让背景图片覆盖整个容器 */
    background-position: center; /* 背景图片居中显示 */
    padding: 30px 20px; /* 适当增加内边距 */
    display: flex;
    justify-content: center;
  }
  
  .search-bar {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 10px 15px;
    width: 90%;
    max-width: 600px;
    font-size: 18px;
    background-color: rgba(255, 255, 255, 0.8); /* 给搜索栏添加半透明背景，增强可读性 */
  }
  
  .search-bar input {
    border: none;
    outline: none;
    background-color: transparent;
    margin-right: 10px;
    flex: 1;
    font-size: inherit;
  }
  
  .search-bar button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: inherit;
  }
  
  /* 导航链接容器样式 */
  .nav-links-container {
    background-color: rgb(210, 203, 203);
    text-align: left;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links {
    display: flex;
    justify-content: flex-start; /* 修改为 flex-start 让链接靠左 */
    flex-wrap: wrap;
  }
  
  .nav-links a {
    margin: 5px 10px;
    color: #333;
    text-decoration: none;
    display: inline-block;
    margin-right: 10px; /* 可根据需要调整链接之间的间距 */
  }
  
  .nav-links a:hover {
    color: #007bff;
  }
  
  /* 主内容区域样式 */
  main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
  }
  
  /* 左侧信息流样式 */
  .feed {
    width: 100%;
  }
  
  .article {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
  }
  
  .article img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .article-content {
    padding: 10px;
  }
  
  .article-content h2 {
    margin-bottom: 10px;
  }
  
  .article-content p {
    color: #666;
  }
  
  /* 右侧侧边栏样式 */
  .sidebar {
    width: 100%;
    margin-left: 0;
    margin-top: 20px;
  }
  
  .sidebar-section {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    padding: 10px;
  }
  
  .sidebar-section h3 {
    margin-bottom: 10px;
  }
  
  .sidebar-section ul {
    list-style: none;
  }
  
  .sidebar-section ul li {
    margin-bottom: 5px;
  }
  
  .sidebar-section ul li a {
    color: #333;
    text-decoration: none;
  }
  
  .sidebar-section ul li a:hover {
    color: #007bff;
  }
  
  /* 底部导航栏样式 */
  footer {
    background-color: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    text-align: center;
  }
  
  footer a {
    color: #333;
    text-decoration: none;
    margin: 0 10px;
  }
  
  footer a:hover {
    color: #007bff;
  }
  
  footer p {
    margin-top: 10px;
    color: #666;
  }
  
  footer p a {
    color: #666;
    text-decoration: underline;
  }
  
  /* 媒体查询，针对小屏幕设备（如手机） */
  @media (max-width: 768px) {
    .search-bar {
      width: 95%;
      font-size: 20px;
    }
  
    .nav-links a {
      font-size: 16px;
    }
  }