/* assets/css/changelog.css - 更新日志页（与 amztools 风格统一） */

.changelog-page .header-left {
    position: absolute;
    top: 70px;
    right: 450px;
    z-index: 20;
}

.back-home-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 22px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-speed, .25s) ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    backdrop-filter: blur(6px);
}

.back-home-btn:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: translateY(-2px);
    color: #fff;
}

/* 内容容器 */
.changelog-wrap {
    max-width: 900px;
    margin: 30px auto 60px;
    padding: 0 24px;
    position: relative;
}

.admin-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.95);
    color: #5b54c4;
    border: none;
    padding: 11px 22px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(40, 30, 110, .25);
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(40, 30, 110, .32);
}

/* 时间线 */
.timeline {
    position: relative;
    padding-left: 34px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: rgba(255, 255, 255, .55);
}

.release {
    position: relative;
    margin-bottom: 26px;
}

.release-dot {
    position: absolute;
    left: -30px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .28);
}

.release-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 22px 26px;
    box-shadow: 0 12px 28px rgba(40, 30, 110, .18);
    border: 1px solid rgba(255, 255, 255, .6);
}

.release-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.release-version {
    font-size: 20px;
    font-weight: 700;
    color: #4f46e5;
}

.release-title {
    font-size: 14px;
    color: #555;
}

.draft-tag {
    font-size: 12px;
    color: #fff;
    background: #ef4444;
    padding: 2px 9px;
    border-radius: 20px;
}

.release-date {
    margin-left: auto;
    font-size: 13px;
    color: #9ca3af;
}

.release-body {
    color: #374151;
    font-size: 14.5px;
    line-height: 1.8;
    word-break: break-word;
}

/* ===== 内容自动分类排版（新增/优化/修复/改版） ===== */
.cl-group { margin-bottom: 14px; }
.cl-group:last-child { margin-bottom: 0; }

.cl-group-head {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.cl-group-head i { font-size: 12.5px; }

.cl-group-new    .cl-group-head { color: #059669; background: rgba(16, 185, 129, .12); }
.cl-group-opt    .cl-group-head { color: #4f46e5; background: rgba(99, 102, 241, .12); }
.cl-group-fix    .cl-group-head { color: #d97706; background: rgba(245, 158, 11, .14); }
.cl-group-revamp .cl-group-head { color: #db2777; background: rgba(236, 72, 153, .12); }

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

.cl-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 5px;
    color: #374151;
}

.cl-list li:last-child { margin-bottom: 0; }

.cl-list li::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c7d2fe;
}

.cl-group-new .cl-list li::before    { background: #6ee7b7; }
.cl-group-opt .cl-list li::before    { background: #a5b4fc; }
.cl-group-fix .cl-list li::before    { background: #fcd34d; }
.cl-group-revamp .cl-list li::before { background: #f9a8d4; }

.cl-list-plain li::before { background: #d1d5db; }

.admin-actions {
    display: flex;
    gap: 6px;
}

.icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, .12);
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
    font-size: 13px;
}

.icon-btn:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.icon-btn.danger:hover {
    background: #ef4444;
    border-color: #ef4444;
}

.empty {
    text-align: center;
    color: rgba(255, 255, 255, .92);
    padding: 60px 0;
    font-size: 15px;
}

/* 编辑弹窗 */
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, .55);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.modal-mask.show {
    display: flex;
}

.cl-modal {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}

.cl-modal h3 {
    color: #4f46e5;
    margin-bottom: 20px;
    font-size: 20px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 600;
}

.field input[type="text"],
.field input[type="date"],
.field textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    color: #374151;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.field textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.7;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, .15);
}

.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-row input {
    width: 16px;
    height: 16px;
    accent-color: #667eea;
}

.check-row label {
    margin: 0;
    font-weight: 400;
}

.cl-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.btn-ghost {
    background: #f3f4f6;
    color: #4b5563;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
}

.btn-ghost:hover {
    background: #e5e7eb;
}
