



/* 搜索框样式 */
.search-container {
    margin: 20px;
    position: relative;
    z-index: 100;
}

.search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 4px;
    padding: 8px 20px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    box-shadow: 0 2px 8px rgba(64, 145, 108, 0.2);
    border-color: #40916c;
    transform: translateY(-1px);
}

.search-icon {
    color: #40916c;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.search-box:focus-within .search-icon {
    color: #40916c;
    transform: scale(1.05);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #333333;
    font-size: 1rem;
    padding: 8px 0;
    font-weight: 500;
}

.search-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
    font-weight: 400;
}

.search-clear-btn {
    background: #40916c;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 1px 5px rgba(64, 145, 108, 0.3);
}

.search-clear-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(64, 145, 108, 0.4);
}

.search-clear-btn:active {
    transform: scale(0.95);
}

.search-clear-btn svg {
    width: 14px;
    height: 14px;
}

/* 搜索结果样式 */
.search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb {
    background: #40916c;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(64, 145, 108, 0.3);
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #2d6a4f;
    box-shadow: 0 2px 8px rgba(64, 145, 108, 0.4);
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(64, 145, 108, 0.05);
    padding-left: 25px;
}

.search-result-item:active {
    background: rgba(64, 145, 108, 0.08);
}

.search-result-img {
    width: 60px;
    height: 60px;
    border-radius: 2px;
    object-fit: cover;
    margin-right: 15px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.search-result-item:hover .search-result-img {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    color: #333333;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-desc {
    color: #666666;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-no-results {
    padding: 30px 20px;
    text-align: center;
    color: #666666;
    font-size: 1rem;
    opacity: 0.7;
}

.search-no-results svg {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    color: #40916c;
    opacity: 0.5;
}

/* 轮播图样式 */
.carousel-container {
    position: relative;
    margin: 20px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    height: 300px;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    cursor: pointer;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7), transparent);
    color: #333333;
}

.carousel-slide-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #333333;
}

.carousel-slide-desc {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
    color: #666666;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none;
}

.carousel-btn {
    width: 45px;
    height: 45px;
    border-radius: 4px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    pointer-events: auto;
    color: #40916c;
    font-weight: 700;
}

.carousel-btn:hover {
    background: #40916c;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 3px 12px rgba(64, 145, 108, 0.25);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: #4a90d9;
    border-color: #4a90d9;
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(74, 144, 217, 0.3);
}

.carousel-indicator:hover {
    background: rgba(74, 144, 217, 0.3);
    transform: scale(1.1);
}

/* 可滚动的游戏展示区域 */
.dcbao-recommend-content-scrollable {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 10px;
    padding: 20px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #4a90d9 #f5f5f5;
}

.dcbao-recommend-content-scrollable::-webkit-scrollbar {
    width: 8px;
}

.dcbao-recommend-content-scrollable::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.dcbao-recommend-content-scrollable::-webkit-scrollbar-thumb {
    background: #4a90d9;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(74, 144, 217, 0.3);
}

.dcbao-recommend-content-scrollable::-webkit-scrollbar-thumb:hover {
    background: #357ab8;
    box-shadow: 0 2px 8px rgba(74, 144, 217, 0.4);
}

.recommend-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
    margin: 15px 0px;
    position: relative;
    background: #ffffff;
    padding: 4%;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.recommend-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #cccccc;
}

