@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', 'Microsoft YaHei', sans-serif;
}

body {
    overflow-x: hidden;
    color: #333;
    background-color: #f8f9fa;
}

/* 背景轮播 */
.background-slideshow {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
}

.background-slideshow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    z-index: 0;
}

.background-slideshow .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: -1;
    transform: scale(1);
}

.background-slideshow .slide.active {
    opacity: 1;
    animation: none; /* 默认不使用动画，在JS中控制 */
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

@keyframes reverseZoom {
    0% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 删除 softFloat 动画 */

.background-slideshow .slide:nth-child(odd).active {
    animation: slowZoom 6s infinite alternate;
}

.background-slideshow .slide:nth-child(even).active {
    animation: reverseZoom 6s infinite alternate;
}

/* 导航栏 */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    backdrop-filter: blur(2px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 150px;
    height: 50px;
}

.nav-links {
    display: flex;
}

.nav-links a {
    color: #FFF;
    text-decoration: none;
    margin: 0 20px;
    font-size: 16px;
    font-weight: 400;
    position: relative;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #2962ff;
}

.nav-links a.active {
    color: #2962ff;
    font-weight: 500;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2962ff;
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* 内容区域 */
.content {
    padding: 40px 5%;
    max-width: 1200px;
    margin: 100px auto 40px;
    position: relative;
    z-index: 1;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 首页内容 */
.home-content {
    text-align: center;
    padding: 100px 20px;
}

.home-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

.home-subtitle {
    font-size: 22px;
    margin-top: 20px;
    color: #FFF;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* 关于我们页面 */
.about-content {
    padding: 100px 50px;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
}

.about-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #FFFFFF;
    position: relative;
    letter-spacing: -0.5px;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #2962ff;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    margin-top: 30px;
    color: #FFF;
}

.about-text p {
    margin-bottom: 15px;
}

/* 联系我们页面 */
.contact-content {
    display: flex;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
    padding: 130px 100px;
}

.contact-info {
    flex: 1;
}

.contact-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #FFF;
    position: relative;
    letter-spacing: -0.5px;
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #2962ff;
}

.contact-item {
    margin-bottom: 24px;
}

.contact-item h3 {
    margin-bottom: 8px;
    color: #FFF;
    font-size: 16px;
    font-weight: 600;
}

.contact-item p {
    color: #FFF;
    font-size: 16px;
}

.links {
    flex: 1;
    margin-left: 40px;
}

.links h3 {
    margin-bottom: 20px;
    color: #FFF;
    font-size: 16px;
    font-weight: 600;
}

.links ul {
    list-style: none;
}

.links li {
    margin-bottom: 12px;
}

.links a {
    color: #FFF;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 16px;
}

.links a:hover {
    color: #2962ff;
}

.logo-only {
    margin-top: 25px;
    text-align: right;
}

.logo-only img {
    width: 200px;
    opacity: 1;
}

/* 页脚 */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 10px 2%;
    backdrop-filter: blur(2px);
    font-size: 12px;
    color: #FFF;
    z-index: 5;
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: row;
    justify-content: end;
}

.footer p {
    cursor: pointer;
    margin-left: 10px;
}

/* 轮播导航点 */
.slide-dots {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 5;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background-color: #2962ff;
    transform: scale(1.2);
}

/* 媒体查询 - 移动设备适配 */
@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
        padding: 30px;
    }

    .links {
        margin-left: 0;
        margin-top: 40px;
    }

    .logo-large {
        text-align: left;
    }

    .home-title {
        font-size: 32px;
    }

    .home-subtitle {
        font-size: 18px;
    }

    .about-content, .contact-content {
        padding: 30px;
    }
}
