/* 之前的CSS样式保持不变 */
.popup-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(0, 0, 0, 0.9); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 99999; margin: 0; padding: 0; overflow: hidden; pointer-events: auto; -webkit-transform: translateZ(0); transform: translateZ(0); }
.popup-image { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.popup-content { position: relative; z-index: 2; text-align: center; padding: 20px; width: 90%; max-width: 600px; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); } 20%, 40%, 60%, 80% { transform: translateX(10px); } }
.popup-button { background-color: rgba(255, 102, 0, 0.7); color: white; border: none; padding: 20px 40px; font-size: 18px; font-weight: bold; border-radius: 50px; cursor: pointer; transition: all 0.3s ease; margin-bottom: 20px; width: 100%; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); position: relative; z-index: 3; animation: shake 1s ease-in-out 0s 2 alternate, pulse 2s infinite; }
.popup-button:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); }

/* --- 最终优化的CSS样式 --- */
.confirmation-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background-color: rgba(0, 0, 0, 0.85);
    display: flex; justify-content: center; align-items: center; 
    z-index: 100000; padding: 20px; box-sizing: border-box;
    overflow-y: auto;
}
.confirmation-box { 
    background-color: #ffffff; 
    padding: 25px;
    border-radius: 16px; 
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3); 
    width: 100%; 
    max-width: 420px; 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.popup-main-title {
    font-size: 1.2em; 
    font-weight: 700; 
    color: #000000;
    margin: 0;
}
.popup-subtitle {
    font-size: 1em; font-weight: bold; color: #28a745;
    margin: 4px 0 15px 0;
}
.package-info {
    background-color: #f8f9fa; border: 1px solid #dee2e6;
    border-radius: 8px; padding: 10px; margin-bottom: 15px; 
}
.package-title {
    margin: 0; font-weight: bold; color: #343a40; font-size: 1.1em;
}
.package-value {
    margin: 2px 0 0 0; font-size: 0.9em;
    color: #28a745; 
    font-weight: bold; 
}
.content-divider {
    border: 0; height: 1px; background-color: #eee; margin: 15px 0;
}
.benefits-list, .alerts-list {
    list-style-type: none; padding: 0; margin: 0;
    text-align: left;
}
.benefits-list li, .alerts-list li {
    margin-bottom: 10px; font-size: 0.95em;
    display: flex; align-items: center;
    color: #000000;
    font-weight: 700; 
}
.benefits-list li:last-child { margin-bottom: 0; }
.alerts-list li:last-child { margin-bottom: 0; }
.benefits-list li::before { content: '✅'; margin-right: 12px; font-size: 1.1em; font-weight: normal; }
.alerts-list li::before { content: '🕒'; margin-right: 12px; font-size: 1.1em; font-weight: normal; }
.urgency-section {
    background-color: #fffbeb; border: 1px solid #fde68a;
    padding: 12px; border-radius: 8px; margin-top: 20px; 
}
.urgency-title {
    font-weight: bold; color: #b45309; margin: 0; font-size: 1.1em;
}
.progress-bar-container {
    background-color: #e9ecef; border-radius: 50px;
    height: 16px; margin: 8px 0 4px 0; overflow: hidden;
}
.progress-bar-fill {
    background-color: #dc3545; height: 100%; border-radius: 50px;
    width: 61%;
}
.availability-text {
     font-size: 0.85em; font-weight: bold; 
     color: #000000; 
     margin: 0;
}
.button-wrapper { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
#confirmBtn { background-color: #28a745; color: white; animation: pulse 2s infinite; padding: 14px 10px; border-radius: 8px; font-size: 1.1em; font-weight: bold; cursor: pointer; transition: all 0.2s ease-in-out; width: 100%; border: none; }
#confirmBtn:hover { background-color: #218838; transform: scale(1.02); }
#cancelBtn { background-color: transparent; 
    color: #6c757d;
    order: 1; font-size: 0.9em; padding: 5px 10px; border-radius: 8px; cursor: pointer; transition: all 0.2s ease-in-out; width: 100%; border: none; }
#cancelBtn:hover { background-color: #f8f9fa; }