/* 本文件定义网站首页、插件列表和详情页的黑白预览主题，不影响 WCL 页面。 */
:root {
    color-scheme: light;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    --site-content-width: min(1240px, calc(100% - 80px));
    --ink: #111314;
    --text: #202525;
    --muted: #6b7473;
    --accent: #c88128;
    --line: #dfe3e1;
    --soft: #f4f6f4;
    background: #fff;
    color: var(--text);
    font-synthesis: none;
    letter-spacing: 0;
    line-height: 1.55;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 22px; }
body, h1, h2, h3, p, figure { margin: 0; }
body { min-width: 320px; background: #fff; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.container { width: var(--site-content-width); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 20; left: 16px; top: -80px; padding: 10px 14px; background: #fff; color: #111; }
.skip-link:focus { top: 10px; }
.home-main { padding-block: 36px 72px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.eyebrow { color: #72817e; font-size: 11px; font-weight: 700; }
.page-heading h2 { margin-top: 4px; font-size: 25px; line-height: 1.35; }
.page-heading p:last-child { margin-top: 5px; color: var(--muted); font-size: 13px; }
.demo-label { flex: none; padding: 4px 8px; border: 1px solid #d8c7a9; border-radius: 4px; color: #836535; font-size: 11px; }
/* 首页搜索与下载区同宽，并始终位于下载卡片上方。 */
.home-search { display: flex; grid-column: 1 / -1; width: 100%; height: 44px; margin: 0 0 20px; border: 1px solid #b9c1bf; border-radius: 4px; overflow: hidden; }
.home-search:focus-within, .catalog-tools:focus-within { border-color: #727f7b; }
.home-search input { flex: 1; min-width: 0; padding: 0 14px; border: 0; outline: 0; background: #fff; color: var(--text); font-size: 13px; }
.home-search button { padding: 0 19px; border: 0; border-left: 1px solid #b9c1bf; background: #232829; color: #fff; font-size: 13px; font-weight: 650; }
.home-search button:hover, .catalog-tools button:hover { background: #3c4544; }
.home-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 36px; }
.home-aside { grid-column: 2; grid-row: 1; position: sticky; top: 20px; min-width: 0; }
.aside-about { padding: 23px 2px 0; }
.aside-about h2 { font-size: 15px; }
.aside-about p { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.aside-about a { display: inline-block; margin-top: 12px; color: #28706e; font-size: 12px; font-weight: 650; }
.aside-about a:hover { color: #a7671d; }
/* 最近更新位于搜索框下方，条目紧凑，名称和版本单行省略。 */
.recent-updates { margin-bottom: 4px; }
.recent-updates h2 { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 15px; }
.recent-updates h2 .title-mark { width: 16px; height: 16px; }
.recent-updates ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.recent-updates li { border-bottom: 1px solid var(--line); }
.recent-updates a { display: block; padding: 9px 2px; }
.recent-updates a:hover strong { color: #a7671d; }
.recent-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.recent-line strong { min-width: 0; overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.recent-line em { flex: none; max-width: 45%; overflow: hidden; color: #28706e; font-size: 11px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.recent-updates small { display: block; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.recent-updates time { display: block; margin-top: 2px; color: #82908a; font-size: 11px; }
.client-preview { margin-top: 25px; }
.client-preview img { display: block; width: 100%; height: auto; border: 1px solid #d3d9d5; border-radius: 4px; }
.client-preview figcaption { margin-top: 7px; color: #82908a; font-size: 11px; }
.home-results { grid-column: 1; grid-row: 1; min-width: 0; container: addon-rankings / inline-size; }
/* 精选区突出封面与作者，标题单行省略，卡片整块可点击。 */
.featured-section { margin-bottom: 32px; }
/* 首页区块标题前的黄色 SVG 图标，仅装饰用。 */
.home-results .page-heading h2 { display: inline-flex; align-items: center; gap: 8px; }
.title-mark { flex: none; width: 22px; height: 22px; color: #e0a32e; }
/* 精选标题复用 page-heading 的眉标、标题和说明样式，与「插件发现」保持一致。 */
.featured-heading { margin-bottom: 16px; }
.featured-carousel { position: relative; }
.featured-viewport { overflow: hidden; padding: 4px; }
/* 箭头收在封面内部，桌面悬停或键盘聚焦时才显示，不遮挡卡片文字。 */
.featured-controls button { position: absolute; z-index: 1; top: var(--featured-arrow-top, 80px); transform: translateY(-50%); display: grid; place-items: center; width: 30px; height: 42px; padding: 0 0 3px; border: 0; border-radius: 4px; background: #11131470; color: #fff; font: 28px/1 Arial, sans-serif; opacity: 0; pointer-events: none; transition: opacity .15s, background .15s; }
.featured-carousel:hover .featured-controls button, .featured-carousel:has(:focus-visible) .featured-controls button { opacity: 1; pointer-events: auto; }
.featured-controls button:hover { background: #111314b3; }
#featured-prev { left: 12px; }
#featured-next { right: 12px; }
/* 触屏没有悬停状态，保留低对比箭头与滑动操作入口。 */
@media (hover: none) {
    .featured-controls button { opacity: 1; pointer-events: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .featured-controls button { transition: none; }
}
/* 宽屏完整展示三张，脚本通过移动节点实现循环，不产生重复卡片或滚动条。 */
.featured-grid { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; touch-action: pan-y; }
.featured-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.featured-card:hover { border-color: #b3813b; }
.featured-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #1b2020; }
.featured-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.featured-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #f3c177; font-size: 42px; font-weight: 700; }
.featured-author { position: absolute; right: 10px; bottom: 10px; max-width: calc(100% - 20px); box-sizing: border-box; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 4px 8px; border: 1px solid #ffffff24; border-radius: 4px; background: #111314c9; color: #fff; font-size: 11px; line-height: 1.5; }
.featured-copy { display: flex; flex: 1; flex-direction: column; padding: 16px; }
.featured-copy h3 { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink); font-size: 16px; line-height: 1.4; }
.featured-card:hover h3 { color: #a7671d; }
/* 窄屏仍保留横向卡片和下一张预览，不改成纵向堆叠。 */
@container addon-rankings (max-width: 680px) {
    .featured-grid { grid-auto-columns: 84%; gap: 12px; }
}
.category-heading { padding-bottom: 18px; border-bottom: 2px solid #252a29; }
.category-heading > a { flex: none; color: #2a6b68; font-size: 12px; font-weight: 650; }
.category-heading > a:hover { color: #aa691f; }
.results-bar { display: flex; justify-content: space-between; align-items: center; padding: 0 0 12px; border-bottom: 2px solid #252a29; font-size: 14px; font-weight: 700; }
.results-bar a { color: #2a6b68; font-size: 12px; font-weight: 650; }
.results-bar a:hover { color: #aa691f; }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.ranking-block { min-width: 0; padding-block: 18px 23px; border-bottom: 1px solid var(--line); }
.block-heading, .block-heading > div { display: flex; align-items: center; }
.block-heading { justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.block-heading > div { min-width: 0; gap: 8px; }
.block-marker { flex: none; width: 4px; height: 15px; background: #d7a454; }
.block-heading h3 { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.block-heading a { flex: none; color: #28706e; font-size: 11px; }
.block-heading a:hover { color: #a7671f; }
.compact-list { margin: 0; padding: 0; list-style: none; }
.compact-list li + li { border-top: 1px solid #edf0ee; }
/* 首页榜单放大条目与封面，简介最多显示两行，保持三条插件易于扫读。 */
.compact-list a { display: grid; grid-template-columns: 22px 96px minmax(0, 1fr) 60px; align-items: center; gap: 12px; min-height: 88px; padding-block: 10px; }
.compact-list .addon-icon { width: 96px; height: 60px; }
.compact-list .addon-icon img { object-fit: cover; }
.compact-list a:hover .compact-copy strong { color: #a4611c; }
.rank { color: #b3813b; font-size: 14px; font-weight: 750; font-variant-numeric: tabular-nums; }
.addon-icon { display: grid; place-items: center; flex: none; width: 58px; height: 46px; border-radius: 5px; overflow: hidden; font-size: 13px; font-weight: 800; letter-spacing: 0; }
.addon-icon img { display: block; width: 100%; height: 100%; object-fit: contain; background: #f4f6f4; }
.tone-teal { background: #dcefee; color: #22635e; }
.tone-rose { background: #f2e2e5; color: #9a4d5c; }
.tone-amber { background: #f5e9d4; color: #905d1b; }
.tone-green { background: #e6efdc; color: #47704a; }
.tone-blue { background: #e0eafa; color: #3b6390; }
.tone-violet { background: #e9e4f5; color: #6b5792; }
.compact-copy { display: grid; min-width: 0; gap: 5px; }
.compact-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; line-height: 1.4; }
.compact-copy small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; color: #6b7473; font-size: 12px; line-height: 1.5; }
.compact-count { color: #505b57; font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.compact-count small { display: block; color: #78847e; font-size: 11px; }
/* 按排行实际可用宽度切换列数，兼顾右侧下载栏和中等屏幕。 */
@container addon-rankings (max-width: 760px) {
    .category-grid { grid-template-columns: 1fr; }
}
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 22px; color: #7b8581; font-size: 12px; }
.breadcrumbs a:hover { color: #a7671d; }
.catalog-main, .detail-main { padding-bottom: 72px; }
.catalog-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr) 255px; gap: 24px; }
.catalog-filters { grid-column: 1; grid-row: 1; align-self: start; padding-right: 18px; border-right: 1px solid var(--line); }
.catalog-filters h2 { font-size: 15px; }
.catalog-filters nav { display: grid; gap: 2px; margin-top: 13px; }
.catalog-filters nav a { display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; border-radius: 4px; color: #5d6964; font-size: 13px; }
.catalog-filters nav a span { color: #a8b1ad; }
.catalog-filters nav a:hover { background: var(--soft); color: #111; }
.catalog-filters nav a[aria-current="page"] { background: #e9eee9; color: #1a2622; font-weight: 700; }
.catalog-side { grid-column: 3; grid-row: 1; position: sticky; top: 20px; min-width: 0; }
.catalog-results { grid-column: 2; grid-row: 1; min-width: 0; }
/* 插件库列表页顶部改为单行紧凑标题，与左右栏标题齐平，不把主体往下压。 */
.catalog-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.catalog-title h2 { font-size: 16px; line-height: 1.4; }
.catalog-count { flex: none; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.catalog-tools { display: flex; gap: 8px; margin: 12px 0 8px; }
.catalog-tools input, .catalog-tools select { min-width: 0; height: 40px; padding: 0 11px; border: 1px solid #bdc6c1; border-radius: 4px; background: #fff; color: var(--text); font-size: 12px; }
.catalog-tools input { flex: 1; }
.catalog-tools select { width: 130px; }
.catalog-tools button { padding: 0 17px; border: 0; border-radius: 4px; background: #232829; color: #fff; font-size: 12px; }
.catalog-item { display: grid; grid-template-columns: 88px minmax(0, 1fr) 90px 12px; align-items: center; gap: 14px; min-height: 98px; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.catalog-item:hover { background: #f8faf8; }
.catalog-item .addon-icon { width: 88px; height: 66px; font-size: 16px; }
.catalog-item-copy { display: grid; min-width: 0; gap: 3px; }
.catalog-item-copy strong { font-size: 15px; }
.catalog-item:hover .catalog-item-copy strong { color: #a4611c; }
.catalog-item-copy > .catalog-item-summary { color: #596460; font-size: 12px; }
.catalog-item-meta { display: flex; flex-wrap: wrap; align-items: center; min-width: 0; gap: 2px 12px; }
.catalog-item-copy small { overflow: hidden; color: #8b9691; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.catalog-item-copy .catalog-item-author { flex: 0 1 auto; max-width: 100%; color: #596460; }
.catalog-item-copy i { padding-inline: 3px; font-style: normal; }
.catalog-item-stat { display: grid; justify-items: end; color: #3d4744; white-space: nowrap; }
.catalog-item-stat strong { font-size: 13px; }
.catalog-item-stat small { color: #8d9893; font-size: 10px; }
.item-arrow { color: #9aa49f; font-size: 22px; }
.list-empty { padding: 42px 15px; text-align: center; }
.list-empty strong { font-size: 15px; }
.list-empty p { margin-top: 5px; color: var(--muted); font-size: 12px; }
.list-empty a { display: inline-block; margin-top: 14px; color: #28706e; font-size: 12px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 25px; color: #5e6a65; font-size: 12px; }
.pagination a, .pagination .disabled { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 4px; }
.pagination a:hover { border-color: #909f98; color: #111; }
.pagination .disabled { color: #b7c0bb; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 52px; }
.detail-content { min-width: 0; }
.detail-identity { display: flex; align-items: center; gap: 19px; padding: 20px 0 29px; }
.detail-identity .addon-icon { width: 150px; height: 112px; font-size: 23px; }
.detail-identity > div { min-width: 0; }
.detail-identity h2 { margin-top: 3px; font-size: 29px; line-height: 1.25; overflow-wrap: anywhere; }
.detail-identity p:last-child { margin-top: 7px; color: #596460; font-size: 14px; }
.detail-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; padding: 18px 0; border-block: 1px solid var(--line); }
.detail-facts div { display: grid; gap: 4px; min-width: 0; }
.detail-facts span { color: #89938f; font-size: 11px; }
.detail-facts strong { overflow-wrap: anywhere; font-size: 13px; font-weight: 600; }
.detail-tabs { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 24px; border-bottom: 1px solid var(--line); scroll-margin-top: 72px; }
.detail-tabs a { padding: 8px 2px; border-bottom: 2px solid transparent; color: #53605a; font-size: 14px; }
.detail-tabs a:hover, .detail-tabs [aria-current="page"] { color: var(--accent); border-bottom-color: currentColor; }
.detail-section { margin-top: 32px; }
.detail-section h2 { padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 18px; }
.detail-section p { max-width: 700px; margin-top: 15px; color: #53605a; font-size: 14px; line-height: 1.85; }
.addon-description { max-width: 700px; margin-top: 15px; color: #53605a; font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; white-space: pre-wrap; }
.addon-description img { display: block; max-width: 100%; height: auto; margin: 12px 0; }
.addon-description a { color: var(--accent); text-decoration: underline; }
.addon-description blockquote { margin: 12px 0; padding: 4px 0 4px 15px; border-left: 3px solid var(--line); }
.addon-description pre { overflow-x: auto; padding: 12px; border-radius: 6px; background: #f2f4f2; }
.addon-description table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.addon-description th, .addon-description td { padding: 5px 9px; border: 1px solid var(--line); }
.addon-release + .addon-release { margin-top: 24px; }
.addon-release h2 { overflow-wrap: anywhere; }
.addon-release-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; color: #53605a; font-size: 13px; overflow-wrap: anywhere; }
.addon-gallery { display: flex; gap: 12px; margin-top: 15px; padding: 4px 3px 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; }
.addon-gallery a { display: grid; place-items: center; flex: none; width: 216px; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: var(--soft); scroll-snap-align: start; cursor: zoom-in; }
.addon-gallery a:hover { border-color: var(--accent); }
.addon-gallery img { display: block; width: 100%; height: 100%; object-fit: contain; }
html.screenshot-preview-open { overflow: hidden; }
.screenshot-preview { width: min(1120px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: hidden; border: 0; border-radius: 8px; background: #111314; color: #fff; box-shadow: 0 24px 80px #0006; }
.screenshot-preview::backdrop { background: #080a0ce6; }
.screenshot-preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 8px 16px; font-size: 13px; }
.screenshot-preview-toolbar > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screenshot-preview-close { flex: none; min-height: 40px; padding: 6px 12px; border: 1px solid #596460; border-radius: 4px; background: transparent; color: #fff; }
.screenshot-preview-close:hover { background: #303635; }
.screenshot-preview-image { display: block; width: 100%; max-height: calc(100dvh - 88px); object-fit: contain; }
.info-table { margin-top: 9px; }
.info-table div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid #edf0ee; font-size: 13px; }
.info-table span { color: #78847e; }
.info-table strong { font-weight: 550; text-align: right; }
/* 服务器简介专题页：精简段落、Logo、大区标签、快捷入口与要点列表。 */
.server-content .detail-section:first-child { margin-top: 0; }
.server-head { display: flex; align-items: flex-start; gap: 20px; margin-top: 16px; }
.server-logo { flex: none; width: 108px; height: auto; border-radius: 8px; object-fit: contain; }
.server-head-copy { min-width: 0; flex: 1; }
.server-head-copy .server-intro { margin-top: 0; }
.server-intro { max-width: none; color: #363f3c; font-size: 14px; line-height: 1.9; }
.server-realms { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.server-realms-label { color: var(--muted); font-size: 13px; font-weight: 600; }
.server-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.server-link { display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border: 1px solid #cfd6d2; border-radius: 4px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; }
.server-link:hover { border-color: #b3813b; color: #a7671d; background: #fcfaf5; }
.server-link.is-primary { border-color: #232829; background: #232829; color: #f7f8f5; }
.server-link.is-primary:hover { border-color: #3c4544; background: #3c4544; color: #fff; }
.server-highlights { display: grid; gap: 10px; margin: 14px 0 0; padding-left: 18px; color: #363f3c; font-size: 14px; line-height: 1.8; }
.server-highlights strong { color: var(--ink); }
.server-tag { display: inline-block; padding: 3px 11px; border: 1px solid #d7dfda; border-radius: 999px; background: #f4f7f5; color: #2b3532; font-size: 12px; font-weight: 600; }
.server-note { max-width: none; margin-top: 22px; color: #4c5653; font-size: 13px; line-height: 1.8; }
.inline-link { color: #28706e; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.inline-link:hover { color: #a7671d; }
/* 加速器推荐页：沿用全站黑白与琥珀金主色，突出兑换码复制和官方入口。 */
.accelerator-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 2px solid #252a29; }
.accelerator-heading h2 { margin-top: 4px; font-size: 22px; line-height: 1.35; }
.accelerator-list { display: grid; gap: 16px; margin-top: 20px; }
.accelerator-card { border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 20px; transition: border-color .15s; }
.accelerator-card:hover { border-color: #c7b292; }
.accelerator-card-head { display: flex; align-items: flex-start; gap: 16px; }
.accelerator-logo { display: grid; place-items: center; flex: none; width: 68px; height: 68px; border: 1px solid #e6eae7; border-radius: 8px; overflow: hidden; background: var(--soft); font-size: 20px; font-weight: 800; }
.accelerator-logo img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.accelerator-card-title { min-width: 0; flex: 1; }
.accelerator-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.accelerator-title-row h3 { color: var(--ink); font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
.accelerator-duration { display: inline-flex; align-items: center; padding: 2px 10px; border: 1px solid #e4c99d; border-radius: 999px; background: #fbf5ea; color: #8c5918; font-size: 12px; font-weight: 650; white-space: nowrap; }
.accelerator-desc { margin-top: 8px; color: #4c5653; font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; white-space: pre-line; }
.accelerator-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #edf0ee; }
.accelerator-redeem { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; max-width: 100%; padding: 6px 10px 6px 12px; border: 1px dashed #d4c4a8; border-radius: 5px; background: #fcfaf5; }
.accelerator-redeem-label { color: #7a6b52; font-size: 12px; font-weight: 600; }
.accelerator-code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; color: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; overflow-wrap: anywhere; }
.accelerator-copy { padding: 4px 10px; border: 1px solid #d4c4a8; border-radius: 4px; background: #fff; color: #835418; font-size: 12px; font-weight: 650; }
.accelerator-copy:hover { border-color: var(--accent); background: #f8efe0; color: #6b410d; }
.accelerator-copy.is-copied { border-color: #28706e; background: #28706e; color: #fff; }
.accelerator-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.detail-aside { align-self: start; }
.site-footer { border-top: 1px solid var(--line); padding: 22px 0; }
.footer-layout { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer .brand { font-size: 13px; }
.site-footer p { color: #87918c; font-size: 11px; }
@media (max-width: 1000px) {
    :root { --site-content-width: calc(100% - 48px); }
    .home-layout { display: flex; flex-direction: column; gap: 26px; }
    /* 窄屏优先展示插件排行，下载卡片横跨整行，介绍和截图排列在下方。 */
    .home-aside { order: 2; position: static; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 20px; width: 100%; }
    .home-aside .home-search { margin-bottom: 0; }
    .home-aside .aside-about { padding-top: 0; }
    .home-aside .client-preview { margin-top: 0; }
    .home-results { order: 1; width: 100%; }
}
@media (max-width: 900px) {
    .catalog-layout { grid-template-columns: minmax(0, 1fr) 255px; }
    .catalog-filters { grid-column: 1 / -1; grid-row: 1; padding: 0; border: 0; }
    .catalog-filters nav { display: flex; flex-wrap: wrap; gap: 5px; }
    .catalog-filters nav a { border: 1px solid #dce2de; }
    .catalog-results { grid-column: 1; grid-row: 2; }
    .catalog-side { grid-column: 2; grid-row: 2; }
}
@media (max-width: 720px) {
    :root { --site-content-width: calc(100% - 36px); }
    .home-main { padding-block: 26px 48px; }
    .page-heading { align-items: start; flex-direction: column; gap: 10px; }
    .page-heading h2 { font-size: 22px; }
    .catalog-layout { display: flex; flex-direction: column; gap: 0; }
    .detail-layout { display: block; }
    .catalog-filters { width: 100%; min-width: 0; padding: 0; border: 0; }
    .catalog-filters nav { width: 100%; max-width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 5px; padding-bottom: 8px; scrollbar-width: none; }
    .catalog-filters nav::-webkit-scrollbar { display: none; }
    .catalog-filters nav a { flex: none; border: 1px solid #dce2de; white-space: nowrap; }
    .catalog-filters nav a span { display: none; }
    .catalog-results { order: 2; width: 100%; margin-top: 23px; }
    .catalog-side { order: 3; position: static; width: 100%; margin-top: 28px; }
    .catalog-main, .detail-main { padding-bottom: 48px; }
    .detail-aside { margin-top: 32px; }
}
@media (max-width: 560px) {
    .home-aside { display: block; }
    .home-aside .home-search { margin-bottom: 20px; }
    .home-aside .aside-about, .aside-about { padding-top: 17px; }
    .client-preview { display: none; }
    .ranking-block { padding-block: 17px 18px; }
    .catalog-tools { flex-wrap: wrap; }
    .catalog-tools input { flex-basis: 100%; }
    .catalog-tools select { flex: 1; }
    .catalog-tools button { min-width: 78px; }
    .catalog-item { grid-template-columns: 64px minmax(0, 1fr) 10px; min-height: 84px; gap: 10px; }
    .catalog-item .addon-icon { width: 64px; height: 50px; font-size: 13px; }
    .catalog-item-stat { display: none; }
    .catalog-item-copy strong { font-size: 13px; }
    .catalog-item-copy > .catalog-item-summary, .catalog-item-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .catalog-item-copy small { font-size: 10px; }
    .detail-identity .addon-icon { width: 88px; height: 68px; font-size: 18px; }
    .detail-identity h2 { font-size: 23px; }
    .detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .addon-gallery a { width: 176px; }
    .accelerator-card { padding: 16px; }
    .accelerator-logo { width: 54px; height: 54px; font-size: 16px; }
    .accelerator-card-foot { align-items: stretch; }
    .accelerator-redeem { width: 100%; justify-content: space-between; }
    .accelerator-actions { width: 100%; }
    .accelerator-actions .server-link { flex: 1; justify-content: center; }
    .footer-layout { flex-wrap: wrap; gap: 8px 16px; }
    .site-footer .brand { width: 100%; }
}
@media (max-width: 370px) {
    .compact-list a { grid-template-columns: 20px 52px minmax(0, 1fr) 48px; gap: 8px; }
    .compact-list .addon-icon { width: 52px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
