/* 基础样式 */
body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: #f5f0e8;
}

/* Logo文本样式 - 三个文件完全相同 */
.logo-text {
    font-family: 'Noto Serif SC', serif;
    background: linear-gradient(180deg, #8b0000 0%, #c41e3a 50%, #8b0000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 头部横幅样式 - index.html和show.html完全相同 */
.header-banner {
    background: linear-gradient(90deg, #c41e3a 0%, #ff6b4a 30%, #ffa07a 50%, #ff6b4a 70%, #c41e3a 100%);
}

/* 报纸预览样式 - index.html和show.html完全相同 */
.newspaper-preview {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 文本截断样式 - 三个文件都有line-clamp样式 */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* index.html特有样式 */
.news-item:hover {
    color: #c41e3a;
}

.version-item:hover {
    background-color: #fff5e6;
}

/* list.html特有样式 */
.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.news-card:hover .news-title {
    color: #c41e3a;
}

/* list.html分页按钮样式 */
.pagination-btn:hover:not(.active):not(:disabled) {
    background-color: #fff5e6;
    border-color: #c41e3a;
}

.pagination-btn.active {
    background-color: #c41e3a;
    color: white;
}

/* show.html特有样式 */
.article-content {
    font-family: 'Noto Serif SC', serif;
    line-height: 1.9;
}

.article-content p {
    text-indent: 2em;
    margin-bottom: 1.2em;
}

.article-content img {
    display: block;
    margin: 0 auto;
    max-width: 98%;
    height: auto;
}

.share-btn:hover {
    transform: scale(1.1);
}

.related-item:hover {
    background-color: #fff5e6;
}

/* list.html分页样式 - 仅使用CSS选择器修复视觉异常 */
ul.pagination {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.pagination li {
    display: inline-flex;
}

ul.pagination li a,
ul.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid #d4c4a8;
    border-radius: 0.375rem;
    color: #333333;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    background-color: white;
}

ul.pagination li a:hover {
    background-color: #fff5e6;
    border-color: #c41e3a;
    color: #c41e3a;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

ul.pagination li span {
    background-color: #c41e3a;
    border-color: #c41e3a;
    color: white;
    cursor: default;
}

ul.pagination li:first-child a,
ul.pagination li:last-child a {
    padding: 0 1rem;
}

ul.pagination li:first-child a::before {
    content: "← ";
}

ul.pagination li:last-child a::after {
    content: " →";
}
