/* 遮罩层样式 */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* 显示遮罩层 */
.modal-mask.active {
    opacity: 1;
    pointer-events: all;
}

/* 模态框主体 */
.modal-dialog {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 320px;
    max-width: 90%;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-mask.active .modal-dialog {
    transform: translateY(0);
}

/* 模态框内容区域 */
.modal-content {
    padding: 24px;
    text-align: center;
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
}

.modal-message {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* 按钮区域 */
.modal-footer {
    display: flex;
    justify-content: center;
    border-top: 1px solid #eee;
    padding: 16px 24px;
}

.modal-button {
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border: none;
    min-width: 80px;
    transition: all 0.2s;
}

.cancel-button {
    background: #f0f0f0;
    color: #666;
    margin-right: 12px;
}

.cancel-button:hover {
    background: #e5e5e5;
}

.confirm-button {
    background: #2196F3;
    color: white;
}

.confirm-button:hover {
    background: #0b7dda;
}



/* 模态框样式 */
.d-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.d-modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 2px solid rgba(0, 195, 255, 0.5);
    box-shadow: 0 0 30px rgba(0, 195, 255, 0.5);
    position: relative;
}

.d-close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #a0a0ff;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.d-close-modal:hover {
    color: #00f2fe;
}

.d-modal-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.d-success .d-modal-icon {
    color: #00ff8c;
}

.d-error .d-modal-icon {
    color: #ff4d4d;
}

.d-modal-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #00f2fe;
}

.d-modal-message {
    font-size: 18px;
    color: #c0c0ff;
    margin-bottom: 30px;
    line-height: 1.6;
}

.d-modal-btn {
    background: linear-gradient(90deg, #00c3ff, #00f2fe);
    color: #0a0818;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    box-shadow: 0 0 15px rgba(0, 195, 255, 0.4);
    min-width: 120px;
}

.d-modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 195, 255, 0.6);
}




/* 输入选择框 */
.input-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.input-subscription {
    max-width: 600px;
    min-width: 600px;
    margin: 60px auto;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 15px;
    padding: 30px;
    border: 2px solid rgba(0, 195, 255, 0.5);
    box-shadow: 0 0 30px rgba(0, 195, 255, 0.5);
    text-align: center;
    position: relative;
}

.input-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #00f2fe;
}

.input-desc {
    color: #b0b0ff;
    margin-bottom: 25px;
    line-height: 1.6;
}

.input-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-form-group {
    position: relative;
}

.input-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(10, 8, 24, 0.6);
    border: 1px solid rgba(0, 195, 255, 0.3);
    border-radius: 30px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-input:focus {
    outline: none;
    border-color: #00c3ff;
    box-shadow: 0 0 15px rgba(0, 195, 255, 0.3);
}

.input-input.error {
    border-color: #ff4d4d;
}

.input-input.valid {
    border-color: #00ff8c;
}

.input-hint-text {
    font-size: 14px;
    color: #7070aa;
    margin-top: 5px;
    text-align: left;
    padding-left: 20px;
}

.input-error-message {
    color: #ff4d4d;
    font-size: 14px;
    margin-top: 5px;
    text-align: left;
    padding-left: 20px;
    display: none;
}

.input-btn {
    background: linear-gradient(90deg, #00c3ff, #00f2fe);
    color: #0a0818;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    box-shadow: 0 0 15px rgba(0, 195, 255, 0.4);
}

.input-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 195, 255, 0.6);
}

.input-btn:disabled {
    background: #7070aa;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}