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

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

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

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo h1 {
    font-size: 24px;
    color: #0066cc;
    margin: 0;
    font-weight: bold;
}

.logo span {
    font-size: 14px;
    color: #666;
    /* margin-left: 10px; */
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 15px;
}

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

.nav-links a:hover {
    color: #0066cc;
}

.mobile-menu {
    display: none;
    cursor: pointer;
}

.mobile-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* 横幅样式 */
.banner {
    background: linear-gradient(135deg, #0066cc 0%, #00aaff 100%);
    color: #fff;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

/* 轮播容器 */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 轮播项 */
.slide {
    display: none;
    animation: fade 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    display: block;
}

/* 轮播项背景色 */
.slide:nth-child(1) {
    background: linear-gradient(135deg, #0066cc 0%, #00aaff 100%);
}

.slide:nth-child(2) {
    background: linear-gradient(135deg, #0088cc 0%, #00ccaa 100%);
}

.slide:nth-child(3) {
    background: linear-gradient(135deg, #6633cc 0%, #aa00cc 100%);
}

.slide:nth-child(4) {
    background: linear-gradient(135deg, #cc6600 0%, #ffaa00 100%);
}

@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* 轮播控制按钮 */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

/* 轮播指示器 */
.dots {
    text-align: center;
    position: absolute;
    bottom: -40px;
    width: 100%;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
    background-color: #fff;
}

.banner-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.btn.primary {
    background-color: #fff;
    color: #0066cc;
}

.btn.primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn.secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 通用区块样式 */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h3 {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
}

.section-title p {
    font-size: 18px;
    color: #666;
}

/* 关于我们样式 */
.about {
    background-color: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-vision {
    background-color: #f0f8ff;
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid #0066cc;
}

.about-vision h4 {
    font-size: 20px;
    color: #0066cc;
    margin-bottom: 15px;
}

.about-vision p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

/* 服务体系样式 */
.services {
    background-color: #f8f9fa;
}

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

.service-item {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

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

.service-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 核心优势样式 */
.features {
    background-color: #fff;
}

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

.feature-item {
    text-align: center;
    padding: 30px;
}

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

.feature-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 一码通链样式 */
.osfalink {
    background-color: #f0f8ff;
}

.osfalink-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.osfalink-info h4 {
    font-size: 24px;
    color: #0066cc;
    margin-bottom: 20px;
}

.osfalink-info p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.osfalink-features h5 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

.osfalink-features ul {
    list-style: none;
}

.osfalink-features li {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* 联系我们样式 */
.contact {
    background-color: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

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

.contact-info p {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

.contact-info a {
    color: #0066cc;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-form {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

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

.form-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

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

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

.footer-logo h3 {
    font-size: 24px;
    color: #0066cc;
    margin-bottom: 10px;
}

.footer-logo p {
    font-size: 14px;
    color: #ccc;
}

.footer-links h4 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 20px;
}

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

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

.footer-links a {
    text-decoration: none;
    color: #ccc;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0066cc;
}

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

/* 响应式设计 */
@media (max-width: 992px) {
    .banner-content h2 {
        font-size: 36px;
    }
    
    .about-content,
    .osfalink-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 25px 0;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .banner {
        padding: 100px 0 60px;
    }
    
    .banner-content h2 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .section-title h3 {
        font-size: 28px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .about-vision {
        padding: 20px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .banner-content h2 {
        font-size: 24px;
    }
    
    .section-title h3 {
        font-size: 24px;
    }
    
    .service-item,
    .feature-item {
        padding: 30px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-item,
.feature-item,
.about-content,
.osfalink-content,
.contact-content {
    animation: fadeInUp 0.8s ease-out;
}

/* 滚动效果 */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 清除浮动 */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}