/* tc.css */
.password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

.modal-content {
    position: relative;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -20%);
    width: auto;          
    min-width: 180px;    
    max-width: 20%;      
    background: #fff;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.modal-header {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    line-height: 1.5;       
    word-break: break-word;   
}

.modal-input {
    width: 100%;
    min-width: 250px;     
    padding: 12px;
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;     
}

.modal-btn {
    flex: 1 1 auto;  
    min-width: 100px;  
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.confirm-btn {
    background: #007bff;
    color: white;
}

.cancel-btn {
    background: #6c757d;
    color: white;
}

.error-msg {
    color: #dc3545;
    font-size: 13px;
    height: 20px;
    margin-top: 8px;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .modal-content {
        top: 10%;
        transform: translate(-50%, -10%);
        padding: 20px;
        min-width: 85%;
    }
    
    .modal-header {
        font-size: 16px;
    }
    
    .modal-buttons {
        gap: 10px;
    }
    
    .modal-btn {
        flex: 100%;
        margin: 5px 0;
    }
}

:root {
    --secret-password: "1818";
}