.catalog-body {
    display: grid;
    gap: 22px;
    padding-block: clamp(22px, 4vw, 40px) clamp(38px, 6vw, 72px);
}
.catalog-body :where(h2,h3,p) { margin: 0; }
.catalog-body [hidden] { display: none !important; }
.catalog-h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #173e40;
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.35;
}
.catalog-h2 .icon { color: #977540; flex-shrink: 0; }
.catalog-body select,
.catalog-body button,
.catalog-body .btn { font: inherit; }
.catalog-body a:focus-visible,
.catalog-body button:focus-visible,
.catalog-body select:focus-visible,
.catalog-body summary:focus-visible { outline: 3px solid #b47f32; outline-offset: 3px; }
.record-controls { padding: clamp(16px, 2.5vw, 28px); }
.record-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.record-form label {
    display: grid;
    gap: 5px;
    min-width: 0;
    flex: 1 1 180px;
    color: #45615a;
    font-size: 13px;
    font-weight: 700;
}
.record-form select {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 43px;
    padding: 6px 9px;
    border: 1px solid #c7cfc0;
    border-radius: 5px;
    background-color: #fffef8;
    color: #1e3c3b;
    font: inherit;
    font-size: 15px;
}
.record-form .btn { min-height: 43px; }
.record-results { overflow: hidden; }
.record-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 19px clamp(15px, 2.5vw, 28px); border-bottom: 1px solid #dce0d0; }
.record-count { font-size: 13px; font-variant-numeric: tabular-nums; color: #5d6c61; }
.record-status { margin: 0; padding: clamp(22px, 4vw, 42px) 16px; color: #54675f; text-align: center; }
#rank-table { min-width: 0; }
.record-table-wrap { max-width: 100%; overflow-x: auto; }
.record-table { width: 100%; border-spacing: 0; border-collapse: collapse; table-layout: fixed; }
.record-table :where(th,td) { padding: 11px clamp(9px, 2vw, 24px); text-align: start; overflow-wrap: anywhere; }
.record-table thead { color: #4f6257; background: #eff2e8; font-size: 13px; }
.record-table :where(th,td):first-child { width: 86px; }
.record-table :where(th,td):last-child { text-align: end; font-variant-numeric: tabular-nums; }
.record-table td { border-top: 1px solid #e3e5d9; color: #213f3b; font-size: 15px; }
.record-table tbody tr:hover { background: #f5f6ee; }
.place {
    display: inline-grid;
    min-width: 2.2em;
    min-height: 1.9em;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 5px;
    color: #627166;
    font: 600 13px/1.2 "IBM Plex Mono", Consolas, monospace;
}
.place-1 { border-color: #deca92; background: #f5e9be; color: #684c16; }
.place-2 { border-color: #c3d0cf; background: #e7eeeb; color: #42615c; }
.place-3 { border-color: #ddc0ae; background: #f3e5d9; color: #825537; }
.gold-total { display: flex; justify-content: space-between; gap: 12px; padding: 14px clamp(15px, 2.5vw, 28px); color: #725426; background: #faf0d8; }
.gold-total strong { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.record-group { min-width: 0; }
.record-group h3 { padding: 11px 16px; background: #e6edde; font-size: 15px; color: #274f43; overflow-wrap: anywhere; }
.record-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr)); gap: 1px; background: #dbdfd0; }
.record-groups .record-group { background: #fffef9; }
.record-groups .record-table :where(td,th) { padding: 8px; }
.record-groups .record-table :where(td,th):first-child { width: 50px; }

.download-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(14px,2vw,24px); }
.catalog-body .package {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: clamp(20px, 3vw, 34px);
    background: #fffdf5;
}
.catalog-body .featured-package {
    border-color: #365c54;
    background: linear-gradient(123deg, #173c3c, #285044);
    color: #fff8e5;
}
.package-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.package-top > span:last-child { color: #617168; font-size: 12px; }
.featured-package .package-top > span:last-child { color: #d6e1cc; }
.package-icon { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #d7cba8; border-radius: 8px; color: #866439; background: #f5efdc; }
.featured-package .package-icon { border-color: #8c9068; color: #efda9d; background: #38594d; }
.package-icon .icon { width: 24px; height: 24px; }
.package h2 { margin-top: 4px; font: 700 clamp(24px,2.8vw,34px)/1.22 var(--serif, "Noto Serif TC","PMingLiU",serif); color: #203f38; }
.featured-package h2 { color: #fff8e5; }
.package p { font-size: 15px; line-height: 1.75; color: #51635b; }
.featured-package p { color: #e5eddc; }
.package-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: auto; padding-top: 10px; }
.package-actions > a:last-child { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 650; }
.package-actions > a:last-child:hover { text-decoration: underline; text-underline-offset: 3px; }
.package-actions .btn { font-size: 15px; }
.featured-package .btn { border-color: #e8d29c; color: #233c34; background: #efd8a0; }
.featured-package .btn:hover { background: #fff0c6; }
.package-actions .btn[aria-disabled=true] { cursor: default; opacity: .75; }
.install-guide { padding: clamp(18px, 3vw, 32px); scroll-margin: 16px; }
#patch-guide { scroll-margin: 22px; }
.install-steps { counter-reset: step; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(14px, 2.5vw, 32px); margin: 21px 0; padding: 0; list-style: none; }
.install-steps li { counter-increment: step; min-width: 0; padding-top: 10px; border-top: 1px solid #d5dbc9; }
.install-steps li::before { content: counter(step,decimal-leading-zero); float: inline-start; margin: 2px 8px 0 0; color: #967542; font: bold 15px/1.5 Georgia,serif; }
.install-steps h3 { color: #2b4a3f; font-size: 16px; }
.install-steps p, .install-note p { margin-top: 5px; font-size: 14px; line-height: 1.72; color: #52655a; }
.install-note { padding: 13px 18px; border-inline-start: 3px solid #b39755; background: #f5f0df; }
.install-note h3 { color: #70592b; font-size: 15px; }
@media (max-width: 660px) {
    .catalog-body { gap: 14px; }
    .record-form { gap: 10px; margin-top: 13px; }
    .record-form label { flex-basis: calc(50% - 5px); }
    .record-form .btn { width: 100%; justify-content: center; }
    .record-table :where(th,td):first-child { width: 54px; }
    .download-pair, .install-steps { grid-template-columns: 1fr; }
    .install-steps { gap: 12px; }
}
