/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #0a0d29; /* 深蓝色背景，与图片主题色匹配 */
    overflow-x: hidden;
}

.main-container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    overflow: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-container {
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* 导航栏样式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 13, 41, 0.9); /* 半透明背景 */
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 100px;
    margin-right: 10px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

header .container {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 50px;
}

nav ul li a {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a:hover {
    color: #4169E1; /* 鼠标悬停时变为蓝色 */
}

/* 添加激活状态的样式 */
nav ul li a.active {
    color: #4169E1;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4169E1;
    transition: width 0.3s ease;
}

nav ul li a:hover::after, nav ul li a.active::after {
    width: 100%;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    background: linear-gradient(45deg, #4169E1, #00BFFF);
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.4);
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(65, 105, 225, 0.6);
}

/* 区域通用样式 */
.section {
    padding: 100px 0 50px;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    /* margin: 0 !important; */
    margin-bottom: 10px;
    text-align: center;
    color: #fff;
    position: relative;
    display: inline-block;

}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, #4169E1, #00BFFF);
}

.section-subtitle {
    font-size: 1.2rem;
    color: #aaa;
    text-align: center;
    margin-bottom: 40px;
}

.container h2 {
    margin-bottom: 30px;
}

/* 全宽图片样式 */
.full-width-image {
    width: 100%;
    margin-top: 30px;
    overflow: hidden;
}

.full-width-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.full-width-image:hover img {
    /* transform: scale(0.99); */
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #4169E1, #00BFFF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.4);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(65, 105, 225, 0.6);
}

/* 首页区域样式 */
#home {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0;
    background: linear-gradient(rgba(10, 13, 41, 0.8), rgba(10, 13, 41, 0.8)), url('home-bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ccc;
    animation: fadeInUp 1.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 页脚样式 */
footer {
    background-color: rgba(5, 7, 25, 0.9);
    padding: 50px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 30px;
    margin-right: 10px;
}

.footer-info p {
    margin-bottom: 10px;
    color: #aaa;
}

.footer-social {
    display: flex;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(65, 105, 225, 0.2);
    border-radius: 50%;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: #4169E1;
    transform: translateY(-3px);
}

.footer-social i {
    font-size: 1.2rem;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .section-container {
        width: 95%;
    }
    
    nav ul li {
        margin-left: 30px;
    }
}

@media (max-width: 992px) {
    .logo img {
        height: 70px;
    }
    
    nav ul li {
        margin-left: 20px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }
    
    .logo img {
        height: 50px;
    }
    
    .logo span {
        font-size: 1.2rem;
    }
    
    nav ul {
        display: none; /* 在移动设备上隐藏导航菜单 */
    }
    
    .section {
        padding: 80px 0 30px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    #about p {
        font-size: 16px !important;
        padding: 10px 5px !important;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        margin-top: 20px;
        justify-content: center;
    }
    
    .footer-social a {
        margin: 0 8px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .section-container {
        padding: 0 10px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    main {
        padding-top: 80px !important;
    }
}