body{
    margin: 0;
}
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* 确保整个视口高度 */
  }
  
  header, footer {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    text-align: center;
  }
  
  .main-container {
    display: flex;
    justify-content: space-between;
    /*flex: 1;  占据剩余空间 */
    flex-wrap: wrap;
    background-color: #f5f5f5;
    padding: 20px;
  }
  .box{
    flex: 0 1 200px;
  }
  .sidebar-left {
    width: 200px;
    height: 200px; /* 只是为了示例展示效果 */
    background-color: #ccc;
    margin-right: 20px; /* 为了和中间内容区域有间距 */
  }
  .sidebar-right {
    width: 200px;
    height: 200px; /* 只是为了示例展示效果 */
    background-color: #ccc;
    margin-left: 20px;
  }
  .content {
    /*flex-grow: 1;  填充剩余的空间 */
    min-width: 0; /* 防止内容区域在某些情况下变为负宽 */
    background-color: #ddd;
  }

  /* header部分 */
  .site-header {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  .header-inner {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content:space-around;
  }
  
  .logo {
    color: white;
    text-decoration: none;
  }

  .logo img {
    height: 50px;
    margin-right: 10px;
  }
  
  .site-name {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    text-decoration: none;
    vertical-align: top;
    line-height: 50px;
  }
  
  .main-nav ul {
    list-style-type: none;
    display: flex;
  }
  
  .main-nav li {
    margin-left: 20px;
  }
  
  .main-nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .main-nav a:hover {
    color: #ccc;
  }
  /* header部分 end */

  /*content*/
  .main-container {
    display: flex;
    justify-content: space-between;
    background-color: #f5f5f5;
    padding: 20px;
  }
  
  .sidebar-left, .sidebar-right {
    width: 200px;
    background-color: #e9e9e9;
    padding: 20px;
    border-radius: 5px;
    min-height: 400px;
  }
  
  .sidebar-left h3, .sidebar-right h3 {
    margin-top: 0;
    color: #333;
  }
  
  .sidebar-left ul, .sidebar-right ul {
    list-style-type: none;
    padding: 0;
  }
  
  .sidebar-left ul li, .sidebar-right ul li {
    margin-bottom: 10px;
  }
  
  .sidebar-left ul li a, .sidebar-right ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .sidebar-left ul li a:hover, .sidebar-right ul li a:hover {
    color: #007bff;
  }
  
  .content {
    flex-grow: 1;
    min-width: 0;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .content article {
    margin-bottom: 20px;
  }
  
  .content article h2 {
    margin-top: 0;
    color: #333;
  }
  
  .content article p {
    color: #666;
  }
  /*content end*/

  /*footer*/
  .site-footer {
    background-color: #333;
    color: white;
    padding: 20px;
  }
  
  .footer-inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .footer-inner section {
    flex-basis: 25%; /* 每个section占据25%的宽度 */
    margin-bottom: 20px;
  }
  
  .footer-inner section h4 {
    font-size: 1.2em;
    margin-bottom: 10px;
  }
  
  .footer-inner section p {
    color: #aaa;
    margin-bottom: 5px;
  }
  
  .footer-inner section ul {
    list-style-type: none;
    padding: 0;
  }
  
  .footer-inner section ul li {
    margin-bottom: 5px;
  }
  
  .footer-inner section ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .footer-inner section ul li a:hover {
    color: white;
  }
  
  .footer-inner form {
    display: flex;
    flex-direction: column;
  }
  
  .footer-inner input[type="email"] {
    margin-bottom: 10px;
    padding: 5px;
    border: none;
    border-radius: 5px;
    background-color: #555;
    color: white;
  }
  
  .footer-inner button[type="submit"] {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .footer-inner button[type="submit"]:hover {
    background-color: #0056b3;
  }
  
  .copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
  }
  /*footer end*/

  .swiper {
    width: 600px;
    height: 300px;
  }