/* ==========================================================================
   Nova AppStore / 精美应用商店 - 样式表
   严禁使用任何Emoji表情，全部使用现代SVG矢量图标
   ========================================================================== */

:root {
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  
  /* 基础明亮配色 - 精致浅色科技蓝风 */
  --bg-body: #f8fafc;
  --bg-header: rgba(255, 255, 255, 0.92);
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-subtle-hover: #e2e8f0;
  --border-color: #e2e8f0;
  --border-color-light: #f1f5f9;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-on-accent: #ffffff;
  
  --accent-primary: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --accent-glow: rgba(37, 99, 235, 0.16);
  
  --success: #10b981;
  --success-light: #ecfdf5;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --danger: #ef4444;
  
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 10px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.07);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container-width: 1240px;
}

[data-theme="dark"] {
  --bg-body: #0b0f19;
  --bg-header: rgba(15, 23, 42, 0.85);
  --bg-card: #131b2e;
  --bg-card-hover: #19233c;
  --bg-subtle: #1e293b;
  --bg-subtle-hover: #29354d;
  --border-color: #1e293b;
  --border-color-light: #162032;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --accent-primary: #38bdf8;
  --accent-hover: #7dd3fc;
  --accent-light: rgba(56, 189, 248, 0.14);
  --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  --accent-glow: rgba(14, 165, 233, 0.35);
  
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* SVG 图标通用规范 */
.svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.svg-star {
  color: #f59e0b;
}

/* 容器 */
.app-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   顶部导航栏
   ========================================================================== */
.header-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* 搜索框 - 居中对称、大方舒展 */
.search-container {
  position: relative;
  flex: 1;
  max-width: 580px;
  margin: 0 auto;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0 18px;
  height: 44px;
  transition: var(--transition);
}

.search-input-wrapper:focus-within {
  background: var(--bg-card);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-input-wrapper .search-icon {
  color: var(--text-muted);
  margin-right: 10px;
}

.search-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-clear-btn {
  display: none;
  padding: 4px;
  color: var(--text-muted);
  border-radius: 50%;
  transition: var(--transition);
}

.search-clear-btn:hover {
  color: var(--text-primary);
  background: var(--bg-subtle-hover);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  max-height: 360px;
  overflow-y: auto;
  display: none;
  z-index: 101;
}

.search-dropdown.active {
  display: block;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color-light);
  cursor: pointer;
  transition: var(--transition);
}

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

.search-item:hover {
  background: var(--bg-subtle);
}

.search-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}

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

.search-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
}

/* 导航链接与右侧操作栏 */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.theme-toggle-btn:hover {
  background: var(--bg-subtle-hover);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: rotate(15deg) scale(1.05);
}

/* ==========================================================================
   轮播图模块 (Banner Carousel)
   ========================================================================== */
.hero-carousel-section {
  padding: 24px 0 16px 0;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 60px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide-bg {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  z-index: 1;
  pointer-events: none;
}

.carousel-content {
  position: relative;
  z-index: 2;
  max-width: 540px;
  color: #ffffff;
}

.carousel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: #fbbf24;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.carousel-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  min-width: 0;
  width: 100%;
}

.carousel-title-info {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.carousel-app-icon {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.carousel-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.carousel-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
  min-width: 0;
}

.carousel-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fbbf24;
  font-weight: 700;
}

.carousel-intro {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-primary-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: var(--accent-gradient);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 20px var(--accent-glow);
  transition: var(--transition);
}

.btn-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px var(--accent-glow);
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

/* 轮播右侧截图展示 */
.carousel-preview {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 16px;
  perspective: 1000px;
}

.carousel-shot-card {
  width: 160px;
  height: 290px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  border: 3px solid rgba(255, 255, 255, 0.2);
  transform: rotateY(-8deg) rotateX(4deg);
  transition: var(--transition);
  background: #000;
}

.carousel-shot-card:nth-child(2) {
  margin-top: 20px;
  transform: rotateY(-5deg) rotateX(2deg);
}

.carousel-shot-card:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.05);
  z-index: 5;
}

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

/* 轮播控制器 */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.carousel-btn:hover {
  background: var(--accent-primary);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 60px;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: var(--transition);
}

.indicator-dot.active {
  width: 28px;
  background: #ffffff;
}

/* ==========================================================================
   分类快捷筛选栏 (全新高质感卡片筛选栏)
   ========================================================================== */
.category-nav-section {
  padding: 16px 0 12px 0;
  width: 100%;
}