.recommend-item a {
    align-items: center;
    justify-self: center;
    text-decoration: none;

}
.recommend-item img {
    width: 100%;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.recommend-item img:hover {
    transform: scale(1.02);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.recommend-item-info{
    display: flex;
    flex-direction: column;
    padding: 12px;
    flex-wrap: wrap;
    position: relative;
}

.recommend-item-info h3 {
    color: #333333;
    font-size: 1rem;
    margin: 0px 10px;
    font-weight: 700;
}
.recommend-item-info p {
    display: flex;
    color: #666666;
    font-size: 0.8rem;
    margin: 10px 10px;
    font-weight: 400;
}

.recommend-item-btn a {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

}
.recommend-item-btn {
    display: flex;
    width: 100%;
    height: 35px;
    background: #4a90d9;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(74, 144, 217, 0.3);
    transition: all 0.3s ease;
    border: 1px solid #4a90d9;
    position: relative;
    overflow: hidden;
}

.recommend-item-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 12px rgba(74, 144, 217, 0.4);
}
.recommend-item-btn img {
    width: 28px;
    height: 16px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.recommend-item-btn:hover img {
    transform: scale(1.05);
}

.dcbao-recommend-content{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 10px;
    padding: 20px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.dcbao-recommend-content-hot{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 10px 20px;
    padding: 20px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

.dcbao-recommend-content-hot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #4a90d9;
}

@keyframes gradientFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.dcbao-recommend-content img {
    width: 100%;
}



.dcbao-recommend-content-hot img {
    width: 100%;
}

/* 分类宫格区域样式 */
.category-grid-container {
    margin: 30px 20px;
    padding: 25px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

.category-grid-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #4a90d9;
    z-index: 1;
}

.category-title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.category-title h2 {
    font-size: 1.9rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #333333;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 0;
    perspective: 1000px;
}

.category-item {
    position: relative;
    height: 110px;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 144, 217, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #4a90d9;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.category-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    border-color: #cccccc;
    background: #fafafa;
}

.category-item:hover::before {
    opacity: 1;
}

.category-item:hover .category-icon {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(74, 144, 217, 0.3);
}

.category-item:hover::after {
    transform: scaleX(1);
}

.category-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
    background: #4a90d9;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(74, 144, 217, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.category-icon svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
    position: relative;
    z-index: 1;
}

.category-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333333;
    text-align: center;
    z-index: 2;
    line-height: 1.3;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.category-item:hover .category-name {
    color: #4a90d9;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .category-item {
        height: 105px;
    }
    
    .dcbao-recommend-content-scrollable {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .carousel-wrapper {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .search-container {
        margin: 15px;
    }
    
    .search-box {
        padding: 6px 15px;
        border-radius: 20px;
    }
    
    .search-input {
        font-size: 0.9rem;
    }
    
    .search-result-img {
        width: 50px;
        height: 50px;
    }
    
    .search-result-title {
        font-size: 0.9rem;
    }
    
    .search-result-desc {
        font-size: 0.8rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .category-item {
        height: 95px;
        border-radius: 16px;
    }
    
    .category-icon {
        width: 38px;
        height: 38px;
    }
    
    .category-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .category-name {
        font-size: 0.88rem;
    }
    
    .dcbao-recommend-content-scrollable {
        grid-template-columns: repeat(2, 1fr);
        max-height: 400px;
    }
    
    .carousel-wrapper {
        height: 200px;
    }
    
    .carousel-slide-title {
        font-size: 1.2rem;
    }
    
    .carousel-slide-desc {
        font-size: 0.8rem;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
    }
    
    .dcbao-category-nav {
        gap: 5px;
    }
    
    .category-nav-item {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .category-item {
        height: 80px;
    }
    
    .category-title h2 {
        font-size: 1.5rem;
    }
    
    .dcbao-recommend-content-scrollable {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 15px;
        max-height: 350px;
    }
    
    .carousel-wrapper {
        height: 180px;
    }
    
    .carousel-slide-title {
        font-size: 1rem;
    }
    
    .carousel-slide-desc {
        display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5em;
    max-height: 4.5em;
        font-size: 0.75rem;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
    }
    
    .carousel-indicator {
        width: 8px;
        height: 8px;
    }
}

/* SEO Content Section Styles */
.seo-content-section {
    background: #ffffff;
    padding: 40px 12px;
    margin: 40px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.seo-content-section h2 {
    color: #333333;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.seo-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.benefit-item {
    background: #f5f5f5;
    padding: 25px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-2px);
    background: #fafafa;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    border-color: #cccccc;
}

.benefit-item h3 {
    color: #4a90d9;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.benefit-item p {
    color: #666666;
    line-height: 1.6;
    font-size: 1rem;
}

/* Game Types Section */
.game-types-section {
    background: #ffffff;
    padding: 40px 25px;
    margin: 40px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.game-types-section h2 {
    color: #333333;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.game-type-info h3 {
    color: #4a90d9;
    font-size: 1.4rem;
    margin: 25px 0 10px 0;
    font-weight: 700;
}

.game-type-info p {
    color: #666666;
    line-height: 1.6;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* Category Subtitle */
.category-subtitle {
    color: #666666;
    font-size: 1.2rem;
    text-align: center;
    margin: 20px 0 40px 0;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}




