/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #1a1a1a;
  color: #ffffff;
  line-height: 1.6;
}

/* 顶栏样式 */
.navbar {
  background: #3a3a3a;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid #4a4a4a;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 6px;
}

.site-name {
  font-size: 1.5rem;
  color: #007acc;
  font-weight: bold;
  margin-left: 5px;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
}

.nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: #00b3ee;
}

.nav a.active {
  color: #00b3ee;
  text-decoration: underline;
}

/* 搜索框样式 */
.search-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  margin-right: 20px; /* 与导航栏保持距离 */
}

#searchInput {
  padding: 6px 12px;
  border: 1px solid #4a4a4a;
  border-radius: 6px;
  background: #262626;
  color: #ffffff;
  font-size: 0.8rem;
  transition: border-color 0.3s ease;
}

#searchInput:focus {
  border-color: #007acc;
  outline: none;
}

.search-button {
  background-color: #007acc;
  color: #ffffff;
  border: none;
  outline: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.search-button:hover {
  background-color: #005a99;
  transform: translateY(-1px);
}

/* 主体内容 */
.main {
  padding: 70px 20px 20px;
}

.category {
  margin-bottom: 30px;
  scroll-margin-top: 70px;
}

h2 {
  font-size: 1.8rem;
  color: #00b3ee;
  margin-bottom: 15px;
  border-bottom: 1px solid #4a4a4a;
  padding-bottom: 5px;
}

/* 下载项布局 */
.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.download-item {
  background: #3a3a3a;
  padding: 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease;
  border: 1px solid transparent;
}

.download-item:hover {
  border: 1px solid #ffffff;
  transform: translateY(-1px);
}

.system-icon, .software-icon {
  width: 45px;
  height: 45px;
  border-radius: 4px;
}

.item-info {
  flex-grow: 1;
}

.item-info h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.item-info p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
  font-size: 0.8rem;
}

.download-btn {
  display: inline-block;
  background: #00a2ff;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.download-btn:hover {
  background: #005a99;
  transform: translateY(-1px);
}

/* Windows 专用布局 */
#windows .downloads {
  grid-template-columns: repeat(1, 1fr);
}

/* 页脚 */
.footer {
  text-align: center;
  padding: 10px 0;
  background: #3a3a3a;
  margin-top: 30px;
  border-top: 1px solid #4a4a4a;
  position: relative;
}

.footer p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .navbar {
    padding: 10px;
  }

  .logo {
    width: 35px;
    height: 35px;
  }

  .site-name {
    font-size: 1.3rem;
  }

  .nav ul {
    gap: 10px;
  }

  .search-container {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
  }

  #searchInput {
    width: 100%;
  }

  .main {
    padding: 60px 10px 10px;
  }

  h2 {
    font-size: 1.5rem;
  }

  .downloads {
    gap: 10px;
  }

  .item-info p {
    margin-bottom: 5px;
  }

  .download-btn {
    padding: 5px 10px;
  }
}

.gd {
  height: 15px;
  width: 100%;

}
.tb{
  height: 30px;
  width: 100%
}



.dhzs {
  color: #ffffff;      /* 文字颜色 */
  font-size: 20px;     /* 文字大小 */
  
  /* 以下是可选的常用文字属性（可根据需要添加） */
  font-family: Arial, sans-serif;  /* 字体 */
  font-weight: normal;  /* 粗细（normal=常规 / bold=加粗）*/
  line-height: 1.5;     /* 行高（1.5倍字体高度） */
  text-decoration: none; /* 装饰线（none=无/underline=下划线） */
}


/* styles.css 原始内容完全保留 */
* { margin:0; padding:0; box-sizing:border-box; }
body { background:#1a1a1a; color:#fff; line-height:1.6; }
.navbar { background:#3a3a3a; padding:15px 20px; position:fixed; top:0; width:100%; }
.downloads { display:grid; grid-template-columns:repeat(auto-fit, minmax(250px, 1fr)); gap:15px; }
#windows .downloads { grid-template-columns:repeat(1, 1fr); } /* Windows单列布局 */
.download-item { background:#3a3a3a; padding:10px; border-radius:6px; display:flex; align-items:center; }
.gd { height:15px; width:100%; }
.tb { height:30px; width:100%; }
/* 其他样式完全保持原始内容 */



/* 强制布局控制 */
#windows .downloads {
grid-template-columns: repeat(1, 1fr) !important; /* 单列 */
}

#linux .downloads,
#software .downloads {
grid-template-columns: repeat(2, 1fr) !important; /* 双列 */
}

/* 手机端适配 */
@media (max-width: 768px) {
#linux .downloads,
#software .downloads {
    grid-template-columns: repeat(1, 1fr) !important; /* 小屏单列 */
}
}

.navbar-logo {
height: 35px;  /* 根据实际logo比例调整 */
margin-right: 15px;  /* 调整logo与文字的间距 */
/* 可选：添加圆角效果 */
border-radius: 4px;
}
