/* ========== 搜索栏 ========== */
.search-section {
    background: linear-gradient(180deg, #15100c, #1a1410);
    padding: 32px 0;
    border-bottom: 1px solid rgba(201,169,110,0.1);
}
.search-box {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background: #1e1814;
    border: 1px solid #3a3028;
    padding: 12px 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.search-box:focus-within {
    border-color: var(--gold-dark);
    box-shadow: 0 0 16px rgba(201,169,110,0.15);
}
.search-box svg {
    color: #6a5040;
    flex-shrink: 0;
}
.search-box input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #ccc;
    font-size: 14px;
    padding: 0 12px;
    letter-spacing: 1px;
}
.search-box input::placeholder { color: #4a4038; }
.search-clear {
    background: none;
    border: none;
    color: #6a5040;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.3s;
}
.search-clear:hover { color: var(--gold); }
.search-actions {
    max-width: 600px;
    margin: 12px auto 0;
}
.hot-label {
    color: #4a4038;
    font-size: 11px;
    margin-right: 8px;
}
.hot-tag {
    display: inline-block;
    color: #8a8070;
    font-size: 11px;
    padding: 3px 10px;
    margin-right: 6px;
    margin-bottom: 6px;
    border: 1px solid #3a3028;
    cursor: pointer;
    transition: all 0.3s;
}
.hot-tag:hover {
    color: var(--gold);
    border-color: var(--gold-dark);
    background: rgba(201,169,110,0.08);
}

/* ========== 游戏列表区 ========== */
.game-list-section {
    background: linear-gradient(180deg, #1a1410 0%, #151210 20%, #1e1814 100%);
    padding: 56px 0 0;
    border-top: 1px solid rgba(201,169,110,0.1);
}
.section-header { text-align: center; margin-bottom: 36px; }
.section-title { margin-bottom: 24px; }
.section-tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.tab-btn { font-size: 12px; padding: 8px 22px; }

/* 排序栏微调 */
.sort-bar { max-width: 840px; margin: 16px auto 0; padding: 0 10px; }

/* 游戏卡片网格 */
.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 992px) { .game-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .game-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 480px) { .game-grid { grid-template-columns: 1fr; } }

.game-card-item {
    background: linear-gradient(180deg, #2a2218 0%, #1e1814 100%);
    border: 1px solid #3a3028;
    overflow: hidden;
    transition: all 0.4s;
    cursor: pointer;
}
.game-card-item:hover {
    transform: translateY(-4px);
    border-color: var(--gold-dark);
    box-shadow: 0 8px 32px rgba(201,169,110,0.15);
}
.game-card-item:hover .card-img-wrap img {
    transform: scale(1.05);
}
.card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 180px;
}
.card-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.card-img-wrap .card-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: linear-gradient(135deg, var(--red), #8b0000);
    color: #fff;
    font-size: 10px;
    padding: 3px 8px;
    letter-spacing: 1px;
}
.card-img-wrap .card-rate {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(0,0,0,0.6);
    color: var(--gold);
    font-size: 10px;
    padding: 3px 8px;
    border: 1px solid var(--gold-dark);
    letter-spacing: 1px;
}
.card-body { padding: 16px; }
.card-body .card-name {
    font-size: 15px; font-weight: 700;
    color: #ddd;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-body .card-desc {
    font-size: 11px;
    color: #6a5040;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 32px;
}
.card-body .card-tags {
    display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px;
}
.card-body .card-tags .tag {
    font-size: 10px;
    padding: 2px 8px;
    border: 1px solid rgba(201,169,110,0.3);
    color: var(--gold);
}
.card-actions { display: flex; flex-direction: column; gap: 8px; }
.card-actions .btn-enter {
    display: flex; align-items: center; justify-content: center; gap: 4px;
    background: linear-gradient(135deg, var(--red), #8b0000);
    color: #fff;
    font-size: 12px; font-weight: 700;
    padding: 10px 0;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s;
}
.card-actions .btn-enter:hover {
    background: linear-gradient(135deg, #e74c3c, var(--red));
    text-decoration: none;
    box-shadow: 0 0 16px rgba(192,57,43,0.5);
}
.card-actions .btn-row { display: flex; gap: 8px; }
.card-actions .btn-recharge,
.card-actions .btn-guide {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    color: #8a8070;
    font-size: 11px; font-weight: 600;
    padding: 8px 0;
    border: 1px solid #3a3028;
    text-decoration: none;
    transition: all 0.3s;
}
.card-actions .btn-recharge { color: #d4a843; border-color: rgba(212,168,67,0.3); }
.card-actions .btn-recharge:hover { background: rgba(212,168,67,0.1); border-color: var(--gold); color: var(--gold); text-decoration: none; }
.card-actions .btn-guide:hover { color: var(--gold); border-color: var(--gold-dark); text-decoration: none; }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .stat-desc { font-size: 10px; }
    .sort-bar { flex-direction: column; align-items: center; }
    .search-box { margin: 0 12px; }
}
