:root {
    color-scheme: light;
    --ink: #172033;
    --muted: #667085;
    --line: rgba(23, 32, 51, 0.11);
    --paper: rgba(255, 255, 255, 0.9);
    --blue: #2563eb;
    --blue-deep: #1d4ed8;
    --orange: #e97b30;
    --green: #12745a;
    --radius: 18px;
    --shadow: 0 18px 50px rgba(43, 55, 86, 0.09);
}

* { box-sizing: border-box; }

html { min-height: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    background:
        radial-gradient(circle at 12% 0%, rgba(108, 166, 255, 0.18), transparent 32rem),
        radial-gradient(circle at 92% 12%, rgba(255, 190, 132, 0.18), transparent 30rem),
        #f6f8fc;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
    width: min(1160px, calc(100% - 32px));
    margin: 18px auto 0;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--paper);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    font-weight: 760;
    letter-spacing: 0.02em;
}

.brand:hover { text-decoration: none; }

.brand-mark {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--orange));
    box-shadow: 0 7px 18px rgba(37, 99, 235, 0.33);
}

.site-nav { display: flex; align-items: center; gap: 6px; }

.site-nav a {
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--ink);
    background: #f0f4fb;
    text-decoration: none;
}

.readonly-badge,
.eyebrow,
.tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.readonly-badge {
    padding: 7px 10px;
    color: var(--green);
    background: #e9f7f1;
}

.shell {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 54px;
    flex: 1;
}

.hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.eyebrow {
    margin-bottom: 10px;
    padding: 7px 10px;
    color: var(--blue-deep);
    background: #eaf1ff;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
    margin-bottom: 8px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.hero p, .lead {
    max-width: 650px;
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.75;
}

.archive-note {
    padding: 14px 16px;
    color: #39506f;
    background: rgba(237, 244, 255, 0.88);
    border: 1px solid #d8e5fa;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.65;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 20px 0;
}

.sorts { display: flex; flex-wrap: wrap; gap: 8px; }

.sort-button,
.button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.sort-button {
    padding: 9px 14px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--line);
}

.sort-button[aria-pressed="true"] {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
}

.result-count { color: var(--muted); font-size: 13px; }

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.card,
.panel {
    background: var(--paper);
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card { overflow: hidden; display: flex; flex-direction: column; }

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #fff1df);
}

.card-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.card:hover .card-cover img { transform: scale(1.025); }

.card-body {
    padding: 18px;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
}

.card-body h2 { margin: 0; font-size: 20px; line-height: 1.35; }
.card-body h2 a { color: var(--ink); }
.card-body h2 a:hover { color: var(--blue); }

.card-description {
    min-height: 3.2em;
    color: #536075;
    font-size: 14px;
    line-height: 1.6;
}

.tag {
    padding: 6px 9px;
    color: var(--muted);
    background: #f1f4f9;
}

.tag.award { color: #9a4b17; background: #fff0e4; }
.tag.missing { color: #805d12; background: #fff8d8; }
.tag-row { display: flex; gap: 7px; flex-wrap: wrap; }

.stats {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: auto;
    padding-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.stats .detail-link { margin-left: auto; font-weight: 700; }

.pager {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), #4e8cff);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.button:hover { text-decoration: none; filter: brightness(0.98); }
.button[disabled] { display: none; }
.pager-status { min-width: 92px; color: var(--muted); text-align: center; font-size: 14px; }

.panel { padding: clamp(20px, 4vw, 34px); }
.detail-header { margin-bottom: 22px; }
.detail-title { margin: 10px 0; }
.detail-content { color: #4b586d; line-height: 1.8; white-space: pre-wrap; }
.frozen-stats { margin-top: 18px; }

.gallery {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.gallery.single { grid-template-columns: 1fr; }

.gallery a {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    background: #f1f3f6;
}

.gallery img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

.gallery.single a {
    aspect-ratio: auto;
    max-height: 78vh;
}

.gallery.single img {
    width: 100%;
    height: auto;
    max-height: 78vh;
}

.comments { margin-top: 20px; }
.comment { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment:last-child { border-bottom: 0; }
.comment-meta { margin-bottom: 7px; color: var(--muted); font-size: 13px; }
.comment p { margin-bottom: 0; line-height: 1.65; white-space: pre-wrap; }

.award-list { display: grid; gap: 20px; }
.award-item { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1.1fr); gap: 24px; align-items: center; }
.award-item .gallery { margin-top: 0; }
.award-number { color: var(--orange); font-weight: 800; }

.empty-state { text-align: center; padding: 64px 24px; }
.empty-state p { color: var(--muted); }

.site-footer {
    padding: 0;
    color: #667085;
    background: #ffffff;
    border-top: 1px solid var(--line);
    font-size: 13px;
    line-height: 1.6;
}

.footer-meta {
    width: min(1160px, calc(100% - 32px));
    min-height: 58px;
    margin: 0 auto;
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-footer a { color: #526178; }
.site-footer a:hover { color: var(--blue); }

@media (orientation: portrait) {
    .grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .site-header { align-items: flex-start; flex-direction: column; }
    .site-nav { width: 100%; flex-wrap: wrap; }
    .readonly-badge { margin-left: auto; }
    .shell { padding-top: 32px; }
    .hero, .toolbar { align-items: flex-start; flex-direction: column; }
    .award-item { grid-template-columns: 1fr; }
    .gallery, .gallery.single { grid-template-columns: 1fr; }
    .footer-meta { align-items: flex-start; flex-direction: column; gap: 6px; }
}

@media (max-width: 440px) {
    .site-header, .shell { width: min(100% - 20px, 1080px); }
    .brand { font-size: 14px; }
    .readonly-badge { margin-left: 0; }
    .site-nav a { padding-left: 8px; padding-right: 8px; }
    .stats { gap: 9px; }
}
