


/* 分页导航 */
.steam-pagination-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 页码容器 - 关键：flex 布局让页码横向排列 */
.steam-pagination-pages {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 分页按钮通用样式 */
.steam-pagination-btn {
    background: #333;
    color: #e0e0e0;
    border: 1px solid #3a3a3a00;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.steam-pagination-btn:hover:not(:disabled) {
    background: #3a3a3a;
    border-color: #0084ff;
    color: #0084ff;
}

.steam-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 页码样式 */
.steam-pagination-page {
width: 42px;
    height: 42px;
    border-radius: 6px;
    background-color: #2a2a2a;
    color: #e6e6e6;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
}

.steam-pagination-page:hover {
    background: #3a3a3a;
    border-color: #0084ff;
    color: #0084ff;
}

.steam-pagination-page.active {
    background: #0084ff;
    color: white;
    border-color: #0084ff;
}

/* 省略号样式 */
.steam-pagination-ellipsis {
    color: #a0a0a0;
    padding: 8px 8px;
    font-size: 14px;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    flex-shrink: 0;
}


  
/* 热力图容器 */
.steam-heatmap-section {
    margin: 10px 0;
    background: #2b2b2b;
    border-radius: 12px;
    border: 1px solid #3a3a3a00;
    padding: 10px;
}

.steam-heatmap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 12px;
}

.steam-heatmap-title {
    margin: 0;
    font-size: 18px;
    color: #e0e0e0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.steam-heatmap-subtitle {
    color: #a0a0a0;
    font-size: 14px;
    margin: 4px 0 0 0;
}

/* 热力图网格容器 */
.steam-heatmap-container {
    position: relative;
    /*min-height: 120px;
    margin-bottom: 10px;*/
}

/* 热力图网格 */
.steam-heatmap-grid {
    display: grid;
    grid-template-rows: 1fr auto; /* 热力图网格 + 月份标签 */
    gap: 8px;
    padding: 10px;
    background: #1e1e1e;
    border-radius: 8px;
    border: 1px solid #2b2b2b;
}

/* 热力图单元格 */
.steam-heatmap-cell {
    aspect-ratio: 1;
    border-radius: 2px;
    background: #2b2b2b;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.steam-heatmap-cell:hover {
    transform: scale(1.1);
    opacity: 0.9;
    z-index: 10;
}

