/* ===== 全局样式 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
}

/* ===== 全局防抖动：所有可交互元素 ===== */
button, a, [role="button"], [tabindex],
input[type="button"], input[type="submit"], input[type="reset"],
.btn, .rank-tab, .nav-item, .section-tab, .img-mode-btn,
.app-download-btn, .app-download-btn-lg, .fab-add, .tag-cloud-item,
.recommend-item, .app-item, .special-item, .hot-article-item, .rank-item,
.section-refresh-btn, .tag-refresh-btn, .recommend-retry-btn,
.backup-zone, .img-upload-area, .stat-card, .navtab-item,
.sidebar-menu-item, .topbar-link, .modal-close, .img-btn-clear,
.more-link, .tag-filter-clear, .logo, .site-mobile-nav-item,
.special-full-item, .icon-clickable, .icon-btn,
/* app-detail.html 专属可交互元素 */
.related-app-item, .ra-btn, .app-screenshot-item, .app-header,
/* detail.html 截图查看器专属元素 */
.ss-thumb-item, .ss-viewer-arrow, .ss-viewer-close, .ss-viewer-action-btn,
.ss-viewer-dot, .post-nav-link, .btn-main-download, .app-feedback-link,
.app-info-icon, .app-back, .app-header-icon, .rank-num {
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

/* 禁止 :active 伪类产生任何 transform / 布局变化（覆盖各组件局部样式） */
button:active, a:active, [role="button"]:active,
.btn:active, .rank-tab:active, .nav-item:active, .section-tab:active,
.img-mode-btn:active, .app-download-btn:active, .app-download-btn-lg:active,
.fab-add:active, .tag-cloud-item:active, .recommend-item:active,
.app-item:active, .special-item:active, .hot-article-item:active,
.rank-item:active, .section-refresh-btn:active, .tag-refresh-btn:active,
.recommend-retry-btn:active, .backup-zone:active, .img-upload-area:active,
.stat-card:active, .navtab-item:active, .sidebar-menu-item:active,
.topbar-link:active, .modal-close:active, .img-btn-clear:active,
.more-link:active, .tag-filter-clear:active, .logo:active,
.site-mobile-nav-item:active, .special-full-item:active,
.icon-clickable:active, .icon-btn:active,
#backToTop:active,
/* app-detail.html 专属 :active */
.related-app-item:active, .ra-btn:active, .app-screenshot-item:active,
.app-header:active, .app-header-icon:active, .app-back:active,
/* detail.html 截图查看器专属 :active */
.ss-thumb-item:active, .ss-viewer-arrow:active, .ss-viewer-close:active,
.ss-viewer-action-btn:active, .ss-viewer-dot:active, .post-nav-link:active,
.btn-main-download:active, .app-feedback-link:active, .app-info-icon:active,
.rank-num:active {
  transform: none !important;
}

a {
  color: #333;
  text-decoration: none;
}

a:hover {
  color: #ff6b35;
}

/* ===== 图标系统 ===== */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -0.125em;
  transition: color 0.2s, transform 0.2s, opacity 0.2s;
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
}

.icon-sm { font-size: 14px; }
.icon-md { font-size: 20px; }
.icon-lg { font-size: 24px; }
.icon-xl { font-size: 32px; }
.icon-2xl { font-size: 40px; }