.category-nav-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 10px 14px;
  box-shadow: var(--shadow-sm);
}

.category-chips-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px;
  transition: all 0.3s ease;
}

/* 展开全量模式 */
.category-nav-container.expanded {
  align-items: flex-start;
}

.category-nav-container.expanded .category-chips-list {
  flex-wrap: wrap;
  overflow-x: visible;
  max-height: none;
}

/* 细浅色横向滚动条 (分类筛选栏专用) */
.category-chips-list::-webkit-scrollbar {
  height: 2px;
}

.category-chips-list::-webkit-scrollbar-track {
  background: transparent;
}

.category-chips-list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 4px;
}

.category-chips-list::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.65);
}

.category-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-full);
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: var(--transition);
  user-select: none;
}

.category-expand-btn:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-lg);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  user-select: none;
}

.category-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.category-chip-name {
  letter-spacing: -0.01em;
}

.category-chip:hover {
  background: var(--bg-subtle-hover);
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.category-chip:hover .category-chip-icon {
  color: var(--accent-primary);
}

.category-chip.active {
  background: linear-gradient(135deg, var(--accent-primary), #6366f1);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 6px 16px var(--accent-glow);
  transform: translateY(-1px);
}

.category-chip.active .category-chip-icon {
  color: #ffffff;
}

.chip-count {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-muted);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-left: 2px;
}

.category-chip.active .chip-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ==========================================================================
   板块公用标题
   ========================================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 36px 0 20px 0;
  width: 100%;
  box-sizing: border-box;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.section-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--accent-primary);
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   搜索 / 标签 / 分类 专属页头 Banner (Page Header Banner)
   ========================================================================== */
.page-header-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  margin: 16px 0 24px 0;
  position: relative;
  overflow: hidden;
}

.page-header-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.search-banner::before {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, rgba(99, 102, 241, 0.02) 100%);
}

.tag-banner::before {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.04) 0%, rgba(99, 102, 241, 0.02) 100%);
}

.sort-banner::before {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.04) 0%, rgba(6, 182, 212, 0.02) 100%);
}

.page-header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.page-header-main {
  flex: 1;
  min-width: 0;
}

.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.badge-search {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-primary);
}

.badge-tag {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.badge-sort {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.page-header-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.page-header-title .text-accent {
  color: var(--accent-primary);
}

.tag-banner .page-header-title .text-accent {
  color: #8b5cf6;
}

.page-header-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.page-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.page-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

.page-stat-pill .text-accent {
  color: var(--accent-primary);
  font-weight: 800;
}

.btn-page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-page-back:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .page-header-banner {
    padding: 18px 16px;
    margin: 10px 0 16px 0;
    border-radius: var(--radius-md);
  }
  .page-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .page-header-title {
    font-size: 1.15rem;
  }
  .page-header-subtitle {
    font-size: 0.8rem;
  }
  .page-header-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .page-stat-pill,
  .btn-page-back {
    font-size: 0.76rem;
    padding: 4px 10px;
  }
}

.section-view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-primary);
  transition: var(--transition);
}

.section-view-all:hover {
  gap: 8px;
  color: var(--accent-hover);
}

/* ==========================================================================
   软件卡片样式 (精美现代卡片)
   ========================================================================== */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 20px;
  width: 100%;
}

.app-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  cursor: pointer;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-lg), 0 0 20px var(--accent-glow);
}

/* 卡片顶部信息 */
.card-header-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.card-icon-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}

.card-app-icon {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
}

.app-icon-fallback {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
}

.card-rank-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
}

.card-rank-badge.gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.card-rank-badge.silver {
  background: linear-gradient(135deg, #94a3b8, #64748b);
}

.card-rank-badge.bronze {
  background: linear-gradient(135deg, #b45309, #78350f);
}

.card-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  min-width: 0;
}

.card-app-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  min-width: 0;
  flex: 1;
}

.card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  background: var(--accent-light);
  color: var(--accent-primary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
}

.card-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  min-width: 0;
}

.card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.card-rating-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #f59e0b;
}

/* 卡片内容主体容器 */
.card-body-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

/* 卡片应用介绍 (统一双行展示，避免半截文字遮挡，溢出自动截断) */
.card-intro {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 3.1em;
  word-break: break-word;
}

/* 卡片应用截图横向微缩栏 (三栏并列，统一比例与高度) */
.card-screenshots-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
}

.card-screenshot-thumb {
  position: relative;
  width: 100%;
  height: 112px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card-screenshot-thumb:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.card-screenshot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.3s ease;
}

