body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333333;
    transition: background-color 0.3s, color 0.3s;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    color: #0056b3;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 86, 179, 0.1);
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    color: #0056b3;
    flex: 1;
}

.navbar .nav-links {
    display: flex;
    gap: 20px;
    flex: 2;
    justify-content: flex-end;
}

.navbar .nav-links a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.3s;
}

.navbar .nav-links a:hover {
    color: #4a0e78;
}

.section {
    padding: 100px 20px;
    text-align: center;
    margin: 40px 20px;
    border: 1px solid rgba(0, 86, 179, 0.2);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 86, 179, 0.1);
    background-color: #ffffff;
}

.section .title {
    font-size: 32px;
    margin-bottom: 20px;
    color: #0056b3;
    font-family: 'Orbitron', sans-serif;
}

.section p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333333;
}

.button {
    padding: 15px 30px;
    font-size: 18px;
    background: linear-gradient(45deg, #0056b3, #4a0e78);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.5);
}

.carousel {
    position: relative;
    width: 80%; /* 将宽度从 100% 减小到 80% */
    max-width: 800px; /* 添加最大宽度限制 */
    height: auto;
    margin: 0 auto; /* 居中显示 */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.carousel-inner {
    position: relative;
    width: 300%;
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-inner img {
    width: 33.333%;
    height: auto;
    object-fit: contain;
    max-height: 400px; /* 限制图片最大高度 */
}

/* 添加轮播指示器样式 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10; /* 确保指示器在图片上方 */
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5); /* 改为深色，以便在浅色图片上也能看清 */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-indicator.active {
    background-color: #0056b3; /* 活动指示器使用主题色 */
}

.footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f0f8ff;
    color: #0056b3;
    padding: 40px 0;
    gap: 10px;
}

.footer .social-icons {
    display: flex;
    gap: 20px;
}

.footer .social-icons a {
    color: #0056b3;
    font-size: 24px;
    transition: color 0.3s;
}

.footer .social-icons a:hover {
    color: #4a0e78;
}

.hero-section {
    text-align: center;
    padding: 120px 0 80px;
    background-color: #f0f8ff;
}

.ai-icon {
    font-size: 120px;
    color: #0056b3;
    margin-bottom: 20px;
}

.hero-section h1 {
    font-size: 48px;
    color: #0056b3;
    margin-bottom: 10px;
}

.hero-section p {
    font-size: 24px;
    color: #333333;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #0056b3;
    width: 90%;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 86, 179, 0.3);
}

.close {
    color: #0056b3;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #4a0e78;
    text-decoration: none;
    cursor: pointer;
}

.form-group, .form-row {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    justify-content: space-between;
}

.form-col {
    width: 48%;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #0056b3;
}

input[type="text"],
input[type="date"],
input[type="tel"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #0056b3;
    border-radius: 5px;
    background-color: #ffffff;
    color: #333333;
}

.loading-spinner {
    display: none;
    width: 50px;
    height: 50px;
    border: 3px solid #0056b3;
    border-top: 3px solid #f3f3f3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.progress-bar {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    background-color: #0056b3;
    width: 0;
    transition: width 0.3s ease;
}

.progress-step {
    position: relative;
    z-index: 1;
    padding: 10px;
    border-radius: 50%;
    background-color: #f0f8ff;
    color: #0056b3;
    font-size: 14px;
}

.progress-step.active {
    background-color: #0056b3;
    color: #ffffff;
}

.form-page {
    display: none;
}

.form-page.active {
    display: block;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.form-navigation .button {
    padding: 10px 20px;
}

.ai-analysis {
    margin-bottom: 20px;
    text-align: left;
    line-height: 1.6;
}

.ai-suggestions h3 {
    color: #0056b3;
    margin-bottom: 10px;
}

.ai-suggestions ul {
    text-align: left;
    padding-left: 20px;
}

.ai-suggestions li {
    margin-bottom: 10px;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* 添加这一行，允许按钮在需要时换行 */
}

/* 聊天框样式 */
.chat-content {
    display: flex;
    flex-direction: column;
    height: 80vh;
    max-width: 600px;
    margin: 0 auto;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 10px;
    margin-bottom: 20px;
}

.message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 10px;
    max-width: 70%;
}

.user-message {
    background-color: #007bff;
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

.ai-message {
    background-color: #e9ecef;
    color: #333;
    align-self: flex-start;
}

.chat-input {
    display: flex;
    margin-top: 10px;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 16px;
}

.chat-send-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.chat-send-btn:hover {
    background-color: #0056b3;
}

/* AI建议样式 */
.ai-suggestion-content {
    max-width: 800px;
    margin: 0 auto;
}

.ai-suggestion {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ai-suggestion h3 {
    color: #007bff;
    margin-bottom: 15px;
}

.ai-suggestion p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.ai-suggestion ul {
    padding-left: 20px;
}

.ai-suggestion li {
    margin-bottom: 5px;
}

/* 添加响应式设计 */
@media (max-width: 768px) {
    .carousel {
        width: 95%; /* 在小屏幕上略微增加宽度 */
    }
}