 /* Reset and base */
 * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #e6eaff 0%, #f0f4ff 100%);
  color: #1a1a1a;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #eff7fd;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  height: 50px; 
  object-fit: contain;
}
nav ul {
  display: flex;
  gap: 50px;
  font-weight: 500;
  font-size: 16px;
  color: #222;
}
nav ul li {
  cursor: pointer;
  padding-bottom: 4px;
  position: relative;
}
nav ul li.active {
  font-weight: 700;
  color: #222;
}
nav ul li.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #4a7fff, #7a4aff);
  border-radius: 2px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header_bak {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  overflow: hidden;
}

.header_bak video {
  /* width: 100%; */
  /* height: 100%; */
  display: block;
  margin: 0 auto;
  object-fit: cover;
  -o-object-fit: cover;
}

.header_bak video:focus {
  outline: none;
} 

.btn-create {
  background: linear-gradient(90deg, #4a7fff, #7a4aff);
  color: white;
  padding: 10px 30px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.3s ease;
  font-size: 14px;
  white-space: nowrap;
  margin-top: -15px;
}
.btn-create:hover {
  background: linear-gradient(90deg, #3b6fff, #6a3aff);
}

  .newslist {
    display: flex;
    width: 100%;
    max-width: 1160px;
    margin: 20px auto;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    overflow: hidden;
    flex-wrap: wrap;
  }
  .sidebar {
    width: 100%;
    max-width: 280px;
    background: #f9f9ff;
    border-right: 1px solid #eaeaea;
    padding: 20px 15px;
    box-sizing: border-box;
  }
  .sidebar h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    border-left: 4px solid #5c5cff;
    padding-left: 8px;
    color: #333;
  }
  .sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .sidebar ul li {
    margin-bottom: 12px;
  }
  .sidebar ul li a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    display: block;
    padding: 10px 10px;
    border-radius: 4px;
  }
  .sidebar ul li a.active,
  .sidebar ul li a:hover {
    color: #5c5cff;
    font-weight: 600;
    background: #f0f0ff;
  }
.main-content {
  flex: 1;
  padding: 20px 30px;
  background-color: #fff;
}
.breadcrumb {
  font-size: 16px;
  color: #999;
  margin-bottom: 20px;
}
.breadcrumb span {
  margin-right: 5px;
}
.breadcrumb span:last-child {
  color: #333;
  font-weight: 600;
}
.article {
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.article:last-child {
  border-bottom: none;
  margin-bottom: 40px;
  padding-bottom: 0;
}
.article h3 {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin: 0 0 8px 0;
}
.article p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}
.pagination {
  text-align: center;
  font-size: 13px;
  color: #999;
  margin-bottom: 10px;
}
.pagination .info {
  margin-bottom: 10px;
}
.pagination button {
  background: #fff;
  border: 1px solid #ccc;
  color: #666;
  font-size: 13px;
  padding: 6px 12px;
  margin: 0 4px;
  border-radius: 4px;
  cursor: pointer;
}
.pagination button:disabled {
  color: #ccc;
  border-color: #eee;
  cursor: not-allowed;
} 

.newstit{text-align: center; font-size: 22px; color: #333; line-height: 30px;}
.autor{ text-align: center; font-size: 14px; color: #888; margin: 10px;}
.content {
  padding: 20px 10px;
  line-height: 30px;
  color: #2e2e2e;
  margin-top: 15px;
}

.copyright{text-align: center; font-size: 13px; color: #9ca3af; padding: 30px 0px; bottom: 30px;}

/* 移动端菜单按钮 */
.header-toggle{display: none;}

@media (max-width: 768px) {
  .newslist {
    flex-direction: column;
    width: 96%; 
    border: none;
    border-radius: 0;
  }
  .sidebar {
    max-width: 100%;
    border-right: none;
    border-bottom: 1px solid #eaeaea;
    padding: 15px 10px;
  }
  .main-content {
    padding: 15px 10px;
  }
  header {
    flex-wrap: wrap;
    padding: 10px 20px;
  }
  nav ul {
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    margin-left: 40px;
  }
  nav ul li {
    padding: 8px 0;
  }
  .header-right {
    width: 100%;
    margin-top: 10px;
    display: flex;
    justify-content: center;
  }
  .btn-create {
    width: 100%;
    max-width: 100px;
    padding: 8px 0;
    font-size: 16px;
  }
  .header-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    margin-left: auto;
    color: #222;
  }
  nav,
  .header-right {
    display: none;
    width: 100%;
    margin-top: 10px;
  }
  nav.open {
    display: flex;  
    margin-left: -20px;
    background-color: #e6eaff;
  }
  .header-right.open{
    display: block;
    margin-left: 180px; 
    cursor: pointer;
    margin-top: -690px;
  }
}