.container {
    max-width: 1300px;
    width: 100%;
    box-sizing: border-box;
}
.navbar-guide {
    display: flex;
    justify-content: center;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
}
.navbar-guide a {
    color: #000;
    background-color: #e5e6e8; /* 默认背景色 */
    padding: 12px 18px;
    text-decoration: none;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px; /* 可选，让按钮更柔和 */
    margin: 0 6px; /* 标签之间留间隔 */
    display: inline-block;
}

/* 底部蓝线动画 */
.navbar-guide a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 3px;
    background-color: #e5e6e8;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

/* 悬停或选中状态：变色 + 蓝线出现 */
.navbar-guide a:hover,
.navbar-guide a.active {
   color: #f2eeee;
   background-color: #062540;
}

.navbar-guide a:hover::after,
.navbar-guide a.active::after {
    width: 60%;
}
/*
.navbar-guide a:not(:first-child)::before {
    content: '|';
    color: #006064;
    margin-right: 8px;
    vertical-align: right;
}
*/
.content {
    padding: 20px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}
.section {
    display: none;
    margin-bottom: 40px;
}
.article-list {
    list-style-type: none;
    padding: 0;
}
.article-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.article-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-right: 20px;
    border-radius: 5px;
}
.article-item h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}
.article-item p {
    margin: 0;
    color: #666;
}
.article-item a {
    text-decoration: none;
    color: #333;
    font-weight: 550;
}
.article-item a:hover {
    text-decoration: underline;
}
.sub-section {
    margin-top: 20px;
}
.sub-section h3 {
    margin-bottom: 10px;
}
.sub-navbar {
    display: flex;
    justify-content: start;
    gap: 10px;
    margin-bottom: 20px;
}
.sub-navbar a {
    color: #131313;
    padding: 10px 20px;
    text-decoration: none;
    background-color: #c4d8ee;
    border-radius: 20px;
    transition: background-color 0.3s;
}
.sub-navbar a:hover {
    background-color: #e6e1df;
}



#hot-articles h2 {
  font-size: 24px;
  color: #FF6600;
  font-weight: bold;
  margin-bottom: 20px;
}

.article-item img {
  width: 100px;
  height: auto;
  object-fit: cover;
  margin-right: 20px;
  border-radius: 5px;
}

.article-item h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 0px;
  flex-wrap: nowrap;
}

.search-box {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 15px;
  font-size: 16px;
  height: 40px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.more-entry {
  flex: 0 0 auto;
  white-space: nowrap;
}

.more-entry a {
  display: inline-block;
  color: #305919;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  padding: 10px 12px;
  border: 1px solid #d9d5d5;
  border-radius: 4px;
  line-height: 1;
}

.more-entry a:hover {
  background-color: #0C1444;
  color: white;
}

/* 默认桌面端：显示完整文字，隐藏短文字 */
.more-entry a .full-label {
  display: inline;
}
.more-entry a .short-label {
  display: none;
}

.search-icon-wrapper {
  position: relative;
  flex-grow: 1;
  max-width: 100%; /* 可根据需要调整 */
}
.search-icon-box {
  width: 100%;
  padding: 6px 36px 6px 10px; /* 留出右边按钮空间 */
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.search-icon-button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  font-size: 16px;
  cursor: pointer;
  color: #007bff;
}
.search-icon-button:hover {
  color: #0056b3;
}

/* ✅ 移动端优化 */
@media (max-width: 768px) {
  .content-header {
    padding: 10px 12px;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .search-box {
    flex: 1 1 auto;
    height: 40px;
    font-size: 15px;
  }

  .more-entry a {
    font-size: 14px;
    padding: 8px 12px;
  }

  .more-entry a .full-label {
    display: none;
  }
  .more-entry a .short-label {
    display: inline;
  }

  @media (max-width: 420px) {
    .more-entry a span.full-label {
      display: none;
    }
    .more-entry a span.short-label {
      display: inline;
    }
  }
}


/* Mobile Responsive Styles */
/* 修改移动端样式 */
@media (max-width: 768px) {
  /* 主导航样式修改 */
  .navbar-guide {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    justify-content: flex-start;
  }

  .navbar-guide a {
    flex: 1 1 calc(50% - 4px);
    padding: 12px 10px;
    background-color: #ececec;
    color: #040404 !important;
    border-radius: 8px;
    text-align: center;
    margin: 0;
    font-size: 14px;
  }

  .navbar-guide a::before,
  .navbar-guide a::after {
    display: none !important;
  }

  .navbar-guide a:hover,
  .navbar-guide a.active {
    background-color: #2e4680;
    color: white !important;
  }

  /* 次级导航样式修改 */
   .sub-navbar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 10px;
    justify-content: flex-start;
    overflow: visible; /* 取消横向滚动 */
  }

  .sub-navbar a {
    flex: 1 1 calc(30% - 8px);
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 8px;
    white-space: normal; /* 允许换行 */
    text-align: center;
    background-color: #ced9f2;
    color: #030115;
    transition: background-color 0.3s;
  }

  .sub-navbar a:hover {
    background-color: #004d40;
  }

  /* 内容区域调整 */
  .article-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0px;
    padding: 8px 0;
  }

  .article-item img {
    width: auto;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
  }

  .article-item > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .article-item h3 {
    font-size: 14px;
    margin: 0;
    line-height: 1.3;
  }

  .article-item p {
    font-size: 12px;
    margin: 4px 0 0;
    color: #666;
    line-height: 1.2;
  }

  /* 子版块调整 */
  .subsection {
    padding: 10px;
  }
  
  /* 通用调整 */
  .content {
    padding: 10px;
  }
  
  .section {
    margin-bottom: 20px;
  }
}


.left-articles {
    position: fixed;
    left: 0px;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    background: #f9f9f9;
    border-radius: 0px;
    padding: 15px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.left-articles__recommendations h3 {
    font-size: 18px;
    font-weight: 600;
    color: #053442;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
    margin-top: 0px !important;
    line-height: inherit;
    padding-bottom: 8px;
}



.left-articles__recommendations ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left; 
}

.left-articles__recommendations li {
    margin-bottom: 8px;
}

.left-articles__recommendations a {
    color: #084e77;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    font-weight: 600;
}

.left-articles__recommendations a:hover {
    color: #3182ce;
}

.left-articles__recommendations li:not(:last-child) {
  border-bottom: 1px solid #cdd6e1;
  padding-bottom: 8px;
  margin-bottom: 8px;
  margin-top: 10px !important;
}



/* 添加响应式处理 */
@media (max-width: 768px) {
    .left-articles {
        display: none; /* 移动端隐藏 */
    }
}
