/* 全站公共样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f7f8fa;
  padding: 0;
  line-height: 1.7;
}
.container {
  max-width: 1200px;
  margin: 10px auto;
  padding: 0 10px;
}

/* 搜索框（首页 + 搜索页） */
.search-box {
  background: #fff;
  padding: 10px 10px;
  border-radius: 16px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
}
.search-input {
  flex: 1;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  outline: none;
}
.search-input:focus {
  border-color: #0093ff;
}
.search-btn {
  background: #0093ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0 22px;
  cursor: pointer;
  font-size: 15px;
  white-space: nowrap;
}

/* 公共标题面板（首页 + 分类 + 搜索） */
.home-title,
.cat-title,
.search-title {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  margin-bottom: 20px;
  text-align: center;
}
.home-title h2,
.cat-title h2,
.search-title h2 {
  font-size: 22px;
  color: #222;
}
.home-title p,
.cat-title p,
.search-title p {
  color: #666;
  margin-top: 6px;
  font-size: 14px;
}

/* 软件卡片（首页 + 分类 + 搜索） */
.soft-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: 0.2s;
}
.soft-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.soft-card .name {
  font-size: 17px;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}
.soft-card .name a{
  font-size: 17px;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.soft-card a {
  font-size: 12px;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  display: block;
  
}

.soft-card .info {
  font-size: 13px;
  color: #888;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 首页按钮 */
.btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btns button {
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}
.btn-xl {
  background: #0093ff;
  color: #fff;
}
.btn-kr {
  background: #42bd55;
  color: #fff;
}
.btns a {
  color: #fff;
  text-decoration: none;
}

/* 内容页（详情页） */
.container.detail {
  background: #fff;
  padding: 24px 20px;
  border-radius: 16px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}
.title {
  font-size: 24px;
  font-weight: bold;
  color: #222;
  margin-bottom: 10px;
  word-break: break-all;
}
.content .info {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.download {
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn {
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
  flex: 1;
  max-width: 125px;
  text-align: center;
}
.btn.xl { background: #0093ff; }
.btn.kr { background: #4bb9f5; }
.btn.like { background: #ff4444; }
.btn:hover { opacity: 0.9; }
.btn.disabled {
  background:#ccc !important;
  cursor:not-allowed !important;
  pointer-events:none;
}
.content {
  margin-top: 25px;
  line-height: 1.9;
  font-size: 16px;
  color: #333;
  word-break: break-all;
}
.content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 10px auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: block;
  max-height: 300px;
}

/* 排行榜页面 */
.page-title {
  text-align: center;
  padding: 10px 20px;
  font-size: 22px;
  font-weight: bold;
  color: #222;
}
.rank-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.rank-box {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}
.rank-box h3 {
  font-size: 17px;
  margin-bottom: 15px;
  color: #222;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rank-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #f2f2f2;
}
.rank-item:last-child {
  border-bottom: none;
}
.rank-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0093ff;
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  flex-shrink: 0;
}
.rank-num.top1 { background:#ff4444; }
.rank-num.top2 { background:#ff9100; }
.rank-num.top3 { background:#12b388; }
.rank-name {
  flex: 1;
  font-size: 14px;
  color: #222;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-name:hover {
  color: #0093ff;
}
.rank-count {
  font-size: 12px;
  color: #999;
  margin-left: 6px;
}

/* 公共组件 */
.empty {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  color: #666;
}
.hide {
  display: none !important;
}

/* 响应式 */
@media (max-width: 900px) {
  .rank-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  .soft-card {
    padding: 16px;
  }
  .home-title h2,
  .cat-title h2,
  .search-title h2,
  .title {
    font-size: 20px;
  }
  .container.detail {
    padding: 18px 14px;
  }
  .btn {
    flex: 100%;
    padding: 10px;
  }
  .rank-wrap {
    grid-template-columns: 1fr;
  }
}


.infooo {
    border-bottom: 1px solid #cfcaca;
    margin-bottom: 10px;
  font-size: 13px;
    color: #888;
}