/* 图标颜色变体 */
.icon-primary { color: #ff6b35; }
.icon-muted { color: #999; }
.icon-success { color: #52c41a; }
.icon-danger { color: #ff4d4f; }
.icon-warning { color: #faad14; }
.icon-info { color: #1890ff; }
.icon-white { color: #fff; }

/* 图标hover效果 */
.icon-clickable {
  cursor: pointer;
  transition: color 0.2s, transform 0.2s, opacity 0.2s;
}
.icon-clickable:hover {
  color: #ff6b35;
  transform: scale(1.1);
  opacity: 0.85;
}

/* 图标加载骨架 */
.icon-loading {
  animation: icon-pulse 1.2s ease-in-out infinite;
  border-radius: 50%;
  background: #f0f0f0;
}
@keyframes icon-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* 图标错误回退 */
.icon-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff6b35, #ff8f5e);
  color: #fff;
  font-weight: 600;
  border-radius: inherit;
  font-size: inherit;
}

/* 带图标的按钮 */
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: opacity 0.2s, color 0.2s;
}
.icon-btn:hover { opacity: 0.8; }

/* SVG 图标精灵容器隐藏 */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ===== 顶部导航栏 ===== */
.header {
  background-color: #fff;
  border-bottom: 2px solid #ff6b35;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ff6b35;
  text-decoration: none;
  cursor: pointer;
}

.logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff6b35, #ff8f5e);
  overflow: hidden;
}
.logo-icon svg {
  width: 100%;
  height: 100%;
}
.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: #ff6b35;
  line-height: 1.2;
}

.logo-sub {
  font-size: 12px;
  color: #999;
}

.logo-domain {
  display: block;
  font-size: 11px;
  color: #aaa;
  font-weight: 400;
  margin-top: 2px;
  text-decoration: none;
  transition: color 0.2s;
}
.logo-domain:hover {
  color: #ff6b35;
  text-decoration: underline;
}

.nav-tabs {
  display: flex;
  gap: 4px;
}

.nav-tabs .nav-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  font-size: 15px;
  color: #666;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.nav-tabs .nav-item .nav-icon {
  font-size: 17px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav-tabs .nav-item:hover {
  color: #ff6b35;
  background-color: #fff5f0;
}

.nav-tabs .nav-item:hover .nav-icon {
  transform: scale(1.15);
  transition: transform 0.2s;
}

.nav-tabs .nav-item.active {
  color: #ff6b35;
  font-weight: 600;
  background-color: #fff5f0;
}

/* 导航图标 - 自定义图片图标 */
.nav-icon-img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.nav-icon-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.nav-icon-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== 主内容区 ===== */
.main-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 15px;
}

.tab-page {
  display: none;
}

.tab-page.active {
  display: block;
}

/* ===== 标签过滤横幅 ===== */
.tag-filter-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff5f0;
  border: 1px solid #ffccaa;
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #ff6b35;
}
.tag-filter-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.tag-filter-banner strong {
  font-weight: 600;
}
.tag-filter-clear {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: #fff;
  border: 1px solid #ffccaa;
  border-radius: 6px;
  color: #ff6b35;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.tag-filter-clear:hover {
  background: #ff6b35;
  color: #fff;
  border-color: #ff6b35;
}

/* ===== 空过滤结果提示 ===== */
.empty-filter-hint {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 14px;
}

/* ===== 内容区块 ===== */
.section-block {
  background-color: #fff;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.section-title h2 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  position: relative;
  padding-left: 12px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-title h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  background-color: #ff6b35;
  border-radius: 2px;
}

.more-link {
  font-size: 14px;
  color: #999;
  cursor: pointer;
}

.more-link:hover {
  color: #ff6b35;
}

/* ===== 推荐区域网格 ===== */
.app-recommend-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.recommend-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px;
  border-radius: 8px;
  background-color: #fff;
  transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.recommend-item:hover {
  transform: translateY(-3px);
  background-color: var(--hover-bg-recommend, transparent);
  box-shadow: 0 4px 12px rgba(255,107,53,0.1);
}

.recommend-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6b35, #ff8f5e);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.recommend-item:hover .recommend-icon {
  transform: scale(1.08);
  box-shadow: 0 3px 8px rgba(255,107,53,0.3);
}
.recommend-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.recommend-icon .icon-fallback {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  font-size: 16px;
}

/* 图标加载占位 */
.icon-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: inherit;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
}

/* APP图标图片 - 覆盖在占位符上方，默认显示等待加载 */
.app-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
  position: relative;
  z-index: 2;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.recommend-name {
  font-size: 13px;
  color: #333;
  font-weight: 500;
  text-align: center;
  margin-bottom: 4px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.recommend-downloads {
  font-size: 11px;
  color: #999;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
}

.recommend-downloads .recommend-count {
  display: block;
  color: #bbb;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.recommend-downloads .recommend-go-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 10px;
  background-color: #ff6b35;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  border-radius: 10px;
  white-space: nowrap;
}

.recommend-downloads .recommend-go-btn svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.recommend-downloads .recommend-go-btn:hover {
  background-color: #e55a2b;
}

/* ===== APP列表样式 ===== */
.app-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background-color: #fff;
  transition: background-color 0.2s, transform 0.15s;
  cursor: pointer;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.app-item:hover {
  background-color: var(--hover-bg-latestApp, transparent);
  transform: translateX(2px);
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff6b35, #ff8f5e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.app-item:hover .app-icon {
  transform: scale(1.06);
  box-shadow: 0 3px 8px rgba(255,107,53,0.3);
}
.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}
.app-icon .icon-fallback {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  font-size: 18px;
}

.app-info {
  flex: 1;
  min-width: 0;
}

.app-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-desc {
  font-size: 13px;
  color: #999;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-meta {
  font-size: 12px;
  color: #bbb;
  margin-top: 4px;
}

.app-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  background-color: #ff6b35;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
  flex-shrink: 0;
  border: none;
  outline: none;
}

