/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

body {
    color: #fff;
    overflow: hidden;
    position: relative;
    width: 100vw;
    height: 100vh;
}

/* 背景幻灯片 */
.background-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.background-slide.active {
    opacity: 1;
}

/* 主容器 */
.container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 1.5s ease-in-out;
}

/* 标题部分 */
.header {
    text-align: center;
    margin-bottom: 2rem;
    animation: slideDown 1s ease-out;
}

.title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    animation: glow 2s ease-in-out infinite alternate;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* 卡片容器 */
.cards-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-bottom: 4rem;
    position: relative;
    perspective: 1000px;
}

/* 卡片样式 */
.card {
    background-color: rgba(30, 30, 40, 0.8);
    border-radius: 10px;
    padding: 1.8rem;
    width: 340px;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.2);
    animation: none;
    transform-style: preserve-3d;
}

/* 错位效果和初始动画 */
.card:nth-child(1) {
    animation: cardAppear1 1.2s forwards ease-out;
    animation-delay: 0.2s;
}

.card:nth-child(2) {
    animation: cardAppear2 1.2s forwards ease-out;
    animation-delay: 0.4s;
}

.card:nth-child(3) {
    animation: cardAppear3 1.2s forwards ease-out;
    animation-delay: 0.6s;
}

.card:nth-child(4) {
    animation: cardAppear4 1.2s forwards ease-out;
    animation-delay: 0.8s;
}


/* 边框 */
.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    padding: 2px;
    background: linear-gradient(45deg, #ffffff, #000000, #ffffff, #000000);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    background-size: 300% 300%;
    animation: borderGlow 8s linear infinite;
    opacity: 0.7;
    z-index: -1;
}

@keyframes borderGlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.card:hover {
    transform: translateY(-10px) scale(1.02) rotateX(5deg) rotateY(-5deg);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(77, 166, 255, 0.4);
}



/* 卡片内部元素的3D效果 */
.card h2, .card-content, .staff-member, .qr-code {
    transform: translateZ(20px);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.card:hover h2 {
    transform: translateZ(30px) translateY(-2px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
}

.card:hover .card-content {
    transform: translateZ(25px) translateY(5px);
}

/* 游玩须知卡片 */
#rules ul {
    padding-left: 1.5rem;
}

#rules li {
    margin-bottom: 0.5rem;
}

/* 服务器人员卡片 */
.staff-member {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.staff-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1.2rem;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
    border: 3px solid #ffffff;
}

.staff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-info h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.staff-info p {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* QQ群卡片 */
.qr-code {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.qr-code img {
    width: 150px;
    height: 267px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    object-fit: contain;
}

#qq-group p {
    text-align: center;
    margin-bottom: 0.5rem;
}

/* 加载条容器 */
.loading-container {
    margin-top: auto;
    width: 100%;
    animation: fadeIn 1s ease-in-out;
    animation-delay: 1s;
    animation-fill-mode: both;
    margin-bottom: 1.5rem;
}

.loading-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.7rem;
    font-size: 1.1rem;
}

.loading-percentage {
    font-weight: bold;
    color: #ffffff;
    font-size: 1.2rem;
}

.loading-bar-container {
    width: 100%;
    height: 25px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffffff, #646464);
    border-radius: 12px;
    transition: width 0.1s linear;
}

.loading-icon {
    position: absolute;
    top: 1250px; /* 调整图标垂直位置，可以根据需要微调 */
    left: 0%;
    transform: translate(-50%) scaleX(-1); /* 水平镜像 */
    width: 80px;   /* 放大图标 */
    height: 80px;  /* 放大图标 */
    transition: left 0.1s linear;
    z-index: 2; /* 确保在进度条上方 */
}


.loading-info {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.5rem;
    text-align: center;
}


@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
    50% {
        box-shadow: 0 0 20px rgb(255, 255, 255);
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
    to {
        text-shadow: 0 0 20px rgb(255, 255, 255), 0 0 30px rgba(0, 200, 255, 0.8);
    }
}

/* 添加卡片光晕效果 */
.cards-container::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(85, 85, 85, 0) 70%);
    border-radius: 50%;
    filter: blur(20px);
    animation: floatAround 15s infinite alternate ease-in-out;
    z-index: -1;
    opacity: 0.7;
}

.cards-container::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(71, 71, 71, 0) 70%);
    border-radius: 50%;
    filter: blur(25px);
    animation: floatAround2 18s infinite alternate-reverse ease-in-out;
    z-index: -1;
    opacity: 0.7;
}

@keyframes floatAround {
    0% {
        top: 10%;
        left: 10%;
    }
    25% {
        top: 20%;
        left: 60%;
    }
    50% {
        top: 60%;
        left: 30%;
    }
    75% {
        top: 40%;
        left: 70%;
    }
    100% {
        top: 30%;
        left: 20%;
    }
}

@keyframes floatAround2 {
    0% {
        top: 70%;
        left: 20%;
    }
    25% {
        top: 30%;
        left: 80%;
    }
    50% {
        top: 20%;
        left: 40%;
    }
    75% {
        top: 60%;
        left: 10%;
    }
    100% {
        top: 50%;
        left: 60%;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cards-container {
        flex-direction: column;
        align-items: center;
    }
    
    .card {
        width: 100%;
        max-width: 400px;
    }
    
    .title {
        font-size: 2rem;
    }
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    animation: shimmer 6s infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translate(-50%, -50%) rotate(45deg);
    }
    100% {
        transform: translate(150%, 150%) rotate(45deg);
    }
}

.card h2 {
    color: #ffffff;
    margin-bottom: 1.2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.7rem;
    font-size: 1.4rem;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.card-content {
    font-size: 1rem;
    line-height: 1.7;
    transition: all 0.3s ease;

} 

