/* 前台全局样式 */
.frontend-body {
    font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
    color: #333;
    background-color: #f9f9f9;
}
.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
@media (max-width: 1200px) {
    .container {
        width: 100%;
    }
}

/* 顶部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 999;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.logo {
    display: flex;
    align-items: center;
}
.logo .ai-icon {
    font-size: 28px;
    font-weight: bold;
    color: #007bff;
    margin-right: 10px;
    background: linear-gradient(90deg, #007bff, #00c6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}
.nav {
    display: flex;
    align-items: center;
}
.nav-link {
    margin: 0 15px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}
.nav-link.active, .nav-link:hover {
    color: #007bff;
}
.nav-btn {
    padding: 8px 20px;
    margin-left: 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}
.nav-btn.primary {
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
}
.nav-btn.primary:hover {
    background-color: #0069d9;
}
.nav-btn:not(.primary) {
    border: 1px solid #007bff;
    color: #007bff;
}
.nav-btn:not(.primary):hover {
    background-color: #f0f7ff;
}
.mobile-menu-btn {
    display: none;
    border: none;
    background: none;
    font-size: 24px;
    color: #333;
}
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        display: none;
    }
    .nav.show {
        display: flex;
    }
    .nav-link, .nav-btn {
        margin: 10px 0;
    }
    .mobile-menu-btn {
        display: block;
    }
}

/* 轮播图 */
.banner-section {
    margin-top: 80px;
    height: calc(100vh - 80px);
    min-height: 600px;
    position: relative;
}
.banner-item {
    height: 100%;
    position: relative;
}
.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.8);
    z-index: 1;
}
.banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    max-width: 600px;
}
.banner-content h2 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}
.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.5;
}
.banner-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #007bff;
    color: #fff;
    font-size: 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s;
    width: fit-content;
}
.banner-btn:hover {
    background-color: #0069d9;
}
.slick-dots {
    bottom: 30px !important;
}
.slick-dots li button:before {
    color: #fff !important;
    font-size: 12px !important;
}
.slick-dots li.slick-active button:before {
    color: #007bff !important;
}
@media (max-width: 768px) {
    .banner-content h2 {
        font-size: 32px;
    }
    .banner-content p {
        font-size: 16px;
    }
    .banner-btn {
        padding: 12px 24px;
        font-size: 16px;
    }
}

/* 核心优势 */
.advantage-section {
    padding: 100px 0;
    background-color: #fff;
}
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}
.section-title p {
    font-size: 18px;
    color: #666;
    margin: 0;
}
.advantage-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.advantage-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    transition: box-shadow 0.3s;
}
.advantage-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #007bff, #00c6ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
}
.advantage-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}
.advantage-item p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}
@media (max-width: 768px) {
    .advantage-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .section-title h2 {
        font-size: 28px;
    }
    .section-title p {
        font-size: 16px;
    }
}
@media (max-width: 480px) {
    .advantage-list {
        grid-template-columns: 1fr;
    }
}

/* 核心服务 */
.service-section {
    padding: 100px 0;
    background-color: #f8f9fa;
}
.service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}
.service-item {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    border-left: 5px solid #007bff;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.service-item h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}
.service-item p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}
.service-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #007bff;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}
.service-btn:hover {
    background-color: #0069d9;
}
@media (max-width: 768px) {
    .service-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .service-item {
        padding: 30px 20px;
    }
}

/* 联系我们 */
.contact-section {
    padding: 100px 0;
    background-color: #fff;
}
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    font-size: 18px;
}
.contact-item i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #007bff, #00c6ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-right: 20px;
}
.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form .form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}
.contact-form .form-btn {
    width: 100%;
    padding: 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.contact-form .form-btn:hover {
    background-color: #0069d9;
}
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .contact-item {
        font-size: 16px;
    }
}

/* 底部 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 20px;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #444;
}
.footer-logo {
    display: flex;
    flex-direction: column;
}
.footer-logo .ai-icon {
    font-size: 28px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #007bff, #00c6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.footer-logo p {
    color: #ccc;
    margin: 0;
}
.footer-nav {
    display: flex;
    gap: 20px;
}
.footer-nav a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-nav a:hover {
    color: #007bff;
}
.footer-bottom {
    text-align: center;
    color: #999;
    font-size: 14px;
}
.footer-bottom a {
    color: #999;
    text-decoration: none;
}
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    .footer-nav {
        flex-wrap: wrap;
    }
}