.card-screenshot-thumb:hover img {
  transform: scale(1.05);
}

/* 截图微缩栏占位与容错样式 */
.card-shot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 6px;
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg-card) 100%);
  color: var(--text-muted);
  font-size: 0.72rem;
  user-select: none;
  border-radius: 7px;
  transition: var(--transition);
}

.card-shot-placeholder .svg-icon {
  opacity: 0.6;
  color: var(--accent-primary);
  stroke: var(--accent-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.card-screenshot-thumb:hover .card-shot-placeholder .svg-icon {
  transform: scale(1.15);
  opacity: 0.9;
}

/* 卡片底部操作栏 */
.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  margin-top: auto;
  border-top: 1px solid var(--border-color-light);
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.card-version-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  max-width: 110px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
}

.card-version-badge span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.card-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-card-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: var(--accent-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
}

.btn-card-detail:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-card-download {
  display: none !important;
}

/* ==========================================================================
   Ajax 无刷新“加载更多”组件 (遵循 emlog_ajax_pagination_guide.md 规范)
   ========================================================================== */
.ajax-pagination-action {
  text-align: center;
  margin: 40px 0 20px 0;
  width: 100%;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 36px;
  background: var(--bg-card);
  color: var(--accent-primary);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  user-select: none;
}

.btn-load-more:hover:not(:disabled) {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--accent-glow);
}

.btn-load-more:active:not(:disabled) {
  transform: translateY(0);
}

.btn-load-more:disabled {
  background: var(--bg-subtle);
  color: var(--text-muted);
  border-color: var(--border-color-light);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

@keyframes ajaxSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ajax-spin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: ajaxSpin 0.8s linear infinite;
}

@keyframes ajaxCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ajax-fade-in {
  animation: ajaxCardFadeIn 0.35s ease forwards;
}

/* 移动端全屏搜索弹窗 */
.mobile-search-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-search-modal.active {
  display: block;
  opacity: 1;
}

.mobile-search-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.mobile-search-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  border-bottom: 1px solid var(--border-color);
  animation: slideDownSearch 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDownSearch {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.mobile-search-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-search-form {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0 12px;
  height: 38px;
}

.mobile-search-form:focus-within {
  border-color: var(--accent-primary);
  background: var(--bg-card);
}

.mobile-search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-left: 8px;
}

.mobile-search-clear {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.mobile-search-close-btn {
  border: none;
  background: transparent;
  color: var(--accent-primary);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 4px;
}

/* 顶部通用图标按钮 */
.header-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.header-action-btn:hover {
  background: var(--bg-subtle-hover);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.mobile-search-btn {
  display: none;
}

/* ==========================================================================
   正文页 / 详情页 (Detail Page)
   ========================================================================== */
.detail-view-container {
  display: none;
  padding: 24px 0 60px 0;
}

.detail-view-container.active {
  display: block;
}

/* 面包屑导航 */
.breadcrumbs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
}

.breadcrumb-link:hover {
  color: var(--accent-primary);
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 600;
}

/* 详情页头部卡片 - 宽度与下方 detail-card-box 完全保持一致 */
.detail-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

.detail-hero-main {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 28px;
}

.detail-icon-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

.detail-app-icon {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-color);
}

.detail-hero-info {
  flex: 1;
}

.detail-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.detail-app-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.detail-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--success-light);
  color: var(--success);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

/* 头部轻量标签链接 */
.detail-hero-tags,
.detail-tags-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero-tag-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.hero-tag-link:hover {
  background: var(--accent-primary);
  color: #ffffff;
  transform: translateY(-1px);
}

/* 技术规格卡片内的应用标签区 */
.specs-tags-block {
  border-top: 1px dashed var(--border-color);
  margin-top: 14px;
  padding-top: 14px;
}

.specs-tags-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.detail-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.detail-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-rating-score {
  font-weight: 800;
  color: #f59e0b;
  font-size: 1rem;
}

/* 详情操作按钮栏 */
.detail-actions-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-detail-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 20px var(--accent-glow);
  transition: var(--transition);
}

.btn-detail-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--accent-glow);
}

.btn-detail-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.btn-detail-secondary:hover {
  background: var(--bg-subtle-hover);
  color: var(--text-primary);
}

/* 安全保障横幅 */
.security-guarantee-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 18px 24px;
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color-light);
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.guarantee-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--success-light);
  color: var(--success);
}

