:root {
    --steam-bg: var(--cc-dark-bg);
    --steam-card-bg: var(--cc-dark-surface);
    --steam-text: var(--cc-dark-text);
    --steam-blue: var(--cc-brand);
    --steam-accent: var(--cc-brand-strong);
    --dst-orange: var(--cc-brand);
    --dst-amber: var(--cc-brand-border);
    --game-accent: var(--cc-brand);
    --game-orb-1: var(--cc-brand);
    --game-orb-2: var(--cc-brand-dark);
    --game-particle-bg: rgba(var(--cc-brand-rgb), 0.5);
    --game-particle-shadow: 0 0 4px rgba(var(--cc-brand-rgb), 0.7);
    --game-float-bg: var(--cc-dark-surface);
    --game-float-bg-hover: var(--cc-dark-surface-strong);
    --game-float-border: rgba(230, 81, 0, 0.2);
    --game-float-border-hover: rgba(230, 81, 0, 0.4);
    --game-float-entry-bg: linear-gradient(135deg, var(--cc-brand-strong), var(--cc-brand));
    --game-float-entry-bg-hover: linear-gradient(135deg, var(--cc-brand), var(--cc-brand-border));
    --game-float-entry-shadow: 0 12px 28px rgba(230, 81, 0, 0.35);
  }

  /* 游戏详情页内容 */
  .game-detail {
    padding: 30px 0 60px;
    position: relative;
    z-index: 1;
  }

  /* 顶部横幅 */
  .game-hero {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    margin-bottom: 48px;
    padding: 24px;
    background: rgba(var(--cc-dark-bg-rgb), 0.62);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
  }
  .game-cover {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  }
  .game-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .game-info {
    display: flex;
    flex-direction: column;
  }
  .game-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
  }
  .game-breadcrumb a {
    color: #64748b;
    text-decoration: none;
  }
  .game-breadcrumb a:hover {
    color: var(--dst-amber);
  }
  .game-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .game-title-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(var(--cc-brand-rgb), 0.2), rgba(var(--cc-brand-rgb), 0.1));
    border: 1px solid rgba(var(--cc-brand-rgb), 0.4);
    border-radius: 16px;
    color: var(--dst-amber);
    font-size: 12px;
    font-weight: 600;
  }
  .game-title-badge svg {
    width: 14px;
    height: 14px;
  }
  .game-subtitle {
    font-size: 16px;
    color: #94a3b8;
    margin: 0 0 16px;
  }
  .game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
  }
  .game-tag {
    padding: 6px 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    font-size: 13px;
    color: #94a3b8;
  }
  .game-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #b8c0c8;
    margin-bottom: 24px;
    flex: 1;
  }
  .game-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .btn-primary-game {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(90deg, var(--cc-brand-strong) 0%, var(--cc-brand) 100%);
    color: #ecfdf5;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
  }
  .btn-primary-game:hover {
    background: linear-gradient(90deg, var(--cc-brand) 0%, var(--cc-brand-border) 100%);
    color: #fff;
  }

  /* 价格信息 */
  .game-price-info {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
  }
  .price-label {
    font-size: 14px;
    color: #64748b;
  }
  .price-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
  }
  .price-unit {
    font-size: 14px;
    color: #64748b;
  }

  /* 内容区块 */
  .section-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .section-title::before {
    content: "";
    width: 4px;
    height: 22px;
    background: var(--dst-orange);
    border-radius: 2px;
  }

  /* 特色功能 */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
  }
  .feature-card {
    padding: 24px;
    background: rgba(var(--cc-dark-bg-rgb), 0.62);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    transition: all 0.3s;
  }
  .feature-card:hover {
    border-color: rgba(var(--cc-brand-rgb), 0.4);
    transform: translateY(-2px);
  }
  .feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--cc-brand-rgb), 0.15);
    border-radius: 10px;
    margin-bottom: 16px;
    color: var(--dst-amber);
  }
  .feature-icon svg {
    width: 24px;
    height: 24px;
  }
  .feature-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px;
  }
  .feature-desc {
    font-size: 14px;
    color: var(--cc-dark-muted);
    margin: 0;
    line-height: 1.6;
  }

  /* 高亮卡片 - 自研面板 */
  .feature-card.highlight {
    background: linear-gradient(135deg, rgba(var(--cc-brand-rgb), 0.15), rgba(var(--cc-brand-rgb), 0.05));
    border-color: rgba(var(--cc-brand-rgb), 0.3);
    grid-column: span 1;
  }
  .feature-card.highlight:hover {
    border-color: rgba(var(--cc-brand-rgb), 0.5);
  }
  .feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: var(--dst-orange);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 12px;
  }
  .feature-highlight-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
  }
  .feature-highlight-desc {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.6;
  }

  /* 创意工坊高亮 */
  .workshop-card {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
  }
  .workshop-content {
    display: flex;
    flex-direction: column;
  }
  .workshop-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--dst-amber);
    line-height: 1;
  }
  .workshop-label {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
  }

  /* 返回按钮 */
  .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #94a3b8;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 20px;
  }
  .back-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
  }
  .back-btn svg {
    width: 16px;
    height: 16px;
  }

  /* 面板展示区 */
  .panel-showcase {
    margin-bottom: 48px;
  }
  .panel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .panel-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(var(--cc-dark-bg-rgb), 0.62);
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    transition: all 0.3s;
  }
  .panel-item:hover {
    border-color: rgba(var(--cc-brand-rgb), 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
  }
  .panel-item img {
    width: 100%;
    display: block;
    transition: transform 0.3s;
  }
  .panel-item:hover img {
    transform: scale(1.02);
  }
  .panel-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .panel-item:hover .panel-item-overlay {
    opacity: 1;
  }
  .panel-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px;
  }
  .panel-item-desc {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
  }
  .panel-item-zoom {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .panel-item:hover .panel-item-zoom {
    opacity: 1;
  }
  .panel-item-zoom svg {
    width: 16px;
    height: 16px;
  }

  /* 面板特性列表 */
  .panel-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
  }
  .panel-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(var(--cc-dark-bg-rgb), 0.62);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
  }
  .panel-feature-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--cc-brand-rgb), 0.15);
    border-radius: 8px;
    color: var(--dst-amber);
    flex-shrink: 0;
  }
  .panel-feature-icon svg {
    width: 18px;
    height: 18px;
  }
  .panel-feature-text {
    font-size: 13px;
    color: var(--cc-dark-text);
    line-height: 1.4;
  }

  /* 商品价格模块 */
  .products-section {
    margin-bottom: 48px;
  }
  
  /* 分类标签 */
  .category-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
  }
  .category-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 12px;
    background: rgba(var(--cc-dark-bg-rgb), 0.62);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
  }
  .category-tab:hover {
    border-color: rgba(var(--cc-brand-rgb), 0.3);
    background: rgba(var(--cc-dark-bg-rgb), 0.82);
  }
  .category-tab.active {
    border-color: var(--dst-orange);
    background: rgba(var(--cc-brand-rgb), 0.1);
  }
  .category-tab .tab-icon {
    font-size: 24px;
  }
  .category-tab .tab-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
  }
  .category-tab .tab-desc {
    font-size: 12px;
    color: #64748b;
  }
  .category-tab.active .tab-desc {
    color: var(--dst-amber);
  }
  
  /* 分类内容 */
  .category-content {
    display: none;
  }
  .category-content.active {
    display: block;
  }
  
  .products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .product-card {
    padding: 24px;
    background: rgba(var(--cc-dark-bg-rgb), 0.62);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    transition: all 0.3s;
    position: relative;
  }
  .product-card:hover {
    border-color: rgba(var(--cc-brand-rgb), 0.4);
    transform: translateY(-2px);
  }
  .product-card.recommend {
    border-color: var(--dst-orange);
  }
  .product-card.recommend::before {
    content: "推荐";
    position: absolute;
    top: -1px;
    right: 20px;
    padding: 4px 12px;
    background: var(--dst-orange);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 0 0 6px 6px;
  }
  .product-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
  }
  .product-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 16px;
    min-height: 20px;
  }
  .product-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 16px;
  }
  .product-price .currency {
    font-size: 16px;
    color: #fff;
  }
  .cc-price-value {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
  }
  .product-price .period {
    font-size: 14px;
    color: #64748b;
  }
  .product-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
  }
  .product-specs li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    font-size: 14px;
    color: #94a3b8;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .product-specs li:last-child {
    border-bottom: none;
  }
  .product-specs li svg {
    width: 16px;
    height: 16px;
    color: var(--dst-amber);
    flex-shrink: 0;
  }
  .product-desc-html {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 16px;
  }
  .product-desc-html table {
    width: 100%;
    border-collapse: collapse;
  }
  .product-desc-html td {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .product-desc-html td:first-child {
    color: #64748b;
    width: 60px;
  }
  .product-desc-html td:last-child {
    color: var(--cc-dark-text);
  }
  .product-desc-html tr:last-child td {
    border-bottom: none;
  }
  .product-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
    display: block;
  }
  .product-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
  }
  .product-card.recommend .product-btn {
    background: linear-gradient(90deg, var(--cc-brand-strong) 0%, var(--cc-brand) 100%);
    border-color: transparent;
    color: #ecfdf5;
  }
  .product-card.recommend .product-btn:hover {
    background: linear-gradient(90deg, var(--cc-brand) 0%, var(--cc-brand-border) 100%);
    color: #fff;
  }
  .products-loading {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    grid-column: 1 / -1;
  }
  .products-empty {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    grid-column: 1 / -1;
  }
  .product-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(var(--cc-brand-rgb), 0.15);
    border: 1px solid rgba(var(--cc-brand-rgb), 0.3);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--dst-amber);
    margin-bottom: 10px;
  }
  .products-more {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px 0;
  }
  .btn-more {
    display: inline-block;
    padding: 12px 32px;
    background: rgba(var(--cc-brand-rgb), 0.1);
    border: 1px solid rgba(var(--cc-brand-rgb), 0.3);
    border-radius: 8px;
    color: var(--dst-amber);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
  }
  .btn-more:hover {
    background: rgba(var(--cc-brand-rgb), 0.2);
    border-color: rgba(var(--cc-brand-rgb), 0.5);
    color: #fff;
  }
  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  /* 帮助文档模块 */
  .help-section {
    margin-bottom: 48px;
  }
  .help-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }
  .help-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--cc-dark-muted);
    line-height: 1.4;
  }
  .help-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .help-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(var(--cc-brand-rgb), 0.10), rgba(23, 29, 37, 0.60));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    overflow: hidden;
  }
  .help-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(var(--cc-brand-rgb), 1), rgba(245, 158, 11, 0.85));
    opacity: 0.95;
  }
  .help-card:hover {
    border-color: rgba(var(--cc-brand-rgb), 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.35);
  }
  .help-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--cc-brand-rgb), 0.15);
    border-radius: 10px;
    color: var(--dst-amber);
    flex-shrink: 0;
  }
  .help-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--dst-amber);
  }
  .help-content {
    flex: 1;
    min-width: 0;
  }
  .help-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
  }
  .help-desc {
    font-size: 13px;
    color: var(--cc-dark-muted);
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .help-arrow {
    width: 24px;
    height: 24px;
    color: #64748b;
    flex-shrink: 0;
    transition: transform 0.3s, color 0.3s;
  }
  .help-arrow svg {
    width: 100%;
    height: 100%;
  }
  .help-card:hover .help-arrow {
    color: var(--dst-amber);
    transform: translateX(2px);
  }
  .help-card:hover .help-arrow svg {
    stroke: var(--dst-amber);
  }
  .modpacks-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
  }
  .modpacks-header .section-title {
    margin-bottom: 0;
  }
  .modpacks-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(var(--cc-brand-rgb), 0.2), rgba(var(--cc-brand-rgb), 0.1));
    border: 1px solid rgba(var(--cc-brand-rgb), 0.4);
    border-radius: 8px;
    color: var(--dst-amber);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
  }
  .modpacks-more:hover {
    background: linear-gradient(135deg, rgba(var(--cc-brand-rgb), 0.3), rgba(var(--cc-brand-rgb), 0.2));
    border-color: var(--dst-orange);
    color: #fff;
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(var(--cc-brand-rgb), 0.3);
  }
  .modpacks-more svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
  }
  .modpacks-more:hover svg {
    transform: translateX(4px);
  }

  /* 响应式 */
  @media (max-width: 992px) {
    .game-hero {
      grid-template-columns: 200px 1fr;
      gap: 24px;
    }
    .features-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .workshop-card {
      grid-column: span 2;
    }
    .panel-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .panel-grid .panel-item:last-child {
      grid-column: span 2;
    }
    .panel-features {
      grid-template-columns: repeat(2, 1fr);
    }
    .products-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  @media (max-width: 768px) {
    .game-hero {
      grid-template-columns: 1fr;
      text-align: center;
    }
    .game-cover {
      max-width: 240px;
      margin: 0 auto;
    }
    .game-tags, .game-actions {
      justify-content: center;
    }
    .game-title {
      justify-content: center;
      flex-wrap: wrap;
      font-size: 28px;
    }
    .features-grid {
      grid-template-columns: 1fr;
    }
    .workshop-card {
      grid-column: span 1;
      grid-template-columns: 1fr;
      text-align: center;
    }
    .panel-grid {
      grid-template-columns: 1fr;
    }
    .panel-grid .panel-item:last-child {
      grid-column: span 1;
    }
    .panel-features {
      grid-template-columns: 1fr;
    }
    .products-grid {
      grid-template-columns: 1fr;
    }
    .category-tabs {
      flex-direction: column;
      gap: 8px;
    }
    .category-tab {
      flex-direction: row;
      justify-content: flex-start;
      gap: 12px;
      padding: 12px 16px;
    }
    .category-tab .tab-icon {
      font-size: 20px;
    }
    .category-tab .tab-name {
      font-size: 14px;
    }
    .help-grid {
      grid-template-columns: 1fr;
    }
    .modpacks-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }
  }
  @media (max-width: 640px) {
    .game-detail {
      padding: 20px 0 40px;
    }
    .game-hero {
      padding: 16px;
    }
    .game-title {
      font-size: 24px;
    }
    .game-actions {
      flex-direction: column;
    }
    .game-actions .btn-primary-game {
      width: 100%;
    }
    .lightbox-nav {
      width: 40px;
      height: 40px;
    }
    .lightbox-nav.prev { left: 10px; }
    .lightbox-nav.next { right: 10px; }
  }
