* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Microsoft YaHei", sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.7;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 导航 */
.header {
  background: #2a3b55;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 999;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo img {
  height: 44px;
}
.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s;
}
.nav-menu a:hover {
  color: #ff4757;
}
.kf-box {
  position: relative;
  cursor: pointer;
}
.kf-box:hover .kf-hover {
  display: block;
}
.kf-hover {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  color: #333;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  width: 160px;
  text-align: center;
}
.kf-hover img {
  width: 100%;
  margin-top: 6px;
  border-radius: 4px;
}

/* 标题 */
.page-title {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  color: #2a3b55;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 详情布局 */
.view-wrap {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}
.view-left {
  width: 75%;
}
.view-right {
  width: 25%;
}

/* 基础信息 + 左侧图片 */
.view-info {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  gap: 25px;
  align-items: flex-start;
}
.info-left-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #eee;
}
.info-right-content {
  flex: 1;
}
.info-item {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
}
.info-item:last-child {
  border-bottom: none;
}
.info-label {
  width: 120px;
  color: #666;
}
.info-text {
  color: #333;
}
.download-btn {
  display: inline-block;
  background: #ff4757;
  color: #fff;
  padding: 12px 30px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 15px;
  transition: background 0.3s;
}
.download-btn:hover {
  background: #e53333;
}

/* 右侧卡片 */
.side-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.side-card h3 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #2a3b55;
  border-left: 4px solid #ff4757;
  padding-left: 10px;
}
.side-list a {
  display: block;
  padding: 8px 0;
  color: #333;
  text-decoration: none;
  border-bottom: 1px dashed #eee;
}
.side-list a:hover {
  color: #ff4757;
}

/* 介绍内容 */
.view-content {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.view-content h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #2a3b55;
  border-left: 4px solid #ff4757;
  padding-left: 10px;
}
.content-text {
  color: #444;
  font-size: 15px;
}

/* 版本介绍 TAG 标签样式（美观大方） */
.version-tags {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.version-tags a {
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 14px;
  color: #fff;
  background: #2a3b55;
  text-decoration: none;
  transition: all 0.3s ease;
}
.version-tags a:nth-child(1) { background: #e74c3c; }
.version-tags a:nth-child(2) { background: #f39c12; }
.version-tags a:nth-child(3) { background: #16a34a; }
.version-tags a:nth-child(4) { background: #8e44ad; }
.version-tags a:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* 相关攻略文章 */
.related-box {
  margin-top: 30px;
  margin-bottom: 30px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.related-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: 0.3s;
}
.related-item:hover {
  transform: translateY(-4px);
}
.related-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.related-info {
  padding: 12px;
}

/* 相关文章标题 H3 样式 */
.related-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #2a3b55;
  border-left: 4px solid #ff4757;
  padding-left: 10px;
}

/* 相关文章信息 同一行 */
.related-info {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
}

/* 标签样式 可点击 */
.related-tag {
  display: inline-block;
  background: #ff4757;
  color: #fff !important;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  text-decoration: none;
  flex-shrink: 0;
}

/* 标题样式 同一行 */
.relatedd-title {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
}
.relatedd-title:hover {
  color: #ff4757;
}

/* 底部 */
.footer {
  background: #fff;
  padding: 25px;
  text-align: center;
  font-size: 13px;
  color: #666;
  margin-top: 40px;
  border-top: 1px solid #eee;
}

/* 底部版权链接颜色统一 */
.footer p,
.footer p a {
  color: #666;       /* 统一颜色 */
  text-decoration: none; /* 去掉链接下划线 */
}

/* 移动端 */
@media (max-width: 768px) {
  .view-wrap {
    flex-direction: column;
  }
  .view-left, .view-right {
    width: 100%;
  }
  .view-info {
    flex-direction: column;
  }
  .info-left-img {
    width: 100%;
    height: auto;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-title {
    font-size: 18px;
  }
}

/* 版本名称：默认显示30个汉字，超出隐藏 + 省略号 */
.info-item:first-child .info-text {
  display: -webkit-box;
  -webkit-line-clamp: 1; /* 限制1行 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  max-width: 30em; /* 严格控制30个汉字宽度 */
  cursor: pointer;
}
/* 鼠标悬浮：显示全部内容 */
.info-item:first-child:hover .info-text {
  display: block;
  max-width: none;
  white-space: normal;
}