/* 自定义样式 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');

body {
    /* font-family: 'Noto Sans SC', sans-serif; */
    font-family: Helvetica, Tahoma, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
    scroll-behavior: smooth;

    background-image: url('../images/common/top.png'), url('../images/common/bottom.png'), url('../images/common/background.jpg');
    background-position: top center, bottom center, center center;
    background-repeat: repeat-x, repeat-x, repeat;
}

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

nav {
    background: linear-gradient(to bottom, #bd4844, #b12f2f);

}

/* 导航栏动画 */


.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* 移动端菜单动画 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    transition: right 0.3s ease-in-out;
    z-index: 40;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-button {
    position: relative;
    z-index: 50;
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem;
    color: #4B5563;
}

.mobile-menu a {
    font-size: 1.25rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

.mobile-menu a:hover {
    background-color: #F3F4F6;
    transform: translateX(5px);
}

/* 导航栏滚动效果 */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-section {
        height: 60vh;
    }

    /* 移动端文字大小调整 */
    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    p {
        font-size: 0.875rem;
    }

    /* 移动端间距调整 */
    .section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    /* 移动端容器宽度调整 */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .mobile-menu {
        padding-top: 4rem;
    }

    .mobile-menu a {
        margin: 0.5rem 0;
    }
}

/* 图片响应式处理 */
img {
    max-width: 100%;
    height: auto;
}

/* 视频响应式处理 */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 比例 */
    height: 0;
    overflow: hidden;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}