.guarantee-text h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.guarantee-text p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* 详情主体布局 (左主区，右侧边栏) */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.detail-left-col,
.detail-right-col {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

/* 截图画廊 (Screenshots Showcase) */
.detail-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.detail-box-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.screenshots-gallery-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.screenshots-gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 8px 4px 16px 4px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.gallery-shot-item {
  flex-shrink: 0;
  width: 200px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  background: #000;
}

.gallery-shot-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-primary);
}

.gallery-shot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 应用详情介绍卡片定制增强 (detail-card-box app-intro-card) */
.app-intro-card {
  position: relative;
  overflow: hidden;
}

.detail-title-badge {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

/* 现代化应用介绍排版容器 */
.app-intro-content {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

/* 1. 首段导读概述特色横幅 (Lead Banner) */
.intro-lead-banner {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(99, 102, 241, 0.03) 100%);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.04);
}

.intro-lead-quote-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-primary), #6366f1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.intro-lead-text {
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* 2. 动态小节区域 (Section Container) */
.intro-feature-section {
  margin-bottom: 28px;
}

.intro-feature-section:last-child {
  margin-bottom: 0;
}

.intro-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.intro-section-badge {
  display: inline-block;
  width: 4px;
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent-primary) 0%, #6366f1 100%);
  flex-shrink: 0;
}

.intro-section-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.intro-section-desc {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

/* 3. 结构化特性卡片网格 (Feature Cards Grid) */
.intro-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.intro-feature-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.intro-feature-card:hover {
  background: var(--bg-card);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.intro-feature-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.intro-card-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-primary);
  background: rgba(37, 99, 235, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-family: monospace;
}

.intro-card-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.intro-card-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* 针对移动端适配特性卡片 */
@media (max-width: 640px) {
  .intro-feature-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .intro-lead-banner {
    padding: 16px;
    gap: 12px;
  }
  .intro-lead-quote-mark {
    width: 30px;
    height: 30px;
  }
  .intro-feature-card {
    padding: 14px 16px;
  }
}

/* 针对文章已有普通原生 HTML/Markdown 的后备样式 */
.app-intro-content p {
  margin-bottom: 16px;
  line-height: 1.85;
}

.app-intro-content h2,
.app-intro-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 14px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-intro-content h2::before,
.app-intro-content h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent-primary), #6366f1);
  flex-shrink: 0;
}

.app-intro-content ol {
  padding-left: 0;
  margin: 14px 0 20px 0;
  list-style: none;
  counter-reset: intro-counter;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-intro-content ol > li {
  counter-increment: intro-counter;
  position: relative;
  padding: 12px 18px 12px 46px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-secondary);
  transition: var(--transition);
}

.app-intro-content ol > li:hover {
  border-color: rgba(37, 99, 235, 0.35);
  background: var(--bg-card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.app-intro-content ol > li::before {
  content: counter(intro-counter);
  position: absolute;
  left: 14px;
  top: 13px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-intro-content ul {
  padding-left: 0;
  margin: 14px 0 20px 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-intro-content ul > li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.app-intro-content ul > li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
}

.app-intro-content strong,
.app-intro-content b {
  color: var(--text-primary);
  font-weight: 600;
}

.app-intro-content blockquote {
  margin: 16px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--accent-primary);
  background: var(--bg-subtle);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.app-intro-content code {
  background: var(--bg-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88rem;
  color: var(--accent-primary);
  border: 1px solid var(--border-color-light);
}

.intro-empty-tip {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* 更新日志 */
.changelog-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  border-left: 4px solid var(--accent-primary);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* 正文页相关标签板块 (位于应用详情介绍卡片底部) */
.detail-tags-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-color);
  flex-wrap: wrap;
}

.detail-tags-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.detail-tags-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.app-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 14px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.app-tag-chip .tag-hash {
  color: var(--accent-primary);
  font-weight: 800;
}

.app-tag-chip:hover {
  background: var(--accent-light);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* 侧边技术参数 */
.specs-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.specs-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.86rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color-light);
  min-width: 0;
}

.specs-label {
  color: var(--text-muted);
  flex-shrink: 0;
}

.specs-val {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
  word-break: break-all;
  min-width: 0;
}

/* 侧边规格栏中的标签展示 */
.specs-item.specs-tags-row {
  align-items: flex-start;
}

.specs-val-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 65%;
}

.specs-tag-chip {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 8px;
  background: var(--bg-subtle);
  color: var(--accent-primary);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
  word-break: break-all;
}

.specs-tag-chip:hover {
  background: var(--accent-light);
  border-color: var(--accent-primary);
}

/* 侧边相关推荐列表 */
.related-apps-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.related-app-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
}

