:root {
    --bs-primary: #E53935;
    --bs-danger: #E53935;
    --bs-dark: #212121;
    --bs-light: #FFEBEE;
    --font-main: "PingFang SC", "Microsoft YaHei", sans-serif;
}
body {
    font-family: var(--font-main);
    color: #333;
    background-color: #fff;
}
a {
    color: var(--bs-primary);
}
a:hover {
    color: #c62828;
}
/* 导航高亮 */
.navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.25rem;
}
/* 轮播文字 */
.carousel-caption {
    background: rgba(33, 33, 33, 0.5);
    border-radius: 0.5rem;
    padding: 2rem;
}
/* 固定图片比例 */
.fixed-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}
/* 灰度合作 */
.grayscale {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}
.grayscale:hover {
    filter: grayscale(0);
    opacity: 1;
}
/* 时间线 */
.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--bs-danger);
    transform: translateX(-50%);
}
.timeline-item {
    position: relative;
}
/* 页脚链接 */
footer a:hover {
    color: #fff !important;
}
/* 表单聚焦 */
.form-control:focus,
.form-select:focus {
    border-color: var(--bs-danger);
    box-shadow: 0 0 0 0.2rem rgba(229, 57, 53, 0.25);
}
/* 按钮禁用 */
.btn-danger.disabled {
    background: #ef9a9a;
    border-color: #ef9a9a;
}
/* 文字排版 */
.content {
    line-height: 1.8;
    font-size: 1rem;
}
.content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
}
/* 响应式隐藏 */
@media (max-width: 767.98px) {
    .top-bar {
        display: none !important;
    }
    .page-title h1 {
        font-size: 1.75rem;
    }
}
/* 小屏幕轮播字体 */
@media (max-width: 575.98px) {
    .carousel-caption h1 {
        font-size: 1.25rem;
    }
    .carousel-caption p {
        font-size: 0.875rem;
    }
}
/* 打印优化 */
@media print {
    header, footer, .page-title, aside {
        display: none;
    }
    body {
        background: #fff;
        color: #000;
    }
}