/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #4CAF50;
}

/* 英雄区域 */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?w=2560&h=1440&fit=crop');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 120px 0;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background-color: #4CAF50;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #45a049;
}

/* 服务卡片 */
.services {
    padding: 80px 0;
    background-color: #fff;
}

.services h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.service-card h3 {
    padding: 20px;
    font-size: 20px;
    color: #333;
}

.service-card p {
    padding: 0 20px 20px;
    color: #666;
}

/* 公司优势 */
.advantages {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.advantages h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
}

.advantage-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.advantage-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.advantage-item p {
    color: #666;
}

/* 客户案例 */
.cases {
    padding: 80px 0;
    background-color: #fff;
}

.cases h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
}

.case-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.case-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.case-card p {
    color: #666;
}

/* 联系我们区域 */
.contact-section {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 80px 0;
}

.contact-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.contact-section p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 页脚 */
.footer {
    background-color: #222;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-info p {
    color: #ccc;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #4CAF50;
}

.footer-contact p {
    color: #ccc;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #ccc;
}

/* 页面标题 */
.page-header {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 60px 0;
}

.page-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    color: #ccc;
}

/* 服务详情 */
.service-details {
    padding: 80px 0;
    background-color: #fff;
}

.service-item {
    display: flex;
    margin-bottom: 60px;
    gap: 30px;
    align-items: center;
}

.service-item.reverse {
    flex-direction: row-reverse;
}

.service-image {
    flex: 1;
}

.service-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
}

.service-content {
    flex: 1;
}

.service-content h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.service-content p {
    margin-bottom: 20px;
    color: #666;
}

.service-content ul {
    list-style: none;
}

.service-content ul li {
    margin-bottom: 10px;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.service-content ul li:before {
    content: "•";
    color: #4CAF50;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 服务优势 */
.service-advantages {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.service-advantages h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
}

.advantage-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.advantage-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.advantage-card p {
    color: #666;
}

/* 公司简介 */
.company-intro {
    padding: 80px 0;
    background-color: #fff;
}

.intro-content {
    display: flex;
    gap: 30px;
    align-items: center;
}

.intro-text {
    flex: 1;
}

.intro-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.intro-text p {
    margin-bottom: 20px;
    color: #666;
}

.intro-image {
    flex: 1;
}

.intro-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

/* 发展历程 */
.company-history {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.company-history h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 60px;
    color: #333;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: #4CAF50;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-content {
    width: 45%;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
}

.timeline-content h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.timeline-content p {
    color: #666;
}

/* 企业文化 */
.company-culture {
    padding: 80px 0;
    background-color: #fff;
}

.company-culture h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 60px;
    color: #333;
}

.culture-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.culture-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.culture-item h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.culture-item p {
    color: #666;
}

.culture-item ul {
    list-style: none;
}

.culture-item ul li {
    margin-bottom: 10px;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.culture-item ul li:before {
    content: "•";
    color: #4CAF50;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 团队介绍 */
.team {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.team h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 60px;
    color: #333;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.team-member h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.team-member p {
    color: #666;
}

/* 合作伙伴 */
.partners {
    padding: 80px 0;
    background-color: #fff;
}

.partners h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 60px;
    color: #333;
}

.partner-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.partner-logo img {
    width: 100%;
    height: 100px;
    object-fit: contain;
}

/* 联系信息 */
.contact-info {
    padding: 80px 0;
    background-color: #fff;
}

.contact-content {
    display: flex;
    gap: 30px;
}

.contact-form {
    flex: 1;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

.contact-details {
    flex: 1;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-details h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.contact-item {
    margin-bottom: 20px;
}

.contact-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.contact-item p {
    color: #666;
}

/* 地图 */
.map {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.map h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 常见问题 */
.faq {
    padding: 80px 0;
    background-color: #fff;
}

.faq h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 60px;
    color: #333;
}

.faq-items {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.faq-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.faq-item p {
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 10px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h2 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .service-item,
    .service-item.reverse {
        flex-direction: column;
    }

    .intro-content {
        flex-direction: column;
    }

    .contact-content {
        flex-direction: column;
    }

    .timeline:before {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .services h2,
    .advantages h2,
    .cases h2,
    .service-advantages h2,
    .company-intro h3,
    .company-history h3,
    .company-culture h3,
    .team h3,
    .partners h3,
    .map h3,
    .faq h3 {
        font-size: 24px;
    }

    .service-card h3,
    .advantage-item h3,
    .case-card h3,
    .service-content h3,
    .advantage-card h3,
    .intro-text h3,
    .timeline-content h4,
    .culture-item h4,
    .team-member h4,
    .contact-form h3,
    .contact-details h3,
    .faq-item h4 {
        font-size: 18px;
    }
}

/* AI客服 */
.chatbot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #4CAF50;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    background-color: #45a049;
}

.chatbot-container {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 450px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-header {
    background-color: #4CAF50;
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 18px;
}

.chatbot-close {
    cursor: pointer;
    font-size: 20px;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f5f5f5;
}

.message {
    margin-bottom: 15px;
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
}

.user-message {
    background-color: #e3f2fd;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.bot-message {
    background-color: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chatbot-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #e0e0e0;
}

.chatbot-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    outline: none;
}

.chatbot-input button {
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.chatbot-input button:hover {
    background-color: #45a049;
}

@media (max-width: 768px) {
    .chatbot {
        bottom: 20px;
        right: 20px;
    }
    
    .chatbot-toggle {
        width: 50px;
        height: 50px;
    }
    
    .chatbot-container {
        width: 300px;
        height: 400px;
    }
}


