/* ===========================================================
   Index Page — Modern Warm Theme
   =========================================================== */

/* ─────── Recommend Grid ────── */
.hdvsvs-recommend-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 10px;
    padding: 14px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e7e5e4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
    position: relative;
    overflow: hidden;
}

.hdvsvs-recommend-content-hot {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 14px 10px 10px;
    padding: 16px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e7e5e4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
    position: relative;
    overflow: hidden;
}
.hdvsvs-recommend-content-hot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #f43f5e, #14b8a6, #7c3aed);
    background-size: 220% 100%;
    animation: gradientFlow 5s linear infinite;
}

@keyframes gradientFlow {
    0%   { background-position: 0% 0%; }
    100% { background-position: 220% 0%; }
}

.hdvsvs-recommend-content img,
.hdvsvs-recommend-content-hot img {
    width: 100%;
}

/* ────── Category Grid Container ─────── */
.category-grid-container {
    margin: 20px 10px;
    padding: 24px 20px 20px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e7e5e4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
    position: relative;
    overflow: hidden;
}
.category-grid-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #f43f5e, #14b8a6);
}

.category-grid-container h2 {
    color: #1c1917;
    font-size: 1.15rem;
    margin: 0 0 18px 0;
    font-weight: 800;
    text-align: center;
    letter-spacing: .2px;
    position: relative;
    z-index: 1;
}
.category-grid-container h2::after {
    content: '';
    display: block;
    width: 32px;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #f43f5e);
    margin: 8px auto 0;
    border-radius: 3px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0;
    position: relative;
    z-index: 1;
}

.category-item {
    position: relative;
    height: 100px;
    background: #fafaf9;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    overflow: hidden;
    border: 1px solid #e7e5e4;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}
.category-item:hover {
    transform: translateY(-3px);
    border-color: #ddd6fe;
    background: #f5f3ff;
    box-shadow: 0 6px 18px rgba(124, 58, 237, .08);
}

.category-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #7c3aed 0%, #f43f5e 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(124, 58, 237, .22);
    transition: all .3s ease;
}
.category-item:hover .category-icon {
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 5px 16px rgba(124, 58, 237, .3);
}
.category-icon svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

.category-name {
    font-size: .8rem;
    font-weight: 600;
    color: #57534e;
    text-align: center;
    z-index: 2;
    line-height: 1.3;
    transition: color .25s ease;
}
.category-item:hover .category-name {
    color: #7c3aed;
}

/* ─────── SEO Content Section ────── */
.seo-content-section {
    background: #ffffff;
    padding: 28px 20px;
    margin: 24px 10px;
    border-radius: 16px;
    border: 1px solid #e7e5e4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
    position: relative;
    overflow: hidden;
}

.seo-content-section h2 {
    color: #1c1917;
    text-align: center;
    font-size: 1.3rem;
    margin: 0 0 20px;
    font-weight: 800;
    letter-spacing: -.1px;
    position: relative;
}
.seo-content-section h2::after {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #f43f5e);
    margin: 8px auto 0;
    border-radius: 3px;
}

.seo-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.benefit-item {
    background: #fafaf9;
    padding: 18px 16px;
    border-radius: 10px;
    border: 1px solid #e7e5e4;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}
.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #7c3aed, #f43f5e);
    border-radius: 3px;
    transition: height .3s ease;
}
.benefit-item:hover {
    transform: translateY(-2px);
    border-color: #ddd6fe;
    background: #f5f3ff;
    box-shadow: 0 5px 14px rgba(124, 58, 237, .06);
}
.benefit-item:hover::before {
    height: 100%;
}
.benefit-item h3 {
    color: #7c3aed;
    font-size: .98rem;
    margin: 0 0 6px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}
.benefit-item h3::before {
    content: '✦';
    color: #f43f5e;
    font-size: .85rem;
}
.benefit-item p {
    color: #57534e;
    line-height: 1.7;
    font-size: .86rem;
    margin: 0;
}

/* ─────── Game Types Section ─────── */
.game-types-section {
    background: #ffffff;
    padding: 28px 20px;
    margin: 24px 10px;
    border-radius: 16px;
    border: 1px solid #e7e5e4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
    position: relative;
    overflow: hidden;
}

.game-types-section h2 {
    color: #1c1917;
    text-align: center;
    font-size: 1.3rem;
    margin: 0 0 20px;
    font-weight: 800;
    letter-spacing: -.1px;
    position: relative;
}
.game-types-section h2::after {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #f43f5e);
    margin: 8px auto 0;
    border-radius: 3px;
}

.game-type-info h3 {
    color: #7c3aed;
    font-size: 1.04rem;
    margin: 20px 0 6px 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}
.game-type-info h3::before {
    content: '◆';
    color: #f43f5e;
    font-size: .65rem;
}
.game-type-info h3:first-of-type {
    margin-top: 4px;
}
.game-type-info p {
    color: #57534e;
    line-height: 1.75;
    font-size: .9rem;
    margin: 0 0 10px;
    padding-left: 16px;
}

/* ─────── Category Subtitle ────── */
.category-subtitle {
    color: #57534e;
    font-size: .95rem;
    text-align: center;
    margin: 12px 0 24px 0;
    line-height: 1.7;
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
}

/* ─────── Recommend Item (List style) ─────── */
.recommend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
    margin: 12px 0;
    position: relative;
}
.recommend-item a {
    align-items: center;
    justify-self: center;
    text-decoration: none;
    width: 100%;
}
.recommend-item img {
    width: 100%;
    object-fit: contain;
    border-radius: 9px;
}
.recommend-item-info {
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    flex-wrap: wrap;
    position: relative;
}
.recommend-item-info h3 {
    color: #1c1917;
    font-size: .88rem;
    margin: 0 0 3px;
    font-weight: 700;
}
.recommend-item-info p {
    color: #a8a29e;
    font-size: .76rem;
    margin: 3px 0 0;
    font-weight: 500;
}

.recommend-item-btn {
    display: flex;
    width: 100%;
    height: 30px;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(124, 58, 237, .2);
    transition: all .25s ease;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.recommend-item-btn a {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: 700;
    font-size: .82rem;
    text-decoration: none;
    letter-spacing: .2px;
}
.recommend-item-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, .3);
}
.recommend-item-btn img {
    width: 26px;
    height: 14px;
}

/* ─────── Responsive ─────── */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .category-item {
        height: 88px;
        border-radius: 10px;
    }
    .category-icon {
        width: 34px;
        height: 34px;
    }
    .category-icon svg {
        width: 16px;
        height: 16px;
    }
    .category-name {
        font-size: .76rem;
    }
    .seo-benefits {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .category-grid-container {
        padding: 20px 14px 16px;
        margin: 18px 8px;
    }
    .hdvsvs-recommend-content,
    .hdvsvs-recommend-content-hot {
        gap: 8px;
        padding: 10px;
        margin: 8px;
    }
    .seo-content-section,
    .game-types-section {
        margin: 20px 8px;
        padding: 22px 16px;
    }
    .category-item {
        height: 76px;
    }
    .category-grid-container h2 {
        font-size: 1.05rem;
    }
}
