:root {
    --primary-color: rgba(212, 212, 212, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px 0 rgba(57, 57, 57, 0.37);
}

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

body {
    min-height: 100vh;
    background: url('/assets/img/bg.png') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    padding: 2rem;
}

.container {
    width: 100%;
    max-width: 800px;
    margin-top: 80px;
}

.update-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
}

.update-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.5);
}

h1.title {
    color: white;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.update-card h2 {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.update-card h2::before {
    content: '✨';
    position: absolute;
    left: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.update-card img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.update-card p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.update-card ul,
.update-card ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.update-card li {
    margin-bottom: 0.5rem;
}

.update-card strong {
    color: white;
    font-weight: 600;
}

.update-card em {
    font-style: italic;
}

.update-card code {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.update-card pre {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    overflow-x: auto;
}

.update-card blockquote {
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    padding-left: 1rem;
    margin: 1rem 0;
    color: rgba(255, 255, 255, 0.7);
}

.loading {
    color: white;
    text-align: center;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .update-card {
        padding: 1rem;
    }
}


/* MD链接样式 */
.update-card a[href*=".md"],
.update-card a[href*="github.com"] {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 4px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.update-card a[href*=".md"]:hover,
.update-card a[href*="github.com"]:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.2));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.update-card a[href*=".md"]:before,
.update-card a[href*="github.com"]:before {
    content: '🔗';
    margin-right: 6px;
    font-size: 0.9em;
}

/* 移动端调整 */
@media (max-width: 768px) {

    .update-card a[href*=".md"],
    .update-card a[href*="github.com"] {
        padding: 4px 12px;
        font-size: 0.85em;
    }
}

.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    margin-right: 8px;
    vertical-align: middle;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.tag.update {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: 1px solid #2980b9;
}

.tag.optimize {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: 1px solid #27ae60;
}

.tag.add {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    border: 1px solid #8e44ad;
}

.tag.fix {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: 1px solid #c0392b;
}

.tag.default {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    border: 1px solid #7f8c8d;
}

/* 确保标签在列表中正确显示 */
.update-card li .tag {
    margin-left: -4px;
}

/* 加强标签在暗色背景下的可见性 */
.tag.update,
.tag.optimize,
.tag.add,
.tag.fix,
.tag.default {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 悬停效果 */
.tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* 确保标签后内容正确对齐 */
.update-card p,
.update-card li {
    display: inline-block;
    width: 100%;
}

/* 调整内容间距 */
.update-card .content {
    line-height: 1.8;
}

/* 确保列表项内的标签和文本在同一行 */
.update-card li {
    margin-bottom: 8px;
}

/* 移动端调整 */
@media (max-width: 768px) {
    .tag {
        padding: 1px 8px;
        font-size: 0.8em;
        margin-right: 6px;
    }
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pagination-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pagination-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.pagination-btn.active {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.8), rgba(41, 128, 185, 0.8));
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-btn.disabled:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.1);
}

.pagination-ellipsis {
    color: rgba(255, 255, 255, 0.7);
    padding: 0 0.5rem;
    user-select: none;
}

.pagination-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-right: 1rem;
    text-align: center;
    flex-basis: 100%;
    margin-top: 0.5rem;
}

/* 移动端调整 */
@media (max-width: 768px) {
    .pagination-container {
        gap: 0.3rem;
    }

    .pagination-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        min-width: 36px;
    }

    .pagination-info {
        font-size: 0.8rem;
        margin-right: 0;
    }
}