/* styles.css */
/* 响应式改进 */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 20px;
        transition: left 0.3s;
        z-index: 100;
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: block;
        margin-left: auto;
        background: none;
        border: none;
        font-size: 24px;
    }

    .flex-item {
        flex-basis: 100%;
        margin: 10px 0;
    }

    .carousel-container {
        height: 50vh;
    }

    .learn-more {
        padding: 8px 20px;
        font-size: 14px;
    }
}

/* 性能优化 */
img {
    max-width: 100%;
    height: auto;
    will-change: transform;
}

/* 无障碍改进 */
.carousel-arrow:focus,
.nav-link:focus {
    outline: 2px solid #007bff;
}

/* 布局增强 */
.flex-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 触摸优化 */
.carousel-track {
    touch-action: pan-y;
}
/* 添加轮播基础布局 */
.carousel-container {
    overflow: hidden;
    position: relative;
    height: 70vh; /* 桌面端高度 */
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.carousel-item {
    flex: 0 0 100%;
    min-width: 100%;
    position: relative;
}

/* 移动端高度修正 */
@media (max-width: 768px) {
    .carousel-container {
        height: 50vh;
    }
}
/* 添加logo尺寸调整 */
.nav-logo {
    width: 35%;
    height: auto;
    max-width: 180px; /* 可选：防止在大屏幕上过大 */
}

/* 移动端微调 */
@media (max-width: 768px) {
    .nav-logo {
        width: 35%;
        max-width: 120px;
    }
}


/* 增强段落排版 */
.flex-container p {
    text-indent: 2em;
    line-height: 1.8;
    margin: 1em 0;
}
