@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;
}

.smooth-scroll {
    scroll-behavior: smooth;
}

/* 图片展示样式 */
.image-gallery {
    position: relative;
    overflow: hidden;
    background-color: #fff;
    width: 100%;
}

.carousel-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    display: none;
}

.carousel-item.active {
    display: flex;
}

.carousel-item img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

/* 缩略图按钮样式 */
.thumb-btn {
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumb-btn.active span {
    background-color: #00C300;
}

.aspect-ratio-1280-660 {
    position: relative;
    padding-top: calc(660 / 1280 * 100%);
    width: 100%;
    background-color: #f8f8f8;
}

.aspect-ratio-1280-660 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 修复底部间距 */
.carousel-item > div:last-child {
    margin-bottom: 0;
}

/* 移动端视口高度修复 */
:root {
    --vh: 1vh;
}

@supports (-webkit-touch-callout: none) {
    .nav-container {
        padding-top: env(safe-area-inset-top);
    }
}

/* 确保导航栏在移动端正确显示 */
nav {
    padding-top: env(safe-area-inset-top, 0);
    height: calc(4rem + env(safe-area-inset-top, 0));
}

/* 调整内容区域的上边距 */
.nav-spacer {
    height: calc(4rem + env(safe-area-inset-top, 0));
} 