/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

a {
  text-decoration: none;
  color: #007bff;
  transition: all 0.3s ease;
}

a:hover {
  color: #0056b3;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 头部样式 */
.main-header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo h1 {
  font-size: 24px;
  font-weight: 700;
  color: #007bff;
}

.search-box {
  position: relative;
  width: 300px;
}

.search-box input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 20px;
}

.nav-menu a {
  font-weight: 500;
  color: #333;
}

.nav-menu a:hover {
	color: #000000;
}

/* 主要内容区域 */
.main-content {
  padding: 30px 0;
}

.content-layout {
  display: flex;
  gap: 30px;
}

.main-left {
  flex: 1;
}

.main-right {
  width: 280px;
}

/* 软件详情样式 */
.software-detail {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
}

.software-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.software-title h1 {
  font-size: 28px;
  color: #333;
  margin-bottom: 10px;
}

.software-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.tag {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.tag.official {
  background-color: #e6f7ff;
  color: #1890ff;
}

.tag.version {
  background-color: #f6ffed;
  color: #52c41a;
}

.tag.date {
  background-color: #fff7e6;
  color: #fa8c16;
}

.software-meta {
  display: flex;
  gap: 20px;
}

.meta-item {
  display: flex;
  align-items: center;
  color: #666;
}

.meta-item i {
  margin-right: 5px;
  font-size: 16px;
}

/* 软件截图 */
.software-screenshots {
  margin-bottom: 30px;
}

.software-screenshots h2 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #333;
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.screenshot-item {
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
}

/* 软件介绍 */
.software-description {
  margin-bottom: 30px;
}

.software-description h2 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #333;
}

.description-content p {
  margin-bottom: 15px;
  color: #555;
}

.feature-list {
  margin: 15px 0;
  padding-left: 20px;
}

.feature-list li {
  margin-bottom: 10px;
  color: #555;
}

.feature-list strong {
  color: #333;
}

/* 下载区域 */
.download-section {
  margin-bottom: 30px;
}

.download-section h2 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #333;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.download-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.download-btn.primary {
  background-color: #007bff;
  color: #fff;
}

.download-btn.primary:hover {
  background-color: #0069d9;
}

.download-btn.secondary {
  background-color: #f8f9fa;
  color: #333;
  border: 1px solid #ddd;
}

.download-btn.secondary:hover {
  background-color: #e9ecef;
}

.btn-text {
  margin-right: 5px;
}

.btn-size {
  font-size: 12px;
  opacity: 0.8;
}

.download-tip {
  display: flex;
  align-items: center;
  color: #666;
  font-size: 14px;
}

.download-tip i {
  margin-right: 5px;
  color: #52c41a;
}

.download-note {
  margin-top: 15px;
  padding: 10px 15px;
  background-color: #fffbe6;
  border-radius: 4px;
  display: flex;
  align-items: center;
}

.download-note i {
  margin-right: 5px;
  color: #faad14;
}

.download-note p {
  color: #666;
  font-size: 14px;
}

/* 安装教程 */
.installation-guide {
  margin-bottom: 30px;
}

.installation-guide h2 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #333;
}

.install-steps {
  list-style: none;
}

.install-steps li {
  display: flex;
  margin-bottom: 10px;
  color: #555;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: #007bff;
  color: #fff;
  border-radius: 50%;
  margin-right: 10px;
  font-size: 12px;
}

.step-text {
  flex: 1;
}

/* 相关推荐 */
.related-software {
  margin-bottom: 30px;
}

.related-software h2 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #333;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.related-item {
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.related-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-link {
  display: block;
  padding: 15px;
}

.related-info {
  margin-top: 10px;
}

.related-info h3 {
  font-size: 16px;
  margin-bottom: 5px;
  color: #333;
}

.related-info p {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.related-version {
  font-size: 12px;
  color: #999;
}

/* 侧边栏 */
.widget {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-bottom: 20px;
}

.widget-title {
  font-size: 18px;
  margin-bottom: 15px;
  color: #333;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.software-list,
.update-list,
.category-list {
  list-style: none;
}

.software-list li,
.update-list li,
.category-list li {
  margin-bottom: 8px;
}

.software-list a,
.update-list a,
.category-list a {
  display: block;
  padding: 8px 0;
  color: #555;
}

.software-list a:hover,
.update-list a:hover,
.category-list a:hover {
  color: #007bff;
}

/* 页脚 */
.main-footer {
  background-color: #343a40;
  color: #fff;
  padding: 40px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-info p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 5px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .content-layout {
    flex-direction: column;
  }
  
  .main-right {
    width: 100%;
  }
  
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    gap: 15px;
  }
  
  .search-box {
    width: 100%;
  }
  
  .nav-menu {
    margin-top: 15px;
  }
  
  .screenshot-gallery,
  .related-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* 图标字体 */
@font-face {
  font-family: 'iconfont';
  src: url('/static/fonts/iconfont.eot');
  src: url('/static/fonts/iconfont.eot?#iefix') format('embedded-opentype'),
       url('/static/fonts/iconfont.woff2') format('woff2'),
       url('/static/fonts/iconfont.woff') format('woff'),
       url('/static/fonts/iconfont.ttf') format('truetype'),
       url('/static/fonts/iconfont.svg#iconfont') format('svg');
}

.icon {
  font-family: 'iconfont' !important;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-size:before {
  content: "\\e62a";
}

.icon-system:before {
  content: "\\e62b";
}

.icon-download:before {
  content: "\\e62c";
}

.icon-safe:before {
  content: "\\e62d";
}

.icon-warning:before {
  content: "\\e62e";
}

.icon-download-large:before {
  content: "\\e62f";
}

.icon-cloud:before {
  content: "\\e630";
}

.icon-search:before {
  content: "\\e631";
}
