/* style_index.css - 完整修改版 */

/* 基础动画 */
.animate-marquee {
    animation: marquee 15s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

/* 玻璃效果 */
.glass-effect {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.8);
}

/* 服务器卡片 - 默认设为#E1F7FF */
.server-card {
    background-color: #E1F7FF;
    border: 1px solid rgba(0, 120, 180, 0.15);
    transition: all 0.3s ease;
}
.server-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* 页脚统计 */
.footer-stat {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background-color: white;
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    font-size: 0.75rem;
    line-height: 1rem;
    transition: all 0.2s;
}
.footer-stat:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.footer-stat i {
    margin-right: 0.25rem;
    font-size: 0.65rem;
}

/* 走马灯动画 */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
@keyframes marquee2 {
    0% { transform: translateX(100%); }
    100% { transform: translateX(0); }
}
.animate-marquee {
    animation: marquee 20s linear infinite;
    display: inline-block;
    padding-left: 100%;
}
.animate-marquee2 {
    animation: marquee2 20s linear infinite;
    display: inline-block;
    padding-left: 100%;
}
.bg-blue-50/80:hover .animate-marquee,
.bg-blue-50/80:hover .animate-marquee2 {
    animation-play-state: paused;
}

/* 轮播图 */
#bannerCarousel {
    position: relative;
    max-width: 1000px;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: #f8f9fa;
}
#bannerCarousel .splide__track {
    position: relative;
    padding-top: 40%;
}
#bannerCarousel .splide__list {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#bannerCarousel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: white;
}

/* ================= 电脑端专属样式 ================= */
@media (min-width: 768px) {
    /* 轮播图调整 */
    #bannerCarousel {
        width: 90%;
        margin: 30px auto;
    }
    
    /* 置顶服务器区域 */
    .bg-white.rounded-xl {
        background-color: #E1F7FF !important;
        border-color: rgba(0, 120, 180, 0.2) !important;
    }
    .grid.grid-cols-2.sm\:grid-cols-4.gap-2.p-3 a {
        background-color: #E1F7FF !important;
    }
    
    /* 导航按钮 */
    .grid.grid-cols-2 button, 
    .grid.grid-cols-2 a {
        background-color: #E1F7FF !important;
        border-color: rgba(0, 120, 180, 0.2) !important;
    }
    
    /* 分类选择框 */
    .grid.grid-cols-2 .relative select {
        background-color: #E1F7FF !important;
        border-color: rgba(0, 120, 180, 0.2) !important;
    }
    
    /* 按钮选中状态 */
    button.bg-blue-50, a.bg-blue-50 {
        background-color: #E1F7FF !important;
        border-color: rgba(0, 120, 180, 0.3) !important;
    }
    
    /* 表单卡片 */
    .bg-white.rounded-xl.shadow-2xl {
        background-color: #E1F7FF !important;
    }
    
    /* 悬停效果 */
    .hover\:bg-blue-50:hover {
        background-color: #c9eefa !important;
    }
}

/* ================= 手机端保持原样 ================= */
@media (max-width: 767px) {
    #bannerCarousel {
        width: 95%;
        margin: 15px auto;
        border-radius: 8px;
    }
    #bannerCarousel .splide__track {
        padding-top: 40%;
    }
    .splide__list {
        padding: 0 5px;
    }
    
    /* 保持白色背景 */
    .server-card {
        background-color: white !important;
    }
    .grid.grid-cols-2 button, 
    .grid.grid-cols-2 a {
        background-color: white !important;
    }
}

/* 通用样式 */
#bannerCarousel a {
    display: block;
    height: 100%;
    transition: transform 0.3s ease;
}
#bannerCarousel a:hover img {
    transform: scale(1.02);
}
.grayscale {
    filter: grayscale(100%);
}
.server-card.opacity-70 {
    opacity: 0.7;
    position: relative;
}
.server-card.opacity-70::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

/* 弹窗动画 */
#announcementModal {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
#announcementModal:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

/* 侧边栏 */
#sidebarMenu {
    will-change: transform;
}
body.overflow-hidden {
    overflow: hidden;
}

/* 提交表单弹窗 */
#submissionModal {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}
#submissionModal:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}