/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 移动端适配 */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
    }
}

/* 顶部固定图片 */
.header {
    width: 100%;
    position: relative;
}

.header-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 主要内容区域 */
.main {
    flex: 1;
    padding-bottom: 60px;
    overflow-y: auto;
    width: 100%;
    margin: 0 auto;
}

/* 页面内容 */
.page {
    display: none;
    width: 100%;
    padding: 0;
}

/* 电脑端主要内容区域样式调整 */
@media (min-width: 1200px) {
    .main {
        max-width: 1200px;
    }
    
    .page {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* 幻灯轮播 */
.carousel {
    position: relative;
    width: calc(100% - 20px);
    margin: 10px auto;
    overflow: hidden;
    background-color: transparent;
    border-radius: 0;
}

/* 轮播内容区域 */
.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-slide {
    flex: 0 0 100%;
    position: relative;
}

.carousel-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background-color: #fff;
    width: 8px;
    height: 8px;
}

/* 文章列表 */
.article-list {
    padding: 10px 15px;
}

.article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-item {
    display: block;
    padding: 15px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* 隐藏所有文章图片 */
.article-img {
    display: none;
}

.article-content {
    display: block;
}

.article-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-date {
    font-size: 12px;
    color: #999;
    align-self: flex-start;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    box-sizing: border-box;
}

/* 容器包装导航栏 */
.container {
    position: relative;
}

/* 电脑端导航栏宽度限制 */
@media (min-width: 1200px) {
    .bottom-nav {
        width: 100%;
        max-width: 1200px;
        left: 50%;
        transform: translateX(-50%);
        margin: 0 auto;
    }
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.nav-item:hover {
    background-color: #f0f0f0;
}

.nav-item.active {
    color: #007aff;
    font-weight: 600;
}

.nav-text {
    font-size: 12px;
    text-align: center;
}

/* 媒体查询 - 确保在不同手机尺寸上自适应 */
@media (max-width: 480px) {
    .article-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-img {
        width: 100%;
        height: auto;
    }
    
    .article-content {
        gap: 8px;
    }
    
    .article-title {
        font-size: 15px;
    }
    
    .article-excerpt {
        font-size: 13px;
    }
    
    .nav-text {
        font-size: 11px;
    }
}

@media (max-width: 320px) {
    .article-list {
        padding: 10px;
    }
    
    .article-item {
        padding: 10px;
        margin-bottom: 12px;
    }
    
    .article-title {
        font-size: 14px;
    }
    
    .article-excerpt {
        font-size: 12px;
    }
}