/* PC 端主题样式（商业化风格） */
:root {
  --brand: #e11d48;
  --brand-dark: #b91c1c;
  --text: #2d2f36;
  --muted: #6c757d;
  --bg: #f5f6fa;
  --card-bg: #ffffff;
  --border: #e9ecef;
  --link: #e11d48;
  --ease-standard: cubic-bezier(.4,0,.2,1);
}

html, body { height: 100%; }
body { background: var(--bg); color: var(--text); font-family: "Segoe UI", Tahoma, Arial, sans-serif; }

/* 夜间模式变量覆盖（兼容 .dark-mode） */
body[data-theme="dark"], body.dark-mode {
  --bg: #121317;
  --text: #e6e6e6;
  --muted: #a0a4ad;
  --card-bg: #1a1c22;
  --border: #2a2d36;
  --brand: #ff4d6d;
  --brand-dark: #e11d48;
  --link: #ff8fa3;
}
/* 暗色模式分页禁用态更清晰 */
body[data-theme="dark"] .pagination .page-item.disabled .page-link { background: #22272e; color: #7f8790; border-color: #2f3640; }
/* 暗色模式禁用提示文案 */
body[data-theme="dark"] .pagination .page-item.disabled .page-link::after {
  color: #9aa0a6;
  background: #1f242c;
  border-color: #3a404a;
  box-shadow: 0 6px 14px rgba(0,0,0,0.5);
}

/* 容器与栅格 */
.pc-container { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
/* 移动端为底部导航留白 */
@media (max-width: 768px) {
  .pc-container { padding-bottom: 100px; }
}

/* 头部导航（玻璃态） */
.pc-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.85); box-shadow: 0 6px 20px rgba(0,0,0,0.06); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid rgba(0,0,0,0.06); }
.pc-header .bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.pc-header .brand { font-size: 20px; font-weight: 800; color: var(--brand); text-decoration: none; letter-spacing: .3px; }
.pc-header nav a { color: var(--text); text-decoration: none; margin-left: 18px; font-weight: 600; padding: 10px 2px; border-bottom: 2px solid transparent; transition: color .18s var(--ease-standard), border-color .18s var(--ease-standard); }
.pc-header nav a:hover { color: var(--brand); border-bottom-color: var(--brand); }
.pc-header nav a.active { color: var(--brand); border-bottom-color: var(--brand); }

/* 页脚 */
.pc-footer { background: #fff; border-top: 1px solid var(--border); margin-top: 40px; }
.pc-footer .inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; padding: 32px 0; }
.pc-footer h6 { margin-bottom: 12px; font-weight: 700; color: var(--brand-dark); }
.pc-footer p, .pc-footer a { color: var(--muted); text-decoration: none; }
.pc-footer a:hover { color: var(--brand); }
.pc-footer .copyright { border-top: 1px solid var(--border); padding: 14px 0; color: var(--muted); }

/* 内容卡片与分区 */
.section { 
    background: var(--card-bg); 
    border: 1px solid var(--border); 
    border-radius: 16px; 
    padding: 22px; 
    margin: 20px auto; 
    box-shadow: 0 12px 28px rgba(0,0,0,0.06); 
    /* 添加微妙的光泽效果 */
    position: relative;
    overflow: hidden;
}
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(255,255,255,0) 100%);
    opacity: 0.7;
}
.sec-title { 
    font-size: 18px; 
    font-weight: 700; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 12px; 
    /* 添加标题下划线 */
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.sec-title .btn-link { 
    color: var(--brand); 
    font-size: 14px;
    transition: all 0.2s ease;
}
.sec-title .btn-link:hover {
    color: var(--brand-dark);
    transform: translateY(-1px);
}

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1200px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }

