/* ========== changelog.css — 更新日志专用样式（与首页风格底色完全一致） ========== */

:root {
    --primary: #1a6dd4;
    --primary-hover: #1255a8;
    --text: #1e1e2e;
    --text-secondary: #585861;
    --bg: #ffffff;
    --bg-soft: #f8f9fb;
    --border: #eaeaef;
    --radius: 10px;
    --shadow: 0 4px 12px rgba(0,0,0,0.05);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --tag-feature: #e8f5e9;
    --tag-feature-text: #2e7d32;
    --tag-fix: #fff3e0;
    --tag-fix-text: #e65100;
    --tag-improve: #e3f2fd;
    --tag-improve-text: #0d47a1;
    --tag-important: #fce4ec;
    --tag-important-text: #b71c1c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== 导航栏（与首页一致） ========== */
header {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text);
}

.logo img {
    width: 32px;
    height: 32px;
}

nav {
    display: flex;
    gap: 28px;
    height: 100%;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}

nav a:hover,
nav a.active {
    color: var(--primary);
}

nav a.active::after {
    content: "";
    position: absolute;
    bottom: -22px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text);
    padding: 8px;
}

/* ========== 页面标题区 ========== */
.page-hero {
    padding: 60px 0 40px;
    text-align: center;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}

.hero-badge {
    display: inline-block;
    background: #eef4ff;
    color: var(--primary);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--text);
}

.hero-sub {
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* 快速筛选按钮 */
.filter-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.filter-strip span {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-right: 6px;
}

.filter-btn {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ========== 更新日志列表区 ========== */
.changelog-body {
    padding: 70px 0;
}

.changelog-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* 版本卡片 */
.version-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 30px;
    transition: box-shadow 0.2s, transform 0.15s;
}

.version-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 18px;
}

.version-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.version-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
}

.version-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.version-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 标签样式 */
.tag {
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.tag-feature {
    background: var(--tag-feature);
    color: var(--tag-feature-text);
}

.tag-fix {
    background: var(--tag-fix);
    color: var(--tag-fix-text);
}

.tag-improve {
    background: var(--tag-improve);
    color: var(--tag-improve-text);
}

.tag-important {
    background: var(--tag-important);
    color: var(--tag-important-text);
}

/* 变更列表 */
.change-list {
    list-style: none;
    padding: 0;
}

.change-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.change-list li::before {
    content: "▸";
    position: absolute;
    left: 4px;
    top: 0;
    color: var(--primary);
    font-weight: 700;
}

.change-list li strong {
    color: var(--text);
    font-weight: 650;
    margin-right: 4px;
}

/* 历史归档提示 */
.more-history {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.more-history a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.more-history a:hover {
    text-decoration: underline;
}

/* ========== 页脚（与首页一致） ========== */
footer {
    background: #1a1a22;
    color: #ddd;
    padding: 56px 0 28px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 36px;
    margin-bottom: 40px;
    border-bottom: 1px solid #2e2e3a;
    padding-bottom: 36px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 0.95rem;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-about p {
    color: #aaa;
    line-height: 1.7;
    font-size: 0.85rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: #777;
    font-size: 0.8rem;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .nav-bar {
        flex-wrap: wrap;
        height: auto;
        padding: 16px 20px;
    }

    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        background: #fff;
        padding: 16px 0;
    }

    nav.nav-open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    nav a.active::after {
        display: none;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .version-header {
        flex-direction: column;
        gap: 12px;
    }

    .version-card {
        padding: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .filter-strip {
        gap: 6px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}