.section {
    margin: 10px;
    border-radius: 10px;
    background-color: #eee;
}

.section-header {
    display: flex; 
    justify-content: space-between;
    align-items: center;
    border-radius: 10px 10px 0 0;
    text-align: left;
    font-size: 18px;
    font-weight: bold;
    line-height: 45px;
    height: 45px;
    color: #333;
    background-color: #a1bec7;
    padding:0 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 18px;
    color: #333;
    font-weight: 700;
    background-color: #a1bec7;
}

.view-all {
    color: #fff;
    font-size: 13px;
    font-weight: normal;
    background-color: #075482;
    border-radius: 25px;
    padding: 0 8px;
    line-height: 25px;
}

.section-header a:hover {
    color: #fff;
    font-weight: bold;
    background-color: #FF5722;
    border-radius: 25px;
    padding: 0 8px;
    line-height: 25px;
  }

/* 容器样式 */
.gamecard-container {
    padding: 10px;
}

/* 游戏网格 */
.game-grid {
    display: grid;
    gap: 10px;
}

/* 基础卡片样式 */
.game-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: block;
    color: inherit;
    text-decoration: none;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-image-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

.card-title {
    margin: 0;
    padding:4px 0 4px 0;
    text-align: center;
}

.card-content p {
    margin: 0;
    padding:4px 0 4px 0;
}