.related-app-item:hover {
  background: var(--bg-subtle);
}

.related-app-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-color);
}

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

.related-app-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-app-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
}

/* ==========================================================================
   图片大图灯箱 (Lightbox Modal)
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-img-wrapper {
  max-width: 90vw;
  max-height: 85vh;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  overflow: hidden;
}

.lightbox-img-wrapper img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close-btn {
  position: absolute;
  top: 24px;
  right: 28px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

/* ==========================================================================
   下载模拟通知卡片 (Download Toast)
   ========================================================================== */
.download-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 16px 20px;
  width: 320px;
  z-index: 999;
  transform: translateY(150%);
  opacity: 0;
  transition: var(--transition);
}

.download-toast.active {
  transform: translateY(0);
  opacity: 1;
}

.toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.toast-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.toast-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 6px;
}

.toast-progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  width: 0%;
  transition: width 0.3s ease;
}

.toast-status-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 40px 0 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 页脚主体两栏布局 */
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr;
  gap: 40px;
  padding-bottom: 32px;
}

.footer-brand-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.footer-brand-desc {
  margin-bottom: 16px;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.footer-feature-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* 页脚链接列表 (快捷导航 / 友情链接) */
.footer-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 16px;
}

.footer-links-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  color: var(--text-secondary);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.footer-links-list a:hover {
  color: var(--accent-primary);
}

.footer-link-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
}

.footer-col-empty {
  font-size: 0.8rem;
}

/* 页脚底部版权条 */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 16px 0 20px 0;
  border-top: 1px solid var(--border-color-light);
  font-size: 0.78rem;
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--accent-primary);
}

.footer-bottom-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
}

/* 回到顶部浮动按钮 */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--accent-primary);
  color: #ffffff;
  transform: translateY(-3px);
}

/* ==========================================================================
   响应式深度优化 (Mobile / Tablet 适配)
   ========================================================================== */
