:root {
    --primary: #635bff;
    --primary-rgb: 99, 91, 255;
    --bg: #f6f7fb;
    --surface: #fff;
    --surface-soft: #f8f9fc;
    --text: #171923;
    --muted: #6f7585;
    --border: #e8eaf1;
    --shadow: 0 16px 40px rgba(29, 33, 50, .08);
    --radius: 16px;
    --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.container { width: min(calc(100% - 36px), var(--container)); margin-inline: auto; }
.site-header {
    position: sticky; z-index: 50; top: 0;
    height: 68px; border-bottom: 1px solid rgba(232, 234, 241, .9);
    background: rgba(255, 255, 255, .88); backdrop-filter: blur(18px);
}
.header-inner { height: 100%; display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
    display: grid; width: 38px; height: 38px; place-items: center;
    color: #fff; border-radius: 11px;
    background: linear-gradient(145deg, var(--primary), #8f88ff);
    box-shadow: 0 8px 18px rgba(var(--primary-rgb), .24);
    font-size: 13px; font-weight: 900; letter-spacing: -.4px;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-size: 17px; letter-spacing: -.3px; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.main-nav { display: flex; margin-left: 64px; height: 100%; gap: 5px; }
.main-nav a {
    position: relative; display: grid; padding: 0 15px; place-items: center;
    color: #515666; font-weight: 600;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.main-nav a.active::after {
    position: absolute; right: 15px; bottom: -1px; left: 15px;
    height: 2px; border-radius: 2px 2px 0 0; background: var(--primary); content: "";
}
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-button {
    display: grid; width: 36px; height: 36px; padding: 0; place-items: center;
    border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer;
}
.icon-button svg { width: 18px; height: 18px; }
.icon-button:hover { color: var(--primary); border-color: rgba(var(--primary-rgb), .35); }
.publish-link {
    padding: 8px 15px; color: #fff; border-radius: 9px; background: var(--text);
    font-size: 13px; font-weight: 700;
}
.publish-link:hover { background: var(--primary); }
.menu-toggle { display: none; }
.hero {
    position: relative; overflow: hidden; min-height: 375px; color: #fff;
    background:
        linear-gradient(115deg, rgba(21, 20, 61, .99), rgba(58, 51, 156, .96) 55%, rgba(91, 72, 202, .95)),
        radial-gradient(circle at 20% 30%, #7771ff, transparent 30%);
}
.hero::before {
    position: absolute; inset: 0; opacity: .18; content: "";
    background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 52px 52px; mask-image: linear-gradient(to right, #000, transparent);
}
.hero-inner { position: relative; z-index: 2; padding: 62px 0 54px; text-align: center; }
.hero h1 { margin: 8px 0 8px; font-size: clamp(34px, 4vw, 52px); line-height: 1.2; letter-spacing: -2px; }
.hero p { margin: 0 0 25px; color: rgba(255,255,255,.72); font-size: 16px; letter-spacing: .5px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px;
    border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
    background: rgba(255,255,255,.07); color: rgba(255,255,255,.8); font-size: 11px;
}
.eyebrow i { width: 5px; height: 5px; border-radius: 50%; background: #62e3b1; box-shadow: 0 0 0 4px rgba(98,227,177,.12); }
.hero-search {
    display: flex; align-items: center; width: min(680px, 100%); height: 58px; margin: 0 auto;
    padding: 5px 5px 5px 18px; border: 1px solid rgba(255,255,255,.22);
    border-radius: 14px; background: #fff; box-shadow: 0 18px 50px rgba(10, 8, 45, .25); text-align: left;
}
.hero-search svg { flex: 0 0 auto; width: 21px; height: 21px; color: #8a8e9c; }
.hero-search input { min-width: 0; flex: 1; height: 100%; padding: 0 13px; border: 0; outline: 0; color: #262a36; background: transparent; }
.hero-search button { height: 46px; padding: 0 23px; color: #fff; border: 0; border-radius: 10px; background: var(--primary); font-weight: 700; cursor: pointer; }
.hero-search button:hover { filter: brightness(1.08); }
.hot-words { display: flex; justify-content: center; gap: 14px; margin-top: 14px; color: rgba(255,255,255,.58); font-size: 12px; }
.hot-words a:hover { color: #fff; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb-one { right: -70px; top: -90px; width: 330px; height: 330px; border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 0 80px rgba(255,255,255,.04); }
.orb-two { left: 8%; bottom: -180px; width: 280px; height: 280px; background: rgba(116,214,255,.08); }
.announcement {
    position: relative; z-index: 3; display: flex; align-items: center; min-height: 56px; margin-top: -18px;
    padding: 11px 16px; border: 1px solid rgba(var(--primary-rgb), .12); border-radius: 13px;
    background: var(--surface); box-shadow: 0 9px 28px rgba(34,36,55,.08);
}
.announcement-icon { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; color: #fff; border-radius: 9px; background: var(--primary); font-family: Georgia, serif; font-weight: 700; }
.announcement div { display: flex; min-width: 0; align-items: center; gap: 13px; margin-left: 12px; }
.announcement strong { font-size: 13px; white-space: nowrap; }
.announcement div span { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.announcement button { margin-left: auto; border: 0; background: transparent; color: #a0a4b0; font-size: 20px; cursor: pointer; }
.category-section { padding-top: 50px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 21px; }
.section-heading h2 { margin: 1px 0 0; font-size: 24px; line-height: 1.2; letter-spacing: -.7px; }
.section-kicker { color: var(--primary); font-size: 9px; font-weight: 900; letter-spacing: 2.4px; }
.section-heading > a { color: var(--muted); font-size: 12px; font-weight: 600; }
.section-heading > a span { margin-left: 4px; color: var(--primary); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.category-card {
    position: relative; display: flex; min-width: 0; align-items: center; gap: 12px; padding: 16px;
    border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.category-card:hover, .category-card.active { transform: translateY(-2px); border-color: color-mix(in srgb, var(--category-color), transparent 55%); box-shadow: 0 12px 26px color-mix(in srgb, var(--category-color), transparent 88%); }
.category-icon { display: grid; width: 43px; height: 43px; flex: 0 0 auto; place-items: center; color: var(--category-color); border-radius: 12px; background: color-mix(in srgb, var(--category-color), transparent 89%); }
.category-icon svg { width: 21px; height: 21px; }
.category-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.category-copy strong { font-size: 14px; }
.category-copy small { overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.category-count { color: var(--category-color); font-size: 18px; font-weight: 800; }
.content-section { padding: 58px 0 74px; }
.resource-heading { align-items: center; }
.resource-heading > div:first-child p { display: inline; margin-left: 10px; color: var(--muted); font-size: 11px; }
.resource-heading h2 { display: inline; }
.sort-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.sort-tabs a { padding: 7px 13px; color: var(--muted); border-radius: 7px; font-size: 12px; font-weight: 600; }
.sort-tabs a.active { color: var(--primary); background: rgba(var(--primary-rgb), .09); }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 22px; align-items: start; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.resource-card {
    overflow: hidden; min-width: 0; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--surface); transition: transform .24s, box-shadow .24s, border-color .24s;
}
.resource-card:hover { transform: translateY(-4px); border-color: rgba(var(--primary-rgb), .2); box-shadow: var(--shadow); }
.card-cover { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9.7; color: #fff; }
.card-cover::after { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,30,.22), transparent 55%); content: ""; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.resource-card:hover .card-cover img { transform: scale(1.04); }
.cover-pattern { position: absolute; inset: 0; opacity: .22; background-image: radial-gradient(circle at 75% 35%, rgba(255,255,255,.6) 0 1px, transparent 2px), linear-gradient(135deg, transparent 48%, rgba(255,255,255,.2) 50%, transparent 52%); background-size: 24px 24px, 90px 90px; }
.cover-letter { position: absolute; z-index: 1; right: 19px; bottom: 4px; color: rgba(255,255,255,.19); font-size: 76px; font-weight: 900; line-height: 1; }
.badge { position: absolute; z-index: 2; top: 11px; left: 11px; padding: 3px 8px; border-radius: 6px; font-size: 9px; font-weight: 800; }
.badge-featured { color: #6b4600; background: #ffe49b; }
.cover-category { position: absolute; z-index: 2; right: 11px; top: 11px; padding: 3px 8px; border: 1px solid rgba(255,255,255,.28); border-radius: 6px; background: rgba(20,20,40,.15); backdrop-filter: blur(8px); font-size: 9px; }
.card-body { padding: 14px 15px 13px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; color: #989ca8; font-size: 10px; }
.card-meta a { color: var(--primary); font-weight: 700; }
.card-body h3 { height: 45px; margin: 6px 0 4px; overflow: hidden; font-size: 15px; line-height: 1.5; letter-spacing: -.15px; }
.card-body h3 a:hover { color: var(--primary); }
.card-body > p { height: 36px; margin: 0 0 11px; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.65; }
.card-footer { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.card-footer > span { display: flex; align-items: center; gap: 3px; color: #9b9fac; font-size: 9px; }
.card-footer svg { width: 13px; height: 13px; }
.card-more { margin-left: auto; color: var(--text); font-size: 10px; font-weight: 700; }
.card-more span { color: var(--primary); }
.home-sidebar { display: grid; gap: 15px; }
.side-card { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.side-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.side-title span { font-weight: 800; }
.side-title small { color: var(--primary); font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.ranking-list { margin: 0; padding: 0; list-style: none; }
.ranking-list li { display: grid; grid-template-columns: 23px minmax(0, 1fr); gap: 1px 7px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.ranking-list li:last-child { border-bottom: 0; }
.ranking-list li > span { grid-row: 1 / 3; align-self: center; color: #bec1cb; font-size: 19px; font-style: italic; font-weight: 900; }
.ranking-list li:nth-child(-n+3) > span { color: var(--primary); }
.ranking-list a { overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ranking-list a:hover { color: var(--primary); }
.ranking-list small { color: #a2a6b2; font-size: 9px; }
.stat-card { position: relative; overflow: hidden; color: #fff; border: 0; background: linear-gradient(145deg, #1e2140, #343266); }
.stat-card > small { color: rgba(255,255,255,.6); }
.stat-card > strong { display: block; margin-top: 6px; font-size: 40px; line-height: 1; }
.stat-card > strong em { color: #8e88ff; font-size: 19px; font-style: normal; }
.stat-card > p { margin: 6px 0 15px; color: rgba(255,255,255,.7); font-size: 11px; }
.stat-card > div:last-child { display: flex; gap: 8px; }
.stat-card > div span { padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,.08); font-size: 9px; }
.stat-glow { position: absolute; right: -35px; top: -35px; width: 120px; height: 120px; border-radius: 50%; background: rgba(116,107,255,.35); filter: blur(20px); }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 25px; }
.pagination a { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); font-size: 12px; }
.pagination a.active, .pagination a:hover { color: #fff; border-color: var(--primary); background: var(--primary); }
.empty-state { padding: 70px 20px; border: 1px dashed #d7d9e2; border-radius: var(--radius); background: var(--surface); text-align: center; }
.empty-state > span { color: var(--primary); font-size: 45px; }
.empty-state h3 { margin: 8px 0 3px; }
.empty-state p { margin: 0 0 18px; color: var(--muted); }
.button { display: inline-block; padding: 9px 18px; color: #fff; border-radius: 9px; background: var(--primary); font-weight: 700; }
.breadcrumbs { display: flex; gap: 8px; overflow: hidden; padding-top: 24px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.breadcrumbs > span:last-child { overflow: hidden; color: var(--text); text-overflow: ellipsis; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 315px; gap: 22px; padding-top: 18px; padding-bottom: 70px; align-items: start; }
.resource-detail { overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.detail-header { padding: 31px 34px 25px; }
.detail-badges { display: flex; gap: 7px; }
.detail-badges a, .detail-badges span { padding: 4px 9px; color: var(--primary); border-radius: 6px; background: rgba(var(--primary-rgb), .09); font-size: 9px; font-weight: 800; }
.detail-header h1 { margin: 13px 0 8px; font-size: clamp(24px, 3vw, 34px); line-height: 1.35; letter-spacing: -.9px; }
.detail-excerpt { margin: 0; color: var(--muted); font-size: 14px; }
.detail-meta { display: flex; gap: 18px; margin-top: 14px; color: #9b9fac; font-size: 10px; }
.detail-cover { position: relative; display: flex; overflow: hidden; min-height: 320px; align-items: flex-end; margin: 0 34px; padding: 28px; color: #fff; border-radius: 15px; }
.detail-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-cover::after { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,30,.62), transparent 70%); content: ""; }
.detail-cover > div { position: relative; z-index: 2; display: flex; flex-direction: column; }
.detail-cover small { opacity: .72; }
.detail-cover strong { max-width: 600px; margin-top: 5px; font-size: 25px; line-height: 1.35; }
.article-content { padding: 30px 34px 8px; color: #414654; font-size: 15px; line-height: 1.95; }
.article-content h2 { margin: 0 0 16px; color: var(--text); font-size: 20px; }
.article-content h2::before { display: inline-block; width: 4px; height: 18px; margin-right: 9px; vertical-align: -2px; border-radius: 4px; background: var(--primary); content: ""; }
.article-content p { margin: 0 0 18px; }
.tag-list { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 7px 34px 24px; }
.tag-list > span { margin-right: 4px; font-weight: 700; }
.tag-list a { padding: 4px 9px; color: var(--muted); border: 1px solid var(--border); border-radius: 7px; background: var(--surface-soft); font-size: 10px; }
.copyright-note { margin: 0 34px 34px; padding: 16px 18px; border-left: 3px solid var(--primary); border-radius: 4px 10px 10px 4px; background: var(--surface-soft); }
.copyright-note strong { font-size: 12px; }
.copyright-note p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.download-panel { position: sticky; top: 88px; display: grid; gap: 15px; }
.download-card { padding: 20px; border: 1px solid var(--border); border-radius: 17px; background: var(--surface); box-shadow: 0 10px 30px rgba(29,33,50,.05); }
.download-card-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.download-card-head span { font-size: 15px; font-weight: 800; }
.download-card-head i { padding: 3px 7px; color: #12805b; border-radius: 5px; background: #e7f8f1; font-size: 8px; font-style: normal; font-weight: 700; }
.download-card dl { margin: 12px 0; }
.download-card dl div { display: flex; justify-content: space-between; padding: 8px 0; font-size: 11px; }
.download-card dt { color: var(--muted); }
.download-card dd { margin: 0; font-weight: 600; }
.code-box { display: flex; align-items: center; padding: 10px 11px; border: 1px dashed rgba(var(--primary-rgb), .35); border-radius: 9px; background: rgba(var(--primary-rgb), .05); }
.code-box span { color: var(--muted); font-size: 10px; }
.code-box strong { margin-left: auto; letter-spacing: 2px; }
.code-box button { margin-left: 10px; padding: 3px 7px; color: var(--primary); border: 0; border-radius: 5px; background: rgba(var(--primary-rgb), .09); font-size: 9px; cursor: pointer; }
.download-button { display: flex; height: 46px; align-items: center; justify-content: center; gap: 7px; width: 100%; margin-top: 13px; color: #fff; border: 0; border-radius: 10px; background: var(--primary); font-weight: 700; box-shadow: 0 10px 22px rgba(var(--primary-rgb), .2); }
.download-button svg { width: 18px; height: 18px; }
.download-button:hover { filter: brightness(1.07); transform: translateY(-1px); }
.download-button.disabled { color: #a0a4b0; background: #eceef3; box-shadow: none; cursor: not-allowed; }
.download-tip { margin: 10px 0 0; color: #9b9fac; font-size: 9px; text-align: center; }
.compact-side { padding: 16px; }
.related-item { display: flex; gap: 9px; padding: 9px 0; border-top: 1px solid var(--border); }
.related-item > span { width: 54px; height: 40px; flex: 0 0 auto; border-radius: 7px; }
.related-item div { display: flex; min-width: 0; flex-direction: column; justify-content: center; }
.related-item strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.related-item small { color: var(--muted); font-size: 8px; }
.error-page { min-height: 65vh; padding: 100px 20px; text-align: center; }
.error-page > span { color: var(--primary); font-size: 72px; font-weight: 900; letter-spacing: -5px; }
.error-page h1 { margin: 0; font-size: 27px; }
.error-page p { margin: 7px 0 22px; color: var(--muted); }
.site-footer { padding-top: 34px; color: #a9adba; background: #181a24; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; padding-bottom: 28px; }
.footer-brand .brand-copy strong { color: #fff; }
.footer-brand .brand-copy small { color: #848895; }
.footer-links { display: flex; gap: 22px; font-size: 11px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.07); font-size: 10px; }
.toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; transform: translateY(20px); padding: 10px 15px; color: #fff; border-radius: 9px; background: #20232e; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { transform: translateY(0); opacity: 1; }

html[data-theme="dark"] { --bg: #101119; --surface: #181a24; --surface-soft: #20222e; --text: #f1f2f6; --muted: #9da1ae; --border: #292c38; --shadow: 0 16px 40px rgba(0,0,0,.24); }
html[data-theme="dark"] .site-header { background: rgba(24,26,36,.88); }
html[data-theme="dark"] .publish-link { color: #14151c; background: #fff; }
html[data-theme="dark"] .article-content { color: #c4c7d0; }
html[data-theme="dark"] .download-button.disabled { background: #292c38; }
html[data-theme="dark"] .download-card-head i { color: #6ae0b4; background: #17372d; }

@media (prefers-color-scheme: dark) {
    html[data-theme="auto"] { --bg: #101119; --surface: #181a24; --surface-soft: #20222e; --text: #f1f2f6; --muted: #9da1ae; --border: #292c38; --shadow: 0 16px 40px rgba(0,0,0,.24); }
    html[data-theme="auto"] .site-header { background: rgba(24,26,36,.88); }
    html[data-theme="auto"] .publish-link { color: #14151c; background: #fff; }
    html[data-theme="auto"] .article-content { color: #c4c7d0; }
}

@media (max-width: 1080px) {
    .content-layout { grid-template-columns: 1fr; }
    .home-sidebar { grid-template-columns: 1fr 1fr; }
    .resource-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
    .main-nav { position: fixed; top: 68px; right: 0; left: 0; display: none; height: auto; margin: 0; padding: 8px 18px 14px; border-bottom: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
    .main-nav.open { display: grid; grid-template-columns: repeat(4, 1fr); }
    .main-nav a { height: 42px; border-radius: 8px; }
    .main-nav a.active::after { display: none; }
    .menu-toggle { display: grid; }
    .publish-link { display: none; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .resource-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-layout { grid-template-columns: 1fr; }
    .download-panel { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    .container { width: min(calc(100% - 24px), var(--container)); }
    .site-header { height: 60px; }
    .brand-copy small { display: none; }
    .main-nav { top: 60px; }
    .hero { min-height: 355px; }
    .hero-inner { padding: 52px 0 42px; }
    .hero h1 { font-size: 33px; letter-spacing: -1.2px; }
    .hero p { font-size: 13px; }
    .hero-search { height: 53px; padding-left: 14px; }
    .hero-search button { height: 43px; padding: 0 15px; }
    .hot-words { flex-wrap: wrap; gap: 7px 12px; }
    .announcement div { display: block; }
    .announcement div strong { display: block; }
    .category-section { padding-top: 40px; }
    .category-grid { grid-template-columns: 1fr; }
    .category-card { padding: 13px; }
    .section-heading { align-items: center; }
    .section-heading h2 { font-size: 21px; }
    .resource-heading { align-items: flex-end; }
    .resource-heading > div:first-child p { display: block; margin: 4px 0 0; }
    .sort-tabs a { padding: 6px 9px; font-size: 10px; }
    .resource-grid { grid-template-columns: 1fr; }
    .card-cover { aspect-ratio: 16 / 8.7; }
    .home-sidebar, .download-panel { grid-template-columns: 1fr; }
    .detail-header { padding: 24px 20px 20px; }
    .detail-header h1 { font-size: 24px; }
    .detail-meta { flex-wrap: wrap; gap: 7px 13px; }
    .detail-cover { min-height: 215px; margin: 0 20px; padding: 20px; }
    .detail-cover strong { font-size: 18px; }
    .article-content { padding: 25px 20px 5px; font-size: 14px; }
    .tag-list { padding-inline: 20px; }
    .copyright-note { margin-inline: 20px; }
    .footer-grid { align-items: flex-start; gap: 20px; flex-direction: column; }
    .footer-links { flex-wrap: wrap; gap: 10px 18px; }
    .footer-bottom { gap: 7px; flex-direction: column; }
}

