/* ========【更新日誌頁首】 設定 - 最新版本資訊排列 ======== */
.changelog-current-release {
    /* 上方間距 */ margin-top: 30px;
    /* 橫向排列 */ display: flex;
    /* 自動換行 */ flex-wrap: wrap;
    /* 項目間距 */ gap: 32px;
}

.changelog-current-release > div {
    /* 垂直排列 */ display: flex;
    /* 垂直方向 */ flex-direction: column;
    /* 項目間距 */ gap: 3px;
}

.changelog-current-release span {
    /* 淡化文字 */ color: var(--text-soft);
    /* 字體大小 */ font-size: 11px;
    /* 字距 */ letter-spacing: 1px;
}

.changelog-current-release strong {
    /* 主要文字 */ color: var(--text-strong);
    /* 字體大小 */ font-size: 14px;
    /* 字體粗細 */ font-weight: 550;
}


/* ========【版本歷史】 簡潔的閱讀標題 ======== */
.changelog-content {
    width: min(calc(100% - 40px), 1020px);
    margin: 0 auto;
    padding: 74px 0 120px;
}

.changelog-history-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 12px 26px;
    margin-bottom: 34px;
}

.changelog-history-heading h2 {
    margin: 7px 0 0;
    color: var(--text-strong);
    font-size: 32px;
    font-weight: 350;
    line-height: 1.4;
}

.changelog-history-heading p {
    max-width: 370px;
    margin: 0 0 3px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.85;
}

/* ========【版本時間軸】 保留版本順序，但每一版只使用一層內容卡 ======== */
.release-list {
    position: relative;
    padding-left: 36px;
}

.release-list::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 46px;
    bottom: 48px;
    width: 1px;
    background: var(--line);
}

.release {
    position: relative;
    margin-bottom: 32px;
    scroll-margin-top: calc(var(--header-height) + 26px);
}

.release:last-child {
    margin-bottom: 0;
}

.release-marker {
    position: absolute;
    left: -36px;
    top: 35px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    background: var(--surface);
    box-shadow: 0 0 0 5px var(--page-bg);
}

.release-content {
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 8px 34px rgba(25, 38, 48, .025);
}

.release:first-child .release-content {
    border-color: var(--accent-border);
}

.release:first-child .release-marker {
    background: var(--accent);
}

/* ========【版本標題】 標題、日期與概要明確分級 ======== */
.release-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 18px 30px;
    margin-bottom: 18px;
}

.release-header > div {
    min-width: 0;
}

.release-version {
    display: inline-block;
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
}

.release-header h2 {
    margin: 8px 0 0;
    color: var(--text-strong);
    font-size: clamp(21px, 2.6vw, 28px);
    font-weight: 500;
    line-height: 1.48;
    overflow-wrap: anywhere;
}

.release-header time {
    flex: 0 0 auto;
    padding-top: 2px;
    color: var(--text-soft);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.release-summary {
    max-width: 800px;
    margin: 0 0 30px;
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.95;
}

/* ========【更新分類】 替換雙欄小卡片：分類名稱左側、內容右側 ======== */
.change-grid {
    display: block;
    border-top: 1px solid var(--line-soft);
}

.change-section {
    display: grid;
    grid-template-columns: minmax(110px, .25fr) minmax(0, 1fr);
    gap: 12px 30px;
    align-items: start;
    padding: 24px 0;
    border-bottom: 1px solid var(--line-soft);
}

.change-section h3 {
    margin: 2px 0 0;
    color: var(--text-strong);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.75;
}

.change-section ul {
    display: grid;
    gap: 13px;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.change-section li {
    position: relative;
    margin: 0;
    padding-left: 17px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.change-section li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .8em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #a7b7c3;
}

/* ========【版本資訊】 低調標籤與統一的下一步 ======== */
.release-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 24px;
}

.release-tag {
    padding: 5px 10px;
    border: 1px solid var(--line-soft);
    border-radius: 5px;
    background: var(--surface-soft);
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.5;
}

.release-download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

/* ========【更新日誌】 手機與平板閱讀版型 ======== */
@media (max-width: 760px) {
    .changelog-content {
        width: min(calc(100% - 30px), 1020px);
        padding: 56px 0 100px;
    }

    .changelog-history-heading {
        display: block;
        margin-bottom: 24px;
    }

    .changelog-history-heading h2 {
        font-size: 27px;
    }

    .changelog-history-heading p {
        margin-top: 8px;
    }

    .release-list {
        padding-left: 25px;
    }

    .release-list::before {
        left: 4px;
    }

    .release-marker {
        left: -25px;
    }

    .release-content {
        padding: 24px 20px;
    }

    .release-header {
        flex-direction: column;
        align-items: start;
        gap: 6px;
    }

    .release-header time {
        padding: 0;
    }

    .change-section {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 20px 0;
    }

    .change-section h3 {
        font-size: 13px;
    }

    .release-summary {
        font-size: 13px;
        margin-bottom: 24px;
    }
}

@media (max-width: 520px) {
    .release-content {
        padding: 22px 16px;
    }

    .release-header h2 {
        font-size: 21px;
    }

    .change-section li {
        font-size: 12px;
    }
}
