:root {
    --primary-color: #1890ff;
    --primary-600: #096dd9;
    --success-color: #52c41a;
    --warning-color: #faad14;
    --error-color: #ff4d4f;
    --text-primary: #262626;
    --text-secondary: #8c8c8c;
    --border-color: #f0f0f0;
    --bg-color: #ffffff;
    --hover-bg: #f5f5f5;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
    --border-radius: 8px;
    --timeline-color: #e8e8e8;
    --header-bg: #001529;
    --nav-hover: rgba(255, 255, 255, 0.1);
    --card-padding: 24px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f0f2f5;
    color: var(--text-primary);
    line-height: 1.5715;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
}


/* Banner */
.banner {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-600));
    color: white;
    padding: 40px 0;
    margin-bottom: 24px;
}

.banner-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.banner-text {
    flex: 1;
    min-width: 300px;
}

.banner-text h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.banner-text p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
    max-width: 600px;
    line-height: 1.6;
}

.stats-container {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 12px;
    backdrop-filter: blur(4px);
    transition: all 0.3s;
}

.stat-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.stat-feature .stat-value {
    color: #389e0d;
}

.stat-fix .stat-value {
    color: #cf1322;
}

.stat-optimize .stat-value {
    color: #d48806;
}

.stat-security .stat-value {
    color: #c41d7f;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 40px;
}

.page-header {
    text-align: center;
    margin-bottom: 32px;
    display: none;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* 主内容区域 - 左右布局 */
.main-content {
    display: flex;
    gap: 24px;
}

/* 月度更新情况 - 左侧 */
.calendar-sidebar {
    flex: 0 0 320px;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    padding: var(--card-padding);
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 88px;
    transition: all 0.3s;
}

.calendar-sidebar:hover {
    box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.12);
}

.calendar-header {
    margin-bottom: 20px;
}

.calendar-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar-header h2::before {
    content: "📅";
    font-size: 16px;
}

.calendar-header .desc {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

.divider {
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}

.month-section {
    margin-bottom: 24px;
}

.month-section:last-child {
    margin-bottom: 0;
}

.month-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.update-count {
    background: #e6f7ff;
    color: var(--primary-color);;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
    min-width: 24px;
    text-align: center;
}

.date-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.week-day {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 4px 0;
    font-weight: 500;
}

.date-item {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    border: none;
    color: var(--text-primary);
    position: relative;
    font-weight: 500;
}

.date-item:hover:not(.empty):not(.has-update) {
    background: var(--hover-bg);
}

.date-item.has-update {
    background: var(--primary-color);
    color: white;
    font-weight: 500;
}

.date-item.has-update:hover {
    background: var(--primary-600);
    transform: scale(1.05);
}

.date-item.empty {
    cursor: default;
    color: #d9d9d9;
}

.date-item.active {
    background: #e6f7ff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.date-item::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: white;
    opacity: 0;
}

.date-item.has-update::after {
    opacity: 1;
}

/* 更新列表区域 - 右侧 */
.updates-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.updates-header {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    transition: all 0.3s;
}

.updates-header:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.updates-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.updates-title::before {
    content: "✨";
}

.filter-tabs {
    display: flex;
    gap: 8px;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 4px;
}

.filter-tab {
    padding: 6px 16px;
    background: transparent;
    border: none;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
    font-weight: 500;
}

.filter-tab:hover {
    color: var(--text-primary);
}

.filter-tab.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 0 rgba(24, 144, 255, 0.1);
}

/* 更新列表 */
.updates-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.update-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    min-height: 80px;
    scroll-margin-top: 100px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.update-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 更新内容卡片 */
.update-content-card {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    padding: var(--card-padding);
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    width: 100%;
    position: relative;
    border: 1px solid transparent;
}

.update-content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.12);
    border-color: rgba(24, 144, 255, 0.15);
}

