﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
body {
  background: #f4f7fc;
  color: #333;
}
.wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
/* 头部导航 */
.top-header {
  background: #eef2f6;
  padding: 14px 0;
  border-bottom: 1px solid #d0ddee;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  background: #f97316;
  width: 46px;
  height: 46px;
  /*border-radius: 14px;*/
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 26px;
}
.logo-text {
  font-weight: 700;
  font-size: 24px;
  color: #1e293b;
}
.logo-text span {
  color: #f97316;
  font-weight: 500;
  margin-left: 4px;
}
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
}
.main-nav a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  font-size: 16px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.main-nav a:hover {
  border-bottom-color: #f97316;
}
.main-nav li.active > a {
  color: #176bf0;
  border-bottom-color: #f97316;
  font-weight: bold;
}
.search-box {
  background: #ffffff;
  /*border-radius: 40px;*/
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #bccce4;
}
.search-box i {
  color: #f97316;
  font-size: 15px;
}
.search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 200px;
  font-size: 14px;
}
.search-box input::placeholder {
  color: #93a9c7;
}
/* 整合的热门标签+合集容器 */
.hot-tags-wrapper {
  background: #ffffff;
  /*border-radius: 50px;*/
  padding: 14px 24px;
  margin: 30px 0 20px;
  border: 1px solid #d9e5f5;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  flex-direction: column;
}
.tag-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.group-label {
  font-size: 14px;
  color: #fff;
  padding: 8px 16px;
  /*border-radius: 40px;*/
}
.tag-group:first-child > .group-label {
  background: #ff7e61;
}
.tag-group:last-child > .group-label {
  background: #6db5ff;
}
.tag-item {
  background: #f4f9ff;
  color: #1e3a8a;
  padding: 6px 18px;
  /*border-radius: 40px;*/
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  white-space: nowrap;
}
.tag-item i {
  margin-right: 6px;
  font-size: 12px;
}
.collection-tag {
  background: #fff2e5;
  color: #b85c00;
  padding: 6px 18px;
  /*border-radius: 40px;*/
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #ffd8b0;
}
/* 通用标题 */
.section-title {
  font-size: 22px;
  font-weight: 700;
  margin: 30px 0 18px 0;
  display: flex;
  color: #1e293b;
  align-items: center;
  justify-content: space-between;
}
.more-link {
  color: #f97316;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.more-link i {
  font-size: 12px;
}
/* 左右两栏 7:3 */
.content-wrapper {
  display: flex;
  gap: 30px;
  margin-top: 10px;
  align-items: flex-start;
  min-height: 700px;
}
.content-left {
  flex: 7.5;
  min-width: 0;
}
.content-right {
  flex: 2.5;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.right-col > :first-child {
  margin-bottom: -6px;
}
/* 常用软件网格 */
.app-card .app-icon {
  margin-bottom: 10px;
  padding: 0 10px;
}
.app-card .app-icon a {
  width: 100%;
}
.app-card .app-icon a span {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  margin-bottom: 10px;
}
.app-card {
  background: white;
  padding: 18px 0 0;
  border: 1px solid #dbe6f2;
  transition: border-color 0.2s;
  align-items: center;
  text-align: center;
  position: relative;
}
.app-card:hover {
  border-color: #358ff0;
}
.app-icon {
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  /*font-size: 26px;*/
}
.app-icon img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
}
/*.app-name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}*/
.app-name {
  font-size: 16px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-bottom: 1rem;
}
.app-info > .app-tag {
  margin-bottom: 0.4rem;
}
.app-info > .app-tag > a {
  font-size: 0.8rem;
  color: #7a7d7a;
  background: #f8f8fa;
  padding: 0 0.5rem;
  display: inline-block;
  height: 1.5rem;
  line-height: 1.5rem;
  border-radius: 6px;
}
.app-cat {
  font-size: 12px;
  background: #edf4ff;
  color: #2854a1;
  height: 32px;
  line-height: 32px;
  background-color: #f5f5f5;
  color: #999999;
}
.app-cat-a {
  width: 100%;
  font-size: 14px;
  color: #2854a1;
  height: 32px;
  line-height: 32px;
  position: absolute;
  bottom: 0;
  left: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: none;
}
.app-card:hover .app-cat-a {
  background: #358ff0;
  color: #fff;
  display: block;
}
.app-card:hover .app-cat-a:hover {
  background: #2b7ac2;
  color: #fff;
  display: block;
}
.app-size {
  font-size: 12px;
  color: #7a7d7a;
  font-weight: 500;
}
.app-size > .size,
.app-size > .version {
  color: #999;
  font-size: 0.85rem;
}
.app-size > .size {
  margin-right: 0.2rem;
}
.app-size > .version {
  margin-left: 0.2rem;
}
/* 软件分类页卡 */
.category-tabs {
  background: white;
  /*border-radius: 32px;*/
  padding: 20px 22px;
  border: 1px solid #d9e5f5;
  margin: 10px 0 30px;
}
.cat-tabs-header {
  display: flex;
  gap: 25px;
  border-bottom: 2px solid #eaf2ff;
  padding-bottom: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.cat-tab-btn {
  font-size: 18px;
  background: none;
  border: none;
  padding: 8px 2px;
  cursor: pointer;
  color: #4b556b;
  position: relative;
  transition: color 0.2s;
}
.cat-tab-btn:hover {
  color: #f97316;
}
.cat-tab-btn.active {
  color: #f97316;
}
.cat-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #f97316;
  border-radius: 3px;
}
.cat-panel {
  display: block;
}
.cat-software-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px 20px;
}
.cat-software-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed #e2edff;
}
.cat-software-item:last-child {
  border-bottom: none;
}
.cat-soft-info {
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}
.cat-soft-info img {
  width: 88px;
  height: 88px;
  transition: transform 0.5s;
}
.cat-soft-info img:hover {
  transform: rotateY(180deg);
  transition: transform 0.5s;
}
.cat-soft-icon {
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f97316;
  font-size: 16px;
  margin-bottom: 5px;
}
.cat-soft-name {
  font-weight: 600;
  font-size: 15px;
}
.cat-soft-size {
  color: #6e85a9;
  font-size: 12px;
  background: #ecf3fc;
  padding: 2px 8px;
  /*border-radius: 30px;*/
}
/* 面包屑 */
.breadcrumb {
  margin: 25px 0 20px;
  font-size: 14px;
  color: #64748b;
  display: flex;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
}
.breadcrumb-item {
  display: flex;
}
.breadcrumb-item + .breadcrumb-item::before {
  display: inline-block;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  content: ">";
}
.breadcrumb-item.active {
  color: #6c757d;
}
.breadcrumb a {
  color: #373737;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb i {
  margin: 0 6px;
  font-size: 12px;
}
/* ===== 资讯页卡 - 无二级标题，列表左右两列，防止溢出 ===== */
.info-tabs {
  background: white;
  /*border-radius: 36px;*/
  padding: 20px 22px;
  border: 1px solid #d9e5f5;
}
.tabs-header {
  display: flex;
  gap: 30px;
  border-bottom: 2px solid #eaf2ff;
  padding-bottom: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tab-btn {
  font-size: 18px;
  background: none;
  border: none;
  padding: 8px 4px;
  cursor: pointer;
  color: #4b556b;
  position: relative;
  transition: color 0.2s;
}
.tab-btn:hover {
  color: #f97316;
}
.tab-btn.active {
  color: #f97316;
}
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #f97316;
  border-radius: 3px;
}
.panel-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.info-card {
  background: #fafdff;
  /*border-radius: 24px;*/
  padding: 18px;
  border: 1px solid #e2edff;
  overflow: hidden;
  /* 防止内部溢出 */
}
/* 两列列表容器 */
.info-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  /* 调整列间距 */
}
.info-list-item {
  display: flex;
  align-items: flex-start;
  /* 改为顶部对齐，方便换行 */
  gap: 4px;
  font-size: 13px;
  /* 稍微缩小字体以容纳更多 */
  line-height: 1.4;
  min-width: 0;
  /* 允许收缩 */
  flex-wrap: wrap;
  /* 允许标签换行 */
}
.info-list-item i {
  color: #f97316;
  font-size: 8px;
  margin-top: 5px;
  flex-shrink: 0;
}
.info-list-item .item-text {
  flex: 1 1 auto;
  min-width: 0;
  /* 允许收缩 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 2px;
  font-size: 14px;
}
.info-tag {
  background: #ecf3ff;
  padding: 2px 6px;
  /*border-radius: 30px;*/
  font-size: 9px;
  font-weight: 500;
  color: #2563eb;
  margin-left: 0;
  flex-shrink: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 当空间不足时，标签换到新行 */
.info-list-item .item-text + .info-tag {
  margin-left: 0;
}
/* 右侧近期更新 */
.recent-list {
  background: white;
  /*border-radius: 28px;*/
  padding: 20px 18px;
  border: 1px solid #d9e5f5;
}
.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed #dce8f5;
  gap: 10px;
}
.recent-item:last-child {
  border-bottom: none;
}
.recent-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.recent-icon {
  border-radius: 12px;
  justify-content: center;
  color: #f97316;
  font-size: 16px;
}
.recent-icon > a > img {
  width: 60px;
  height: 60px;
  border-radius: 6px;
}
.recent-name {
  font-size: 15px;
}
.recent-name:hover {
  text-decoration: underline;
}
.recent-version {
  background: #ecf3ff;
  padding: 2px 10px;
  /*border-radius: 30px;*/
  font-size: 11px;
  color: #2563eb;
}
.recent-date {
  color: #a8a8a8;
  font-size: 12px;
  white-space: nowrap;
}
.rank-app-wrap a:hover {
  text-decoration: underline;
}
.rank-app-version {
  margin-bottom: 10px;
  max-width: 130px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.rank-app-category {
  font-size: 13px;
  color: #a8a8a8;
}
.rank-app-category > a {
  color: #a8a8a8;
}
/* 排行榜卡片 */
.rank-card {
  background: white;
  /*border-radius: 32px;*/
  padding: 22px 18px;
  border: 1px solid #d9e5f5;
}
.rank-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1e293b;
}
.rank-title i {
  color: #f97316;
  font-size: 24px;
}
.rank-list {
  list-style: none;
}
.rank-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #edf2f9;
  gap: 12px;
}
.rank-item:last-child {
  border-bottom: none;
}
.rank-num {
  width: 28px;
  height: 28px;
  background: #c5c5c5;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
}
.rank-num.top1 {
  background: #ff4800;
}
.rank-num.top2 {
  background: #ff6d34;
}
.rank-num.top3 {
  background: #ffa07b;
}
.rank-info {
  flex: 1;
  font-weight: 500;
}
.rank-info small {
  font-size: 12px;
  color: #6a7f9f;
  font-weight: 400;
  margin-left: 4px;
}
.rank-hot {
  font-size: 13px;
  color: #f97316;
  font-weight: 600;
}
/* 底部提醒 */
.footer-warning {
  background: #102a4e;
  color: #eaf0ff;
  padding: 22px 30px;
  margin: 50px 0 0;
  text-align: center;
  font-size: 15px;
  border: 1px solid #31507c;
}
.footer-warning strong {
  background: #f97316;
  padding: 5px 22px;
  border-radius: 40px;
  margin-left: 15px;
  font-weight: 600;
}
hr {
  border: 1px solid #d0e2ff;
  margin: 20px 0;
}
a {
  color: #1a2639;
  text-decoration: none;
  font-weight: 400;
}
a:hover {
  color: #176bf0;
}
/* 返回顶部按钮 */
.go-top {
  position: fixed;
  bottom: 40px;
  right: 30px;
  width: 48px;
  height: 48px;
  background-color: #f97316;
  color: white;
  border: none;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background 0.2s;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.go-top.show {
  opacity: 1;
  visibility: visible;
}
.go-top:hover {
  background-color: #e05f00;
}
/* 点击时的动态效果（轻微缩放） */
.go-top:active {
  transform: scale(0.95);
}
@media (max-width: 1100px) {
  .cat-software-grid {
    grid-template-columns: 1fr;
  }
  .panel-content {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .two-column {
    flex-direction: column;
  }
  .right-col {
    width: 100%;
  }
  .go-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}