/* ==========================================================================
   Inpandora 新布局样式
   ========================================================================== */

/* CSS变量定义 - 黑白灰主�?*/
:root {
  --primary-color: #2C2C2C;
  --primary-dark: #1A1A1A;
  --primary-light: #666666;
  --secondary-color: #4A4A4A;
  --accent-color: #5A5A5A;
  --text-primary: #2C2C2C;
  --text-secondary: #666666;
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F8F8;
  --border-color: #E0E0E0;
  --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.12);
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --border-radius: 8px;
  --transition: 0.3s ease;
}

/* 热门软件分类网格模块 */
.featured-software-grid-section {
  padding: var(--spacing-md);
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

/* 使用统一的section-header样式 */

.featured-software-grid-section .section-title {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

/* 软件图标网格 - 只显示一�?*/
.featured-software-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  max-width: 100%;
  overflow-x: auto;
}

/* 响应式调�?*/
@media (max-width: 1024px) {
  .featured-software-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 768px) {
  .featured-software-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .featured-software-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

.featured-software-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: var(--spacing-sm);
  border-radius: var(--border-radius);
  transition: var(--transition);
  background: var(--bg-secondary);
}

.featured-software-item:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.featured-software-item .software-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: var(--shadow-light);
}

.featured-software-item .software-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.featured-software-item .software-name {
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

/* 三行分类标签区域 */
.category-rows-section {
  margin-top: var(--spacing-lg);
}

.category-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  padding: 8px 0;
}

.row-header {
  flex-shrink: 0;
  margin-right: 12px;
}

.category-label {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  min-width: 80px;
  text-align: center;
}

.row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.row-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  color: white;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  transition: var(--transition);
  white-space: nowrap;
}

.row-tag:hover {
  transform: scale(1.05);
  opacity: 0.9;
  color: white;
  text-decoration: none;
}

/* 第一行：PC合集 - 蓝色�?*/
.pc-category-row {
  background: rgba(0, 123, 255, 0.05);
}

.pc-label {
  background-color: #007bff;
}

.pc-tag {
  background-color: #0056b3;
}

.pc-tag:hover {
  background-color: #004085;
}

/* 第二行：办公合集 - 绿色�?*/
.office-category-row {
  background: rgba(40, 167, 69, 0.05);
}

.office-label {
  background-color: #28a745;
}

.office-tag {
  background-color: #1e7e34;
}

.office-tag:hover {
  background-color: #155724;
}

/* 第三行：游戏合集 - 粉色�?*/
.game-category-row {
  background: rgba(220, 53, 69, 0.05);
}

.game-label {
  background-color: #dc3545;
}

.game-tag {
  background-color: #c82333;
}

.game-tag:hover {
  background-color: #bd2130;
}

/* 响应式设�?*/
@media (max-width: 768px) {
  .featured-software-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
  }

  .featured-software-item .software-icon {
    width: 48px;
    height: 48px;
  }

  .featured-software-item .software-icon img {
    width: 36px;
    height: 36px;
  }

  .featured-software-item .software-name {
    font-size: 0.75rem;
  }

  .category-row {
    flex-direction: column;
    align-items: stretch;
  }

  .row-header {
    margin-right: 0;
    margin-bottom: 8px;
  }

  .category-label {
    min-width: auto;
  }

  .row-tags {
    gap: 4px;
  }

  .row-tag {
    padding: 3px 8px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .featured-software-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .featured-software-grid-section {
    padding: var(--spacing-sm);
  }
}

/* 1. Header搜索区域样式 */
.header .inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
}

.header-search {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.header-search form {
  display: flex;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.header-search input[type="search"] {
  flex: 1;
  border: none;
  padding: 8px 12px;
  background: transparent;
  color: white;
  font-size: 14px;
}

.header-search input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.header-search button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 8px 12px;
  color: white;
  cursor: pointer;
  transition: var(--transition);
}

.header-search button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hot-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.hot-tags span {
  color: rgba(255, 255, 255, 0.8);
}

.hot-tags a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.hot-tags a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* 2. 分类导航样式 */
.category-navigation {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: var(--spacing-sm) 0;
  margin-bottom: var(--spacing-md);
}

.category-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.category-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
  font-size: 14px;
  font-weight: 500;
}

.category-nav-item:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.category-icon {
  font-size: 16px;
}

.category-count {
  font-size: 12px;
  opacity: 0.7;
}

/* 3. 新布局样式 */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* 三栏布局区域 */
.three-column-section {
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  grid-template-areas: "left main right";
  gap: 30px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
  margin-bottom: 0;
}

