* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    
    
}

.header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ccc;
}

.title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.meta-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

.content {
    font-size: 16px;
    line-height: 1.8;
    margin-top: 20px;
}

 /* 搜索区域 */
 .search-bar {
    display: flex;
    margin-bottom: 20px;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.search-btn {
    padding: 12px 20px;
    background-color: #1a66ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #0d52d7;
}

/* 文章卡片 */
.article-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.article-content {
    flex: 1;
    padding-right: 10px;
}

.article-title {
    font-size: 16px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.article-title a {
    color: none;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #757575;
}

.article-image {
    width: 80px;
    height: 80px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 底部导航栏 */
.footer-nav {
    display: flex;
    justify-content: space-around;
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.footer-nav a {
    text-decoration: none;
    color: inherit;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
}

.nav-item.active {
    color: #007AFF;
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
}

.nav-text {
    font-size: 14px;
}



/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .title {
        font-size: 20px;
    }
    
    .meta-info {
        font-size: 13px;
    }

    .search-bar {
        flex-direction: column;
    }
    
    .search-input {
        margin-bottom: 10px;
    }
    
    .article-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-image {
        width: 70px;
        height: 70px;
        margin-top: 10px;
    }
}

