/* 移动端访问提示样式 */
.mobile-notice-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.mobile-notice-overlay.show {
    opacity: 1;
    visibility: visible;
}

.mobile-notice-overlay.hide {
    opacity: 0;
    visibility: hidden;
}

.mobile-notice {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    transform: scale(0.9) translateY(-20px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.mobile-notice-overlay.show .mobile-notice {
    transform: scale(1) translateY(0);
}

.mobile-notice-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-notice-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-notice-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    line-height: 1;
}

.mobile-notice-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.mobile-notice-body {
    padding: 24px;
    text-align: center;
}

.mobile-notice-body p {
    margin: 0 0 16px 0;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

.mobile-notice-body p:last-of-type {
    margin-bottom: 0;
}

.notice-url {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    margin: 16px 0 !important;
}

.notice-url a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
}

.notice-url a:hover {
    text-decoration: underline;
}

.countdown-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px;
    margin-top: 16px;
    font-size: 14px;
    color: #856404;
}

#countdown-number {
    font-weight: bold;
    color: #dc3545;
    font-size: 16px;
}

.notice-actions {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.mobile-notice-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-width: 120px;
}

.mobile-notice-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.mobile-notice-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .mobile-notice-overlay {
        padding: 16px;
    }
    
    .mobile-notice {
        max-width: none;
        margin: 0;
    }
    
    .mobile-notice-header {
        padding: 16px;
    }
    
    .mobile-notice-header h3 {
        font-size: 16px;
    }
    
    .mobile-notice-body {
        padding: 20px;
    }
    
    .mobile-notice-body p {
        font-size: 15px;
    }
    
    .notice-url {
        padding: 10px;
    }
    
    .mobile-notice-btn {
        width: 100%;
        max-width: 200px;
        padding: 14px 24px;
        font-size: 16px;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .mobile-notice-overlay {
        background-color: rgba(0, 0, 0, 0.8);
    }
    
    .mobile-notice {
        border: 2px solid #000;
    }
    
    .mobile-notice-header {
        background: #000;
        border-bottom: 2px solid #fff;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    .mobile-notice-overlay,
    .mobile-notice,
    .mobile-notice-close {
        transition: none;
    }
    
    .mobile-notice-overlay.show .mobile-notice {
        transform: none;
    }
}