body {
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.8;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

header {
    background: #2c3e50;
    color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo h1 {
    margin: 0;
    font-size: 2em;
    font-weight: 600;
}

.logo p {
    margin: 5px 0 0;
    font-size: 0.9em;
    color: #ddd;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 25px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #e67e22;
}

.hero {
    background: url('hero-bg.jpg') no-repeat center center/cover;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-content {
    background: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 10px;
}

.cta-button {
    display: inline-block;
    background: #e67e22;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}

section {
    padding: 60px 20px;
}

.about-section {
    background: #f8f9fa;
    padding: 80px 20px;
}

.about-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #2c3e50;
}

.about-section p {
    max-width: 1000px;
    margin: 0 auto;
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
}

.services-section {
    background: white;
    padding: 80px 20px;
}

.services-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #2c3e50;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #2c3e50;
}

.card p {
    font-size: 1em;
    color: #666;
}

.news-section {
    background: #f8f9fa;
    padding: 80px 20px;
}

.news-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #2c3e50;
}

.news-articles {
    max-width: 1000px;
    margin: 0 auto;
}

.news-articles article {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-articles h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #2c3e50;
}

.news-articles p {
    font-size: 0.9em;
    color: #666;
}

.contact-section {
    background: #2c3e50;
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
}

.contact-section p {
    font-size: 1.1em;
    margin: 10px 0;
}

.contract-review-section, .cost-estimation-section {
    background: #f8f9fa;
    padding: 80px 20px;
}

.contract-review-section h2, .cost-estimation-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #2c3e50;
}

.chat-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.cta-button {
    background: #e67e22;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #d35400;
}

.user-message {
    background: #2c3e50;
    color: white;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    max-width: 70%;
    margin-left: auto;
}

.bot-message {
    background: #f1f1f1;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    max-width: 70%;
}

.contract-review-section .chat-container {
    text-align: center;
    padding: 20px;
}

.contract-review-section .cta-button {
    display: inline-block;
    margin-top: 20px;
}

.cost-estimation-section .chat-container {
    text-align: center;
    padding: 20px;
}

.cost-estimation-section .cta-button {
    display: inline-block;
    margin-top: 20px;
}

.ai-assistant-section {
    background: white;
    padding: 80px 20px;
}

.ai-assistant-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #2c3e50;
}

#ai-chat-window {
    height: 300px;
    padding: 20px;
    overflow-y: auto;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
}

#ai-input-container {
    display: flex;
    gap: 10px;
}

#ai-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

#ai-send {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#ai-send:hover {
    background: #34495e;
}

.ai-message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
    max-width: 80%;
}

.ai-user-message {
    background: #2c3e50;
    color: white;
    margin-left: auto;
}

.ai-bot-message {
    background: #f1f1f1;
    margin-right: auto;
}

footer {
    background: #34495e;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}

/* 添加轮播图样式 */
.swiper-section {
    padding: 60px 0;
    background: #fff;
}

.swiper {
    width: 100%;
    height: 600px;
    border-radius: 10px;
    overflow: hidden;
}

.swiper-slide {
    position: relative;
    text-align: center;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.5em;
    font-weight: 500;
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: #e67e22;
    opacity: 1;
}

/* 添加合同审核部分的样式 */
.contract-review-section {
    background: #f8f9fa;
    padding: 60px 20px;
}

.chat-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.chat-window {
    height: 400px;
    padding: 20px;
    overflow-y: auto;
    border-bottom: 1px solid #eee;
}

.chat-input {
    display: flex;
    padding: 10px;
    background: #f5f5f5;
}

.chat-input input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 10px;
}

.cta-button {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.cta-button:hover {
    background: #34495e;
}

.user-message {
    background: #2c3e50;
    color: white;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    max-width: 70%;
    margin-left: auto;
}

.bot-message {
    background: #f1f1f1;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    max-width: 70%;
}

.contract-review-section .chat-container {
    text-align: center;
    padding: 20px;
}

.contract-review-section .cta-button {
    display: inline-block;
    margin-top: 20px;
}

.cost-estimation-section .chat-container {
    text-align: center;
    padding: 20px;
}

.cost-estimation-section .cta-button {
    display: inline-block;
    margin-top: 20px;
}

/* AI助手部分样式 */
.ai-assistant-section {
    background: #f8f9fa;
    padding: 60px 20px;
}

#ai-chat-window {
    height: 300px;
    padding: 20px;
    overflow-y: auto;
    border-bottom: 1px solid #eee;
}

#ai-input-container {
    display: flex;
    padding: 10px;
    background: #f5f5f5;
}

#ai-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}

#ai-send {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

#ai-send:hover {
    background: #34495e;
}

/* 消息样式 */
.ai-message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
    max-width: 80%;
}

.ai-user-message {
    background: #2c3e50;
    color: white;
    margin-left: auto;
}

.ai-bot-message {
    background: #f1f1f1;
    margin-right: auto;
} 