.update-content-card.highlight {
    animation: highlight 2s ease;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

@keyframes highlight {
    0% { background-color: #e6f7ff; }
    50% { background-color: #d1e9ff; }
    100% { background-color: var(--bg-color); }
}

/* 卡片头部信息 */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.version-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.version-tag {
    display: inline-block;
    background: #e6f7ff;
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 0 rgba(24, 144, 255, 0.08);
    white-space: nowrap;
    transition: all 0.2s;
}

.version-tag:hover {
    background: #bae7ff;
    transform: scale(1.05);
}

.version-date {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.version-date::before {
    content: "📅";
    font-size: 14px;
}

.update-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    transition: all 0.2s;
}

.tag::before {
    content: '•';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tag-optimize {
    background: #fffbe6;
    color: #d48806;
    border: 1px solid #ffe58f;
}

.tag-optimize::before {
    background: #d48806;
}

.tag-fix {
    background: #fff2f0;
    color: #cf1322;
    border: 1px solid #ffccc7;
}

.tag-fix::before {
    background: #cf1322;
}

.tag-feature {
    background: #f6ffed;
    color: #389e0d;
    border: 1px solid #b7eb8f;
}

.tag-feature::before {
    background: #389e0d;
}

.tag-security {
    background: #fff0f6;
    color: #c41d7f;
    border: 1px solid #ffadd2;
}

.tag-security::before {
    background: #c41d7f;
}

.update-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.update-title::before {
    content: "✨";
    color: var(--primary-color);
}

.update-content-wrapper {
    position: relative;
}

.update-content {
    color: var(--text-secondary);
    max-height: 120px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.update-content.expanded {
    max-height: 1000px;
}

.category-section {
    margin-bottom: 20px;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f5f5f5;
    color: var(--text-primary);
    font-size: 14px;
    margin-right: 8px;
}

.category-icon.feature {
    background: #f6ffed;
    color: #389e0d;
}

.category-icon.fix {
    background: #fff2f0;
    color: #cf1322;
}

.category-icon.optimize {
    background: #fffbe6;
    color: #d48806;
}

.category-icon.security {
    background: #fff0f6;
    color: #c41d7f;
}

.update-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.update-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #f0f0f0;
    display: flex;
    align-items: flex-start;
    /*gap: 12px;*/
}

.update-list li:last-child {
    border-bottom: none;
}

.update-list li::before {
    content: none;
}

.update-list li .change-type {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.change-type-add {
    background: #f6ffed;
    color: #389e0d;
    border: 1px solid #b7eb8f;
}

.change-type-improve {
    background: #fffbe6;
    color: #d48806;
    border: 1px solid #ffe58f;
}

.change-type-fix {
    background: #fff2f0;
    color: #cf1322;
    border: 1px solid #ffccc7;
}

.change-type-security {
    background: #fff0f6;
    color: #c41d7f;
    border: 1px solid #ffadd2;
}

.change-type-remove {
    background: #f9f0ff;
    color: #531dab;
    border: 1px solid #d3adf7;
}

.expand-trigger {
    text-align: center;
    margin-top: 16px;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 13px;
    padding: 8px 0;
    display: none;
    font-weight: 500;
    transition: all 0.2s;
}

.update-content.has-more + .expand-trigger {
    display: block;
}

.expand-trigger:hover {
    color: var(--primary-600);
    text-decoration: underline;
}

.expand-trigger .icon {
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.expand-trigger.expanded .icon {
    transform: rotate(180deg);
}

/* 分页 */
/* 适配EyouCMS实际分页样式 */
.pagination-container {
    background: white;
    border-radius: 8px;
    padding: 12px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    margin-top: 8px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 分页项基本样式 */
.pagination > li {
    display: inline-block;
    margin: 0;
}

/* 分页链接样式 */
.pagination > li > a {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: white;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    color: var(--text-primary);
    white-space: nowrap;
    font-weight: 500;
    text-decoration: none;
}

/* 统计信息样式 */
.pagination > strong {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0 4px;
}

/* 分页链接悬停效果 */
.pagination > li > a:hover:not([href*="javascript"]) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f5f5f5;
}

/* 当前页样式 */
.pagination > li.active > a,
.pagination > li.active {
    background: 1px solid var(--primary-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
    /*box-shadow: 0 2px 0 rgba(24, 144, 255, 0.1);*/
}

/* 禁用状态 */
.pagination > li > a[href*="javascript"] {
    color: #bfbfbf;
    cursor: not-allowed;
    border-color: #d9d9d9;
    background: white;
}

/* 跳页区域 */
.jump-page {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    margin-left: 12px;
    margin-top: 8px;
}

.jump-input {
    width: 50px;
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    text-align: center;
    height: 36px;
}

.jump-btn {
    padding: 0 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    height: 36px;
    transition: background 0.2s;
}

.jump-btn:hover {
    background: var(--primary-600);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 0;
    }
    
    .pagination > li {
        width: 100%;
    }
    
    .pagination > li > a {
        width: 100%;
        justify-content: center;
    }
    
    .jump-page {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 8px;
    }
    
    .jump-input {
        width: 40px;
    }
}


/* 新增：更精致的版本卡片 */
.version-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    background: white;
    cursor: pointer;
    margin-bottom: 16px;
}

.version-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.version-card.active {
    border-color: var(--primary-color);
    background: #e6f7ff;
}

/* 新增：更现代的版本对比视图 */
.version-comparison-view {
    display: flex;
    gap: 20px;
    margin: 24px 0;
}

.version-comparison-panel {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.version-comparison-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.version-comparison-number {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.version-comparison-content {
    background: #fafafa;
    border-radius: 6px;
    padding: 12px;
    margin: 12px 0;
}

.diff-add {
    color: #389e0d;
    display: flex;
    align-items: center;
}

.diff-add::before {
    content: '+';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f6ffed;
    color: #389e0d;
    font-weight: bold;
    margin-right: 8px;
}

.diff-remove {
    color: #cf1322;
    display: flex;
    align-items: center;
}

.diff-remove::before {
    content: '-';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff2f0;
    color: #cf1322;
    font-weight: bold;
    margin-right: 8px;
}

.diff-modify {
    color: #faad14;
    display: flex;
    align-items: center;
}

.diff-modify::before {
    content: '±';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fffbe6;
    color: #d48806;
    font-weight: bold;
    margin-right: 8px;
}

/* 响应式设计 */
@media (max-width: 1100px) {
    .main-content {
        flex-direction: column;
    }
    
    .calendar-sidebar {
        flex: none;
        position: static;
        order: 2;
    }
    
    .updates-list {
        padding-left: 0;
    }
    
    .update-item {
        min-height: auto;
    }
    
    .update-content-card {
        padding: 18px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .version-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .update-tags {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .stat-item {
        min-width: 85px;
    }
}

/* 更小屏幕的响应式设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 0;
        flex-wrap: wrap;
        height: auto;
        padding: 12px 0;
    }
    
    .navbar-container {
        padding: 0 16px;
        flex-wrap: wrap;
    }
    
    .logo {
        margin-right: 20px;
        margin-bottom: 8px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        margin-bottom: 8px;
    }
    
    .nav-links li {
        margin-right: 16px;
        margin-bottom: 8px;
    }
    
    .banner-container {
        flex-direction: column;
        text-align: center;
        padding: 0 16px;
    }
    
    .banner-text {
        min-width: 100%;
    }
    
    .stats-container {
        justify-content: center;
    }
    
    .stat-item {
        min-width: 90px;
        padding: 12px 8px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .container {
        padding: 0 16px 16px;
    }
    
    .updates-header {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .version-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .update-content-card {
        padding: 16px;
    }
    
    .jump-page {
        flex-direction: row;
        gap: 8px;
    }
    
    .filter-tabs {
        width: 100%;
        justify-content: center;
    }
    
    .month-title {
        justify-content: center;
    }
    
    .date-grid {
        margin-top: 16px;
    }
    
    .pagination {
        padding: 12px;
    }
    
    .page-info {
        display: none;
    }
    
    .pagination-buttons {
        justify-content: center;
    }
    
    .jump-page {
        width: 100%;
        justify-content: center;
    }
}

/* 超小屏幕的响应式设计 */
@media (max-width: 480px) {
    .banner {
        padding: 32px 0;
    }
    
    .banner-text h1 {
        font-size: 26px;
    }
    
    .banner-text p {
        font-size: 14px;
    }
    
    .stat-item {
        min-width: 80px;
        padding: 10px 6px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .calendar-sidebar {
        padding: 16px;
    }
    
    .month-section {
        margin-bottom: 16px;
    }
    
    .update-content-card {
        padding: 14px;
    }
    
    .update-title {
        font-size: 16px;
    }
    
    .version-tag {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .version-date {
        font-size: 12px;
    }
    
    .category-title {
        font-size: 14px;
    }
    
    .update-list li {
        font-size: 13px;
        padding: 8px 0;
    }
    
    .jump-input {
        width: 40px;
        padding: 4px 6px;
    }
    
    .jump-btn {
        padding: 4px 10px;
        font-size: 12px;
    }
    
    .page-btn {
        min-width: 28px;
        height: 28px;
        padding: 0 8px;
        font-size: 12px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #d9d9d9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #bfbfbf;
}

/* 打印样式 */
@media print {
    .navbar, .banner, .calendar-sidebar, .updates-header, .pagination-container {
        display: none;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .main-content {
        display: block;
    }
    
    .updates-main {
        width: 100%;
    }
    
    .update-content-card {
        box-shadow: none;
        border: 1px solid #eee;
        page-break-inside: avoid;
    }
    
    .update-content {
        max-height: none !important;
    }
    
    .expand-trigger {
        display: none !important;
    }
}
/* 内容编辑器样式 */
/* 兼容旧版H3作为分类标题 */
h3 {
    /*margin: 24px 0 16px 0;*/
    padding: 8px 12px;
    background: #fafafa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    /*gap: 8px;*/
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 为H3添加图标 */
h3:before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f5f5f5;
    color: var(--text-primary);
    font-size: 14px;
    margin-right: 8px;
}

/* 根据H3内容自动添加图标 */
h3:has(span.change-type-add):before,
h3:has(span.change-type-add) + span:contains("新增"):before,
h3:contains("新增"):before {
    background: #f6ffed;
    color: #389e0d;
    content: "✨";
}

h3:has(span.change-type-improve):before,
h3:has(span.change-type-improve) + span:contains("优化"):before,
h3:contains("优化"):before {
    background: #fffbe6;
    color: #d48806;
    content: "⚡";
}

h3:has(span.change-type-fix):before,
h3:has(span.change-type-fix) + span:contains("修复"):before,
h3:contains("修复"):before {
    background: #fff2f0;
    color: #cf1322;
    content: "🔧";
}

h3:has(span.change-type-security):before,
h3:has(span.change-type-security) + span:contains("安全"):before,
h3:contains("安全"):before {
    background: #fff0f6;
    color: #c41d7f;
    content: "🔒";
}

/* 兼容旧版列表样式 */
ul, ol {
    margin: 8px 0;
    padding-left: 20px;
}

li:before {
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

li:last-child {
    margin-bottom: 0;
}

/* 兼容旧版变更类型样式 */
.change-type {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
}

.change-type-add {
    background: #f6ffed;
    color: #389e0d;
    border: 1px solid #b7eb8f;
}

.change-type-improve {
    background: #fffbe6;
    color: #d48806;
    border: 1px solid #ffe58f;
}

.change-type-fix {
    background: #fff2f0;
    color: #cf1322;
    border: 1px solid #ffccc7;
}

.change-type-security {
    background: #fff0f6;
    color: #c41d7f;
    border: 1px solid #ffadd2;
}

.change-type-remove {
    background: #f9f0ff;
    color: #531dab;
    border: 1px solid #d3adf7;
}

/* 新版样式兼容旧版结构 */
.category-section h3 {
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.category-section h3:before {
    display: none;
}

.category-section ul, .category-section ol {
    margin: 0;
    padding-left: 0;
}

.category-section li {
    padding: 10px 0;
    border-bottom: 1px dashed #f0f0f0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0;
    padding-left: 0;
}

.category-section li:before {
    content: none;
}
