/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", "SimSun", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}

a:hover {
  color: #00588a;
}

ul,
li {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 1300px;
  margin: 0 auto;
}

/* 顶部导航栏 */
.header {
  background-color: #00588a;
  padding: 15px 0;
  color: #fff;
  height: 108px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap:30px;
}

.full-logo {
  max-height: 110px;
  width: auto;
  vertical-align: middle;
}

.main-nav {
  flex: 0 0 auto;
  font-size: 18px;
  font-family: cursive, "Microsoft YaHei", sans-serif;
}

.main-nav ul {
  display: flex;
}

.main-nav li {
  position: relative;
}

.main-nav li a {
  display: block;
  padding: 10px 15px;
  color: #fff;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.main-nav li a:hover,
.main-nav li a.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* 导航下拉菜单 */
.main-nav .dropdown {
  position: relative;
}
/* 鼠标悬停时显示下拉菜单 */
body > header > div > div > nav > ul > li:nth-child(1):hover .dropdown-menu {
  visibility: visible !important;
  opacity: 1 !important;
}
body > header > div > div > nav > ul > li:nth-child(1) > ul > a:nth-child(1){
 display:none !important;
}
.main-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #00588a;
  min-width: 120px;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
  display: block;
}

.main-nav .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .dropdown-menu li {
  width: 100%;
}

.main-nav .dropdown-menu a {
  padding: 10px 15px;
  font-size: 14px;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-nav .dropdown-menu li:last-child a {
  border-bottom: none;
  border-radius: 0 0 4px 4px;
}

.main-nav .dropdown-menu a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* 面包屑导航 */
.breadcrumb {
  background-color: #fff;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  color: #666;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.breadcrumb a {
  color: #00588a;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* 内容页面通用样式 */
.content-wrapper {
  padding: 10px 0 40px;
  background-color: #f5f5f5;
  min-height: calc(100vh - 268px);
}

/* 下载文件页面样式 */
.downloads-container {
  background-color: #fff;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.downloads-header {
  margin-bottom: 25px;
}

.downloads-header h1 {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 2px solid #d0d0d0;
  color: #333;
  font-size: 24px;
  font-weight: 600;
  position: relative;
}

.downloads-header h1:after {
  content: "";
  position: absolute;
  width: 80px;
  height: 2px;
  background-color: #00588a;
  bottom: -2px;
  left: 0;
}

/* 分类导航 */
.download-categories {
  margin-bottom: 25px;
}

.category-list {
  display: flex;
  border-bottom: 1px solid #eee;
}

.category-list li {
  margin-right: 5px;
}

.category-list li a {
  display: block;
  padding: 10px 20px;
  font-size: 16px;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  background-color: #f9f9f9;
  color: #666;
  transition: all 0.2s;
}

.category-list li a:hover {
  color: #00588a;
}

.category-list li.active a {
  background-color: #fff;
  color: #00588a;
  border-color: #eee;
  border-bottom: 1px solid #fff;
  margin-bottom: -1px;
  font-weight: 500;
}

/* 下载列表 */
.download-list-container {
  margin-bottom: 30px;
}

.download-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.download-item {
  display: flex;
  align-items: center;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.download-item:hover {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.file-icon {
  width: 40px;
  height: 50px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  margin-right: 15px;
  position: relative;
}

.file-icon:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #e0e0e0;
  border-radius: 3px;
  z-index: -1;
}

.file-icon.pdf:after {
  content: "PDF";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 10px;
  color: #fff;
  background-color: #e74c3c;
  padding: 2px 0;
  border-radius: 0 0 3px 3px;
}

.file-icon.doc:after {
  content: "DOC";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 10px;
  color: #fff;
  background-color: #3498db;
  padding: 2px 0;
  border-radius: 0 0 3px 3px;
}

.file-icon.ppt:after {
  content: "PPT";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 10px;
  color: #fff;
  background-color: #e67e22;
  padding: 2px 0;
  border-radius: 0 0 3px 3px;
}

.file-icon.zip:after {
  content: "ZIP";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 10px;
  color: #fff;
  background-color: #9b59b6;
  padding: 2px 0;
  border-radius: 0 0 3px 3px;
}

.file-icon.exe:after {
  content: "EXE";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 10px;
  color: #fff;
  background-color: #2ecc71;
  padding: 2px 0;
  border-radius: 0 0 3px 3px;
}

.file-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.file-name {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 5px;
}

.file-meta {
  display: flex;
  color: #888;
  font-size: 13px;
}

.file-size {
  margin-right: 15px;
}

.download-btn {
  padding: 8px 16px;
  background-color: #00588a;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.3s;
}

.download-btn:hover {
  background-color: #00436b;
  color: #fff;
}

/* 分页控件优化 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  gap: 5px;
}

.pagination span,
.pagination a {
  padding: 8px 12px;
  border-radius: 4px;
}

.pagination .page-btn,
.pagination .page-num a {
  display: inline-block;
  background-color: #f0f0f0;
  color: #555;
  border: 1px solid #ddd;
  transition: all 0.3s;
  text-align: center;
}

.pagination .page-num.current {
  background-color: #00588a;
  color: #fff;
  border: 1px solid #00588a;
}

.pagination .page-btn:hover,
.pagination .page-num a:hover {
  background-color: #e0e0e0;
  color: #333;
}

.pagination .page-dots {
  color: #777;
}

/* 页脚 */
.footer {
  background-color: #00588a;
  color: #fff;
  padding: 15px 0 20px;
}

.footer-info {
  display: flex;
  justify-content: space-around;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo img {
  height: 85px;
  margin-bottom: 10px;
}

.footer-contact p {
  margin-bottom: 8px;
  font-size: 14px;
}

.footer-copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 12px;
}

/* 响应式适配 */
@media (max-width: 1300px) {
  .container {
    width: 95%;
  }
}

@media (max-width: 992px) {
  .downloads-container {
    padding: 20px;
  }

  .category-list {
    flex-wrap: wrap;
  }

  .category-list li {
    margin-bottom: 5px;
  }

  .category-list li a {
    padding: 8px 15px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .main-nav ul {
    flex-wrap: wrap;
  }

  .main-nav li {
    flex: 0 0 50%;
  }

  .footer-info {
    flex-direction: column;
    align-items: center;
  }

  .footer-contact {
    margin-top: 20px;
    text-align: center;
  }

  .downloads-container {
    padding: 15px;
  }

  .download-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .file-icon {
    margin-bottom: 10px;
  }

  .file-info {
    width: 100%;
    margin-bottom: 10px;
  }

  .download-btn {
    align-self: flex-end;
  }
}

@media (max-width: 576px) {
  .main-nav li {
    flex: 0 0 100%;
  }

  .downloads-header h1 {
    font-size: 20px;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .pagination span {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }
}