.left-sidebar {
  grid-area: left;
  background: white;
  border-radius: 0px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-content {
  grid-area: main;
  min-width: 0;
}

.right-sidebar {
  grid-area: right;
  background: white;
  border-radius: 0px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 侧边栏组件样�?*/
.sidebar-widgets {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.widget {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 0px;
  padding: 16px;
  transition: all 0.3s ease;
}

.widget:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.widget h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget h3::before {
  content: '';
  width: 4px;
  height: 16px;
  background: #2196F3;
  border-radius: 2px;
}

.widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget li {
  padding: 6px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 14px;
  color: #666;
  transition: all 0.3s ease;
}

.widget li:last-child {
  border-bottom: none;
}

.widget li:hover {
  color: #2196F3;
  padding-left: 8px;
}

/* 广告轮播样式 - 参考test-final-layout.html */
.ad-carousel-section {
  background: white;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  position: relative;
}

.ad-carousel {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #ffffff;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-content {
  text-align: center;
  color: white;
  padding: 20px;
}

.carousel-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.carousel-description {
  font-size: 16px;
  margin: 0 0 20px 0;
  opacity: 0.9;
}

.carousel-button {
  display: inline-block;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}

.carousel-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* 软件列表区域 (全宽) */
.software-list-section {
  padding: 0 20px;
  margin-top: 30px;
}

/* 软件网格 - 参考截图样�?*/
.software-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

/* 分类区块 - 参考test-final-layout.html */
.category-section {
  margin-bottom: 40px;
  padding: 30px;
  background: white;
  border-radius: 0px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.category-section .title-floor {
  margin-bottom: 20px;
}

/* title-floor样式 - 参考截图样�?*/
.title-floor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 20px;
}

.title-floor h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-floor h3::before {
  content: '';
  width: 6px;
  height: 20px;
  background: #2196F3;
  border-radius: 3px;
}

.title-floor .tf-ft {
  margin: 0;
}

.title-floor .view-more {
  color: #2196F3;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid #2196F3;
  border-radius: 20px;
  transition: all 0.3s ease;
  background: white;
}

.title-floor .view-more:hover {
  background: #2196F3;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

/* 响应式设�?*/
@media (max-width: 1200px) {
  .three-column-section {
    grid-template-columns: 280px 1fr 280px;
    gap: 20px;
  }

  .software-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
}

@media (max-width: 992px) {
  .three-column-section {
    grid-template-columns: 1fr 280px;
    grid-template-areas: "main right";
    gap: 20px;
  }

  /* 只有在没有小工具时才隐藏左侧边栏 */
  .left-sidebar:empty {
    display: none;
  }

  .software-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .three-column-section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "left"
      "right";
    gap: 15px;
  }

  .software-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .software-list-section {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .software-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* 4. 标签页导航样�?- 参考test-final-layout.html */
.software-tabs-container {
  background: white;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.tab-navigation {
  display: flex;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.tab-item {
  flex: 1;
  padding: 12px 16px;
  text-align: center;
  text-decoration: none;
  color: #666;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab-item:hover {
  color: #2196F3;
  background: rgba(33, 150, 243, 0.05);
}

.tab-item.active {
  color: #2196F3;
  border-bottom-color: #2196F3;
  background: white;
}

.tab-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  margin-right: 6px;
}

.tab-icon i {
  font-size: inherit;
  line-height: inherit;
  display: inline-block;
  width: 100%;
  height: 100%;
}

.tab-name {
  font-size: 14px;
}

.tab-content {
  padding: 20px;
}

.tab-content-header {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.tab-content-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.tab-content-header p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

.tab-content-body {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.software-preview {
  text-align: center;
  color: var(--text-secondary);
}

.software-preview p {
  margin: 8px 0;
  font-size: 14px;
}

.loading-content {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

.tab-actions {
  margin-top: 20px;
  text-align: center;
}

.tab-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.tab-more-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* 5. 广告轮播模块样式 */
.ad-carousel-section {
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  margin-bottom: var(--spacing-md);
  position: relative;
}

.ad-carousel {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
}

.carousel-item.active {
  opacity: 1;
}

.carousel-image {
  flex: 1;
  height: 100%;
  overflow: hidden;
}

.carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-content {
  flex: 1;
  padding: var(--spacing-lg);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  text-align: center;
}

.carousel-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: white;
}

.carousel-description {
  font-size: 16px;
  margin: 0 0 24px 0;
  opacity: 0.9;
  line-height: 1.5;
}

.carousel-button {
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
}

.carousel-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.indicator.active {
  background: var(--primary-color);
}

.indicator:hover {
  background: var(--primary-light);
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.carousel-control:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-control.prev {
  left: 20px;
}

.carousel-control.next {
  right: 20px;
}

/* 6. 小工具样�?*/
.widget {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-light);
  overflow: hidden;
}

.widget-title {
  background: var(--primary-color);
  color: white;
  margin: 0;
  padding: 12px var(--spacing-md);
  font-size: 16px;
  font-weight: 600;
}

.widget>*:not(.widget-title) {
  padding: var(--spacing-md);
}

/* 6. 推荐列表样式 */
.recommend-list,
.ranking-list,
.category-list,
.weekly-recommend-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recommend-item,
.ranking-item,
.category-item,
.weekly-recommend-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.recommend-item:last-child,
.ranking-item:last-child,
.category-item:last-child,
.weekly-recommend-item:last-child {
  border-bottom: none;
}

.recommend-item a,
.ranking-item a,
.category-item a,
.weekly-recommend-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
}

.recommend-item a:hover,
.ranking-item a:hover,
.category-item a:hover,
.weekly-recommend-item a:hover {
  color: var(--primary-color);
}

.recommend-rating,
.download-count,
.category-count {
  font-size: 12px;
  color: var(--text-secondary);
}

/* 本周推荐特殊样式 */
.weekly-recommend-item a {
  padding: 8px 0;
}

.weekly-recommend-item .recommend-title {
  flex: 1;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.official-badge {
  background: var(--accent-color);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  margin-left: 8px;
}

/* 7. 排行榜特殊样�?*/
.rank-number {
  margin-right: 8px;
  font-size: 14px;
}

.ranking-item.rank-1 .rank-number {
  color: #FFD700;
}

.ranking-item.rank-2 .rank-number {
  color: #C0C0C0;
}

.ranking-item.rank-3 .rank-number {
  color: #CD7F32;
}

.ranking-title {
  flex: 1;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 8. 响应式设�?*/
@media (max-width: 1200px) {
  .container-index.three-column {
    grid-template-columns: 180px 1fr 280px;
  }
}

@media (max-width: 992px) {
  .container-index.three-column {
    grid-template-columns: 1fr 280px;
    grid-template-areas: "main right";
  }

  .left-sidebar {
    display: none;
  }

  .header .inner {
    grid-template-columns: auto 1fr auto;
  }

  .header-search {
    grid-column: 1 / -1;
    order: 3;
  }

  .tab-nav {
    flex-wrap: wrap;
  }

  .tab-item {
    min-width: 120px;
  }

  /* 广告轮播响应�?*/
  .ad-carousel {
    height: 250px;
  }

  .carousel-content {
    padding: var(--spacing-md);
  }

  .carousel-title {
    font-size: 20px;
    margin: 0 0 12px 0;
  }

  .carousel-description {
    font-size: 14px;
    margin: 0 0 16px 0;
  }
}

@media (max-width: 768px) {

  .container-index.three-column,
  .container-index.two-column {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "right";
  }

  .category-nav-inner {
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  .category-navigation {
    padding: var(--spacing-sm);
  }

  .header .inner {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .header-search form {
    width: 100%;
  }

  .tab-nav {
    flex-direction: column;
  }

  .tab-item {
    border-bottom: 1px solid var(--border-color);
    border-right: none;
  }

  .tab-item.active {
    border-bottom-color: var(--primary-color);
  }

  /* 广告轮播移动端样�?*/
  .ad-carousel {
    height: 200px;
    flex-direction: column;
  }

  .carousel-image {
    flex: none;
    height: 60%;
  }

  .carousel-content {
    flex: none;
    height: 40%;
    padding: var(--spacing-sm);
  }

  .carousel-title {
    font-size: 16px;
    margin: 0 0 8px 0;
  }

  .carousel-description {
    font-size: 12px;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .carousel-button {
    padding: 8px 16px;
    font-size: 12px;
  }

  .carousel-control {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .carousel-control.prev {
    left: 10px;
  }

  .carousel-control.next {
    right: 10px;
  }

  .carousel-indicators {
    bottom: 10px;
  }

  .indicator {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 480px) {
  .container-index {
    padding: var(--spacing-sm);
  }

  .widget {
    margin-bottom: var(--spacing-sm);
  }

  .category-nav-item {
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* 广告轮播超小屏幕样式 */
  .ad-carousel {
    height: 180px;
  }

  .carousel-content {
    padding: 8px;
  }

  .carousel-title {
    font-size: 14px;
    margin: 0 0 6px 0;
  }

  .carousel-description {
    font-size: 11px;
    margin: 0 0 8px 0;
  }

  .carousel-button {
    padding: 6px 12px;
    font-size: 11px;
  }
}

/* 9. 加载动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.widget {
  animation: fadeIn 0.6s ease forwards;
}

.widget:nth-child(1) {
  animation-delay: 0.1s;
}

.widget:nth-child(2) {
  animation-delay: 0.2s;
}

.widget:nth-child(3) {
  animation-delay: 0.3s;
}

.widget:nth-child(4) {
  animation-delay: 0.4s;
}

/* 10. 软件卡片样式 - 参考截图样�?*/
.software-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 0px;
  padding: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.software-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border-color: #2196F3;
}

.software-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(44, 44, 44, 0.1);
  transition: left 0.5s;
}

.software-card:hover::before {
  left: 100%;
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.software-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #f0f0f0;
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.software-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.software-icon.default-icon {
  font-size: 24px;
  color: #666;
}

.software-info {
  flex: 1;
  min-width: 0;
}

.software-title {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: #333;
}

.software-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.software-title a:hover {
  color: #2196F3;
}

.software-version {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.software-rating {
  font-size: 14px;
  color: #FF9800;
  font-weight: 600;
}

.card-body {
  margin-bottom: 16px;
}

.software-description {
  font-size: 13px;
  line-height: 1.5;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.card-footer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 0;
}

.software-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* 首页卡片中的tag样式 */
.tag {
  font-size: 13px;
  padding: 4px 8px;
  background: #f5f5f5;
  color: #666;
  border-radius: 0px;
  border: 1px solid #e0e0e0;
  white-space: nowrap;
}

/* 11. 深色模式支持 */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #E0E0E0;
    --text-secondary: #BDBDBD;
    --bg-primary: #1E1E1E;
    --bg-secondary: #121212;
    --border-color: #333333;
  }

  .category-nav-item {
    background: var(--bg-primary);
    border-color: var(--border-color);
  }

  .widget {
    background: var(--bg-primary);
    border-color: var(--border-color);
  }
}

/* 强制修改父级元素，确保flexbox布局生效 */
/* 针对标签页内容的ul容器 */
.software-tabs-container .tab-content .tab-pane ul,
.software-tabs-container .tab-content .tab-pane ul li,
.software-tabs-container .tab-content .tab-pane ul li.item {
  display: flex !important;
}

/* 确保ul容器支持flexbox */
.software-tabs-container .tab-content .tab-pane ul {
  flex-direction: column !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: white !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  box-shadow: none !important;
  list-style: none !important;
}

/* 确保li.item支持flexbox */
.software-tabs-container .tab-content .tab-pane ul li.item {
  background: white !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  box-shadow: none !important;
  transition: none !important;
  border-bottom: 1px solid #f0f0f0 !important;
  padding: 8px 12px !important;
  margin: 0 !important;
  align-items: center !important;
  gap: 6px !important;
  flex-direction: row !important;
  width: 100% !important;
  box-sizing: border-box !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  justify-content: flex-start !important;
  list-style: none !important;
  font-size: inherit !important;
  margin-left: 0 !important;
}

/* 标签页文章卡片样�?- 按照截图HTML结构 */
.sw-column ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  background: white;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  list-style: none;
}

/* 强制覆盖所有可能的全局li样式，使用最高优先级 */
.sw-column ul .item,
.sw-column ul li.item,
.sw-column ul li,
body .sw-column ul .item,
body .sw-column ul li.item,
body .sw-column ul li,
html body .sw-column ul .item,
html body .sw-column ul li.item,
html body .sw-column ul li {
  background: white !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  box-shadow: none !important;
  transition: none !important;
  border-bottom: 1px solid #f0f0f0 !important;
  padding: 8px 12px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-direction: row !important;
  width: 100% !important;
  box-sizing: border-box !important;
  /* 强制不换�?*/
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  /* 确保子元素正确分�?*/
  justify-content: flex-start !important;
  /* 强制覆盖list-item样式 */
  list-style: none !important;
  /* 覆盖可能的全局li样式 */
  font-size: inherit !important;
  margin-left: 0 !important;
}

.sw-column ul .item:last-child,
.sw-column ul li.item:last-child,
.sw-column ul li:last-child,
body .sw-column ul .item:last-child,
body .sw-column ul li.item:last-child,
body .sw-column ul li:last-child {
  border-bottom: none !important;
}

.sw-column ul .item:hover,
.sw-column ul li.item:hover,
.sw-column ul li:hover,
body .sw-column ul .item:hover,
body .sw-column ul li.item:hover,
body .sw-column ul li:hover {
  background-color: white !important;
  transform: none !important;
  box-shadow: none !important;
}

/* 图标链接样式 */
.item .img-box,
li.item .img-box,
.sw-column ul li .img-box,
body .sw-column ul li .img-box {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
}

.item .img-box img,
li.item .img-box img,
.sw-column ul li .img-box img,
body .sw-column ul li .img-box img {
  width: 20px !important;
  height: 20px !important;
  border-radius: 3px !important;
  object-fit: cover !important;
  transition: none !important;
  display: block !important;
}

/* 分类名称链接样式 - 统一字体大小 */
.item .cname,
li.item .cname,
.sw-column ul li .cname,
body .sw-column ul li .cname {
  display: inline-block !important;
  padding: 0 !important;
  background: none !important;
  color: #1976d2 !important;
  text-decoration: none !important;
  border-radius: 0 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  min-width: fit-content !important;
  max-width: 60px !important;
  margin-right: 8px !important;
}

.item .cname:hover,
li.item .cname:hover,
.sw-column ul li .cname:hover,
body .sw-column ul li .cname:hover {
  color: #1565c0 !important;
}

/* 标题描述链接样式 - 统一字体大小 */
.item .txt,
li.item .txt,
.sw-column ul li .txt,
body .sw-column ul li .txt {
  flex: 1 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
  color: #333 !important;
  text-decoration: none !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  min-width: 0 !important;
  margin: 0 !important;
  /* 确保不换�?*/
  flex-shrink: 1 !important;
  /* 限制最大宽度，为日期留出空�?*/
  max-width: calc(100% - 80px) !important;
}

.item .txt:hover,
li.item .txt:hover,
.sw-column ul li .txt:hover,
body .sw-column ul li .txt:hover {
  color: #1976d2 !important;
}

/* 日期时间样式 - 统一字体大小 */
.item .sign,
li.item .sign,
.sw-column ul li .sign,
body .sw-column ul li .sign {
  font-size: 14px !important;
  color: #1976d2 !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  text-align: right !important;
  min-width: fit-content !important;
  /* 强制右对齐到最右侧 */
  margin-left: auto !important;
  /* 确保日期贴到最右侧 */
  padding-right: 0 !important;
  margin-right: 0 !important;
}

/* 保留原有样式以兼容其他部�?*/
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
  background: white;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  list-style: none;
  padding: 0;
}

.post-item {
  background: white;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  transition: none;
  border-bottom: 1px solid #f0f0f0;
  padding: 12px 16px;
  margin: 0;
}

.post-item:last-child {
  border-bottom: none;
}

.post-item:hover {
  background-color: white;
  transform: none;
  box-shadow: none;
}

.post-item-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: auto;
}

.post-thumbnail {
  position: relative;
  overflow: hidden;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 0px;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;
}

.post-item:hover .post-thumbnail img {
  transform: none;
}

.post-content {
  padding: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.post-category {
  margin: 0;
  flex-shrink: 0;
  white-space: nowrap;
}

.post-category a,
.post-category span {
  display: inline-block;
  padding: 0;
  background: none;
  color: #333;
  text-decoration: none;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.post-category span {
  background: none;
  color: #333;
}

.post-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
  color: #333;
  flex: 1;
  min-width: 0;
}

.post-title a {
  color: #333;
  text-decoration: none;
  transition: none;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-title a:hover {
  color: #333;
}

.post-excerpt {
  display: none;
  /* 隐藏摘要，只显示标题 */
}

.post-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 14px;
  color: #1976d2;
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

.post-meta .post-date {
  color: #1976d2;
}

.post-meta .post-views {
  display: none;
  /* 隐藏浏览�?*/
}

/* 标签页操作按�?*/
.tab-actions {
  text-align: center;
  margin-top: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.tab-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #1976d2;
  color: white;
  text-decoration: none;
  border-radius: 0px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.tab-more-btn:hover {
  background: #1565c0;
  color: white;
}

/* 加载状态样�?*/
.loading-content {
  text-align: center;
  padding: 40px 20px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #1976d2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-content p {
  color: #666;
  margin: 0;
}

/* 错误状态样�?*/
.error-content {
  text-align: center;
  padding: 40px 20px;
  color: #dc3545;
}

/* 无文章状态样�?*/
.no-posts {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

/* ==========================================================================
    新的两栏布局样式
    ========================================================================== */

/* 两栏布局容器 */
.two-column-section {
  display: grid;
  grid-template-columns: 1fr 320px;
  grid-template-rows: auto;
  align-items: stretch;
  gap: 20px;
  padding: 20px 20px 10px 20px;
  max-width: 1400px;
  margin: 0 auto;
  margin-top: 20px;
}

/* 左侧：常用软件区�?- 简化样�?*/
.common-software-section {
  background: white;
  border-radius: 0;
  padding: 20px 20px 15px 20px;
  border: 1px solid #e0e0e0;
  height: fit-content;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 20px 0;
  text-align: left;
  position: relative;
}

.section-title::after {
  display: none;
  /* 去掉装饰�?*/
}

/* 软件分类网格 - 简化为更紧凑的布局 */
.software-categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.category-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 8px;
  transition: none;
  box-shadow: none;
}

.category-card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
  background: transparent;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 8px;
}

.category-header i {
  display: none;
  /* 隐藏图标 */
}

.category-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.2;
  text-align: left;
}

.software-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.software-item {
  padding: 2px 0;
  background: transparent;
  border-radius: 0;
  transition: none;
  border-left: none;
}

.software-item:hover {
  background: transparent;
  border-left-color: transparent;
  transform: none;
}

.software-name {
  font-size: 12px;
  color: #666;
  font-weight: 400;
  line-height: 1.3;
}

/* 右侧：小工具区域 - 简化样�?*/
.software-sidebar-section,
.recommended-apps-sidebar,
.game-sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
}

.software-ranking-widget,
.apple-ranking-widget,
.game-category-widget,
.game-ranking-widget {
  background: white;
  border-radius: 0;
  padding: 15px;
  border: 1px solid #e0e0e0;
  box-shadow: none;
}

/* 推荐应用模块中的右侧排行榜高度与左侧一致 */
.recommended-apps-sidebar .apple-ranking-widget {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 限制排行榜标题和标签页高度 */
.recommended-apps-sidebar .apple-ranking-widget .widget-title {
  margin-bottom: 10px;
  flex-shrink: 0;
}

.recommended-apps-sidebar .apple-ranking-widget .ranking-tabs {
  flex-shrink: 0;
  margin-bottom: 10px;
}

/* 确保排行榜列表内容可滚动并限制高度 */
.recommended-apps-sidebar .apple-ranking-widget .ranking-list {
  flex: 1;
  overflow-y: auto;
  max-height: calc(100% - 80px);
}

/* 限制排行榜项目数量显示 */
.recommended-apps-sidebar .apple-ranking-widget .ranking-item:nth-child(n+11) {
  display: none;
}

/* 常用软件模块中的右侧排行榜高度与左侧一致 */
.software-sidebar-section .software-ranking-widget {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 限制软件排行榜标题和标签页高度 */
.software-sidebar-section .software-ranking-widget .widget-title {
  margin-bottom: 10px;
  flex-shrink: 0;
}

.software-sidebar-section .software-ranking-widget .ranking-tabs {
  flex-shrink: 0;
  margin-bottom: 10px;
}

/* 确保软件排行榜列表内容可滚动并限制高度 */
.software-sidebar-section .software-ranking-widget .ranking-list {
  flex: 1;
  overflow-y: auto;
  max-height: calc(100% - 80px);
}

/* 限制软件排行榜项目数量显示 */
.software-sidebar-section .software-ranking-widget .ranking-item:nth-child(n+11) {
  display: none;
}

/* 强制右侧容器与左侧高度完全一致 */
.recommended-apps-layout {
  align-items: stretch;
}

.recommended-apps-sidebar {
  height: 100%;
}

.hot-search-widget {
  background: white;
  border-radius: 0;
  padding: 15px;
  border: 1px solid #e0e0e0;
  box-shadow: none;
}

/* 推荐应用模块样式 - 统一外壳布局 */
.recommended-apps-section {
  background: #ffffff00;
  padding: 20px 0 0 0;
  margin-top: 0;
  margin-bottom: 0;
}

.recommended-apps-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  grid-template-rows: auto;
  align-items: stretch;
  gap: 10px;
  padding: 20px 20px 10px 20px;
  max-width: 1400px;
  margin: 0 auto;
  margin-top: 0;
  border-top: none;
}

.recommended-apps-grid {
  background: white;
  border-radius: 0px;
  padding: 20px 20px 15px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  height: fit-content;
  display: flex;
  flex-direction: column;
}

/* 使用统一的section-header样式 */

.recommended-apps-grid .section-title {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  text-shadow: none;
}

/* 苹果标题导航区域 */
.apple-header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* 苹果分类标签页导�?*/
.apple-category-tabs {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* 更多链接 */
.apple-more-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.apple-more-link:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.apple-tab-button {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.apple-tab-button:hover {
  background: var(--bg-primary);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.apple-tab-button.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  font-weight: 500;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .apple-header-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .apple-category-tabs {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .apple-tab-button {
    padding: 6px 12px;
    font-size: 13px;
  }

  .apple-more-link {
    font-size: 13px;
    align-self: flex-end;
  }
}

/* 移除重复的section-header样式定义 */

.section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  text-shadow: none;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 15px;
  padding: 20px;
}

/* 响应式调整 */
@media (max-width: 1400px) {
  .apps-grid {
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .apps-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 12px;
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .apps-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .apps-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 8px;
  }
}

/* 应用链接样式 */
.app-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.app-item-link:hover {
  text-decoration: none;
  color: inherit;
}

.app-item {
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 0px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}

.app-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.app-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.app-info {
  padding: 0 10px 20px;
}

.app-name {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

.app-category {
  margin: 0;
  font-size: 12px;
  color: #666;
  line-height: 1.2;
}

/* 移除重复的统一标题样式定义 */

/* 响应式设�?*/
@media (max-width: 1200px) {
  .recommended-apps-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    grid-template-rows: auto;
    align-items: stretch;
    gap: 10px;
    padding: 25px 20px;
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 0;
    border-top: none;
    padding-top: 0;
  }

  .apps-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 25px;
  }

  .recommended-apps-sidebar {
    gap: 15px;
  }

  .software-ranking-widget,
  .apple-ranking-widget {
    padding: 15px;
  }
}

@media (max-width: 992px) {
  .recommended-apps-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    grid-template-rows: auto;
    align-items: stretch;
    gap: 10px;
    padding: 25px 20px;
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 0;
    border-top: none;
    padding-top: 0;
  }

  .apps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 25px;
  }

  .recommended-apps-sidebar {
    max-width: 500px;
    margin: 0 auto;
    flex-direction: row;
    gap: 20px;
  }

  .software-ranking-widget,
  .apple-ranking-widget {
    flex: 1;
  }
}





/* ==========================================================================
    游戏两栏布局样式
    ========================================================================== */

/* 游戏两栏布局容器 - 统一外壳布局 */
.game-two-column-section {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 10px;
  padding: 25px 20px;
  max-width: 1400px;
  margin: 0 auto;
  margin-top: 20px;
  padding-top: 20px;
}

/* 左侧：单机游戏区�?- 统一外壳样式 */
.single-player-games-section {
  background: white;
  border-radius: 0px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}



/* 统一的section-header样式 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 0;
  background: transparent;
  border: none;
}

/* 移除游戏专区特殊样式 */

.more-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.more-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* 游戏网格 */
.games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 15px;
  margin: 0;
  flex-grow: 1;
  align-content: stretch;
  min-height: 320px;
}

.game-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.game-item {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.game-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-color: #ddd;
}

.game-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-item:hover .game-cover img {
  transform: scale(1.05);
}

.game-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 24px;
}

.game-rating {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: #ff6b35;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.game-type-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: #ff6b35;
  color: white;
  padding: 2px 6px;
  border-radius: 0px;
  font-size: 11px;
  font-weight: 600;
}

.game-info {
  padding: 12px 8px;
  background: white;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-title {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.game-type {
  font-size: 11px;
  color: #666;
  margin: 4px 0 0 0;
  text-align: center;
}

/* 响应式设�?*/
@media (max-width: 1200px) {
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    min-height: 400px;
  }
}

@media (max-width: 768px) {
  .game-two-column-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    min-height: 480px;
  }

  .game-sidebar-section {
    position: static;
  }
}



/* 统一小工具样�?*/

/* 小工具标题统一样式 */
.software-ranking-widget .widget-title,
.apple-ranking-widget .widget-title,
.game-category-widget .widget-title,
.game-ranking-widget .widget-title,
.hot-search-widget .widget-title {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f0;
}

/* 排行榜标签页样式 */
.software-ranking-widget .ranking-tabs,
.apple-ranking-widget .ranking-tabs {
  display: flex;
  gap: 1px;
  background: #f0f0f0;
  border-radius: 6px;
  padding: 3px;
  margin-bottom: 15px;
}

.software-ranking-widget .tab-button,
.apple-ranking-widget .tab-button {
  flex: 1;
  padding: 6px 10px;
  border: none;
  background: transparent;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.software-ranking-widget .tab-button.active,
.apple-ranking-widget .tab-button.active {
  background: #ff6b35;
  color: white;
  box-shadow: 0 1px 4px rgba(255, 107, 53, 0.3);
}

.software-ranking-widget .tab-button:hover:not(.active),
.apple-ranking-widget .tab-button:hover:not(.active) {
  background: #e0e0e0;
  color: #333;
}

/* 排行榜列表样�?*/
.software-ranking-widget .ranking-list,
.apple-ranking-widget .ranking-list {
  position: relative;
}

.software-ranking-widget .ranking-content,
.apple-ranking-widget .ranking-content {
  display: none;
}

.software-ranking-widget .ranking-content.active,
.apple-ranking-widget .ranking-content.active {
  display: block;
}

.software-ranking-widget .ranking-item,
.apple-ranking-widget .ranking-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.software-ranking-widget .ranking-item:last-child,
.apple-ranking-widget .ranking-item:last-child {
  border-bottom: none;
}

.software-ranking-widget .ranking-item:hover,
.apple-ranking-widget .ranking-item:hover {
  background: #f8f9fa;
  margin: 0 -8px;
  padding: 8px;
  border-radius: 4px;
}

.software-ranking-widget .ranking-number,
.apple-ranking-widget .ranking-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #f0f0f0;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: #666;
  flex-shrink: 0;
}

/* 前三名特殊颜�?*/
.software-ranking-widget .ranking-item:nth-child(1) .ranking-number,
.apple-ranking-widget .ranking-item:nth-child(1) .ranking-number {
  background: #ff6b35;
  color: white;
}

.software-ranking-widget .ranking-item:nth-child(2) .ranking-number,
.apple-ranking-widget .ranking-item:nth-child(2) .ranking-number {
  background: #ff8c42;
  color: white;
}

.software-ranking-widget .ranking-item:nth-child(3) .ranking-number,
.apple-ranking-widget .ranking-item:nth-child(3) .ranking-number {
  background: #ffa726;
  color: white;
}

.software-ranking-widget .software-name,
.apple-ranking-widget .software-name {
  flex: 1;
  font-size: 12px;
  color: #333;
  font-weight: 400;
  line-height: 1.3;
}

/* 统一右侧区域样式 - 所有三个模�?*/
.software-sidebar-section,
.recommended-apps-sidebar,
.game-sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: start;
}

/* 游戏专区右侧边栏高度调整 */
.game-sidebar-section {
  align-self: stretch;
  /* 拉伸背景与左侧高度齐�?*/
}

/* 让游戏排行榜小工具的白色背景填充整个容器高度 */
.game-sidebar-section .game-ranking-widget {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 让排行榜列表区域占据剩余空间，即使内容少也能延伸背景 */
.game-sidebar-section .game-ranking-widget .ranking-list {
  flex: 1;
}

/* 美化滚动�?*/
.game-sidebar-section .game-ranking-widget .ranking-list::-webkit-scrollbar {
  width: 4px;
}

.game-sidebar-section .game-ranking-widget .ranking-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.game-sidebar-section .game-ranking-widget .ranking-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

.game-sidebar-section .game-ranking-widget .ranking-list::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* 通用小工具样�?*/
.hot-search-widget,
.software-ranking-widget,
.apple-ranking-widget,
.game-category-widget,
.game-ranking-widget {
  background: white;
  border-radius: 0px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.hot-search-widget .widget-title,
.software-ranking-widget .widget-title,
.apple-ranking-widget .widget-title,
.game-category-widget .widget-title,
.game-ranking-widget .widget-title {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f0;
}

/* 热门搜索样式 */
.search-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background: #f8f9fa;
  margin: 0 -8px;
  padding: 8px;
  border-radius: 0px;
}

.search-term {
  font-size: 13px;
  color: #333;
  font-weight: 400;
}

.search-count {
  font-size: 12px;
  color: #666;
}

/* 游戏分类样式 */
.category-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.category-item:last-child {
  border-bottom: none;
}

.category-item:hover {
  background: #f8f9fa;
  margin: 0 -8px;
  padding: 8px;
  border-radius: 0px;
}

.category-name {
  font-size: 13px;
  color: #333;
  font-weight: 400;
}

.category-count {
  font-size: 12px;
  color: #666;
}

/* 排行榜标签页样式 */
.software-ranking-widget .ranking-tabs,
.apple-ranking-widget .ranking-tabs,
.game-ranking-widget .ranking-tabs {
  display: flex;
  gap: 1px;
  background: #f0f0f0;
  border-radius: 0px;
  padding: 3px;
  margin-bottom: 15px;
}

.software-ranking-widget .tab-button,
.apple-ranking-widget .tab-button,
.game-ranking-widget .tab-button {
  flex: 1;
  padding: 6px 10px;
  border: none;
  background: transparent;
  border-radius: 0px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.software-ranking-widget .tab-button.active,
.apple-ranking-widget .tab-button.active,
.game-ranking-widget .tab-button.active {
  background: #ff6b35;
  color: white;
  box-shadow: 0 1px 4px rgba(255, 107, 53, 0.3);
}

.software-ranking-widget .tab-button:hover:not(.active),
.apple-ranking-widget .tab-button:hover:not(.active),
.game-ranking-widget .tab-button:hover:not(.active) {
  background: #e0e0e0;
  color: #333;
}

/* 排行榜列表样�?*/
.software-ranking-widget .ranking-list,
.apple-ranking-widget .ranking-list,
.game-ranking-widget .ranking-list {
  position: relative;
}

.software-ranking-widget .ranking-content,
.apple-ranking-widget .ranking-content,
.game-ranking-widget .ranking-content {
  display: none;
}

.software-ranking-widget .ranking-content.active,
.apple-ranking-widget .ranking-content.active,
.game-ranking-widget .ranking-content.active {
  display: block;
}

.software-ranking-widget .ranking-item,
.apple-ranking-widget .ranking-item,
.game-ranking-widget .ranking-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.software-ranking-widget .ranking-item:last-child,
.apple-ranking-widget .ranking-item:last-child,
.game-ranking-widget .ranking-item:last-child {
  border-bottom: none;
}

.software-ranking-widget .ranking-item:hover,
.apple-ranking-widget .ranking-item:hover,
.game-ranking-widget .ranking-item:hover {
  background: #f8f9fa;
  margin: 0 -8px;
  padding: 8px;
  border-radius: 0px;
}

.software-ranking-widget .ranking-number,
.apple-ranking-widget .ranking-number,
.game-ranking-widget .ranking-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #f0f0f0;
  border-radius: 0px;
  font-size: 11px;
  font-weight: 700;
  color: #666;
  flex-shrink: 0;
}

/* 前三名特殊颜�?*/
.software-ranking-widget .ranking-item:nth-child(1) .ranking-number,
.apple-ranking-widget .ranking-item:nth-child(1) .ranking-number,
.game-ranking-widget .ranking-item:nth-child(1) .ranking-number {
  background: #ff6b35;
  color: white;
}

.software-ranking-widget .ranking-item:nth-child(2) .ranking-number,
.apple-ranking-widget .ranking-item:nth-child(2) .ranking-number,
.game-ranking-widget .ranking-item:nth-child(2) .ranking-number {
  background: #ff8c42;
  color: white;
}

.software-ranking-widget .ranking-item:nth-child(3) .ranking-number,
.apple-ranking-widget .ranking-item:nth-child(3) .ranking-number,
.game-ranking-widget .ranking-item:nth-child(3) .ranking-number {
  background: #ffa726;
  color: white;
}

.software-ranking-widget .software-name,
.apple-ranking-widget .software-name,
.game-ranking-widget .game-name {
  flex: 1;
  font-size: 12px;
  color: #333;
  font-weight: 400;
  line-height: 1.3;
}

/* ================================
   编程开发推荐模块样�?   ================================ */

/* 编程开发模块容�?- 统一外壳布局 */
.programming-section {
  background: #ffffff00;
  padding: 20px 0;
  margin-top: 0;
}

.programming-container {
  display: grid;
  grid-template-columns: 1fr;
  padding: 25px 20px;
  max-width: 1400px;
  margin: 0 auto;
  margin-top: 20px;
  padding-top: 20px;
}

/* 模块标题 - 统一外壳样式 */
.programming-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: white;
  border-radius: 0px;
  box-shadow: none;
  border-bottom: 1px solid var(--border-color);
}

.programming-header-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex: 1;
}

.programming-header-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex-shrink: 0;
}

.programming-section-header .section-title,
.programming-header-left .section-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
  white-space: nowrap;
  display: block;
  position: relative;
}

.programming-section-header .section-title::after,
.programming-header-left .section-title::after {
  display: none;
}

.programming-section-header .more-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
  white-space: nowrap;
}

.programming-section-header .more-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* 分类标签�?*/
.programming-category-tabs {
  display: flex;
  gap: 8px;
  align-items: center;
}

.programming-tab-button {
  background: transparent;
  border: none;
  border-radius: 0px;
  padding: 6px 16px;
  color: #666;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
}

.programming-tab-button:hover {
  background: transparent;
  color: #333;
  text-decoration: underline;
}

.programming-tab-button.active {
  background: transparent;
  color: #333;
  border: none;
  font-weight: 600;
  text-decoration: underline;
}

/* 三列布局 - 完全连接 */
.programming-three-column {
  display: grid;
  grid-template-columns: 1fr 1fr 320px;
  gap: 0;
  border-radius: 0px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* 编程开发列 - 完全连接 */
.programming-column {
  background: white;
  border-right: 1px solid #e0e0e0;
  overflow: hidden;
}

.programming-column:last-child {
  border-right: none;
}

.programming-grid-column {
  padding: 25px;
}

.programming-ranking-column {
  padding: 0;
}

/* 编程开发项目网�?*/
.programming-items-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.programming-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
  background: white;
  transition: var(--transition);
}

.programming-item-link:hover {
  background: #f8f9fa;
}

.programming-item {
  display: flex;
  align-items: center;
  padding: var(--spacing-md);
  background: white;
  transition: var(--transition);
  border-bottom: 1px solid #f0f0f0;
  gap: var(--spacing-md);
}

.programming-item:last-child {
  border-bottom: none;
}

.programming-item:hover {
  background: #f8f9fa;
}

.programming-icon {
  width: 48px;
  height: 48px;
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.programming-icon i {
  font-size: 24px;
  color: white;
}

.programming-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
}

.programming-main-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.programming-name {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.3;
}

.programming-version {
  font-size: 12px;
  color: #666;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 0px;
  font-weight: 500;
}

.programming-category {
  font-size: 12px;
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  padding: 4px 12px;
  border-radius: 0px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 热门推荐排行�?*/
.programming-ranking-widget {
  background: white;
  height: 100%;
  overflow: hidden;
}

.programming-ranking-widget .widget-title {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: var(--spacing-md);
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

/* 排行榜标签页 */
.programming-ranking-widget .ranking-tabs {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
}

.programming-ranking-widget .tab-button {
  flex: 1;
  background: #f8f9fa;
  border: none;
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: var(--transition);
  border-right: 1px solid #e0e0e0;
}

.programming-ranking-widget .tab-button:last-child {
  border-right: none;
}

.programming-ranking-widget .tab-button.active {
  background: white;
  color: #667eea;
  font-weight: 600;
}

.programming-ranking-widget .tab-button:hover:not(.active) {
  background: #e0e0e0;
  color: #333;
}

/* 编程开发排行榜列表 */
.programming-ranking-widget .ranking-list {
  position: relative;
  padding: var(--spacing-md);
}

.programming-ranking-widget .ranking-content {
  display: none;
}

.programming-ranking-widget .ranking-content.active {
  display: block;
}

.programming-ranking-widget .ranking-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.programming-ranking-widget .ranking-item:last-child {
  border-bottom: none;
}

.programming-ranking-widget .ranking-item:hover {
  background: #f8f9fa;
  margin: 0 -8px;
  padding: 8px;
  border-radius: 0px;
}

.programming-ranking-widget .ranking-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #f0f0f0;
  border-radius: 0px;
  font-size: 11px;
  font-weight: 700;
  color: #666;
  flex-shrink: 0;
}

/* 编程开发排行榜前三名特殊颜�?*/
.programming-ranking-widget .ranking-item:nth-child(1) .ranking-number {
  background: #667eea;
  color: white;
}

.programming-ranking-widget .ranking-item:nth-child(2) .ranking-number {
  background: #764ba2;
  color: white;
}

.programming-ranking-widget .ranking-item:nth-child(3) .ranking-number {
  background: #a8b9ff;
  color: white;
}

.programming-ranking-widget .tool-name {
  flex: 1;
  font-size: 12px;
  color: #333;
  font-weight: 400;
  line-height: 1.3;
}

/* 响应式设�?*/
@media (max-width: 768px) {
  .programming-header-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .programming-category-tabs {
    flex-wrap: wrap;
    gap: 6px;
  }

  .programming-tab-button {
    font-size: 12px;
    padding: 5px 12px;
  }

  .programming-three-column {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .programming-column {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }

  .programming-column:last-child {
    border-bottom: none;
  }

  .programming-ranking-column {
    order: -1;
  }
}

@media (max-width: 480px) {
  .programming-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .programming-header-left {
    width: 100%;
  }

  .programming-category-tabs {
    width: 100%;
    justify-content: flex-start;
  }

  .programming-item {
    padding: var(--spacing-sm);
    flex-wrap: wrap;
  }

  .programming-icon {
    width: 40px;
    height: 40px;
  }

  .programming-icon i {
    font-size: 18px;
  }

  .programming-main-info {
    min-width: 0;
  }

  .programming-name {
    font-size: 13px;
  }

  .programming-version {
    font-size: 11px;
    padding: 1px 6px;
  }

  .programming-category {
    font-size: 10px;
    padding: 2px 8px;
  }
}

/* ==========================================================================
   真实应用程序图标样式
   ========================================================================== */

/* 通用真实图标样式 */
.app-real-icon,
.programming-real-icon,
.software-real-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
  padding: 2px;
}

/* 应用图标容器样式 */
.app-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: transparent;
  transition: all 0.3s ease;
}

.app-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* 编程工具图标容器样式 */
.programming-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background-color: transparent;
  transition: all 0.3s ease;
}

.programming-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* 软件图标容器样式 */
.software-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background-color: transparent;
  transition: all 0.3s ease;
}

.software-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* 兼容性样式 - 确保Font Awesome图标仍然有效 */
.app-icon i,
.programming-icon i,
.software-icon i {
  font-size: 24px;
  color: inherit;
}

/* 悬停效果 */
.app-icon:hover,
.programming-icon:hover,
.software-icon:hover {
  transform: scale(1.05);
}

/* 分类图标样式 */
.default-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background-color: rgba(139, 92, 246, 0.1);
  transition: all 0.3s ease;
}

.category-real-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 4px;
}

.default-icon i {
  font-size: 32px;
  color: inherit;
}

.default-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}