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

body, html {
    width: 100%;
    height: 100%;
    font-family: "Source Han Serif", "Source Han Serif CN", "Noto Serif CJK SC", SimSun, serif;
    overflow-x: hidden;
    background-color: #4ab7a2;
    /* 隐藏滚动条但保持滚动功能 */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* 隐藏 Chrome, Safari 和 Opera 的滚动条 */
body::-webkit-scrollbar {
    display: none;
}

.container {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    background: url('../images/common/blog-bd.jpg') no-repeat center top;
    background-size: 100% auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 10vw;
}

/* Top Bar (Reused) */
.header-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4vw 5vw;
    z-index: 100;
    background-color: #008573;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.icon-menu {
    width: 6vw;
    height: 4.5vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}
.icon-menu span {
    display: block;
    width: 100%;
    height: 0.5vw;
    background-color: rgba(255, 255, 255, 0.9);
}

.icon-search {
    width: 6vw;
    height: 6vw;
    background: url('../images/common/search.png') no-repeat center center;
    background-size: 100% 100%;
    cursor: pointer;
}

/* Search Bar (Reused) */
.search-bar {
    width: 100%;
    height: 0;
    overflow: hidden;
    background-color: #2ea991;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    position: sticky;
    top: 14vw;
    z-index: 99;
}

.search-bar.show {
    height: 16vw;
    opacity: 1;
    padding: 0 20px 2vw 20px;
}
.search-bar form {
    width: 100%;
    display: flex;
    justify-content: center;
}
.search-input-wrapper {
    width: 100%;
    height: 11vw;
    background-color: #e8f5f1;
    border-radius: 5.5vw;
    display: flex;
    align-items: center;
    padding: 0 5vw;
    position: relative;
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 4vw;
    color: #0c6b5e;
}

.search-input-wrapper .icon-search-inner {
    width: 4.5vw;
    height: 4.5vw;
    border: 0.4vw solid #2ea991;
    border-radius: 50%;
    position: relative;
    margin-left: 2vw;
}

.search-input-wrapper .icon-search-inner::after {
    content: '';
    position: absolute;
    width: 1.5vw;
    height: 0.4vw;
    background-color: #2ea991;
    bottom: -0.3vw;
    right: -0.7vw;
    transform: rotate(45deg);
}

/* Sidebar Menu (Reused) */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -70vw;
    width: 70vw;
    height: 100%;
    background-color: #69c3ae;
    z-index: 101;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    padding-top: 20vw;
}

.sidebar.show {
    left: 0;
}

.sidebar-item {
    padding: 5vw 8vw;
    color: #ffffff;
    font-size: 6vw;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
    font-family: "SimSun", "STSong", serif;
    letter-spacing: 0.5vw;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.close-btn {
    position: absolute;
    top: 4vw;
    right: 4vw;
    width: 8vw;
    height: 8vw;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.close-btn::before, .close-btn::after {
    content: '';
    position: absolute;
    width: 6vw;
    height: 0.5vw;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 1vw;
}

.close-btn::before {
    transform: rotate(45deg);
}

.close-btn::after {
    transform: rotate(-45deg);
}

/* List Page Specific Styles */
.category-header {
    width: 48vw;
    height: 14vw;
    background: url('../images/list/lf-btn.png') no-repeat center center;
    background-size: 100% 100%;
    margin-top: 35vw; /* Adjusted for better alignment with mountains */
    z-index: 2;
}

.list-container {
    width: 91vw;
    margin-top: 5vw; /* 修正间距，配合 ::before 的高度 */
    margin-bottom: 16vw; /* 预留底部花边空间，并增加呼吸感 */
    display: flex;
    flex-direction: column;
    min-height: 100vw;
    position: relative;
    z-index: 1;

    /* 使用双重背景实现渐变边框：内容渐变 + 边框渐变 */
    background-image: 
        linear-gradient(to bottom, #d3ede7, #fdfbf4 15%, #f5f5e9), 
        linear-gradient(to bottom, #51aaa2, #8ecda7);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    
    border-left: 1.5vw solid transparent;
    border-right: 1.5vw solid transparent;
    
    /* 保持内部间距 */
    padding: 4vw 5vw;
}

/* 上部花边 */
.list-container::before {
    content: '';
    position: absolute;
    top: -11.5vw; /* 稍微覆盖一点以防缝隙 */
    left: -1.8vw;
    right: -1.8vw;
    height: 12vw;
    background: url('../images/common/list-bg.png') no-repeat top center;
    background-size: 100% auto;
    z-index: 2;
}

/* 下部花边 */
.list-container::after {
    content: '';
    position: absolute;
    bottom: -11.5vw;
    left: -1.8vw;
    right: -1.8vw;
    height: 12vw;
    background: url('../images/common/list-bg.png') no-repeat bottom center;
    background-size: 100% auto;
    z-index: 2;
}

.article-list {
    list-style: none;
}

.article-item {
    padding: 4vw 0;
    background-image: radial-gradient(circle, #b2e2d8 1.2px, transparent 1.2px);
    background-position: bottom;
    background-size: 8px 1px;
    background-repeat: repeat-x;
    display: flex;
    align-items: flex-start;
    text-decoration: none;
}

.article-list a:last-child .article-item {
    background-image: none;
}

.article-dot {
    color: #0c6b5e;
    font-weight: bold;
    margin-right: 1.5vw;
    font-size: 4.5vw;
    line-height: 1.2;
}

.article-title {
    color: #000000;
    font-size: 4.4vw;
    font-weight: bold;
    line-height: 1.5;
    flex: 1;
    text-align: justify;
}

/* Pagination Styles */
.pagination {
    margin-top: 6vw;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4vw;
}

.page-btn {
    width: 12vw;
    height: 10vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn.disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
    filter: grayscale(100%);
}

.page-btn img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.page-info {
    font-size: 5.5vw;
    color: #ffffff;
    font-weight: 500;
    font-family: "SimSun", serif;
    letter-spacing: 0.1vw;
}