.app-download-btn:hover {
  background-color: #e55a2b;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(255,107,53,0.35);
}

.app-download-btn:active {
  transform: translateY(0);
}

.app-download-btn .icon {
  font-size: 15px;
}

/* ===== 手赚专题列表（首页卡片式） ===== */
.special-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.special-card-item {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border: 1px solid #f0f0f0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.special-card-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  background-color: var(--hover-bg-special, #fff);
}

.special-card-cover {
  width: 100%;
  height: 140px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff5f2, #ffe8e0);
  display: flex;
  align-items: center;
  justify-content: center;
}
.special-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.special-card-body {
  padding: 14px 16px;
}

.special-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.special-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.special-card-count {
  flex-shrink: 0;
  font-size: 12px;
  color: #ff6b35;
  background: #fff5f2;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.special-card-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.special-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.special-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.special-card-tag {
  font-size: 11px;
  color: #999;
  background: #f5f5f5;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.special-card-time {
  font-size: 11px;
  color: #bbb;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== 手赚专题完整列表（导航页） ===== */
.special-full-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.special-full-item {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border: 1px solid #f0f0f0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.special-full-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  background-color: var(--hover-bg-special, #fff);
}

.special-full-cover {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff5f2, #ffe8e0);
  display: flex;
  align-items: center;
  justify-content: center;
}
.special-full-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.special-full-body {
  padding: 16px 18px;
}

.special-full-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.special-full-title {
  font-size: 17px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.special-full-count {
  flex-shrink: 0;
  font-size: 12px;
  color: #ff6b35;
  background: #fff5f2;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.special-full-desc {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.special-full-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.special-full-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.special-full-tag {
  font-size: 12px;
  color: #999;
  background: #f5f5f5;
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.special-full-time {
  font-size: 12px;
  color: #bbb;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== 页脚 ===== */
.footer {
  background-color: #fff;
  border-top: 1px solid #eee;
  padding: 20px 15px;
  margin-top: 20px;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
  font-size: 14px;
}

.footer-links a {
  color: #666;
}

.footer-links a:hover {
  color: #ff6b35;
}

.friend-links {
  margin-bottom: 12px;
  font-size: 13px;
  color: #999;
}

.friend-links a {
  color: #999;
  margin: 0 8px;
}

.friend-links a:hover {
  color: #ff6b35;
}

.footer-info {
  font-size: 12px;
  color: #bbb;
  line-height: 1.8;
}

.footer-domain {
  color: #ff6b35;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}
.footer-domain:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #ff6b35;
  margin-bottom: 4px;
}

.footer-email a {
  color: #ff6b35;
  text-decoration: none;
}

.footer-email a:hover {
  text-decoration: underline;
}

.footer-email .icon {
  font-size: 14px;
}

/* ===== 移动端底部导航（仅首页使用，admin页面有自己的移动端导航） ===== */
.site-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  border-top: 1px solid #eee;
  z-index: 100;
  padding: 6px 0;
}

.site-mobile-nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.site-mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0;
  cursor: pointer;
  transition: color 0.2s;
  color: #999;
}

.site-mobile-nav-item.active {
  color: #ff6b35;
}

.site-mobile-nav-icon {
  font-size: 20px;
  margin-bottom: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.site-mobile-nav-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-mobile-nav-label {
  font-size: 12px;
}

/* ===== 响应式适配 ===== */
@media (max-width: 768px) {
  .header-inner {
    height: 50px;
    padding: 0 10px;
  }

  .logo-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .logo-sub {
    display: none;
  }

  .logo-domain {
    display: none;
  }

  .logo-text {
    font-size: 18px;
  }

  .nav-tabs {
    gap: 3px;
    flex: 1;
    justify-content: space-around;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .nav-tabs .nav-item {
    padding: 6px 8px;
    font-size: 13px;
    gap: 2px;
    flex-shrink: 0;
  }

  .nav-tabs .nav-item .nav-icon {
    font-size: 15px;
  }

  .main-content {
    padding: 10px;
  }

  .section-block {
    padding: 12px;
    margin-bottom: 10px;
  }

  .app-recommend-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }

  .recommend-item {
    padding: 8px 4px;
  }

  .recommend-icon {
    width: 44px;
    height: 44px;
    font-size: 14px;
  }

  .recommend-name {
    font-size: 12px;
  }

  .app-item {
    padding: 10px;
  }

  .app-icon {
    width: 50px;
    height: 50px;
  }

  .app-name {
    font-size: 15px;
  }

  .app-desc {
    font-size: 12px;
  }

  .site-mobile-nav {
    display: block;
  }

  body {
    padding-bottom: 65px;
  }

  .main-content {
    padding-bottom: 65px;
  }

  /* 手赚专题卡片 - 768px */
  .special-card-cover { height: 120px; }
  .special-card-body { padding: 12px 14px; }
  .special-card-title { font-size: 15px; }
  .special-card-desc { font-size: 12px; }
  .special-full-cover { height: 140px; }
  .special-full-body { padding: 14px 16px; }
  .special-full-title { font-size: 16px; }
  .special-full-desc { font-size: 13px; }
}

@media (max-width: 480px) {
  .logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }

  .logo-text {
    font-size: 16px;
  }

  .nav-tabs .nav-item {
    padding: 5px 6px;
    font-size: 12px;
    gap: 2px;
  }

  .nav-tabs .nav-item .nav-icon {
    font-size: 14px;
  }

  .app-recommend-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }

  .recommend-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 13px;
  }

  .recommend-name {
    font-size: 11px;
  }

  .recommend-downloads {
    font-size: 9px;
  }
  .recommend-downloads .recommend-count {
    font-size: 9px;
  }
  .recommend-downloads .recommend-go-btn {
    font-size: 10px;
    padding: 2px 7px;
  }

  .app-item {
    padding: 8px;
    gap: 10px;
  }

  .app-icon {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .app-name {
    font-size: 14px;
  }

  .app-download-btn {
    padding: 5px 12px;
    font-size: 13px;
  }

  .section-title h2 {
    font-size: 16px;
  }

  /* 手赚专题卡片 - 480px */
  .special-card-cover { height: 100px; }
  .special-card-body { padding: 10px 12px; }
  .special-card-title { font-size: 14px; }
  .special-card-desc { font-size: 11px; }
  .special-card-tag { font-size: 10px; padding: 1px 6px; }
  .special-card-time { font-size: 10px; }
  .special-card-count { font-size: 10px; padding: 2px 6px; }
  .special-full-cover { height: 120px; }
  .special-full-body { padding: 12px 14px; }
  .special-full-title { font-size: 15px; }
  .special-full-desc { font-size: 12px; }
  .special-full-tag { font-size: 10px; padding: 2px 7px; }
  .special-full-time { font-size: 11px; }
}

/* ===== 移动端底部导航显示 ===== */
@media (max-width: 600px) {
  .site-mobile-nav {
    display: block;
  }

  body {
    padding-bottom: 0;
  }
  
  .main-content {
    padding-bottom: 65px;
  }
  
  /* 响应式：模块标题字号缩小 */
  .section-title h2 {
    font-size: 15px;
  }
}

/* ===== 回到顶部按钮 - 内容区右侧垂直居中悬浮（全局通用组件，right 由 JS 动态计算） ===== */
#backToTop {
  position: fixed;
  top: 50%;
  transform: translateY(-50%) scale(0.8);
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 107, 53, 0.9);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(255, 107, 53, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s, box-shadow 0.2s;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

#backToTop:hover {
  background: rgba(229, 90, 43, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2), 0 0 0 5px rgba(255, 107, 53, 0.15);
  transform: translateY(-50%) scale(1.1);
}