/* 热力图颜色等级 - Steam蓝色主题 */
.steam-heatmap-cell.level-0 { background: #3a3a3a; }
.steam-heatmap-cell.level-1 { background: #0d2b4f; }
.steam-heatmap-cell.level-2 { background: #134d8c; }
.steam-heatmap-cell.level-3 { background: #1a6fc9; }
.steam-heatmap-cell.level-4 { background: #0084ff; }

/* GitHub绿色主题 */
.steam-heatmap-cell.github.level-0 { background: #3a3a3a; }
.steam-heatmap-cell.github.level-1 { background: #0d4429; }
.steam-heatmap-cell.github.level-2 { background: #006d32; }
.steam-heatmap-cell.github.level-3 { background: #26a641; }
.steam-heatmap-cell.github.level-4 { background: #39d353; }

/* 火焰橙色主题 */
.steam-heatmap-cell.fire.level-0 { background: #3a3a3a; }
.steam-heatmap-cell.fire.level-1 { background: #4d2207; }
.steam-heatmap-cell.fire.level-2 { background: #8a380a; }
.steam-heatmap-cell.fire.level-3 { background: #d45a0e; }
.steam-heatmap-cell.fire.level-4 { background: #ff6b00; }

/* 紫色梦幻主题 */
.steam-heatmap-cell.purple.level-0 { background: #3a3a3a; }
.steam-heatmap-cell.purple.level-1 { background: #3d1a64; }
.steam-heatmap-cell.purple.level-2 { background: #5d28a3; }
.steam-heatmap-cell.purple.level-3 { background: #7c3ea3; }
.steam-heatmap-cell.purple.level-4 { background: #a855f7; }



/* 热力图工具提示文字颜色主题 */
.steam-heatmap-tooltip-date.steam {
    color: #0084ff;
}

.steam-heatmap-tooltip-date.github {
    color: #39d353;
}

.steam-heatmap-tooltip-date.fire {
    color: #ff6b00;
}

.steam-heatmap-tooltip-date.purple {
    color: #a855f7;
}

.steam-heatmap-tooltip-total-time.steam,
.steam-heatmap-tooltip-game-time.steam {
    color: #0084ff;
}

.steam-heatmap-tooltip-total-time.github,
.steam-heatmap-tooltip-game-time.github {
    color: #39d353;
}

.steam-heatmap-tooltip-total-time.fire,
.steam-heatmap-tooltip-game-time.fire {
    color: #ff6b00;
}

.steam-heatmap-tooltip-total-time.purple,
.steam-heatmap-tooltip-game-time.purple {
    color: #a855f7;
}

/* 工具提示 */
.steam-heatmap-tooltip {
    position: fixed;
    background: rgba(43, 43, 43, 0.95);
    border: 1px solid #3a3a3a00;
    border-radius: 8px;
    padding: 12px;
    color: #e0e0e0;
    font-size: 14px;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    min-width: 160px;
    backdrop-filter: blur(10px);
    max-width: 200px;
    /* 修复：确保初始位置在屏幕外 */
    left: -9999px;
    top: -9999px;
    /* 使用transform进行定位 */
    transform: translate(0, 0);
    will-change: transform, opacity;
    transition: opacity 0.15s ease;
}

.steam-heatmap-tooltip.show {
    opacity: 1;
}

.steam-heatmap-tooltip-date {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 13px;
}

.steam-heatmap-tooltip-playtime {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #a0a0a0;
}

.steam-heatmap-tooltip-playtime i {
    color: #0084ff;
    font-size: 11px;
}

.steam-heatmap-tooltip-playtime-value {
    color: #e0e0e0;
    font-weight: 500;
}

.steam-heatmap-tooltip-games {
    font-size: 11px;
    color: #808080;
    margin-top: 4px;
}

/* 热力图图例 */
.steam-heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 15px;
}

.steam-heatmap-legend-label {
    font-size: 12px;
    color: #a0a0a0;
    white-space: nowrap;
}

.steam-heatmap-legend-dots {
    display: flex;
    gap: 4px;
}

.steam-heatmap-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}



/* 热力图工具提示样式*/
.steam-heatmap-tooltip {
    min-width: 200px;
    max-width: 250px;
}

.steam-heatmap-tooltip-date {
    font-weight: 600;
    color: #0084ff;
    margin-bottom: 8px;
    font-size: 13px;
}

.steam-heatmap-tooltip-total {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #a0a0a0;
}

.steam-heatmap-tooltip-total i {
    color: #0084ff;
    font-size: 11px;
}

.steam-heatmap-tooltip-total-value {
    color: #e0e0e0;
    font-weight: 500;
}

.steam-heatmap-tooltip-games {
    max-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
}

.steam-heatmap-tooltip-games::-webkit-scrollbar {
    width: 4px;
}

.steam-heatmap-tooltip-games::-webkit-scrollbar-track {
    background: #1e1e1e;
    border-radius: 2px;
}

.steam-heatmap-tooltip-games::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 2px;
}

.steam-heatmap-tooltip-games::-webkit-scrollbar-thumb:hover {
    background: #0084ff;
}

.steam-heatmap-tooltip-game {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    border-bottom: 1px solid #2b2b2b;
    font-size: 11px;
}

.steam-heatmap-tooltip-game:last-child {
    border-bottom: none;
}

.steam-heatmap-tooltip-game-name {
    color: #e0e0e0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 10px;
}

.steam-heatmap-tooltip-game-time {
    font-weight: 500;
    flex-shrink: 0;
    min-width: 45px;
    text-align: right;
}

.steam-heatmap-tooltip-no-games {
    font-size: 11px;
    color: #808080;
    text-align: center;
    padding: 8px 0;
    font-style: italic;
}








  .steam-heatmap-tooltip-content {
    display: flex;
    flex-direction: column;

}

.steam-heatmap-tooltip-total-game {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    border-bottom: 1px solid #2b2b2b;
    font-size: 12px;
}

.steam-heatmap-tooltip-total-label {
    color: #e0e0e0;

}



.steam-heatmap-tooltip-game {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    border-bottom: 1px solid #2b2b2b;
    font-size: 11px;
}
  
/*  */
.steam-heatmap-legend-dot.level-0 { background: #3a3a3a; }
.steam-heatmap-legend-dot.level-1 { background: #0d2b4f; }
.steam-heatmap-legend-dot.level-2 { background: #134d8c; }
.steam-heatmap-legend-dot.level-3 { background: #1a6fc9; }
.steam-heatmap-legend-dot.level-4 { background: #0084ff; }

/* GitHub绿色主题 */
.steam-heatmap-legend-dot.github.level-0 { background: #3a3a3a; }
.steam-heatmap-legend-dot.github.level-1 { background: #0d4429; }
.steam-heatmap-legend-dot.github.level-2 { background: #006d32; }
.steam-heatmap-legend-dot.github.level-3 { background: #26a641; }
.steam-heatmap-legend-dot.github.level-4 { background: #39d353; }

/* 火焰橙色主题 */
.steam-heatmap-legend-dot.fire.level-0 { background: #3a3a3a; }
.steam-heatmap-legend-dot.fire.level-1 { background: #4d2207; }
.steam-heatmap-legend-dot.fire.level-2 { background: #8a380a; }
.steam-heatmap-legend-dot.fire.level-3 { background: #d45a0e; }
.steam-heatmap-legend-dot.fire.level-4 { background: #ff6b00; }

/* 紫色梦幻主题 */
.steam-heatmap-legend-dot.purple.level-0 { background: #3a3a3a; }
.steam-heatmap-legend-dot.purple.level-1 { background: #3d1a64; }
.steam-heatmap-legend-dot.purple.level-2 { background: #5d28a3; }
.steam-heatmap-legend-dot.purple.level-3 { background: #7c3ea3; }
.steam-heatmap-legend-dot.purple.level-4 { background: #a855f7; }

/* 移除周标签区域 */
.steam-heatmap-weekdays {
    display: none;
}

  
/* 加载状态 */
.steam-heatmap-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #a0a0a0;
    text-align: center;
}

.steam-heatmap-loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #3a3a3a;
    border-top-color: #0084ff;
    border-radius: 50%;
    animation: steam-spin 1s linear infinite;
}

.steam-heatmap-empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #a0a0a0;
    background: #1e1e1e;
    border-radius: 8px;
    border: 1px dashed #3a3a3a;
}

.steam-heatmap-empty-state i {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.steam-heatmap-empty-state p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}


#steam-heatmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 1fr);
    grid-auto-flow: column; 
    grid-template-rows: repeat(7, 1fr); 
    gap: 3px;
}

/* 月份标签 */
.steam-heatmap-months {
    display: grid;
    grid-template-columns: repeat(auto-fill, 1fr); 
    gap: 3px;
  margin-top: 8px;
}

.steam-heatmap-month {
    font-size: 11px;
    color: #808080;
    text-transform: uppercase;
}

/* 周标签 */
.steam-heatmap-weekdays {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-right: 8px;
    margin-top: 10px;
}

.steam-heatmap-weekday {
    font-size: 11px;
    color: #808080;
    height: calc((100% - 10px) / 7);
    text-align: right;
    padding-right: 6px;
}

/* 响应式设计 */
@media (max-width: 1024px) {

    
    .steam-heatmap-month {
        font-size: 10px;
    }
    
    .steam-heatmap-weekday {
        font-size: 10px;
    }
}

@media (max-width: 768px) {

    
    .steam-heatmap-month {
        font-size: 9px;
    }
    
    .steam-heatmap-weekday {
        font-size: 9px;
    }
    
    .steam-heatmap-tooltip {
        left: 50%;
        top: -100px;
    }

  #steam-heatmap-grid {
    gap: 1px;
}
  .steam-heatmap-months {
    gap: 0px;
    margin-top: 8px;

}
  .steam-heatmap-grid {

    padding: 4px;
}
}
  
  .steam-games-loading {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    min-height: 300px;
}

@media (max-width: 1024px) {
    .steam-games-loading {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.steam-game-placeholder {
    background: #2b2b2b;
    border-radius: 12px;
    border: 1px solid #3a3a3a00;
    overflow: hidden;
    height: 200px; /* 与游戏卡片高度保持一致 */
    position: relative;
    animation: placeholder-pulse 1.5s ease-in-out infinite;
}

@keyframes placeholder-pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
    }
}

.steam-game-placeholder-image {
    width: 100%;
    height: 100px;
    background: #333;
}

.steam-game-placeholder-content {
    padding: 12px;
}

.steam-game-placeholder-line {
    height: 16px;
    background: #333;
    border-radius: 4px;
    margin-bottom: 8px;
}

.steam-game-placeholder-line:nth-child(2) {
    width: 70%;
}

.steam-game-placeholder-line:nth-child(3) {
    width: 50%;
}
/* Steam 容器 - 使用你的主题样式 */
.steam-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    background-color: #252525;
    border-radius: 12px 12px 0 0;
    position: relative;
    min-height: 400px;
}

/* 加载状态 */
.steam-loading {
    text-align: center;
    padding: 80px 0;
}

.steam-loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #3a3a3a;
    border-top-color: #0084ff;
    border-radius: 50%;
    margin: 0 auto;
    animation: steam-spin 1s linear infinite;
}

@keyframes steam-spin {
    to { transform: rotate(360deg); }
}

/* 错误提示 */
.steam-error {
        text-align: center;
    padding: 3rem;
    background: #2b2b2b;
    border-radius: 10px;
    color: #e0e0e0;
}

.steam-error i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.steam-error p {
    font-size: 1.1rem;
    margin: 0;
}

/* 主要信息卡片 */
.steam-main-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

/* 用户信息卡片 */
.steam-user-info-card {
    background: #2b2b2b;
    border-radius: 12px;
    border: 1px solid #3a3a3a00;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 用户基本信息区 */
.steam-user-basic-info {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* 在手机上保持相同布局 */
@media (max-width: 768px) {
    .steam-user-basic-info {
        gap: 15px;
    }
}

/* 头像区域 */
.steam-user-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.steam-avatar-container {
    position: relative;
}

.steam-profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    background: #333;
}

.steam-status-indicator {
    position: absolute;
    bottom: 7px;
    right: 0px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #2b2b2b;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.steam-status-online {
    background: #4CAF50;
}

.steam-status-offline {
    background: #757575;
}

.steam-status-away {
    background: #FF9800;
}

/* 用户详细信息区域 */
.steam-user-detail-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 昵称和等级行 */
.steam-user-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.steam-profile-name {
    margin: 0;
    font-size: 24px;
    color: #e0e0e0;
    font-weight: 600;
    line-height: 1.2;
}

/* 等级徽章 - 保持大小一致 */
.steam-level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #333;
    color: #e0e0e0;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #3a3a3a00;
    line-height: 1;
    height: 28px;
    box-sizing: border-box;
    min-width: 70px;
}

/* Steam主页链接按钮样式 */
.steam-homepage-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #333;
    color: #a0a0a0;
    padding: 0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #3a3a3a00;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 28px;
    height: 28px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.steam-homepage-btn:hover {
    background: #3a3a3a;
    border-color: #0084ff;
    color: #0084ff;
}

.steam-homepage-icon {
    width: 16px;
    height: 16px;
    transition: all 0.2s ease;
}

.steam-homepage-btn:hover .steam-homepage-icon {
    color: #0084ff;
}

.steam-level-label {
    color: #a0a0a0;
    font-size: 13px;
}

.steam-level-number {
    color: #a0a0a0;
    font-size: 14px;
}

/* 状态行 */
.steam-status-row {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.steam-status-text {
    font-size: 16px;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.3;
}

.steam-status-label {
    font-weight: 500;
}

.steam-status-online-text {
    color: #4CAF50;
}

.steam-status-offline-text {
    color: #a0a0a0;
}

.steam-last-online-text {
    color: #a0a0a0;
    font-size: 15px;
}

.steam-status-text .separator {
    color: #a0a0a0;
    margin: 0 4px;
}



.steam-status-offline-text {
    color: #ff6b6b;
}

/* 忙碌状态样式 */
.steam-status-busy {
    background: #F44336;
}

.steam-status-busy-text {
    color: #F44336;
}

/* 离开状态样式 */
.steam-status-away {
    background: #FF9800;
}

.steam-status-away-text {
    color: #FF9800;
}

/* 休眠状态样式 */
.steam-status-snooze {
    background: #9C27B0;
}

.steam-status-snooze-text {
    color: #9C27B0;
}

/* 想交易状态样式 */
.steam-status-trade {
    background: #FFC107;
}

.steam-status-trade-text {
    color: #FFC107;
}

/* 想玩游戏状态样式 */
.steam-status-play {
    background: #2196F3;
}

.steam-status-play-text {
    color: #2196F3;
}

/* 状态标签通用样式 */
.steam-status-text {
    font-size: 16px;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.3;
}

.steam-status-label {
    font-weight: 500;
}

.steam-last-online-text {
    color: #a0a0a0;
    font-size: 15px;
}
  

/* 正在游玩 */
.steam-playing-section {
    display: flex;
    flex-direction: column;
}

.steam-playing-game {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #e0e0e0;
    line-height: 1.3;
}

.steam-playing-icon {
    color: #4CAF50;
    font-size: 14px;
}

.steam-playing-label {
    color: #4CAF50;
    font-weight: 500;
}

.steam-playing-separator {
    color: #a0a0a0;
    margin: 0 4px;
}

.steam-playing-game-name {
    color: #6ab0ff; /* 浅蓝色 */
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.steam-playing-game-name:hover {
    color: #0084ff; /* hover时变为#0084ff */
    text-decoration: underline;
}

/* 徽章区域 - 水平滚动 */
.steam-user-badges-section {
    border-top: 1px solid #2b2b2b;
    padding-top: 0px;
}

.steam-badges-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.steam-badges-header h3 {
    margin: 0;
    font-size: 18px;
    color: #e0e0e0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.steam-badge-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.steam-badge-count {
    color: #a0a0a0;
    font-size: 14px;
}

.steam-badge-count span {
    color: #0084ff;
    font-weight: 600;
}

.steam-xp-progress {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #a0a0a0;
    font-size: 14px;
}

.steam-xp-progress span:last-child {
    color: #e0e0e0;
    font-weight: 600;
}

/* 徽章滚动容器 */
.steam-badges-scroll-container {
    overflow-x: auto;
    padding-bottom: 10px;
}

.steam-badges-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.steam-badges-scroll-container::-webkit-scrollbar-track {
    background: #2b2b2b;
    border-radius: 3px;
}

.steam-badges-scroll-container::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 3px;
}

.steam-badges-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #0084ff;
}

.steam-badges-grid {
    display: flex;
    gap: 12px;
    min-width: min-content;
    padding: 5px 0;
}

.steam-badge-item {
    background: #333;
    border-radius: 10px;
    
    transition: all 0.2s ease;
    text-align: center;
    flex-shrink: 0;
    /*padding: 12px;
    border: 1px solid #3a3a3a00;
    width: 80px;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.steam-badge-item:hover {
    /*border-color: #0084ff;*/
    transform: translateY(-4px);
}

.steam-badge-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 8px;
    background: #3a3a3a;
}

/* 移除徽章名称和等级文字 */
.steam-badge-name,
.steam-badge-level {
    display: none;
}

/* 统计卡片 - 一行显示 */
.steam-stats-card {
    background: #2b2b2b;
    border-radius: 12px;
    border: 1px solid #3a3a3a00;
    padding: 10px;
}

.steam-stats-header {
    margin-bottom: 10px;
}

.steam-stats-header h3 {
    margin: 0;
    font-size: 18px;
    color: #e0e0e0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}


.steam-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.steam-stat-item {
    background: #333;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #3a3a3a00;
    transition: all 0.2s ease;
    text-align: center;
}

.steam-stat-item:hover {
    border-color: #0084ff;
    transform: translateY(-2px);
}

.steam-stat-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.steam-stat-number {
    font-size: 20px;
    font-weight: 700;
    color: #e0e0e0;
    line-height: 1.2;
}

.steam-stat-label {
    font-size: 14px;
    color: #a0a0a0;
    line-height: 1.2;
}

/* 最近游玩和游戏库区域 */
.steam-recent-section,
.steam-games-section {
    margin-bottom: 10px;
}

.steam-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

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

.steam-sort-controls {
    display: flex;
    gap: 8px;
}

.steam-sort-btn {
    background: #333;
    color: #e0e0e0;
    border: 1px solid #3a3a3a00;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.steam-sort-btn:hover {
    background: #3a3a3a;
    border-color: #0084ff;
}

.steam-sort-btn.active {
    background: #0084ff;
    color: white;
    border-color: #0084ff;
}

/* 配置信息区域 */
.steam-config-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #2b2b2b;
    border-radius: 8px;
    border: 1px solid #3a3a3a00;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 12px;
}

.steam-config-text {
    color: #a0a0a0;
}

.steam-config-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 132, 255, 0.1);
    color: #0084ff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(0, 132, 255, 0.2);
}

.steam-config-badge i {
    font-size: 12px;
}

.steam-config-badge-disabled {
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
    border-color: rgba(255, 77, 77, 0.2);
}

/* 游戏网格 - 一行显示三个，图片高度100px */
.steam-recent-games,
.steam-games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 1024px) {
    .steam-recent-games,
    .steam-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

  .steam-stats-row {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
}
}

/* 游戏卡片样式 */
.steam-game-card {
    background: #2b2b2b;
    border-radius: 12px;
    border: 1px solid #3a3a3a00;
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* 卡片hover效果 */
.steam-game-card:hover {
    border-color: #0084ff;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 132, 255, 0.15);
}

.steam-game-image {
    width: 100%;
    height: 100px; /* 图片高度100px */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.steam-game-card:hover .steam-game-image {
    transform: scale(1.05);
}

.steam-game-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.steam-game-name {
    margin: 0 0 8px 0;
    font-size: 15px;
    color: #e0e0e0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.steam-game-card:hover .steam-game-name {
    color: #0084ff;
}

/* 最近游戏区域的元信息容器 */
#steam-recent-games .steam-game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: nowrap;
}

/* 最近游戏的游玩时间容器 - 修改为占据整个宽度并包含徽章 */
#steam-recent-games .steam-game-playtime {
    display: flex;
    justify-content: space-between; /* 关键：左右对称 */
    align-items: center;
    width: 100%; /* 占据整个宽度 */
    gap: 8px;
}

/* 左侧时间部分 */
#steam-recent-games .steam-game-playtime > :first-child {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #a0a0a0;
    white-space: nowrap;
}

#steam-recent-games .steam-game-playtime i {
    font-size: 11px;
    color: #0084ff;
}

#steam-recent-games .steam-game-playtime span:not(.steam-game-achievement-badge span) {
    font-weight: 500;
}

/* 右侧成就徽章 */
#steam-recent-games .steam-game-achievement-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(0, 132, 255, 0.1);
    color: #0084ff;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
    border: 1px solid rgba(0, 132, 255, 0.2);
    white-space: nowrap;
    margin-left: auto; /* 将成就徽章推到最右边 */
    flex-shrink: 0; /* 防止徽章被挤压 */
    order: 2; /* 确保在右边 */
}

#steam-recent-games .steam-game-achievement-badge i {
    font-size: 9px;
    color: #0084ff;
}

/* 最近游戏的成就进度条区域 */
#steam-recent-games .steam-game-achievements {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
}

#steam-recent-games .steam-game-achievements-progress-bar {
    flex: 1;
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
}

#steam-recent-games .steam-game-achievements-progress {
    height: 100%;
    background: linear-gradient(90deg, #0084ff, #4dabf7);
    border-radius: 2px;
    transition: width 0.5s ease, background-color 0.3s ease;
}

#steam-recent-games .steam-game-achievements-percentage {
    font-size: 10px;
    color: #a0a0a0;
    min-width: 28px;
    text-align: right;
    font-weight: 500;
    flex-shrink: 0;
}

/* 游戏库区域保持原来的样式 */
#steam-games-section .steam-game-meta {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    font-size: 12px;
    color: #a0a0a0;
    flex-wrap: wrap;
}

#steam-games-section .steam-game-playtime {
    display: flex;
    align-items: center;
    gap: 4px;
}

#steam-games-section .steam-game-playtime i {
    font-size: 11px;
    color: #0084ff;
    transition: color 0.2s ease;
}

#steam-games-section .steam-game-last-played {
    display: flex;
    align-items: center;
    gap: 6px;
}

#steam-games-section .steam-game-last-played i {
    font-size: 11px;
    color: #0084ff;
    transition: color 0.2s ease;
}

/* === 关键修改到这里结束 === */

/* 分页控制 */
.steam-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px 0 0;
}

.steam-pagination-btn {
    /*background: #333;
    color: #e0e0e0;
    border: 1px solid #3a3a3a00;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;

    justify-content: center;*/
      width: 42px;
    height: 42px;
    border-radius: 6px;
    background-color: #2a2a2a;
    color: #e6e6e6;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
}

.steam-pagination-btn:hover:not(:disabled) {
    background: #3a3a3a;
    border-color: #0084ff;
}

.steam-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.steam-page-info {
    color: #a0a0a0;
    font-size: 14px;
    min-width: 100px;
    text-align: center;
}

/* 空状态 */
.steam-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #a0a0a0;
    background: #2b2b2b;
    border-radius: 12px;
    border: 1px dashed #3a3a3a;
}

.steam-empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.steam-empty-state p {
    margin: 0;
    font-size: 16px;
}

/* 动画效果 */
@keyframes steam-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.steam-main-card,
.steam-recent-section,
.steam-games-section {
    animation: steam-fade-in 0.5s ease;
}













  
