/* ==========
科技蓝风格全站统一样式
========== */
body {
  font-family: "Microsoft YaHei", sans-serif;
  background-color: #f5f8fc;
  color: #333;
  margin: 0;
  line-height: 1.7;
}
a { color: #007bff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* 容器与布局 */
.container { width: 1200px; margin: 0 auto; padding: 0 15px; }
@media (max-width: 768px) {
  .container { width: 100%; padding: 0 10px; }
}

/* Header */
.site-header {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
}
.logo img { height: 48px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.nav li { margin: 0 12px; }
.nav a { color: #333; font-weight: 500; padding: 6px 10px; border-radius: 4px; }
.nav a.active, .nav a:hover { background: #007bff; color: #fff; }
.user-links a { margin-left: 10px; color: #007bff; }

/* 主内容区 */
.main-content {
  display: flex; flex-wrap: wrap;
  margin-top: 20px;
}
.software-info {
  flex: 1;
  min-width: 70%;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.sidebar {
  flex: 0 0 25%;
  margin-left: 20px;
}
@media (max-width: 900px) {
  .main-content { flex-direction: column; }
  .sidebar { margin-left: 0; margin-top: 20px; }
}

/* 软件头部 */
.soft-header { display: flex; align-items: center; margin-bottom: 20px; }
.soft-icon { width: 80px; height: 80px; border-radius: 12px; margin-right: 20px; }
.soft-title h1 { font-size: 26px; margin: 0; color: #007bff; }
.soft-title .version { color: #555; }

/* 信息列表 */
.soft-meta { list-style: none; padding: 0; margin: 0 0 20px 0; display: flex; flex-wrap: wrap; }
.soft-meta li { width: 50%; margin-bottom: 8px; color: #555; }
.soft-meta span, .soft-meta a { color: #007bff; }

/* 下载区 */
.download-section { margin-top: 30px; }
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
}
.btn-blue { background: #007bff; color: #fff; }
.btn-blue:hover { background: #0056c1; }
.btn-gray { background: #e1e5ec; color: #333; }
.btn-light { background: #f8f9fa; color: #333; }
.fixed_bg {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}
.popup {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  width: 320px;
  text-align: center;
}
.popup-btns { margin-top: 10px; }

/* 评论 */
.soft-comments textarea {
  width: 100%;
  height: 100px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 10px;
  resize: vertical;
}
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list li { padding: 10px 0; border-bottom: 1px solid #eee; }

/* 相关推荐 */
.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 15px;
}
.related-item {
  display: block;
  background: #fafbfd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: 0.3s;
}
.related-item:hover { transform: translateY(-3px); box-shadow: 0 3px 10px rgba(0,0,0,0.1); }
.related-item img { width: 100%; height: 120px; object-fit: cover; }
.related-info { padding: 8px 10px; }
.related-info .title { font-weight: bold; color: #333; }
.related-info .meta { font-size: 12px; color: #777; }

/* 侧边栏 */
.side-box {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.side-box h3 { margin-top: 0; color: #007bff; font-size: 18px; }
.side-box ul, .side-box ol { margin: 0; padding-left: 18px; }
.side-box li { margin: 6px 0; }
.side-box a { color: #333; }
.side-box a:hover { color: #007bff; }

/* 页脚 */
.footer {
  background: #fff;
  text-align: center;
  padding: 25px 10px;
  margin-top: 40px;
  border-top: 1px solid #e5e9f2;
  color: #666;
  font-size: 14px;
}
.footer a { color: #007bff; }

/* 标题样式 */
h2 { font-size: 20px; color: #007bff; margin-top: 30px; border-left: 4px solid #007bff; padding-left: 8px; }
.notice { background: #f8faff; padding: 10px 15px; border-left: 3px solid #007bff; border-radius: 4px; margin-top: 15px; color: #444; }