#backToTop:active {
  transform: translateY(-50%) scale(0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12), 0 0 0 2px rgba(255, 107, 53, 0.08);
}

#backToTop svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}

@media (max-width: 768px) {
  #backToTop {
    width: 44px;
    height: 44px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12), 0 0 0 2px rgba(255, 107, 53, 0.08);
  }

  #backToTop svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  #backToTop {
    width: 40px;
    height: 40px;
  }

  #backToTop svg {
    width: 18px;
    height: 18px;
  }
}


/* ===== 推荐区域刷新按钮 ===== */
.section-refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  color: #888;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  padding: 0;
  flex-shrink: 0;
}
.section-refresh-btn:hover {
  background: #fff5f0;
  color: #ff6b35;
  border-color: #ff6b35;
}
.section-refresh-btn:active {
  background: #fff5f0;
  color: #ff6b35;
  border-color: #ff6b35;
}
.section-refresh-btn.spinning svg {
  animation: refreshSpin 0.7s linear infinite;
}

@keyframes refreshSpin {
  to { transform: rotate(360deg); }
}

/* ===== 推荐区域下拉刷新指示器 ===== */
.pull-indicator {
  height: 0;
  overflow: hidden;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #999;
  transition: height 0.25s ease, opacity 0.25s ease;
  background: transparent;
}
.pull-indicator.visible {
  opacity: 1;
}
.pull-indicator.ready {
  color: #ff6b35;
}
.pull-indicator.ready .pull-spinner {
  transform: rotate(180deg);
}
.pull-indicator.refreshing {
  color: #ff6b35;
}
.pull-indicator.refreshing .pull-spinner {
  animation: refreshSpin 0.7s linear infinite;
}
.pull-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ddd;
  border-top-color: #ff6b35;
  border-radius: 50%;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.pull-text {
  white-space: nowrap;
}