@media (max-width: 1024px) {
  .carousel-wrapper {
    height: 360px;
  }
  .carousel-preview {
    display: none;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .security-guarantee-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* 基础容器与防溢出 */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
  }

  .app-container {
    padding: 0 12px !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  /* 顶部导航栏移动端极简精致化：单行布局，杜绝拥挤，搜索改为弹出框 */
  .header-navbar {
    padding: 10px 0;
    width: 100%;
    box-sizing: border-box;
  }

  .nav-inner {
    height: 44px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .brand-logo {
    gap: 8px;
    min-width: 0;
    flex-shrink: 1;
  }

  .brand-title {
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-subtitle {
    display: none;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
  }

  .header-action-btn {
    width: 36px;
    height: 36px;
  }

  .mobile-search-btn {
    display: inline-flex !important;
  }

  .theme-toggle-btn {
    width: 36px;
    height: 36px;
  }

  /* 移动端顶栏隐藏占空间的静态输入框，改为点击右上角搜索按钮全屏弹窗 */
  .search-container {
    display: none !important;
  }

  /* 隐藏特定组件在移动端的通用类 */
  .hide-on-mobile {
    display: none !important;
  }

  /* 轮播图移动端极致美化：原生现代 App Store Banner 卡片，去除冗余按钮，全卡触控响应 */
  .hero-carousel-section {
    padding: 6px 0 10px 0;
    width: 100%;
    box-sizing: border-box;
  }

  .carousel-wrapper {
    height: 120px;
    border-radius: var(--radius-lg);
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    cursor: pointer;
  }

  .carousel-slide {
    padding: 14px 16px;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .carousel-content {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    pointer-events: none;
  }

  .carousel-badge {
    margin-bottom: 8px;
    font-size: 0.68rem;
    padding: 2px 8px;
    align-self: flex-start;
    border-radius: var(--radius-full);
  }

  .carousel-title-row {
    gap: 12px;
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
  }

  .carousel-app-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .carousel-title-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }

  .carousel-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    color: #ffffff;
  }

  .carousel-meta-row {
    font-size: 0.72rem;
    gap: 6px 8px;
    margin-top: 0;
    flex-wrap: nowrap;
    color: rgba(255, 255, 255, 0.85);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .carousel-intro,
  .carousel-actions,
  .carousel-preview,
  .carousel-btn {
    display: none !important;
  }

  .carousel-indicators {
    right: 14px;
    left: auto;
    bottom: 10px;
    margin-bottom: 0;
  }

  .indicator-dot {
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.35);
  }

  .indicator-dot.active {
    width: 14px;
    border-radius: 9999px;
    background: #ffffff;
  }

  /* 分类筛选栏移动端极致触控体验 */
  .category-nav-section {
    padding: 6px 0 10px 0;
    width: 100%;
    box-sizing: border-box;
  }

  .category-nav-container {
    padding: 8px 10px;
    border-radius: var(--radius-lg);
  }

  .category-chips-list {
    gap: 6px;
    padding-bottom: 2px;
    width: 100%;
    box-sizing: border-box;
  }

  .category-chip {
    padding: 6px 12px;
    font-size: 0.8rem;
    gap: 6px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
  }

  .chip-count {
    font-size: 0.68rem;
    padding: 1px 5px;
  }

  /* 板块标题与排序 */
  .section-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 16px 0 8px 0;
    width: 100%;
    box-sizing: border-box;
  }

  .section-title {
    font-size: 1.05rem;
  }

  .section-subtitle {
    display: none;
  }

  .section-icon-badge {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .section-view-all,
  #sort-select {
    font-size: 0.76rem;
    padding: 3px 8px;
    align-self: center;
  }

  /* 软件卡片移动端极致精炼：原生应用商店风格（隐藏大图预览与冗余按钮，极度清爽且杜绝错位） */
  .apps-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px;
    width: 100% !important;
    box-sizing: border-box;
  }

  .app-card {
    padding: 12px 14px;
    border-radius: 14px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
  }

  .card-header-row {
    gap: 12px;
    margin-bottom: 4px;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
  }

  .card-icon-wrap {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 12px;
  }

  .card-app-icon {
    border-radius: 12px;
  }

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

  .card-title-row {
    gap: 6px;
    margin-bottom: 2px;
    align-items: center;
  }

  .card-app-name {
    font-size: 0.95rem;
    font-weight: 600;
  }

  .card-tag {
    font-size: 0.62rem;
    padding: 1px 5px;
    border-radius: 4px;
  }

  .card-meta-line {
    font-size: 0.72rem;
    gap: 6px;
    margin-bottom: 0;
    color: var(--text-muted);
  }

  /* 移动端将介绍收缩为精简的一行，既体现软件特征又不臃肿 */
  .card-intro {
    font-size: 0.75rem;
    height: auto;
    line-height: 1.4;
    -webkit-line-clamp: 1;
    margin: 4px 0 6px 0;
    color: var(--text-secondary);
  }

  /* 移动端彻底隐藏卡片内占空间的大截图，使首页浏览极其顺畅 */
  .card-screenshots-strip {
    display: none !important;
  }

  .card-footer-row {
    padding-top: 6px;
    margin-top: 2px;
    border-top: 1px dashed var(--border-color);
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .card-version-badge {
    font-size: 0.68rem;
    padding: 2px 7px;
    max-width: 110px;
    background: var(--bg-hover);
    border-radius: 9999px;
  }

  /* 移动端保留并美化“详情”胶囊按钮，隐藏冗余下载按钮 */
  .btn-card-detail {
    display: inline-flex !important;
    padding: 4px 12px;
    font-size: 0.76rem;
    font-weight: 600;
    border-radius: 9999px;
    height: 28px;
    align-items: center;
    box-sizing: border-box;
  }

  .btn-card-download {
    display: none !important;
  }

  /* ==========================================================================
     正文详情页移动端优化
     ========================================================================== */
  .detail-view-container {
    padding: 12px 0 30px 0;
    width: 100%;
    box-sizing: border-box;
  }

  .breadcrumbs-bar {
    font-size: 0.75rem;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .detail-left-col,
  .detail-right-col {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  /* detail-hero-card 与下方卡片宽度严格一致并完美适配移动端 */
  .detail-hero-card,
  .detail-card-box {
    padding: 14px 12px !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .detail-hero-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-bottom: 14px;
    width: 100%;
    box-sizing: border-box;
  }

  .detail-icon-wrap {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
  }

  .detail-app-icon {
    border-radius: 16px;
  }

  .detail-hero-info {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .detail-title-row {
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
    width: 100%;
    box-sizing: border-box;
  }

  .detail-app-name {
    font-size: 1.25rem;
    word-break: break-word;
  }

  .detail-verified-badge {
    font-size: 0.7rem;
    padding: 2px 7px;
    flex-shrink: 0;
  }

  .detail-meta-grid {
    justify-content: center;
    gap: 6px 10px;
    font-size: 0.75rem;
    margin-bottom: 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .detail-actions-row {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .btn-detail-download {
    width: 100% !important;
    justify-content: center;
    padding: 12px 14px;
    font-size: 0.9rem;
    box-sizing: border-box;
  }

  .security-guarantee-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
    background: transparent;
    border: none;
    width: 100%;
    box-sizing: border-box;
  }

  .guarantee-item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-md);
    padding: 10px 6px;
  }

  .guarantee-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
  }

  .guarantee-text {
    min-width: 0;
    overflow: hidden;
  }

  .guarantee-text h4 {
    font-size: 0.74rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 移动端隐藏冗长次级解释文本，只保留高辨识度徽章标题，极度清爽且杜绝溢出 */
  .guarantee-text p {
    display: none !important;
  }

  .screenshots-gallery-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  .screenshots-gallery {
    gap: 10px;
    padding: 2px 2px 10px 2px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-shot-item {
    width: 110px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .detail-box-title {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  .app-intro-content {
    font-size: 0.84rem;
    line-height: 1.6;
    word-break: break-word;
  }

  .specs-item {
    font-size: 0.78rem;
    padding-bottom: 8px;
  }

  .detail-tags-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
  }

  .app-tag-chip {
    font-size: 0.76rem;
    padding: 3px 10px;
  }

  /* 下载浮窗与回到顶部在移动端 */
  .download-toast {
    width: calc(100% - 20px) !important;
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    padding: 12px 14px;
    box-sizing: border-box;
  }

  .back-to-top {
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }

  .site-footer {
    padding: 24px 0 0 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-bottom: 24px;
  }

  .footer-features {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-bottom-meta {
    justify-content: center;
  }
}

/* ==========================================================================
   Emlog 原生翻页导航高质感美化
   ========================================================================== */
.pagination-container {
  margin-top: 36px;
  margin-bottom: 24px;
}

.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-wrap span,
.pagination-wrap a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 14px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
  box-sizing: border-box;
}

.pagination-wrap span {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--accent-glow);
  cursor: default;
}

.pagination-wrap a {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.pagination-wrap a:hover {
  background: var(--accent-light);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   截图与微缩图无图占位样式 (优雅现代渐变，纯矢量SVG)
   ========================================================================== */
.gallery-shot-item-placeholder {
  background: var(--bg-subtle) !important;
  cursor: default !important;
}

.gallery-shot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-subtle) 100%);
}

.card-shot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.68rem;
  background: var(--bg-subtle);
  border-radius: 6px;
}

/* ==========================================================================
   登录 / 注册 / 找回密码 弹窗 (Auth Modal)
   ========================================================================== */

/* 顶栏账号入口按钮 (纯图标，与搜索/主题切换按钮风格统一) */
.auth-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.auth-modal.active {
  visibility: visible;
  opacity: 1;
}

.auth-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.auth-modal-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 30px 28px 26px;
  transform: translateY(14px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.auth-modal.active .auth-modal-card {
  transform: translateY(0) scale(1);
}

.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.auth-modal-close:hover {
  background: var(--bg-subtle-hover);
  color: var(--text-primary);
}

.auth-modal-head {
  text-align: center;
  margin-bottom: 20px;
}

.auth-modal-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.auth-modal-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.auth-tabs {
  display: flex;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 20px;
}

.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.auth-tab.active {
  background: var(--bg-card);
  color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.auth-form.active {
  display: flex;
}

.auth-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-subtle);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  padding: 0 14px;
  transition: var(--transition);
}

.auth-field:focus-within {
  border-color: var(--accent-primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.auth-field-icon {
  display: inline-flex;
  color: var(--text-muted);
  flex: 0 0 auto;
}

.auth-field input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.92rem;
  padding: 11px 0;
  font-family: inherit;
}

.auth-field input::placeholder {
  color: var(--text-muted);
}

.auth-captcha-img {
  flex: 0 0 auto;
  width: 96px;
  height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: #ffffff;
  object-fit: cover;
}

.auth-send-code-btn {
  flex: 0 0 auto;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-light);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.auth-send-code-btn:hover:not(:disabled) {
  background: var(--accent-primary);
  color: #ffffff;
}

.auth-send-code-btn:disabled {
  border-color: var(--border-color);
  color: var(--text-muted);
  background: var(--bg-subtle);
  cursor: not-allowed;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  cursor: pointer;
}

.auth-check input {
  accent-color: var(--accent-primary);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.auth-text-link {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-primary);
  cursor: pointer;
  font-family: inherit;
}

.auth-text-link:hover {
  text-decoration: underline;
}

.auth-msg {
  font-size: 0.8rem;
  line-height: 1.5;
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  word-break: break-all;
}

.auth-msg-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
}

.auth-msg-success {
  background: var(--success-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success);
}

.auth-submit {
  margin-top: 2px;
  border: none;
  cursor: pointer;
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px;
  border-radius: var(--radius-md);
  letter-spacing: 2px;
  box-shadow: 0 6px 16px var(--accent-glow);
  transition: var(--transition);
  font-family: inherit;
}

.auth-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.auth-submit:active:not(:disabled) {
  transform: translateY(0);
}

.auth-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.auth-flow-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* 移动端：弹窗自底部升起的小抽屉 */
@media (max-width: 640px) {
  .auth-modal {
    padding: 0;
    align-items: flex-end;
  }

  .auth-modal-card {
    max-width: none;
    padding: 26px 20px 24px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border-bottom: none;
    max-height: 88vh;
    transform: translateY(40px);
  }
}

/* ==========================================================================
   用户中心 (User Center) — 应用商店风格账号中心
   ========================================================================== */
.uc-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin: 30px auto 40px;
}

.uc-sidebar {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.uc-profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.uc-profile-banner {
  height: 78px;
  background: var(--accent-gradient);
}

.uc-profile-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px 18px;
}

.uc-avatar {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 4px solid var(--bg-card);
  background: var(--bg-subtle);
  overflow: hidden;
  margin-top: -44px;
  box-shadow: var(--shadow-md);
}

.uc-avatar-fb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  background: var(--accent-light);
}

