/* bs-lite.css —— 用最小 CSS 1:1 替代整份 Bootstrap。
   前台实际只用到下列类，其余 200KB+ 全未使用。取值严格对齐 Bootstrap 5.3.3，保证视觉零差异。
   base.css 已提供全局 reset，故无需 Bootstrap 的 Reboot。 */

/* ---------- 容器 ---------- */
.container {
    --bs-gutter-x: 1.5rem;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-right: auto;
    margin-left: auto;
}
@media (min-width: 576px)  { .container { max-width: 540px; } }
@media (min-width: 768px)  { .container { max-width: 720px; } }
@media (min-width: 992px)  { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

/* ---------- 栅格 ---------- */
.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-.5 * var(--bs-gutter-x));
    margin-left: calc(-.5 * var(--bs-gutter-x));
}
.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-top: var(--bs-gutter-y);
}
.col-4 { flex: 0 0 auto; width: 33.33333333%; }
@media (min-width: 768px) {
    .col-md-2 { flex: 0 0 auto; width: 16.66666667%; }
}

/* 间距槽：g-2 / g-3 / g-md-4（顺序在后，>=768px 覆盖前者） */
.g-2 { --bs-gutter-x: .5rem; --bs-gutter-y: .5rem; }
.g-3 { --bs-gutter-x: 1rem;  --bs-gutter-y: 1rem; }
@media (min-width: 768px) {
    .g-md-4 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; }
}

/* ---------- 工具类 ---------- */
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-3 { margin-top: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.text-center { text-align: center !important; }
.text-decoration-none { text-decoration: none !important; }
.text-muted { color: rgba(33, 37, 41, .75) !important; }
.fs-5 { font-size: 1.25rem !important; }

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ---------- 按钮（仅 detail.html 兜底按钮用） ---------- */
.btn {
    display: inline-block;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: .375rem;
}
.btn-warning { color: #000; background-color: #ffc107; border-color: #ffc107; }
.btn-warning:hover { color: #000; background-color: #ffca2c; border-color: #ffc720; }