/* ================= 全局弹窗样式 ================= */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999; opacity: 0; pointer-events: none; transition: opacity 0.3s;
    font-family: "Microsoft YaHei", sans-serif;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-box {
    position: relative; width: 90%; max-width: 450px; background: #161616;
    padding: 40px 30px; border-radius: 8px; border-top: 4px solid #d4af37;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8); text-align: center;
    display: none; transform: scale(0.9); transition: transform 0.3s;
}
.modal-overlay.active .modal-box { transform: scale(1); }
.modal-box.show { display: block; }

.modal-box .close-btn {
    position: absolute; top: 15px; right: 15px;
    font-size: 26px; color: #888; cursor: pointer;
    transition: 0.3s; line-height: 1; background: none; border: none;
}
.modal-box .close-btn:hover { color: #d4af37; transform: rotate(90deg); }

.modal-box h2 { color: #d4af37; margin-bottom: 24px; font-size: 24px; letter-spacing: 1px; }

/* 输入框和下拉框统一样式 */
.modal-box input, 
.modal-box select { 
    width: 100%; padding: 14px; margin: 8px 0; 
    background: #0a0a0a; border: 1px solid #333; 
    color: #fff; border-radius: 4px; font-size: 16px; outline: none; transition: 0.3s;
}
.modal-box input:focus, 
.modal-box select:focus { border-color: #d4af37; }

/* 专门针对下拉框的优化 */
.modal-box select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    cursor: pointer;
}
.modal-box select option { background: #161616; color: #fff; }

.modal-box button.submit-btn { 
    width: 100%; padding: 14px; margin-top: 20px; 
    background: linear-gradient(180deg, #e8c77a, #c9a34d); 
    color: #111; border: none; border-radius: 4px; font-size: 18px; font-weight: bold; 
    cursor: pointer; transition: 0.3s; 
}
.modal-box button.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4); }
.modal-box button.submit-btn:disabled { background: #555; cursor: not-allowed; transform: none; }
.modal-box a { color: #d4af37; text-decoration: none; font-size: 14px; }
.modal-box a:hover { text-decoration: underline; }

.role-list { list-style: none; margin-top: 20px; text-align: left; }
.role-list li { background: #0a0a0a; padding: 15px; margin-bottom: 10px; border-radius: 4px; border-left: 4px solid #d4af37; display: flex; justify-content: space-between; align-items: center; }
.role-name { font-weight: bold; color: #d4af37; font-size: 16px; }
.role-info { color: #aaa; font-size: 14px; }
.step { background: #0a0a0a; padding: 15px; margin-bottom: 15px; border-radius: 4px; border-left: 4px solid #d4af37; text-align: left; }
.step p { color: #aaa; line-height: 1.6; font-size: 14px; }
.qq-highlight { color: #d4af37; font-size: 20px; font-weight: bold; display: block; margin-top: 5px; }

/* ================= 新增：自定义轻提示 (Toast) ================= */
#customToast {
    position: fixed;
    top: 15%; /* 出现在屏幕偏上位置 */
    left: 50%;
    transform: translate(-50%, -20px);
    background: rgba(22, 22, 22, 0.95);
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
    text-align: center;
    pointer-events: none; /* 穿透，不遮挡鼠标操作 */
}

#customToast.show-toast {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}