.uc-avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uc-nickname {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 10px 0 8px;
}

.uc-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.uc-credits-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--warning);
  background: var(--warning-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.uc-bio {
  margin-top: 12px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.uc-info {
  border-top: 1px solid var(--border-color-light);
  padding: 6px 20px 12px;
}

.uc-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border-color-light);
  font-size: 0.82rem;
}

.uc-info-row:last-child {
  border-bottom: none;
}

.uc-info-label {
  color: var(--text-muted);
  flex: 0 0 auto;
}

.uc-info-val {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

.uc-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 20px 20px;
}

.user-admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent-gradient);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 6px 16px var(--accent-glow);
  transition: var(--transition);
}

.user-admin-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.user-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--danger);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
}

.user-logout-btn:hover {
  background: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
}

.uc-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.uc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.uc-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: var(--transition);
}

.uc-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}

.uc-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent-primary);
}

.uc-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.uc-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.uc-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 22px 22px 24px;
}

.uc-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.uc-section-head > span:first-child {
  display: inline-flex;
  color: var(--accent-primary);
}

.uc-section-head h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-primary);
}

.uc-section-count {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.uc-empty {
  text-align: center;
  padding: 40px 10px;
  color: var(--text-muted);
}

.uc-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-subtle);
  margin-bottom: 14px;
}

