﻿/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    background-color: #f5f7fa;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #0066cc;
    transition: all 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

    .section-title h2 {
        font-size: 32px;
        color: #0066cc;
        margin-bottom: 15px;
    }

    .section-title p {
        color: #666;
        font-size: 16px;
    }

    .section-title:after {
        content: '';
        display: block;
        width: 60px;
        height: 3px;
        background: #0066cc;
        margin: 10px auto 0;
    }

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

    .logo img {
        height: 40px;
        margin-right: 10px;
    }

    .logo h1 {
        font-size: 24px;
        color: #0066cc;
    }

.nav-menu {
    display: flex;
    list-style: none;
}

    .nav-menu li {
        margin-left: 30px;
        position: relative;
    }

    .nav-menu a {
        color: #333;
        font-weight: 500;
        font-size: 16px;
        padding: 5px 0;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

        .nav-menu a .en-text {
            font-size: 12px;
            color: #888;
            margin-top: 2px;
            font-weight: normal;
        }

        .nav-menu a:hover {
            color: #0066cc;
        }

            .nav-menu a:hover .en-text {
                color: #0066cc;
            }

        .nav-menu a:after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: 0;
            left: 0;
            background-color: #0066cc;
            transition: width 0.3s;
        }

        .nav-menu a:hover:after {
            width: 100%;
        }

.language-switcher {
    margin-left: 20px;
}

    .language-switcher button {
        background: transparent;
        border: 1px solid #ddd;
        padding: 5px 10px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
    }

        .language-switcher button.active {
            background: #0066cc;
            color: white;
            border-color: #0066cc;
        }

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Banner样式 */
.banner {
    position: relative;
    color: white;
    padding: 150px 0 100px;
    margin-top: 70px;
    text-align: center;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 102, 204, 0.7);
    z-index: -1;
}

