 /* ====== 启动动画样式 (来自logo.html) ====== */

/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    background: #000;
    color: #fff;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "STHeiti", sans-serif;
    height: 100vh;
    overflow: hidden;
}

/* Logo动画容器 */
.stage-logo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #111111 100%);
    z-index: 1000;
    opacity: 1;
}

.logo-container {
    width: 50vw;
    height: 50vh;
    max-width: 280px;
    max-height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* position: relative; */
    /* 使用绝对定位居中 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 发光边框动画 */
.logo-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.7), 
                0 0 60px rgba(255, 215, 0, 0.5), 
                0 0 90px rgba(255, 215, 0, 0.3), 
                inset 0 0 30px rgba(255, 215, 0, 0.4);
    border: 1px solid transparent;
    background: linear-gradient(45deg, #ffd700 0%, #ffed4e 25%, #ffd700 50%, #ffed4e 75%, #ffd700 100%) border-box;
    background-size: 200% 200%;
    animation: borderShine 3s linear infinite;
}

.logo-border::before {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1;
}

.logo-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* 优化图片样式 */
.logo-img {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8));
}

/* ====== 模态框公共样式 ====== */

/* 遮罩层基础样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: overlayFadeIn 0.3s ease-out;
    z-index: var(--z-modal);
}

.icp-overlay {
    z-index: calc(var(--z-modal) - 2);
}

.w-overlay {
    background-color: rgba(0, 0, 0, 0.8);
    z-index: var(--z-modal);
}

.modal-overlay-closing {
    animation: overlayFadeOut 0.3s ease-in forwards;
}

/* 模态框容器基础样式 */
.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000000;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid #333333;
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: calc(var(--z-modal) - 1);
}

.w-modal {
    width: 80%;
    z-index: calc(var(--z-modal) + 1);
}

.modal-container-closing {
    animation: modalSlideOut 0.3s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
}

/* 模态框头部基础样式 */
.modal-header {
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333333;
}

.modal-header h2 {
    margin: 0;
    color: white;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* 模态框滚动条样式 */
.modal-container::-webkit-scrollbar {
    width: 8px;
}

.modal-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* ====== 会员中心特定样式 ====== */

/* 会员中心内容区域 */
.w-content {
    padding: 30px;
    color: white;
    text-align: center;
}

/* 已登录状态内容 - 金色边框+发光效果 */
.w-logged-in {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 2px solid #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: goldGlow 2s ease-in-out infinite alternate;
}

.w-logged-in h3 {
    color: #FFD700;
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.w-message {
    font-size: 12px;
    color: #ffffff;
    line-height: 1.8;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    text-align: left;
}

/* 未登录状态内容 */
.w-not-logged {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 1px solid #333333;
}

.w-not-logged h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.w-not-logged p {
    font-size: 12px;
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 15px;
    text-align: left;
}

.w-footer {
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    margin-top: 20px;
}

.w-footer p:first-child {
    font-weight: 600;
    margin-top: 0;
    color: white;
    font-size: 15px;
}

/* 动作按钮区域 */
.w-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.w-action-btn {
    display: block;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #444444;
    cursor: pointer;
}

.w-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    border-color: #666666;
}

.w-action-btn.primary {
    background: rgba(0, 122, 255, 0.3);
    border-color: rgba(0, 122, 255, 0.5);
}

.w-action-btn.primary:hover {
    background: rgba(0, 122, 255, 0.4);
}

/* ====== ICP备案特定样式 ====== */

/* ICP内容区域 */
.icp-content {
    padding: 30px;
    color: white;
}

/* ICP信息项 */
.icp-info-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 1px solid #333333;
}

.icp-item {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #333333;
}

.icp-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.icp-label {
    font-weight: 600;
    min-width: 100px;
    color: #cccccc;
    font-size: 15px;
}

.icp-value {
    color: white;
    font-size: 15px;
    flex: 1;
}

/* ICP链接样式 */
.icp-link {
    color: #ff6b6b !important;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    display: inline-block;
}

.icp-link:hover {
    background: rgba(255, 107, 107, 0.2);
    color: #ff9e9e;
    text-decoration: underline;
    transform: translateY(-1px);
}

/* ICP底部信息 */
.icp-footer {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #cccccc;
    border-left: 4px solid #444444;
}

.icp-footer p:first-child {
    font-weight: 600;
    margin-top: 0;
    color: white;
}

/* ====== 动画定义 ====== */

/* 启动动画 */
@keyframes logoFloat {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(-10px) scale(1.02); }
}

@keyframes borderShine {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 200%; }
}

@keyframes logoFadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

/* 模态框通用动画 */
@keyframes overlayFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes overlayFadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes modalSlideOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }
}

/* 会员中心金色发光动画 */
@keyframes goldGlow {
    0% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
    100% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.8); }
}

/* ====== 响应式设计 ====== */

/* 启动动画响应式 */
@media (max-width: 768px) {
    .logo-container {
        width: 40vw;
        height: 40vh;
        max-width: 240px;
        max-height: 240px;
    }
}

@media (max-width: 480px) {
    .logo-container {
        width: 35vw;
        height: 35vh;
        max-width: 200px;
        max-height: 200px;
    }
}

/* 模态框响应式 */
@media (max-width: 668px) {
    .modal-container {
        width: 95%;
        max-width: 400px;
    }
    
    .w-modal {
        width: 85%;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .w-actions {
        grid-template-columns: 1fr;
    }
    
    .icp-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .icp-label {
        min-width: auto;
    }
}