.uc-empty p {
  font-size: 0.88rem;
  margin-bottom: 18px;
}

@media (max-width: 992px) {
  .uc-layout {
    grid-template-columns: 1fr;
    margin-top: 16px;
  }

  .uc-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .uc-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .uc-section-card {
    padding: 18px 16px 20px;
  }
}

/* ==========================================================================
   文章点赞 / 收藏 互动条 (Social Bar)
   ========================================================================== */
.detail-social-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 20px 0;
  border-top: 1px dashed var(--border-color);
  margin-top: 6px;
}

.detail-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.detail-social-btn:hover:not(:disabled) {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-1px);
}

.detail-social-btn:active:not(:disabled) {
  transform: translateY(0);
}

.detail-social-btn.active {
  border-color: var(--accent-primary);
  background: var(--accent-light);
  color: var(--accent-primary);
}

.detail-social-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.detail-social-count {
  font-weight: 800;
  min-width: 8px;
  text-align: center;
}

/* 轻量浮动提示 */
#mini-tip {
  position: fixed;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%) translateY(10px);
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  font-size: 0.84rem;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  pointer-events: none;
  max-width: 80vw;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

#mini-tip.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
  .detail-social-bar {
    gap: 10px;
    padding: 14px 12px 0;
  }

  .detail-social-btn {
    padding: 8px 16px;
    font-size: 0.84rem;
  }
}


