/* 游戏下载弹窗 - 极致玻璃拟态设计 */

/* 全局动画关键帧 */
@keyframes gdModalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.7);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes gdPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes gdShimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* 遮罩层 - 清晰玻璃 */
.gd-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(20, 15, 10, 0.40) 30%,
        rgba(10, 8, 5, 0.38) 70%,
        rgba(0, 0, 0, 0.35) 100%
    );
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    z-index: 9999998 !important;
    display: none;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gd-modal-overlay.active {
    display: block;
    opacity: 1;
}

/* 弹窗主容器 */
.gd-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 90%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 9999999 !important;
    display: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.gd-modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: gdModalFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 玻璃质感容器 - 清晰玻璃 */
.gd-modal-content {
    background: linear-gradient(
        135deg,
        rgba(20, 15, 10, 0.45) 0%,
        rgba(30, 22, 15, 0.40) 50%,
        rgba(25, 18, 12, 0.42) 100%
    );
    backdrop-filter: blur(20px) saturate(150%) brightness(0.95);
    -webkit-backdrop-filter: blur(20px) saturate(150%) brightness(0.95);
    border-radius: 28px;
    padding: 36px 28px 32px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 15px 40px rgba(0, 0, 0, 0.3),
        0 8px 20px rgba(255, 215, 0, 0.3),
        inset 0 2px 4px rgba(255, 215, 0, 0.35),
        inset 0 -2px 4px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(255, 215, 0, 0.6);
    position: relative;
    overflow: hidden;
}

/* 金色光泽效果 */
.gd-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(
        180deg,
        rgba(255, 215, 0, 0.15) 0%,
        rgba(255, 165, 0, 0.08) 50%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* 底部金色光晕 */
.gd-modal-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100px;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 215, 0, 0.12) 0%,
        rgba(255, 165, 0, 0.06) 40%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 1;
}

/* 关闭按钮 - 清晰玻璃 */
.gd-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        rgba(50, 40, 30, 0.4) 0%,
        rgba(40, 30, 20, 0.35) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 215, 0, 0.55);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 22px;
    color: #FFD700;
    z-index: 10;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.25),
        inset 0 1px 2px rgba(255, 215, 0, 0.4);
}

.gd-modal-close:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 100, 100, 0.95) 0%,
        rgba(255, 50, 80, 0.9) 100%
    );
    color: white;
    transform: rotate(90deg) scale(1.1);
    border-color: rgba(255, 100, 100, 0.6);
    box-shadow: 
        0 6px 20px rgba(255, 0, 0, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* 标题 - 金色渐变文字 */
.gd-modal-title {
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 28px;
    background: linear-gradient(
        135deg,
        #FFD700 0%,
        #FFA500 50%,
        #FF8C00 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 15px rgba(255, 215, 0, 0.5);
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.3));
}