.exclusive-badge {
    position: absolute;
    top: 0px;
    right:0px;
    background: #ff5722;
    color: white;
    padding: 2px 8px;
    border-radius: 0 8px 0 8px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* 样式1：基础样式 */
.game-card-style-s1 .card-content {
    text-align: center;
}

/* 样式2：图文混合 */
.game-card-style-s2 .card-content {
padding: 0 8px;
}
.game-card-style-s2 .card-flex {
    display: flex;
    justify-content: space-between;
}

.game-card-style-s2 .card-meta {
    flex: 2;
    padding: 10px;
    background: #f5f7ff;
    border-radius: 6px;
}

/* 样式3：标签卡片 */
.game-card-style-s3 .card-content {
    text-align: center;
}

.game-card-style-s3 .card-description {
    text-align: left;
    padding:8px;
}

.game-card-style-s3 .card-tags {
    display: inline-block;
    background: #f7eef6;
    color: #2984fa;
    padding: 4px 10px;
    border-radius: 20px;
}

/* 样式4：极简卡片 */
.game-card-style-s4 .card-content {
    text-align: center;
    padding-bottom: 5px;
}
.game-card-style-s4 .card-genres {
    color: #888;
}

/* 新增样式5：纯文字链 */
.game-card-style-s5 {
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #333;
    transition: all 0.3s ease;
}

.game-card-style-s5:hover {
    transform: scale(1.03) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    z-index: 10;
}

.game-card-style-s6 {
    display: flex !important;
    align-items: center;
    color: #333;
    transition: all 0.3s ease;  
}

.game-card-style-s6 .game-image-small {
    width: 80px;
    height: 80px;
}

.game-card-style-s6 h3 {
    font-size: 16px;
    font-weight: normal;
    padding: 0 10px;
}

.game-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(7,84,130,0.25);
    background: linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%);
    color: #103448;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    backdrop-filter: blur(6px);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    width: 180px;
    justify-content: center;
}
.action-btn i {
    font-size: 18px;
}
.action-btn .label {
    letter-spacing: 0.2px;
}
.action-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}
.action-btn:active {
    transform: translateY(0) scale(1.0);
}
.action-btn .count {
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    line-height: 20px;
    border-radius: 12px;
    background: #e4f0ff;
    color: #075482;
    font-size: 13px;
    border: 1px solid rgba(7,84,130,0.15);
}
.action-btn.active {
    border-color: #075482;
    background: linear-gradient(180deg, #e8f4ff 0%, #dff2ff 100%);
}
.action-btn.active .label {
    color: #075482;
}
.action-btn.active .count {
    background: #d6ecff;
}
/* Stronger highlight for specific active states */
.fav-btn.action-btn.active {
    background: linear-gradient(180deg, #ffe8ec 0%, #ffd7df 100%);
    border-color: #ff6b8f;
    color: #a92746;
    box-shadow: 0 10px 26px rgba(255, 107, 143, 0.28);
}
.fav-btn.action-btn.active i { color: #ff3b6a; }
.fav-btn.action-btn.active .count {
    background: #ffdce3;
    color: #a92746;
    border-color: rgba(255, 59, 106, 0.25);
}

.like-btn.action-btn.active {
    background: linear-gradient(180deg, #e7fbe6 0%, #d4f5cf 100%);
    border-color: #22c55e;
    color: #14532d;
    box-shadow: 0 10px 26px rgba(34, 197, 94, 0.28);
}
.like-btn.action-btn.active i { color: #22c55e; }
.like-btn.action-btn.active .count {
    background: #d8f8d5;
    color: #14532d;
    border-color: rgba(34, 197, 94, 0.25);
}

.game-actions-block {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0 4px 0;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(7,84,130,0.12);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    backdrop-filter: blur(10px);
}

.rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(7,84,130,0.25);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.rating-stars .star { cursor: pointer; display: inline-flex; }
.rating-stars .star i { font-size: 20px; color: #a1a1a1; }
.rating-stars .star i.fa-solid { color: #f7b500; }
.rating-stars .rating-meta { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; color: #103448; font-size: 14px; }
.rating-stars .avg { font-weight: 600; }
.rating-stars .rcount {
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    line-height: 20px;
    border-radius: 12px;
    background: #e4f0ff;
    color: #075482;
    font-size: 13px;
    border: 1px solid rgba(7,84,130,0.15);
}

.user-list-section {
    margin: 10px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.65) 0%, rgba(230,245,255,0.6) 100%);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    border: 1px solid rgba(7,84,130,0.12);
}
.user-list-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    height: 45px;
    line-height: 45px;
    border-radius: 16px 16px 0 0;
    background: rgba(161, 190, 199, 0.85);
    color: #333;
    font-size: 18px;
    font-weight: 700;
}
.user-list-header h2 { margin: 0; }
.user-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    padding: 12px;
}
.user-list-grid .game-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: transform .18s ease, box-shadow .18s ease;
}
.user-list-grid .game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.16);
}
.user-list-grid .game-thumb-container {
    position: relative;
    height: 140px;
    background: #f3f6fb;
}
.user-list-grid .game-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .22s ease;
}
.user-list-grid .game-card:hover .game-thumb { transform: scale(1.04); }
.user-list-grid .game-info {
    padding: 8px 10px 10px 10px;
}
.user-list-grid .game-title {
    margin: 0;
    font-size: 15px;
    color: #333;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.user-list-empty, .user-list-login {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 12px 12px 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(0,0,0,0.08);
    color: #103448;
    font-size: 14px;
}
.user-list-empty i, .user-list-login i {
    color: #075482;
}

/* 响应式设计 */
@media (max-width: 767px) {
    .game-actions-block { padding: 10px 12px; border-radius: 14px; }
    .action-btn { padding: 10px 14px; font-size: 15px; width: 44%; }
    .action-btn i { font-size: 17px; }
    .action-btn .count { line-height: 18px; font-size: 12px; }
    .rating-stars { padding: 8px 10px; }
    .rating-stars .star i { font-size: 18px; }
    .game-card-style-s2 .card-flex { flex-direction: column; }
    .game-card-style-s2 .card-meta { margin-top: 10px; }
    .game-card-style-s5 { padding: 15px !important; font-size: 1rem; }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .game-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .gamecard-container .game-grid.card-style-s6 {
        grid-template-columns: 1fr !important;
    }
}

.game-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.game-image-container {
    position: relative;
    height: 150px;
    overflow: hidden;
}

/*==================tags card====================*/
/* 标签容器样式 */
.tags-container {
    padding: 10px;
}

.tags-container-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s;
    display: inline-block;
}

.tag-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

