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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #1e88e5;
}

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

section {
    padding: 80px 0;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #1e88e5;
    color: #fff;
    border: 2px solid #1e88e5;
}

.btn-primary:hover {
    background-color: #1565c0;
    border-color: #1565c0;
}

.btn-outline {
    background-color: transparent;
    color: #1e88e5;
    border: 2px solid #1e88e5;
}

.btn-outline:hover {
    background-color: #1e88e5;
    color: #fff;
}

.btn-login {
    background-color: transparent;
    color: #1e88e5;
    border: 1px solid #1e88e5;
    padding: 8px 20px;
}

.btn-login:hover {
    background-color: #1e88e5;
    color: #fff;
}

.btn-register {
    background-color: #1e88e5;
    color: #fff;
    border: 1px solid #1e88e5;
    padding: 8px 20px;
}

.btn-register:hover {
    background-color: #1565c0;
    border-color: #1565c0;
}

/* 头部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.nav ul {
    display: flex;
}

.nav ul li {
    margin: 0 15px;
}

.nav ul li a {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    padding: 5px 0;
    position: relative;
}

.nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1e88e5;
    transition: all 0.3s ease;
}

.nav ul li a:hover:after,
.nav ul li a.active:after {
    width: 100%;
}

/* 弹窗样式 */
.popup {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    z-index: 1001; /*确保在导航栏之上*/
    min-width: 250px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-info {
    background-color: #1e88e5; /* 蓝色 */
}

.popup-success {
    background-color: #4CAF50; /* 绿色 */
}

.popup-warning {
    background-color: #ff9800; /* 橙色 */
}

.popup-error {
    background-color: #f44336; /* 红色 */
}

.popup-close {
    margin-left: 15px;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.popup-close:hover {
    color: #eee;
}

.nav ul li a:hover,
.nav ul li a.active {
    color: #1e88e5;
}

.user-actions {
    display: flex;
    align-items: center;
}

.user-actions a {
    margin-left: 15px;
}

/* 轮播图 */
.banner {
    padding-top: 0px;
    position: relative;
    height: 600px;
    margin-top: 76px;
    overflow: hidden;
}

.slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: brightness(0.7);
}

.slide-content {
    color: #fff;
    max-width: 600px;
    z-index: 2;
}

.slide-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.slide-content .btn {
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.prev, .next {
    background-color: rgba(255, 255, 255, 0.3);
    color: #1f88e5;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.5s ease;
    margin: 0 10px;
}

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

.dots {
    display: flex;
    margin: 0 20px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}

.dot.active {
    background-color: #1f88e5;
    transform: scale(1.2);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* 平台优势 */
.advantages {
    background-color: #fff;
}

.advantage-items {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.advantage-item {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
    margin-bottom: 30px;
    text-align: center;
}

.advantage-item .icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #e3f2fd;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.advantage-item:hover .icon {
    background-color: #1e88e5;
    transform: translateY(-10px);
}

.advantage-item .icon i {
    font-size: 36px;
    color: #1e88e5;
    transition: all 0.3s ease;
}

.advantage-item:hover .icon i {
    color: #fff;
}

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

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

/* 产品服务 */
.products {
    background-color: #f8f9fa;
}

.product-items {
    margin-bottom: 50px;
}

.product-item {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

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

.product-image {
    flex: 0 0 50%;
    max-width: 50%;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 40px;
}

.product-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.product-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-features {
    margin-bottom: 25px;
}

.product-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.product-features li i {
    color: #1e88e5;
    margin-right: 10px;
}

.product-stats {
    display: flex;
    margin-bottom: 25px;
}

.stat {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    border-right: 1px solid #eee;
}

.stat:last-child {
    border-right: none;
}

.stat h4 {
    font-size: 24px;
    font-weight: 700;
    color: #1e88e5;
    margin-bottom: 5px;
}

.stat p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

/* 服务数据 */
.stats-section {
    background-color: #1e88e5;
    color: #fff;
    padding: 60px 0;
}

.stats-items {
    display: flex;
    justify-content: space-between;
}

.stats-item {
    text-align: center;
    flex: 1;
}

.stats-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.stats-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stats-text {
    font-size: 18px;
}

/* 解决方案 */
.solutions {
    background-color: #fff;
}

.solution-tabs {
    margin-top: 50px;
}

.tab-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    padding: 12px 25px;
    font-size: 18px;
    font-weight: 500;
    color: #666;
    background-color: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #1e88e5;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #1e88e5;
}

.tab-btn.active:after {
    width: 100%;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

.solution-content {
    display: flex;
    align-items: center;
}

.solution-text {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 30px;
}

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

.solution-text p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.solution-features {
    margin-bottom: 30px;
}

.solution-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.solution-features li i {
    color: #1e88e5;
    margin-right: 10px;
}

.solution-image {
    flex: 0 0 50%;
    max-width: 50%;
}

.solution-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 合作伙伴 */
.partners {
    background-color: #f8f9fa;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 -15px;
}

.partner-logo {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 15px;
    text-align: center;
}

.partner-logo img {
    max-width: 150px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* 新闻资讯 */
.news {
    background-color: #fff;
}

.news-items {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.news-item {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
    margin-bottom: 30px;
}

.news-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.news-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #1e88e5;
    color: #fff;
    text-align: center;
    padding: 10px 15px;
    border-radius: 4px;
}

.news-date .day {
    font-size: 24px;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.news-date .month {
    font-size: 14px;
}

.news-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.news-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    transition: all 0.3s ease;
}

.news-item:hover .news-content h3 {
    color: #1e88e5;
}

.news-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    color: #1e88e5;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.read-more i {
    margin-left: 5px;
    transition: all 0.3s ease;
}

.read-more:hover i {
    margin-left: 10px;
}

.news-more {
    text-align: center;
    margin-top: 20px;
}

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

.contact-content {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.contact-info {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

.contact-list {
    margin-bottom: 30px;
}

.contact-list li {
    display: flex;
    margin-bottom: 25px;
}

.contact-list li i {
    font-size: 24px;
    color: #1e88e5;
    margin-right: 20px;
    margin-top: 5px;
}

.contact-list li h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.contact-list li p {
    color: #666;
}

.social-media {
    display: flex;
}

.social-media a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1e88e5;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-media a:hover {
    background-color: #1565c0;
    transform: translateY(-5px);
}

.contact-form {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #1e88e5;
    box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.2);
    outline: none;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

/* 底部 */
.footer {
    background-color: #263238;
    color: #fff;
    padding-top: 80px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.footer-about {
    flex: 0 0 40%;
    max-width: 40%;
    padding-right: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-logo h2 {
    font-size: 20px;
    font-weight: 600;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-links {
    flex: 0 0 60%;
    max-width: 60%;
    display: flex;
}

.footer-links-column {
    flex: 1;
    padding: 0 15px;
}

.footer-links-column h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #1e88e5;
}

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

.footer-links-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links-column ul li a:hover {
    color: #1e88e5;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright p a {
    color: rgba(255, 255, 255, 0.7);
}


.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 20px;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    color: #1e88e5;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: #1e88e5;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #1565c0;
    transform: translateY(-5px);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .advantage-item {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .product-item {
        flex-direction: column;
    }
    
    .product-item.reverse {
        flex-direction: column;
    }
    
    .product-image,
    .product-content {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .solution-content {
        flex-direction: column;
    }
    
    .solution-text,
    .solution-image {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .partner-logo {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .news-item {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .contact-info,
    .contact-form {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 50px;
    }
    
    .footer-about,
    .footer-links {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .header .container {
        flex-wrap: wrap;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav ul li {
        margin: 5px 10px;
    }
    
    .banner {
        height: 500px;
        margin-top: 120px;
    }
    
    .slide-content h2 {
        font-size: 36px;
    }
    
    .advantage-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .stats-items {
        flex-wrap: wrap;
    }
    
    .stats-item {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 30px;
    }
    
    .tab-nav {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 0 0 50%;
        max-width: 50%;
        text-align: center;
        padding: 10px;
    }
    
    .partner-logo {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .news-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .footer-links {
        flex-wrap: wrap;
    }
    
    .footer-links-column {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-nav {
        margin-top: 15px;
    }
    
    .footer-nav a {
        margin: 0 10px;
    }
}

@media (max-width: 576px) {
    .slide-content h2 {
        font-size: 28px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .stats-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .tab-btn {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .partner-logo {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .footer-links-column {
        flex: 0 0 100%;
        max-width: 100%;
    }
}