/* 提示信息区域 */
.gd-notice {
    background: linear-gradient(
        135deg,
        rgba(255, 165, 0, 0.15) 0%,
        rgba(255, 140, 0, 0.12) 100%
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    border: 2px solid rgba(255, 165, 0, 0.4);
    box-shadow: 
        0 8px 24px rgba(255, 165, 0, 0.2),
        inset 0 1px 2px rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.gd-notice-icon {
    font-size: 48px;
    animation: gdPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.gd-notice-content {
    flex: 1;
}

.gd-notice-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #FFD700;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.gd-notice-content p {
    font-size: 15px;
    color: #FFA500;
    margin: 4px 0;
    line-height: 1.6;
}

.gd-notice-date {
    margin-top: 12px !important;
    font-size: 16px !important;
}

.gd-notice-date strong {
    color: #FFD700;
    font-weight: 700;
    font-size: 18px;
}

/* 平台列表标题 */
.gd-platforms-title {
    font-size: 18px;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 16px;
    text-align: center;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

/* 平台列表 */
.gd-platforms {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

/* 平台卡片 */
.gd-platform-card {
    background: linear-gradient(
        135deg,
        rgba(40, 30, 20, 0.35) 0%,
        rgba(35, 25, 18, 0.30) 100%
    );
    backdrop-filter: blur(15px) saturate(140%);
    -webkit-backdrop-filter: blur(15px) saturate(140%);
    border-radius: 16px;
    padding: 16px 20px;
    border: 1.5px solid rgba(255, 215, 0, 0.4);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(255, 215, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.gd-platform-card:hover {
    transform: translateX(4px);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 3px 10px rgba(255, 215, 0, 0.3),
        inset 0 1px 2px rgba(255, 215, 0, 0.35);
}

.gd-platform-icon {
    font-size: 32px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(255, 215, 0, 0.4));
}

.gd-platform-info {
    flex: 1;
}

.gd-platform-name {
    font-size: 16px;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 4px;
    text-shadow: 0 1px 4px rgba(255, 215, 0, 0.3);
}

.gd-platform-desc {
    font-size: 13px;
    color: #D4AF37;
    opacity: 0.85;
}

.gd-platform-status {
    padding: 6px 14px;
    background: linear-gradient(
        135deg,
        rgba(255, 165, 0, 0.25) 0%,
        rgba(255, 140, 0, 0.20) 100%
    );
    border: 1px solid rgba(255, 165, 0, 0.4);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #FFA500;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 操作按钮区域 */
.gd-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

/* 按钮样式 */
.gd-btn {
    flex: 1;
    padding: 16px 24px;
    border-radius: 14px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 主要按钮 */
.gd-btn-primary {
    background: linear-gradient(
        135deg,
        rgba(255, 165, 0, 0.8) 0%,
        rgba(255, 140, 0, 0.75) 100%
    );
    color: white;
    border: 2px solid rgba(255, 215, 0, 0.6);
    box-shadow: 
        0 6px 20px rgba(255, 165, 0, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.gd-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(
        135deg,
        rgba(255, 185, 0, 0.9) 0%,
        rgba(255, 160, 0, 0.85) 100%
    );
    box-shadow: 
        0 10px 30px rgba(255, 165, 0, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.gd-btn-primary:active {
    transform: translateY(-1px) scale(1);
}

/* 次要按钮 */
.gd-btn-secondary {
    background: linear-gradient(
        135deg,
        rgba(60, 45, 30, 0.6) 0%,
        rgba(50, 38, 25, 0.55) 100%
    );
    color: #FFD700;
    border: 2px solid rgba(255, 215, 0, 0.4);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 215, 0, 0.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.gd-btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(
        135deg,
        rgba(70, 55, 40, 0.7) 0%,
        rgba(60, 48, 35, 0.65) 100%
    );
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(255, 215, 0, 0.3);
}

.gd-btn-secondary:active {
    transform: translateY(-1px) scale(1);
}

/* 底部说明 */
.gd-footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
    z-index: 2;
}

.gd-footer p {
    font-size: 14px;
    color: #D4AF37;
    margin: 4px 0;
    opacity: 0.9;
}

/* Toast提示 */
.gd-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    background: linear-gradient(
        135deg,
        rgba(30, 30, 40, 0.98) 0%,
        rgba(20, 20, 30, 0.95) 100%
    );
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    color: white;
    padding: 18px 40px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    z-index: 99999999 !important;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.5px;
}

.gd-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .gd-modal {
        width: 94%;
        max-height: 82vh;
    }

    .gd-modal-content {
        padding: 30px 20px 26px;
        border-radius: 24px;
    }

    .gd-modal-title {
        font-size: 22px;
        margin-bottom: 22px;
    }

    .gd-notice {
        padding: 18px;
        gap: 12px;
    }

    .gd-notice-icon {
        font-size: 40px;
    }

    .gd-notice-content h3 {
        font-size: 18px;
    }

    .gd-notice-content p {
        font-size: 14px;
    }

    .gd-notice-date strong {
        font-size: 16px;
    }

    .gd-platform-card {
        padding: 14px 16px;
    }

    .gd-platform-icon {
        font-size: 28px;
    }

    .gd-platform-name {
        font-size: 15px;
    }

    .gd-platform-desc {
        font-size: 12px;
    }

    .gd-actions {
        flex-direction: column;
    }

    .gd-btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    .gd-modal-close {
        width: 32px;
        height: 32px;
        font-size: 20px;
        top: 16px;
        right: 16px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 375px) {
    .gd-modal {
        width: 96%;
    }

    .gd-modal-content {
        padding: 26px 18px 22px;
        border-radius: 22px;
    }

    .gd-modal-title {
        font-size: 20px;
    }

    .gd-notice {
        padding: 16px;
    }

    .gd-notice-icon {
        font-size: 36px;
    }

    .gd-btn {
        padding: 13px 18px;
        font-size: 14px;
    }
}

/* 滚动条美化 */
.gd-modal::-webkit-scrollbar {
    width: 6px;
}

.gd-modal::-webkit-scrollbar-track {
    background: transparent;
}

.gd-modal::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 3px;
}

.gd-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

