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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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


/* 导航栏样式 */
.navbar {
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 70px;
    color: #fff;
    /* background: linear-gradient(90deg, #9f61fa 0%, #d9c0ff 100%); */
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
}

.navbar .nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
}

.logo {
    /* color: #4a6fa5; */
    display: flex;
    align-items: center;
}

.logo-img {
    width: 66px;
    height: 54px;
}

.site-title {
    font-size: 20px;
    font-weight: 700;
    margin-top: 0px;
    margin-left: 20px;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}



.nav-links {
    display: flex;
    list-style: none;
    font-size: 16px;
    font-weight: 500;
}

.nav-links li {
    margin-left: 30px;
}

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

.nav-links a:hover {
    color: #4a6fa5;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 70px 0 70px;
    text-align: center;
    margin-top: 70px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.show-demo {
    /* position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
    opacity: 0.8;
}


.hero-container {
    position: relative;
    z-index: 1;
}

.show-demo-img {
    margin: 0 20px;
}

.show-demo-img-1 {
    width: 150px;
    height: 300px;
    opacity: 0.7;
}

.show-demo-img-2 {
    width: 200px;
    height: 400px;
}

.show-demo-img-3 {
    width: 150px;
    height: 300px;
    opacity: 0.7;
}

.show-demo-img img {
    width: 100%;
    height: 100%;
    display: block;
}



.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.btn-primary {
    background-color: #fff;
    color: #4a6fa5;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 通用部分样式 */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    font-weight: 700;
}

/* 展示区域样式 */
.demo-section {
    padding: 100px 0;
    background-color: #fff;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.demo-item {
    display: flex;
    justify-content: center;
}

.demo-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 300px;
}

.demo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.demo-img {
    width: 200px;
    height: 400px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
}

.demo-img img {
    width: 100%;
    height: 100%;
    display: block;
    /*垂直居中*/
}

.demo-info {
    padding: 0px 20px 20px 20px;
    text-align: center;
}

.demo-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.demo-info p {
    color: #666;
    line-height: 1.6;
}

/* 功能特点样式 */
.features-section {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.features-container {
    padding: 0 70px;
    max-width: 1400px;
    margin: 0 auto;
}

.features-grid {
    gap: 20px;
    padding: 0 0px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.feature-item {
    text-align: center;
    padding: 30px;
    width: 23%;
    max-width: 300px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* 关于我们样式 */
.about-section {
    padding: 100px 0;
    background-color: #fff;
    text-align: center;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

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

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

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

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

.footer-links h4,
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

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

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

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

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

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

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

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .demo-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* 图片加载动画 */
.demo-card img {
    transition: opacity 0.5s ease;
}

.demo-card img.loading {
    opacity: 0;
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
