* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}



.needs-page-header {
    background-color: rgba(0,0,0,0.05);
    background: url("../images/banner1.jpg") left top no-repeat;
    background-size: cover;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.needs-page-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.needs-page-subtitle {
    font-size: 18px;
    opacity: 0.9;
}


.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.form-container {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 30px;
}

.form-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-required {
    color: #e74c3c;
    margin-left: 3px;
}

.form-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px;
}

.form-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}
#char-count{font-size: 14px;}

.form-submit {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    font-weight: 500;
}

.form-submit:hover {
    background-color: #2980b9;
}

.form-submit:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}



.info-container {
    flex: 0 0 300px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 30px;
}

.info-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.info-item {
    margin-bottom: 20px;
}
.info-list{
    list-style: none;
    padding: 15px 0;
}
.info-list li{
    color: rgba(0,0,0,0.5);
}

.info-icon {
    color: #3498db;
    margin-right: 10px;
    font-size: 18px;
    display: none;
}

.info-text {
    color: #555;
}

.info-highlight {
    color: #3498db;
    font-weight: 500;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}
.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    text-align: center;
}
.modal-close {
    float: right;
    font-size: 24px;
    cursor: pointer;
}
.modal-button {
    margin-top: 15px;
}


@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-menu li {
        margin: 0;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }

    .navbar-toggle {
        display: block;
    }

    .main-content {
        flex-direction: column;
    }

    .form-container, .info-container {
        width: 100%;
    }
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
}

.modal-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: #333;
    text-decoration: none;
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #2ecc71;
}

.modal-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.modal-message {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

.modal-button {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-button:hover {
    background-color: #2980b9;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}