.banner h2 {
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn {
    display: inline-block;
    background: #fff;
    color: #0066cc;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
}

    .btn:hover {
        background: #f0f8ff;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

.btn-primary {
    display: inline-block;
    background: #0066cc;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

    .btn-primary:hover {
        background: #0052a3;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

.btn-outline {
    display: inline-block;
    background: transparent;
    color: #0066cc;
    border: 2px solid #0066cc;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
    margin-top: 15px;
}

    .btn-outline:hover {
        background: #0066cc;
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

/* 产品展示样式 */
.products {
    padding: 80px 0;
    background: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-item {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .product-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-color: #0066cc;
    }

.product-icon {
    font-size: 40px;
    color: #0066cc;
    margin-bottom: 20px;
}

.product-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.product-item p {
    color: #666;
    font-size: 14px;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* 公司介绍样式 */
.about {
    padding: 80px 0;
    background: #f5f7fa;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

    .about-text h3 {
        font-size: 28px;
        color: #0066cc;
        margin-bottom: 20px;
    }

    .about-text p {
        margin-bottom: 15px;
        line-height: 1.8;
    }

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

    .about-image img {
        width: 100%;
        height: auto;
        display: block;
    }

.office-front {
    position: relative;
}

    .office-front:after {
        content: '深圳雨嫣科技有限公司';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(0, 102, 204, 0.8);
        color: white;
        text-align: center;
        padding: 15px 0;
        font-size: 22px;
        font-weight: bold;
    }

/* 联系表单样式 */
.contact-form-section {
    padding: 80px 0;
    background: #fff;
}

.contact-form-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.contact-info-side {
    flex: 1;
    background: #f5f7fa;
    padding: 30px;
    border-radius: 8px;
}

    .contact-info-side h3 {
        font-size: 24px;
        color: #0066cc;
        margin-bottom: 20px;
    }

    .contact-info-side p {
        margin-bottom: 20px;
        line-height: 1.8;
    }

.contact-details {
    margin-top: 30px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

    .contact-detail i {
        color: #0066cc;
        font-size: 18px;
        margin-right: 15px;
        margin-top: 5px;
    }

.contact-form {
    flex: 1;
    background: #f5f7fa;
    padding: 30px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
    }

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border 0.3s;
}

    .form-control:focus {
        border-color: #0066cc;
        outline: none;
    }

.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background: white;
    cursor: pointer;
}

    .form-select:focus {
        border-color: #0066cc;
        outline: none;
    }

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

    .submit-btn:hover {
        background: #0052a3;
    }

.success-message {
    display: none;
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
}

/* 底部样式 */
footer {
    background: #2c3e50;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

    .footer-column h3:after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 40px;
        height: 2px;
        background: #0066cc;
    }

.footer-column p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.footer-column ul {
    list-style: none;
}

    .footer-column ul li {
        margin-bottom: 10px;
    }

        .footer-column ul li a {
            color: #ddd;
        }

            .footer-column ul li a:hover {
                color: #0066cc;
                padding-left: 5px;
            }

.contact-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

    .contact-info i {
        margin-right: 10px;
        color: #0066cc;
        width: 20px;
        text-align: center;
    }

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    font-size: 14px;
    color: #bbb;
}

/* 右侧联系模块 */
.contact-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
}

.contact-item {
    width: 50px;
    height: 50px;
    background: #0066cc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

    .contact-item a {
        color: white;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contact-item:hover {
        background: #0052a3;
        transform: scale(1.1);
    }

    .contact-item i {
        font-size: 20px;
    }

.contact-tooltip {
    position: absolute;
    right: 60px;
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.contact-item:hover .contact-tooltip {
    opacity: 1;
}

.qrcode-popup {
    position: absolute;
    right: 60px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: none;
}

    .qrcode-popup img {
        width: 120px;
        height: 120px;
    }

.contact-item.active .qrcode-popup {
    display: block;
}

/* AI客服对话框 */
.ai-chat-box {
    position: fixed;
    right: 20px;
    bottom: 100px;
    width: 350px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1001;
    flex-direction: column;
    height: 450px;
}

.chat-header {
    background: #0066cc;
    color: white;
    padding: 15px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    padding: 15px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
}

.user-message {
    align-self: flex-end;
    background: #0066cc;
    color: white;
    border-bottom-right-radius: 5px;
}

.ai-message {
    align-self: flex-start;
    background: #f0f0f0;
    color: #333;
    border-bottom-left-radius: 5px;
}

.chat-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
}

    .chat-footer input {
        flex: 1;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        margin-right: 10px;
    }

    .chat-footer button {
        background: #0066cc;
        color: white;
        border: none;
        padding: 10px 15px;
        border-radius: 4px;
        cursor: pointer;
        transition: background 0.3s;
    }

        .chat-footer button:hover {
            background: #0052a3;
        }

.typing-indicator {
    display: none;
    align-self: flex-start;
    background: #f0f0f0;
    padding: 10px 15px;
    border-radius: 18px;
    border-bottom-left-radius: 5px;
    font-style: italic;
    color: #888;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

        .nav-menu.active {
            display: flex;
        }

        .nav-menu li {
            margin: 0;
            border-bottom: 1px solid #eee;
        }

        .nav-menu a {
            display: block;
            padding: 15px 20px;
            flex-direction: row;
            justify-content: space-between;
        }

            .nav-menu a .en-text {
                margin-top: 0;
                margin-left: 10px;
            }

    .mobile-menu-btn {
        display: block;
    }

    .contact-sidebar {
        display: none;
    }

    .ai-chat-box {
        width: 90%;
        right: 5%;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-form-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .banner h2 {
        font-size: 32px;
    }

    .banner p {
        font-size: 16px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .message {
        max-width: 90%;
    }
}
/* 英文版样式 */
body.en {
    font-family: Arial, sans-serif;
}

.lang-zh {
    display: block;
}

.lang-en {
    display: none;
}

body.en .lang-zh {
    display: none;
}

body.en .lang-en {
    display: block;
}