/* ===== 推荐区域加载状态 ===== */
.recommend-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 20px;
  color: #999;
  font-size: 14px;
  grid-column: 1 / -1;
}
.recommend-loading-spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 2.5px solid #eee;
  border-top-color: #ff6b35;
  border-radius: 50%;
  animation: refreshSpin 0.7s linear infinite;
  flex-shrink: 0;
}

/* ===== 推荐区域错误/空状态 ===== */
.recommend-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  color: #999;
  font-size: 14px;
  grid-column: 1 / -1;
  gap: 12px;
}
.recommend-error-icon {
  color: #ddd;
  margin-bottom: 4px;
}
.recommend-error p {
  margin: 0;
}
.recommend-retry-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 24px;
  background: linear-gradient(135deg, #ff6b35, #ff8f5e);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(255,107,53,0.2);
}
.recommend-retry-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255,107,53,0.3);
}
.recommend-retry-btn:active {
  transform: translateY(0);
}

/* ===== 推荐卡片入场动画 ===== */
@keyframes recommendFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Toast提示 ===== */
.sync-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 24px;
  background: rgba(0,0,0,0.78);
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  white-space: nowrap;
}
.sync-toast.show {
  opacity: 1;
}

/* 响应式：推荐区域加载/错误状态 */
@media (max-width: 768px) {
  .recommend-loading,
  .recommend-error {
    padding: 36px 16px;
    font-size: 13px;
  }
  .recommend-loading-spinner {
    width: 20px;
    height: 20px;
  }
  .recommend-retry-btn {
    padding: 7px 20px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .recommend-loading,
  .recommend-error {
    padding: 28px 12px;
    font-size: 12px;
  }
  .recommend-loading-spinner {
    width: 18px;
    height: 18px;
  }
}

/* ===== 专题详情页 - 富文本内容中的APP卡片（全局样式） ===== */
.topic-content .topic-app-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #fafafa;
  border-radius: 10px;
  margin: 14px 0;
  border: 1px solid #f0f0f0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.topic-content .topic-app-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.topic-content .topic-app-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6b35, #ff8f5e);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.topic-content .topic-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  margin: 0;
}
.topic-content .topic-app-info {
  flex: 1;
  min-width: 0;
}
.topic-content .topic-app-name {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
}
.topic-content .topic-app-desc {
  font-size: 12px;
  color: #999;
  margin-bottom: 2px;
}
.topic-content .topic-app-meta {
  font-size: 11px;
  color: #bbb;
}
.topic-content .topic-app-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: #ff6b35;
  color: #fff !important;
  font-size: 13px;
  font-weight: 500;
  border-radius: 20px;
  text-decoration: none !important;
  border-bottom: none !important;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.topic-content .topic-app-btn:hover {
  background: #e55a2b;
  transform: scale(1.03);
}
.topic-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 12px 0;
  display: block;
}
.topic-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 22px 0 10px;
  padding-left: 10px;
  position: relative;
}
.topic-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: #ff6b35;
  border-radius: 2px;
}
.topic-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 24px 0 12px;
  padding-left: 12px;
  border-left: 4px solid #ff6b35;
  line-height: 1.4;
}
.topic-content blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  background: #fff9f6;
  border-left: 3px solid #ff6b35;
  border-radius: 0 6px 6px 0;
  color: #666;
  font-size: 15px;
}
.topic-content a {
  color: #ff6b35;
  text-decoration: none;
  border-bottom: 1px dashed #ff6b35;
}
.topic-content a:hover { border-bottom-style: solid; }

@media (max-width: 768px) {
  .topic-content .topic-app-card { padding: 12px; gap: 10px; }
  .topic-content .topic-app-icon { width: 44px; height: 44px; }
  .topic-content .topic-app-btn { padding: 6px 14px; font-size: 12px; }
  .topic-content h2 { font-size: 18px; }
  .topic-content h3 { font-size: 16px; }
}

@media (max-width: 480px) {
  .topic-content .topic-app-card { padding: 10px; gap: 8px; }
  .topic-content .topic-app-icon { width: 40px; height: 40px; border-radius: 10px; }
  .topic-content .topic-app-icon img { border-radius: 10px; }
  .topic-content .topic-app-name { font-size: 14px; }
  .topic-content .topic-app-btn { padding: 5px 12px; font-size: 11px; }
}