/* 卡片样式增强 */
.card { 
    background:#fff; 
    border:1px solid var(--border); 
    border-radius: 12px; 
    padding: 12px; 
    transition: box-shadow .2s var(--ease-standard), transform .2s var(--ease-standard); 
    position: relative; 
    overflow: hidden;
    /* 添加微妙的光泽效果 */
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.5) 50%, 
        rgba(255,255,255,0) 100%);
    opacity: 0.6;
}
.card:hover { 
    box-shadow: 0 12px 24px rgba(0,0,0,0.08); 
    transform: translateY(-2px); 
}
.thumb { 
    width: 100%; 
    height: 140px; 
    object-fit: cover; 
    background: #fafafa; 
    border-radius: 8px; 
    transition: transform 0.3s ease;
}
.card:hover .thumb {
    transform: scale(1.02);
}
.text-ellipsis { 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

/* 骨架屏 */
.skeleton-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.skeleton-thumb { width: 100%; height: 140px; border-radius: 8px; background: linear-gradient(90deg, rgba(0,0,0,0.06), rgba(0,0,0,0.02), rgba(0,0,0,0.06)); animation: shimmer 1.2s infinite; }
.skeleton-line { height: 14px; border-radius: 7px; margin-top: 10px; background: linear-gradient(90deg, rgba(0,0,0,0.06), rgba(0,0,0,0.02), rgba(0,0,0,0.06)); animation: shimmer 1.2s infinite; }
@keyframes shimmer { 0% { background-position: -200px 0; } 100% { background-position: 200px 0; } }

/* 按钮加载态统一 */
.btn.is-loading { position: relative; opacity: 0.88; }
.btn.is-loading::after { content: ""; display: inline-block; width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--brand); border-radius: 50%; margin-left: 6px; vertical-align: middle; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 高质感主按钮（红色渐变） */
.btn-primary {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  border-color: #e11d48;
  color: #fff;
  box-shadow: 0 10px 20px rgba(225, 29, 72, 0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #fb7185, #f43f5e);
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.35);
}

/* 兼容：移动端底部导航在 PC 端隐藏，已在 common.css 控制 */

/* 响应式：移动端隐藏 PC 组件，PC 端增强布局 */
@media (max-width: 991.98px) {
  .pc-header, .pc-footer { display: none !important; }
  .pc-container .breadcrumb { display: none !important; }
}
@media (min-width: 992px) {
  /* 展示 PC 页眉页脚 */
  .pc-header, .pc-footer { display: block; }
  /* 容器在 PC 端放宽最大宽度 */
  .container { max-width: 1140px !important; }
  /* 顶部筛选条悬浮固定 */
  .pc-sticky { position: sticky; top: 72px; z-index: 12; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.05); border-radius: 12px; padding: 10px; transition: border-radius .18s cubic-bezier(.4,0,.2,1), padding .12s cubic-bezier(.4,0,.2,1), box-shadow .18s cubic-bezier(.4,0,.2,1), background-color .18s cubic-bezier(.4,0,.2,1); }
  .pc-sticky.is-stuck { border-radius: 8px; padding: 6px; }
  .pc-sticky.is-stuck { box-shadow: 0 8px 20px rgba(0,0,0,0.12); background: rgba(255,255,255,0.95); backdrop-filter: saturate(160%) blur(4px); padding: 6px 0; border-radius: 10px; }
  .pc-sticky .active { color: var(--brand) !important; font-weight: 700; }
  .pc-summary { display:flex; align-items:center; gap:14px; color: var(--muted); margin: 8px auto 12px; }
  .pc-summary .tag { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 4px 10px; color: var(--text); }
  /* 分类条收缩动画 */
  .pc-sticky .cat-nav-item img { transition: width .16s cubic-bezier(.4,0,.2,1), height .16s cubic-bezier(.4,0,.2,1); transition-delay: .06s; }
  .pc-sticky.is-stuck .cat-nav-item img { width: 30px; height: 30px; }
  .pc-sticky .cat-nav-item { transition: font-size .18s cubic-bezier(.4,0,.2,1); }
  .pc-sticky.is-stuck .cat-nav-item { font-size: .92rem; }
  /* 产品列表与游戏列表改为栅格布局 */
  #product-list, #game-list { display: grid; grid-template-columns: repeat(3, minmax(260px,1fr)); gap: 16px; }
  @media (max-width: 1250px) { #product-list, #game-list { grid-template-columns: repeat(2, minmax(260px,1fr)); } }
  /* 卡片交互增强 */
  .product-card, .card { transition: box-shadow .2s var(--ease-standard), transform .2s var(--ease-standard); border: 1px solid var(--border); border-radius: 12px; }
  .product-card:hover { box-shadow: 0 12px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }

  /* 商业化视觉增强：卡片/按钮/骨架屏 */
  .product-card { background: var(--card-bg); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
  .product-card .thumb { width: 100%; height: 160px; object-fit: cover; border-bottom: 1px solid var(--border); background: #fafafa; }
  .product-card .meta { padding: 10px 12px; color: var(--text); }
  .product-card .actions { display: flex; gap: 8px; padding: 0 12px 12px; }
  .product-card .actions .btn { flex: 1; }

  /* 统一按钮加载态：中心旋转指示器 */
  .btn.btn-loading { position: relative; }
  .btn.btn-loading.is-loading { opacity: .96; }
  .btn.btn-loading.is-loading::after {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: 16px; height: 16px;
    margin-left: -8px; margin-top: -8px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    border-top-color: #fff;
    animation: brandSpin .8s linear infinite;
    pointer-events: none;
  }
  .btn.btn-outline-primary.btn-loading.is-loading::after,
  .btn.btn-outline-secondary.btn-loading.is-loading::after {
    border-color: var(--brand);
    border-top-color: transparent;
  }
  @keyframes brandSpin {
    0% { transform: translateZ(0) rotate(0deg); }
    100% { transform: translateZ(0) rotate(360deg); }
  }

  /* 骨架屏（skeleton）商业化样式 */
  .skeleton-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
  .skeleton-thumb, .skeleton-line {
    background: linear-gradient(90deg, #f2f3f5 25%, #eceff1 37%, #f2f3f5 63%);
    background-size: 400% 100%;
    animation: skeletonShimmer 1.2s ease-in-out infinite;
  }
  .skeleton-thumb { height: 140px; border-radius: 10px; }
  .skeleton-line { height: 12px; border-radius: 6px; margin-top: 8px; }
  @keyframes skeletonShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
  }
  .product-img img { transition: transform .18s var(--ease-standard); }
  .product-card:hover .product-img img { transform: scale(1.03); }
  .product-actions .btn { transition: background-color .18s ease, box-shadow .18s ease, transform .06s ease; }
  .product-actions .btn:active { transform: translateY(1px); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
  /* 详情页侧边固定下单区 */
  .sticky-box { position: sticky; top: 90px; }
  .sticky-box .price { font-size: 1.6rem; color: #e53935; font-weight: 800; }
  .sticky-box .meta { color: var(--muted); font-size: .95rem; }

  /* 按钮统一加载态（小菊花 + 禁用，仅加载时） */
  .btn.btn-loading { position: relative; }
  .btn.btn-loading.is-loading { opacity: .88; }
  .btn.btn-loading.is-loading::after {
    content: ""; width: 14px; height: 14px; border: 2px solid rgba(0,0,0,0.2);
    border-top-color: rgba(0,0,0,0.6); border-radius: 50%; display: inline-block;
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    animation: spin .8s linear infinite;
  }
  @keyframes spin { from { transform: translateY(-50%) rotate(0deg);} to { transform: translateY(-50%) rotate(360deg);} }

  /* 分页禁用态 */
  .pagination .page-item.disabled .page-link { pointer-events: none; opacity: .85; background: #f2f3f5; color: #9aa0a6; border-color: #e5e6eb; cursor: not-allowed; position: relative; }
  /* 分页禁用态提示文案（悬浮） */
  .pagination .page-item.disabled .page-link::after {
    content: 'ⓘ ' attr(data-tip);
    position: absolute;
    left: 50%;
    top: calc(100% + 6px);
    transform: translateX(-50%) scale(.96);
    font-size: 12px;
    line-height: 1;
    color: #6b7280;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 3px 6px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity .14s cubic-bezier(.4,0,.2,1), transform .12s cubic-bezier(.4,0,.2,1);
    white-space: nowrap;
  }
  .pagination .page-item.disabled .page-link:hover::after { opacity: 1; transform: translateX(-50%) scale(1); }
  .pagination .page-item.disabled .page-link.show-tip::after { opacity: 1; transform: translateX(-50%) scale(1); }

  /* 空状态占位 */
  .empty-state { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:24px; border:1px dashed var(--border); border-radius:12px; background: var(--card-bg); color: var(--muted); }
  .empty-state .title { font-weight:700; color: var(--text); margin-bottom: 8px; }
  .empty-state .actions { margin-top: 10px; }
  .empty-state img { width:72px; height:72px; opacity:.85; margin-bottom:8px; }
}

/* 夜间模式对比度优化（确保 >=4.5:1，兼容 .dark-mode） */
body[data-theme="dark"], body.dark-mode {
  --brand: #ff4d6d; /* 红色强调提升亮度与对比 */
  --link: #ff8fa3; /* 红色系链接提升可读性 */
  --text: #eaeef2;
  --muted: #aab0b7;
  --card-bg: #1f232a;
  --border: #2b3038;
}
/* 暗色模式下按钮加载态更清晰的边色 */
body[data-theme="dark"] .btn.btn-loading.is-loading::after { border-color: rgba(255,255,255,0.25); border-top-color: rgba(255,255,255,0.85); }
/* 暗色模式卡片边框与悬浮阴影微调提升层次感 */
body[data-theme="dark"] .product-card, body[data-theme="dark"] .card { border-color: #333a44; }
body[data-theme="dark"] .product-card:hover, body[data-theme="dark"] .card:hover { box-shadow: 0 16px 28px rgba(0,0,0,0.55); transform: translateY(-2px); }

/* Hero Banner（首页） */
.hero-banner { 
  margin-top: 12px; 
  background: radial-gradient(1200px 400px at right -200px top -200px, rgba(225,29,72,0.08), transparent),
              linear-gradient(180deg, #fff, #fff);
  border-bottom: 1px solid var(--border);
}
.hero-inner { padding: 42px 0; }
.hero-title { font-size: 36px; font-weight: 800; letter-spacing: .5px; margin: 0; color: var(--text); }
.hero-subtitle { margin-top: 10px; color: var(--muted); font-size: 18px; }
.hero-actions { margin-top: 18px; display: flex; gap: 12px; }
@media (max-width: 991.98px) {
  .hero-inner { padding: 28px 0; }
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 16px; }
}
body[data-theme="dark"] .hero-banner, body.dark-mode .hero-banner {
  background: radial-gradient(1200px 400px at right -200px top -200px, rgba(255,77,109,0.12), transparent),
              linear-gradient(180deg, var(--card-bg), var(--card-bg));
  border-bottom-color: var(--border);
}

/* 卡片角标（精选/热门） */
.corner-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(225,29,72,0.9);
  color: #fff; border-radius: 12px;
  font-size: 12px; padding: 4px 8px; line-height: 1;
  box-shadow: 0 6px 14px rgba(225,29,72,0.24);
}
.badge-featured { background: linear-gradient(135deg, #fb7185, #e11d48); }
.badge-hot { background: linear-gradient(135deg, #f43f5e, #e11d48); }

/* Bootstrap 主色覆盖（红色主风格） */
.text-primary { color: var(--brand) !important; }
.bg-primary { background-color: var(--brand) !important; }
.badge-primary { background-color: var(--brand); }
.page-item.active .page-link { background-color: var(--brand); border-color: var(--brand); }
.btn-outline-primary { color: var(--brand); border-color: var(--brand); }
.btn-outline-primary:hover { background-color: var(--brand); color: #fff; border-color: var(--brand); }
.alert-primary { background-color: rgba(225,29,72,0.12); color: #b91c1c; border-color: rgba(225,29,72,0.2); }
/* 斜角包裹卡片角标（Ribbon） */
.corner-ribbon {
  position: absolute;
  top: 10px;
  left: -14px;
  z-index: 8;
  transform: rotate(-45deg) translateZ(0);
  transform-origin: left top;
  width: clamp(96px, 36%, 128px);
  padding: 6px 0;
  text-align: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: none;
  box-shadow: 0 8px 18px rgba(0,0,0,0.16);
  pointer-events: none;
  will-change: transform;
}
.corner-ribbon::before,
.corner-ribbon::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.corner-ribbon::before {
  /* 折角三角形（左侧收口） */
  content: "";
  position: absolute;
  left: -8px;
  top: 100%;
  width: 0;
  height: 0;
  border-top: 8px solid rgba(0,0,0,0.14);
  border-left: 8px solid transparent;
  transform: none;
}
.corner-ribbon::after {
  /* 细腻高光条 */
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 2px;
  background: rgba(255,255,255,0.6);
  opacity: 0.85;
  mix-blend-mode: screen;
}
.corner-ribbon.ribbon-red {
  background: linear-gradient(135deg, #ff4d4f 0%, #f5222d 45%, #cf1322 100%);
  background-size: 180% 180%;
  animation: ribbonPulse 6s ease-in-out infinite;
  text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}
.corner-ribbon.ribbon-blue {
  background: linear-gradient(135deg, #4e73df 0%, #224abe 45%, #1e3a8a 100%);
  background-size: 180% 180%;
  animation: ribbonPulse 6s ease-in-out infinite;
  text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}
/* 支持右上角（备用） */
.corner-ribbon.top-right { left: auto; right: -18px; transform: rotate(45deg); }
@keyframes ribbonPulse {
  0%, 100% { filter: saturate(1) brightness(1); background-position: 0% 0%; }
  50% { filter: saturate(1.08) brightness(1.04); background-position: 100% 100%; }
}
/* 辅助：移动端更紧凑与低动效偏好 */
@media (max-width: 576px) {
  .corner-ribbon { top: 8px; left: -12px; width: clamp(100px, 50%, 140px); font-size: 11px; padding: 5px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .corner-ribbon { animation: none !important; }
}
/* 卡片容器需要相对定位以承载角标（兼容文章/软件/产品卡片） */
.article-card, .software-card, .product-card, .card { position: relative; z-index: 1; overflow: hidden; }
@media (max-width: 991.98px) {
  .pc-header, .pc-footer { display: none !important; }
  .pc-container .breadcrumb { display: none !important; }
}
@media (min-width: 992px) {
  /* 展示 PC 页眉页脚 */
  .pc-header, .pc-footer { display: block; }
  /* 容器在 PC 端放宽最大宽度 */
  .container { max-width: 1140px !important; }
  /* 顶部筛选条悬浮固定 */
  .pc-sticky { position: sticky; top: 72px; z-index: 900; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.05); border-radius: 12px; padding: 10px; transition: border-radius .18s cubic-bezier(.4,0,.2,1), padding .12s cubic-bezier(.4,0,.2,1), box-shadow .18s cubic-bezier(.4,0,.2,1), background-color .18s cubic-bezier(.4,0,.2,1); }
  .pc-sticky.is-stuck { border-radius: 8px; padding: 6px; }
  .pc-sticky.is-stuck { box-shadow: 0 8px 20px rgba(0,0,0,0.12); background: rgba(255,255,255,0.95); backdrop-filter: saturate(160%) blur(4px); padding: 6px 0; border-radius: 10px; }
  .pc-sticky .active { color: var(--brand) !important; font-weight: 700; }
  .pc-summary { display:flex; align-items:center; gap:14px; color: var(--muted); margin: 8px auto 12px; }
  .pc-summary .tag { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 4px 10px; color: var(--text); }
  /* 分类条收缩动画 */
  .pc-sticky .cat-nav-item img { transition: width .16s cubic-bezier(.4,0,.2,1), height .16s cubic-bezier(.4,0,.2,1); transition-delay: .06s; }
  .pc-sticky.is-stuck .cat-nav-item img { width: 30px; height: 30px; }
  .pc-sticky .cat-nav-item { transition: font-size .18s cubic-bezier(.4,0,.2,1); }
  .pc-sticky.is-stuck .cat-nav-item { font-size: .92rem; }
  /* 产品列表与游戏列表改为栅格布局 */
  #product-list, #game-list { display: grid; grid-template-columns: repeat(3, minmax(260px,1fr)); gap: 16px; }
  @media (max-width: 1250px) { #product-list, #game-list { grid-template-columns: repeat(2, minmax(260px,1fr)); } }
  /* 卡片交互增强 */
  .product-card, .card { transition: box-shadow .2s var(--ease-standard), transform .2s var(--ease-standard); border: 1px solid var(--border); border-radius: 12px; }
  .product-card:hover { box-shadow: 0 12px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
  .product-img img { transition: transform .18s var(--ease-standard); }
  .product-card:hover .product-img img { transform: scale(1.03); }
  .product-actions .btn { transition: background-color .18s ease, box-shadow .18s ease, transform .06s ease; }
  .product-actions .btn:active { transform: translateY(1px); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
  /* 详情页侧边固定下单区 */
  .sticky-box { position: sticky; top: 90px; }
  .sticky-box .price { font-size: 1.6rem; color: #e53935; font-weight: 800; }
  .sticky-box .meta { color: var(--muted); font-size: .95rem; }

  /* 按钮统一加载态（小菊花 + 禁用，仅加载时） */
  .btn.btn-loading { position: relative; }
  .btn.btn-loading.is-loading { pointer-events: none; opacity: .88; }
  .btn.btn-loading.is-loading::after {
    content: ""; width: 14px; height: 14px; border: 2px solid rgba(0,0,0,0.2);
    border-top-color: rgba(0,0,0,0.6); border-radius: 50%; display: inline-block;
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    animation: spin .8s linear infinite;
  }
  @keyframes spin { from { transform: translateY(-50%) rotate(0deg);} to { transform: translateY(-50%) rotate(360deg);} }

  /* 分页禁用态 */
  .pagination .page-item.disabled .page-link { pointer-events: none; opacity: .85; background: #f2f3f5; color: #9aa0a6; border-color: #e5e6eb; cursor: not-allowed; position: relative; }
  /* 分页禁用态提示文案（悬浮） */
  .pagination .page-item.disabled .page-link::after {
    content: 'ⓘ ' attr(data-tip);
    position: absolute;
    left: 50%;
    top: calc(100% + 6px);
    transform: translateX(-50%) scale(.96);
    font-size: 12px;
    line-height: 1;
    color: #6b7280;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 3px 6px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity .14s cubic-bezier(.4,0,.2,1), transform .12s cubic-bezier(.4,0,.2,1);
    white-space: nowrap;
  }
  .pagination .page-item.disabled .page-link:hover::after { opacity: 1; transform: translateX(-50%) scale(1); }
  .pagination .page-item.disabled .page-link.show-tip::after { opacity: 1; transform: translateX(-50%) scale(1); }

  /* 空状态占位 */
  .empty-state { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:24px; border:1px dashed var(--border); border-radius:12px; background: var(--card-bg); color: var(--muted); }
  .empty-state .title { font-weight:700; color: var(--text); margin-bottom: 8px; }
  .empty-state .actions { margin-top: 10px; }
  .empty-state img { width:72px; height:72px; opacity:.85; margin-bottom:8px; }
}

/* 夜间模式对比度优化（确保 >=4.5:1，兼容 .dark-mode） */
body[data-theme="dark"], body.dark-mode {
  --brand: #ff4d6d; /* 红色强调提升亮度与对比 */
  --link: #ff8fa3; /* 红色系链接提升可读性 */
  --text: #eaeef2;
  --muted: #aab0b7;
  --card-bg: #1f232a;
  --border: #2b3038;
}
/* 暗色模式下按钮加载态更清晰的边色 */
body[data-theme="dark"] .btn.btn-loading.is-loading::after { border-color: rgba(255,255,255,0.25); border-top-color: rgba(255,255,255,0.85); }
/* 暗色模式卡片边框与悬浮阴影微调提升层次感 */
body[data-theme="dark"] .product-card, body[data-theme="dark"] .card { border-color: #333a44; }
body[data-theme="dark"] .product-card:hover, body[data-theme="dark"] .card:hover { box-shadow: 0 16px 28px rgba(0,0,0,0.55); transform: translateY(-2px); }

/* Hero Banner（首页） */
.hero-banner { 
  margin-top: 12px; 
  background: radial-gradient(1200px 400px at right -200px top -200px, rgba(225,29,72,0.08), transparent),
              linear-gradient(180deg, #fff, #fff);
  border-bottom: 1px solid var(--border);
}
.hero-inner { padding: 42px 0; }
.hero-title { font-size: 36px; font-weight: 800; letter-spacing: .5px; margin: 0; color: var(--text); }
.hero-subtitle { margin-top: 10px; color: var(--muted); font-size: 18px; }
.hero-actions { margin-top: 18px; display: flex; gap: 12px; }
@media (max-width: 991.98px) {
  .hero-inner { padding: 28px 0; }
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 16px; }
}
body[data-theme="dark"] .hero-banner, body.dark-mode .hero-banner {
  background: radial-gradient(1200px 400px at right -200px top -200px, rgba(255,77,109,0.12), transparent),
              linear-gradient(180deg, var(--card-bg), var(--card-bg));
  border-bottom-color: var(--border);
}

/* 分类导航与筛选条（商业化细节） */
.cat-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  box-shadow: 0 6px 14px rgba(0,0,0,0.05);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cat-nav::-webkit-scrollbar { height: 0; }
.cat-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background-color .16s var(--ease-standard), color .16s var(--ease-standard), border-color .16s var(--ease-standard);
}
.cat-nav-item img { width: 36px; height: 36px; border-radius: 8px; }
.cat-nav-item:hover { color: var(--brand); background: rgba(225,29,72,0.06); border-color: rgba(225,29,72,0.15); }
.cat-nav-item.active { color: var(--brand); background: rgba(225,29,72,0.12); border-color: rgba(225,29,72,0.22); box-shadow: inset 0 6px 14px rgba(225,29,72,0.08); }
@media (max-width: 576px) {
  .cat-nav { gap: 8px; padding: 8px 10px; border-radius: 10px; }
  .cat-nav-item { padding: 6px 8px; }
  .cat-nav-item img { width: 28px; height: 28px; }
}

/* Banner 轮播视觉增强 */
.banner-swiper { margin-top: 8px; }
.banner-swiper a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 12px 24px rgba(0,0,0,0.06); }
.banner-swiper img { width: 100%; aspect-ratio: 16/6; object-fit: cover; background: #fafafa; transition: transform .22s var(--ease-standard), box-shadow .22s var(--ease-standard); }
.banner-swiper a:hover img { transform: scale(1.02); }

/* 标签徽章（产品/文章/软件卡片） */
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: .75rem; background: #f5f6fa; color: var(--text); margin-right: 8px; }
.badge-color-blue { background: rgba(59,130,246,0.14); color: #1d4ed8; }
.badge-color-green { background: rgba(16,185,129,0.14); color: #065f46; }
.badge-color-yellow { background: rgba(245,158,11,0.16); color: #b45309; }
.badge-color-red { background: rgba(239,68,68,0.14); color: #b91c1c; }
.badge-color-purple { background: rgba(139,92,246,0.17); color: #6d28d9; }

/* 卡片内容区文案层级与间距优化 */
.product-desc { color: var(--muted); font-size: 0.95rem; line-height: 1.6; margin: 8px 12px; }
.product-bottom { padding: 0 12px 12px; }
.product-price { font-weight: 800; letter-spacing: .5px; }

/* 夜间模式覆盖 */
body[data-theme="dark"] .cat-nav { background: var(--card-bg); border-color: var(--border); }
body[data-theme="dark"] .banner-swiper a { border-color: var(--border); box-shadow: 0 10px 24px rgba(0,0,0,0.45); }

/* Hero Banner 样式增强 */
.hero-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #3498db, #2c3e50);
  padding: 60px 0;
  margin-bottom: 30px;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-content {
  text-align: center;
  color: white;
  max-width: 700px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 装饰性背景元素 */
.hero-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.hero-circle-1 {
  width: 200px;
  height: 200px;
  top: -50px;
  right: -50px;
  animation: float 15s infinite ease-in-out;
}

.hero-circle-2 {
  width: 150px;
  height: 150px;
  bottom: -30px;
  left: 10%;
  animation: float 12s infinite ease-in-out reverse;
}

.hero-circle-3 {
  width: 100px;
  height: 100px;
  top: 50%;
  left: 5%;
  animation: float 10s infinite ease-in-out;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* 游戏标签样式 */
.game-tags {
  margin-top: 8px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.game-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
  color: white;
}

.game-tag-rebate {
  background: #ff6b6b;
}

.game-tag-discount {
  background: #4ecdc4;
}

/* 产品卡片样式增强 */
.product-price {
  margin: 8px 0;
  display: flex;
  align-items: baseline;
  color: #e74c3c;
  font-weight: 700;
}

.price-symbol {
  font-size: 0.9rem;
  margin-right: 2px;
}

.price-amount {
  font-size: 1.2rem;
}

.product-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* 文章卡片样式 */
.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-thumb {
  height: 140px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.article-content {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-title {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
  line-height: 1.3;
}

.article-excerpt {
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 10px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #999;
}

/* 软件卡片样式 */
.software-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.software-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto 10px;
}

.software-content {
  padding: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.software-name {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.software-category {
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.software-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 10px;
}

.software-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}