/* 主页样式 */

/* 消息样式 */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    position: relative;
}

.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

.alert-dismissible {
    padding-right: 35px;
}

.alert-dismissible .close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 15px;
    color: inherit;
    background: transparent;
    border: none;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}

/* 联系表单样式 */
.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-control {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    font-size: 14px;
    width: 100%;
}

.contact-form .form-control:focus {
    border-color: #853b3b;
    box-shadow: 0 0 0 0.2rem rgba(133, 59, 59, 0.25);
    outline: none;
}

.contact-form .btn-primary {
    background-color: #853b3b;
    border-color: #853b3b;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    background-color: #6d2f2f;
    border-color: #6d2f2f;
}

.form-submitting {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-form .form-control {
        margin-bottom: 15px;
    }
    
    .contact-form .btn-primary {
        width: 100%;
        padding: 15px;
    }
} 