/* 红色文化模式样式 — 仅在 <html class="red-culture"> 下生效（后台 /api/red-mode 一键开关，js/red-mode.js 注入 class）
 * 作用：① 导航改红；② 内容区左右空白处出现红色文化竖幅；③ 页脚/强调元素加红色点缀。
 * 默认（未开启）零影响。 */

/* ── 左右红色文化竖幅（视口两侧空白处，宽屏才显示，避免遮挡手机内容） ── */
html.red-culture .rc-side {
    position: fixed;
    top: 96px;
    bottom: 60px;
    width: 34px;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 0;
    background: linear-gradient(180deg, #a4161a 0%, #de281e 50%, #a4161a 100%);
    box-shadow: 0 0 14px rgba(222, 40, 30, 0.45);
    color: #ffd700;
    pointer-events: none;
}
html.red-culture .rc-side-left {
    left: 8px;
    border-radius: 0 12px 12px 0;
    border-right: 2px solid rgba(255, 215, 0, 0.55);
}
html.red-culture .rc-side-right {
    right: 8px;
    border-radius: 12px 0 0 12px;
    border-left: 2px solid rgba(255, 215, 0, 0.55);
}
html.red-culture .rc-side .rc-star {
    font-size: 15px;
    color: #ffd700;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.8);
    animation: rcStarPulse 1.8s ease-in-out infinite alternate;
}
html.red-culture .rc-side .rc-text {
    writing-mode: vertical-rl;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #fff7e6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
    white-space: nowrap;
}
@keyframes rcStarPulse {
    from { opacity: 0.55; transform: scale(0.85); }
    to   { opacity: 1;    transform: scale(1.12); }
}
/* 宽屏（左侧空白 ≥ 100px）才显示竖幅，手机/窄屏自动隐藏不遮挡内容 */
@media (min-width: 1100px) {
    html.red-culture .rc-side { display: flex; }
}

/* ── 导航改红 ── */
html.red-culture .nav {
    background: linear-gradient(90deg, #7a0e12 0%, #c81e23 35%, #de281e 50%, #c81e23 65%, #7a0e12 100%);
    box-shadow: 0 2px 12px rgba(164, 22, 26, 0.5);
}
html.red-culture .nav a {
    color: #fff7e6;
    background: transparent;
}
html.red-culture .nav a:hover {
    background: rgba(255, 215, 0, 0.18);
    color: #ffd700;
}
html.red-culture .nav a.active {
    background: #ffd700;
    color: #a4161a;
    font-weight: 700;
}
/* 深色模式下导航覆盖 red-culture 规则，优先级对齐（html.dark 与 html.red-culture 同权重，按书写顺序 red-culture 在后生效） */
html.red-culture.dark .nav {
    background: linear-gradient(90deg, #7a0e12 0%, #c81e23 35%, #de281e 50%, #c81e23 65%, #7a0e12 100%);
}
html.red-culture.dark .nav a {
    color: #fff7e6;
    background: transparent;
}
html.red-culture.dark .nav a.active {
    background: #ffd700;
    color: #a4161a;
}

/* ── 学院 logo 区（分院页）红色点缀 ── */
html.red-culture .content-box {
    border-top: 3px solid #de281e;
    border-bottom: 3px solid #de281e;
    box-shadow: 0 0 16px rgba(222, 40, 30, 0.25);
}
/* 分院页 logo 已改为横幅照片，不再叠红线 */
html.red-culture .logo .content-box {
    border: 0;
    box-shadow: none;
}
html.red-culture .content-title,
html.red-culture .hero h1 {
    color: #c81e23;
}
html.red-culture .hero .sub {
    color: #de281e;
}

/* ── 页脚红色点缀 ── */
html.red-culture footer {
    border-top: 3px solid #de281e;
}
html.red-culture footer p {
    padding-top: 6px;
}

/* ══════════ 增强版红色文化元素（v0.3.76） ══════════ */

/* ── 口号飘带（nav 下方全宽滚动红金条，js 注入 .rc-ribbon） ── */
html.red-culture .rc-ribbon {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    height: 30px;
    z-index: 9999;
    overflow: hidden;
    background: linear-gradient(90deg, #7a0e12, #b01a1f 30%, #de281e 50%, #b01a1f 70%, #7a0e12 100%);
    border-top: 1px solid rgba(255, 215, 0, 0.65);
    border-bottom: 1px solid rgba(255, 215, 0, 0.65);
    box-shadow: 0 2px 10px rgba(164, 22, 26, 0.35);
}
html.red-culture .rc-ribbon-track {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    white-space: nowrap;
    display: flex;
    align-items: center;
    animation: rcRibbonScroll 32s linear infinite;
}
html.red-culture .rc-ribbon-item {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 26px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #ffd700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
html.red-culture .rc-ribbon-item::before,
html.red-culture .rc-ribbon-item::after {
    content: "★";
    font-size: 10px;
    color: rgba(255, 215, 0, 0.85);
}
@keyframes rcRibbonScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── 二级导航 sub-nav 红金（分院页） ── */
html.red-culture .sub-nav a.active {
    background: #de281e;
    color: #ffd700;
}
html.red-culture .sub-nav a:hover {
    background: rgba(222, 40, 30, 0.12);
    color: #c81e23;
}
html.red-culture.dark .sub-nav a.active {
    background: #c81e23;
    color: #ffd700;
}
html.red-culture.dark .sub-nav a:hover {
    background: rgba(222, 40, 30, 0.3);
    color: #ffd700;
}

/* ── 标题金线装饰 ── */
html.red-culture .content-title {
    position: relative;
    display: inline-block;
    padding: 0 18px;
}
html.red-culture .content-title::before,
html.red-culture .content-title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 42px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #de281e);
}
html.red-culture .content-title::before { right: 100%; }
html.red-culture .content-title::after {
    left: 100%;
    background: linear-gradient(90deg, #de281e, transparent);
}
html.red-culture .hero h1 {
    letter-spacing: 2px;
}
html.red-culture .hero h1 i {
    color: #de281e;
}

/* ── 首页视频卡片红金描边 ── */
html.red-culture .big-card,
html.red-culture .right-small .box,
html.red-culture .bottom-full-small .box {
    border: 1px solid rgba(222, 40, 30, 0.4);
    box-shadow: 0 2px 14px rgba(222, 40, 30, 0.12);
}

/* ── 浅色页面暖色基调（仅浅色模式，深色保持原样） ── */
html.red-culture:not(.dark) {
    --bg: #fdf5ec;
    --card: #fffdf9;
    --bg-soft: #f7ead9;
}

/* ── 轮播/弹窗按钮红色点缀 ── */
html.red-culture .carousel-btn {
    color: #de281e;
}

/* ── 页脚金句 ── */
html.red-culture footer p::before {
    content: "★ ";
    color: #de281e;
}
html.red-culture footer p::after {
    content: " ★";
    color: #de281e;
}
