/* ==================== 公告弹窗样式 - 苹果应用商店风格 ==================== */
/* 电脑端和手机端通用样式 */

.notice-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px;
}

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

.notice-popup-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 0.5px rgba(255, 255, 255, 0.5) inset;
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.92) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.notice-popup-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 28px 20px;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.notice-popup-title {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: #000;
    margin: 0;
    flex: 1;
    line-height: 1.3;
    padding-right: 12px;
}

.notice-popup-close {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notice-popup-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
    transform: scale(1.1);
}

.notice-popup-close:active {
    transform: scale(0.95);
}

.notice-popup-content {
    padding: 20px 28px;
    overflow-y: auto;
    flex: 1;
    color: #1d1d1f;
    line-height: 1.6;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    letter-spacing: -0.1px;
}

.notice-popup-content::-webkit-scrollbar {
    width: 6px;
}

.notice-popup-content::-webkit-scrollbar-track {
    background: transparent;
}

.notice-popup-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.notice-popup-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.notice-popup-footer {
    padding: 20px 28px 24px;
    border-top: 0.5px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notice-popup-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    letter-spacing: -0.2px;
}

.notice-popup-btn-primary {
    background: #007AFF;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.notice-popup-btn-primary:hover {
    background: #0051D5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

.notice-popup-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.3);
}

.notice-popup-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-top: 6px;
}

.notice-popup-link {
    background: none;
    border: none;
    color: #007AFF;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    letter-spacing: -0.1px;
    border-radius: 6px;
    position: relative;
    opacity: 0.8;
}

.notice-popup-link-text {
    position: relative;
    display: inline-block;
}

.notice-popup-link::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 8px;
    right: 8px;
    height: 1px;
    background: #007AFF;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.notice-popup-link:hover {
    opacity: 1;
    background: rgba(0, 122, 255, 0.06);
}

.notice-popup-link:hover::after {
    opacity: 0.4;
}

.notice-popup-link:active {
    background: rgba(0, 122, 255, 0.1);
    transform: scale(0.97);
}

.notice-popup-divider {
    color: rgba(0, 0, 0, 0.2);
    font-size: 12px;
    padding: 0 4px;
    user-select: none;
}

/* 手机端优化 */
@media (max-width: 768px) {
    .notice-popup-overlay {
        padding-top: calc(20px + env(safe-area-inset-top, 0px));
    }
    
    .notice-popup-container {
        max-width: 90%;
        border-radius: 18px;
    }
    
    .notice-popup-header {
        padding: 20px 24px 16px;
    }
    
    .notice-popup-title {
        font-size: 20px;
    }
    
    .notice-popup-content {
        padding: 18px 24px;
        font-size: 14px;
    }
    
    .notice-popup-footer {
        padding: 16px 24px 20px;
    }
    
    .notice-popup-btn {
        padding: 14px 24px;
    }
    
    .notice-popup-actions {
        gap: 8px;
        padding-top: 4px;
    }
    
    .notice-popup-close {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
    
    .notice-popup-close:hover {
        transform: none;
    }
    
    .notice-popup-close:active {
        transform: scale(0.95);
    }
}

