/* 炽热ACG - 自定义样式 */

:root {
    --primary-color: #e5003c;
    --secondary-color: #ff4d7a;
    --accent-color: #ffe6ec;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #ddd;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --content-max-width: 1200px;
}

/* 通用样式 */
body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #dee2e6;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 主内容区域,让页脚贴底 */
body > nav ~ div {
    flex: 1;
    width: 100%;
}

/* 容器宽度控制 */
.container {
    max-width: var(--content-max-width);
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
    flex: none;
}

/* 导航栏宽度控制 - 强制最大宽度 */
.navbar-container {
    max-width: var(--content-max-width) !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* 页脚宽度控制 - 强制最大宽度 */
.footer-container {
    max-width: var(--content-max-width) !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* 导航栏样式 */
.navbar {
    background-color: transparent !important;
    padding: 0 !important;
    max-width: var(--content-max-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 1030;
    will-change: transform;
    flex-shrink: 0;
    width: 100%;
}

/* 覆盖 Bootstrap 主色调 - 排除导航栏 */
.badge.bg-primary {
    background-color: #e5003c !important;
}

/* 已结束状态色块样式 */
.badge.bg-secondary {
    background-color: #DC3545 !important;
}

/* 严格间距控制 - 确保所有间距不超过20px */

/* 导航栏下边距 */
.navbar {
    margin-bottom: 0.25rem !important;
}

/* 导航栏容器下边距 */
.navbar .container.navbar-container {
    margin-bottom: 0.25rem !important;
}

/* 消息提示容器间距 */
.container[style*="margin-top"] {
    margin-top: 0.2rem !important;
    margin-bottom: 0.2rem !important;
}

/* 轮播图区块间距 */
.carousel-section {
    margin-top: 0.2rem !important;
    margin-bottom: 0.2rem !important;
}

/* 强制所有py类间距不超过10px */
.py-5 {
    padding-top: 0.15rem !important;
    padding-bottom: 0.3rem !important;
}

.py-4 {
    padding-top: 0.1rem !important;
    padding-bottom: 0.2rem !important;
}

/* 页面内容区域顶部间距 */
body > .container.py-4,
body > .container.py-5,
body > div > .container.py-4,
body > div > .container.py-5 {
    padding-top: 0px !important;
    padding-bottom: 0.3rem !important;
}

/* 首页section顶部间距 */
body > section.py-5,
body > div > section.py-5 {
    padding-top: 0px !important;
    padding-bottom: 0.3rem !important;
}

/* 首页轮播图后的section */
.carousel-section + section.py-5 {
    padding-top: 0.1rem !important;
}

/* 通用容器间距 */
.container {
    margin-top: 0.1rem !important;
    margin-bottom: 0.1rem !important;
}

/* body主内容区域 */
body > nav ~ div:not(.login-page):not(.register-page) {
    margin-top: 0.1rem !important;
}

/* 保持Bootstrap间距系统，仅限制特定元素 */
*:not(footer):not(.container):not(.footer-container):not(.login-page):not(.register-page):not(.login-container):not(.register-container):not(.login-card):not(.register-card):not(.login-body):not(.register-body):not(.login-footer):not(.register-footer):not(.d-grid):not(.events-page):not(.event-detail-page):not(.articles-page):not(.article-detail-page):not(.latest-articles-section):not(.popular-articles):not(.recommended-events):not(.row):not(.card):not(.btn):not(.form-control):not(.alert):not(.pagination):not(.breadcrumb):not(.list-group):not(.table):not(.modal):not(.tooltip):not(.popover) {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* 恢复必要的间距 */
.navbar,
.container,
.carousel-section,
.py-5,
.py-4 {
    margin-top: 0.1rem !important;
    margin-bottom: 0.1rem !important;
    padding-top: 0.1rem !important;
    padding-bottom: 0.1rem !important;
}

/* 强制导航栏背景透明 */
.navbar.bg-primary {
    background-color: transparent !important;
}

.navbar-dark.bg-primary {
    background-color: transparent !important;
}

/* 导航栏容器限制宽度 */
.navbar .container.navbar-container {
    background-color: #e5003c !important;
    border-radius: 8px !important;
    padding: 0.5rem 1rem 0.5rem 0;
    margin-bottom: 0.5rem;
    min-height: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    width: 100%;
}

.navbar .container.navbar-container .navbar-brand {
    height: 60px;
    display: flex;
    align-items: center;
}

.navbar .container.navbar-container .navbar-brand img {
    width: 205px;
    height: 42px;
    object-fit: contain;
}

.navbar .container.navbar-container .navbar-nav {
    height: 60px;
    align-items: center;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-brand i {
    color: #ff6b6b;
}

/* 导航条文字颜色 */
.navbar-dark .navbar-nav .nav-link {
    color: white !important;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* 修改即将开始状态的颜色 */
.badge.bg-info {
    background-color: #0D6EFD !important;
}

.navbar-dark .navbar-brand {
    color: white !important;
}

.navbar-dark .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* 英雄区块 */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4c69ba 100%);
    position: relative;
    overflow: hidden;
    max-width: var(--content-max-width);
    margin: 0 auto;
    border-radius: 0 0 8px 8px;
}

/* 轮播图区块优化 - 870x260px尺寸 */
.carousel-section {
    max-width: 870px;
    margin: 0.2rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    width: 100%;
}

.carousel-section .carousel {
    border-radius: 12px;
}

.carousel-section .carousel-inner {
    border-radius: 12px;
}

.carousel-section .carousel-item {
    position: relative;
    overflow: hidden;
}

.carousel-section .carousel-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.carousel-section .carousel-item:hover img {
    transform: scale(1.05);
}

/* 轮播文字描述优化 */
.carousel-caption {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%) !important;
    padding: 1.5rem 2rem !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    text-align: left !important;
}

.carousel-caption h5 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

/* 轮播指示器优化 */
.carousel-indicators {
    bottom: 20px !important;
    margin-bottom: 1rem !important;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 1;
}

.carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.carousel-indicators button.active {
    background-color: #e5003c !important;
    width: 10px;
    height: 10px;
    border: 2px solid white;
    transform: scale(1.1);
}

/* 轮播控制按钮优化 */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: #e5003c;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-block;
    background-size: 70%;
}

/* 轮播图悬停效果 */
.carousel-section:hover .carousel-control-prev,
.carousel-section:hover .carousel-control-next {
    opacity: 1;
}

/* 响应式设计 - 平板端 */
@media (max-width: 992px) {
    .carousel-section {
        max-width: 100%;
        margin: 0.2rem 0;
    }
    
    .carousel-section .carousel-item img {
        height: 250px;
    }

    .carousel-caption h5 {
        font-size: 1.2rem;
    }

    .carousel-caption p {
        font-size: 0.8rem;
    }
}

/* 推荐漫展模块样式 */
.recommended-events {
    margin-bottom: 0.2rem;
}

.recommended-events .card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.recommended-events .card-header {
    background: linear-gradient(135deg, #e5003c, #ff4d7a) !important;
    border: none;
    padding: 0.8rem 1rem;
}

.recommended-event-item {
    transition: background-color 0.3s ease;
}

.recommended-event-item:hover {
    background-color: #f8f9fa;
}

.recommended-event-item:last-child {
    border-bottom: none !important;
}

/* 响应式设计 - 手机端 */
@media (max-width: 768px) {
    .carousel-section {
        border-radius: 8px;
        margin: 0.2rem 0;
        max-width: 100%;
    }

    .carousel-section .carousel {
        border-radius: 8px;
    }

    .carousel-section .carousel-inner {
        border-radius: 8px;
    }

    .carousel-section .carousel-item img {
        height: 200px;
        object-fit: cover;
        object-position: center;
    }
    
    .recommended-events {
        margin-top: 0.5rem;
    }
    
    .recommended-events .card-header h5 {
        font-size: 1rem;
    }

    .carousel-caption {
        padding: 1rem !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 70%, transparent 100%) !important;
    }

    .carousel-caption h5 {
        font-size: 1.1rem;
        font-weight: 500;
        margin-bottom: 0.3rem;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        line-height: 1.3;
    }

    .carousel-caption p {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
        opacity: 0.7;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }

    .carousel-indicators {
        bottom: 10px !important;
        margin-bottom: 0.5rem !important;
    }

    .carousel-indicators button {
        width: 6px;
        height: 6px;
        margin: 0 3px;
    }

    .carousel-indicators button.active {
        width: 6px;
        height: 6px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .carousel-section .carousel-item img {
        height: 200px;
    }

    .carousel-caption h5 {
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
    }

    .carousel-caption p {
        font-size: 0.75rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .carousel-caption {
        padding: 0.8rem !important;
    }

    .carousel-indicators {
        bottom: 8px !important;
    }
}
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* 卡片样式 */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

/* 特色图标 */
.feature-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* 按钮样式 */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #e5003c !important;
    border-color: #e5003c !important;
}

.btn-primary:hover {
    background-color: #c40033 !important;
    border-color: #c40033 !important;
    transform: translateY(-1px);
}

.btn-primary:focus {
    box-shadow: none !important;
    outline: none !important;
    border-color: #e5003c !important;
}

/* 表单样式 */
.form-control {
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.25) !important;
}

/* 导航栏搜索框和按钮焦点状态样式覆盖 */
.navbar .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.25) !important;
}

.navbar .btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.25) !important;
}

.navbar .btn-outline-light:focus {
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.25) !important;
}

/* 导航栏下拉菜单焦点样式 */
.dropdown-item:focus {
    background-color: rgba(52, 58, 64, 0.1) !important;
    color: #343A40 !important;
    box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.25) !important;
}

/* 移除导航栏用户名点击焦点效果 */
.navbar .dropdown-toggle:focus {
    box-shadow: none !important;
    outline: none !important;
}

.form-select {
    border-radius: 6px;
}

/* 表格样式 */
.table {
    border-radius: 6px;
    overflow: hidden;
}

.table th {
    background-color: var(--accent-color);
    border: none;
    font-weight: 600;
}

.table td {
    border-color: var(--border-color);
    vertical-align: middle;
}

/* 徽章样式 */
.badge {
    font-weight: 500;
}

/* 导航栏管理员徽章样式 */
.navbar-nav .badge[style*="background-color: #343A40"] {
    padding: 0.3em 0.6em !important;
    line-height: 1.2 !important;
    height: auto !important;
    min-height: 22px !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* 面包屑导航 */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
}

/* 头像样式 */
.avatar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* 侧边栏列表组 */
.list-group-item {
    border: none;
    padding: 0.75rem 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.list-group-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.list-group-item:hover:not(.active) {
    background-color: transparent;
    color: #E5003C !important;
}

/* 右侧边栏链接悬停颜色 */
.col-lg-3 .list-group-item:hover:not(.active) h6 {
    color: #E5003C !important;
}

.col-lg-3 .badge:hover {
    background-color: #c40033 !important;
}

/* 左侧文章列表标题样式 */
.articles-page .card-title a {
    color: #343a40 !important;
    transition: color 0.3s ease !important;
    text-decoration: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3 !important;
}

.articles-page .card-title a:hover {
    color: #E5003C !important;
}

/* 确保标题在一行内显示 */
.articles-page .card-title {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
}

/* 文章页面分页栏样式（参考事件页面） */
.articles-page .pagination .page-link {
    color: #343A40 !important;
    border-color: #343A40 !important;
    background-color: transparent !important;
}

.articles-page .pagination .page-link:hover {
    color: white !important;
    border-color: #E5003C !important;
    background-color: #E5003C !important;
}

.articles-page .pagination .page-item.active .page-link {
    color: white !important;
    border-color: #E5003C !important;
    background-color: #E5003C !important;
}

.articles-page .pagination .page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.25) !important;
    border-color: #E5003C !important;
}

/* 文章摘要样式 */
.articles-page .card-text {
    color: #868e96 !important;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
}

/* 左侧文章封面图片链接样式 */
.articles-page .card-img-top {
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.articles-page .card:hover .card-img-top {
    transform: scale(1.05);
    opacity: 0.9;
}

.articles-page .bg-light {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.articles-page .bg-light:hover {
    background-color: #f8f9fa !important;
}

/* 响应式图片 */
.card-img-left {
    min-height: 150px;
}



.bg-dark {
    background-color: #343A40 !important;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color) !important;
}

/* 消息提示 */
.alert {
    border: none;
    border-radius: 6px;
    font-weight: 500;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (min-width: 1400px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }
    .navbar-container,
    .footer-container {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-section,
    footer {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 1200px) {
    .container,
    .navbar-container,
    .footer-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .hero-section,
    footer {
        border-radius: 0 0 8px 8px;
    }
}

@media (max-width: 992px) {
    .container,
    .navbar-container,
    .footer-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 768px) {
    body {
        min-height: auto;
        display: block;
    }
    body > nav ~ div {
        flex: none;
    }
    .container,
    .navbar-container,
    .footer-container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .container {
        width: 100%;
    }
    footer {
        width: 100%;
    }
    .navbar {
        width: 100%;
        border-radius: 0 !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
        min-height: auto;
        height: auto;
    }
    .navbar .container.navbar-container {
        width: 100%;
        border-radius: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        min-height: auto;
        height: auto;
        padding: 0.5rem 0.75rem;
    }
    .navbar .container.navbar-container .navbar-brand,
    .navbar .container.navbar-container .navbar-nav {
        height: auto;
    }
    .navbar .container.navbar-container .navbar-brand img {
        max-width: 150px;
        height: auto;
    }
    .footer-container {
        width: 100%;
    }
    footer,
    .hero-section {
        border-radius: 0;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
    footer {
        margin-bottom: 0 !important;
    }
    footer .footer-container {
        border-radius: 0 !important;
    }
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .card-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .container,
    .navbar-container,
    .footer-container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* 事件筛选栏按钮样式 */
.events-page .btn-outline-primary {
    color: #343A40 !important;
    border-color: #343A40 !important;
    background-color: transparent !important;
}

.events-page .btn-outline-primary:hover {
    color: white !important;
    border-color: #E5003C !important;
    background-color: #E5003C !important;
}

.events-page .btn-outline-primary.active {
    color: white !important;
    border-color: #E5003C !important;
    background-color: #E5003C !important;
}

.events-page .btn-outline-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(229, 0, 60, 0.25) !important;
    border-color: #E5003C !important;
}

/* 事件页面分页栏样式 */
.events-page .pagination .page-link {
    color: #343A40 !important;
    border-color: #343A40 !important;
    background-color: transparent !important;
}

.events-page .pagination .page-link:hover {
    color: white !important;
    border-color: #E5003C !important;
    background-color: #E5003C !important;
}

.events-page .pagination .page-item.active .page-link {
    color: white !important;
    border-color: #E5003C !important;
    background-color: #E5003C !important;
}

.events-page .pagination .page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(229, 0, 60, 0.25) !important;
    border-color: #E5003C !important;
}

/* 重置按钮样式 */
.events-page .btn-outline-danger {
    color: #343A40 !important;
    border-color: #343A40 !important;
    background-color: transparent !important;
    border-radius: 4px !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.events-page .btn-outline-danger:hover {
    color: white !important;
    border-color: #E5003C !important;
    background-color: #E5003C !important;
}

.events-page .btn-outline-danger:focus {
    box-shadow: 0 0 0 0.2rem rgba(229, 0, 60, 0.25) !important;
    border-color: #E5003C !important;
}

/* 打印样式 */
@media print {
    .navbar, .btn, footer {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}





footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
}

footer h6 {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

footer .border-bottom {
    border-color: #495057 !important;
}

footer .text-muted {
    color: #adb5bd !important;
    line-height: 1.6;
}

footer ul.list-unstyled li {
    margin-bottom: 0.5rem;
}

footer a.text-decoration-none {
    color: #e9ecef !important;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

footer a.text-decoration-none:hover {
    color: #e5003c !important;
    transform: translateX(3px);
}

/* 页脚菜单样式 */
.footer-menu a {
    color: #ADB5BD !important;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    margin-right: 1rem;
    font-size: 0.9rem;
}

.footer-menu a:hover {
    color: #e5003c !important;
    transform: translateY(-1px);
}

.footer-menu a:last-child {
    margin-right: 0;
}

.copyright-text {
    color: #ADB5BD;
    font-size: 0.8rem;
    line-height: 1.4;
}

.hover-primary:hover {
    color: #e5003c !important;
}

footer .d-flex.align-items-center i {
    font-size: 0.9rem;
}

footer hr {
    border-color: #495057;
    opacity: 0.3;
}

/* 页脚响应式优化 */
@media (max-width: 768px) {
    footer .container {
        padding: 1rem 0.75rem;
    }
    
    footer .col-md-6,
    footer .col-md-3 {
        margin-bottom: 2rem;
    }
    
    footer h5 {
        font-size: 1.1rem;
    }
    
    footer h6 {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    footer .container {
        padding: 1rem 0.5rem;
    }
    
    footer .py-4 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    footer .text-center {
        text-align: center !important;
    }
}

/* 删除前台提示条关闭按钮的焦点效果 */
.btn-close:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.btn-close:hover {
    opacity: 0.75;
}

/* 针对前台页面中的alert关闭按钮 */
.alert .btn-close:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* 文章内容样式 - 确保Quill编辑器样式正确显示 */
.article-content {
    line-height: 1.6;
    font-size: 1rem;
    word-wrap: break-word;
    white-space: normal;
}

.article-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.article-content div {
    margin-bottom: 0.5rem;
}

/* 处理Quill编辑器生成的段落 */
.article-content .ql-editor {
    line-height: 1.6 !important;
}

.article-content .ql-editor p {
    margin-bottom: 1rem !important;
    line-height: 1.6 !important;
}

.article-content .ql-editor div {
    margin-bottom: 0.5rem !important;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* 确保Quill居中样式生效 */
.article-content .ql-align-center {
    text-align: center;
}

.article-content .ql-align-right {
    text-align: right;
}

.article-content .ql-align-left {
    text-align: left;
}

.article-content .ql-align-justify {
    text-align: justify;
}

/* 图片居中样式 */
.article-content .ql-align-center img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* 字体大小样式 */
.article-content .ql-size-small {
    font-size: 0.875rem;
}

.article-content .ql-size-large {
    font-size: 1.25rem;
}

.article-content .ql-size-huge {
    font-size: 1.5rem;
}

/* 字体样式 */
.article-content .ql-font-serif {
    font-family: Georgia, serif;
}

.article-content .ql-font-monospace {
    font-family: Monaco, 'Courier New', monospace;
}

/* 列表样式 */
.article-content ol,
.article-content ul {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* 引用样式 */
.article-content blockquote {
    border-left: 4px solid #e5003c;
    padding-left: 1rem;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1rem;
    font-style: italic;
    color: #666;
}

/* 代码块样式 */
.article-content .ql-syntax {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    overflow-x: auto;
}

/* 搜索页面专用间距设置 - 与活动页和资讯页保持一致 */
.search-page {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

/* 搜索页面卡片间距控制 */
.search-page .mb-4 {
    margin-bottom: 1.5rem !important;
}

.search-page .row {
    row-gap: 1.5rem !important;
}

.search-page .col-lg-6.mb-4,
.search-page .col-md-12.mb-4 {
    margin-bottom: 1.5rem !important;
}

.search-page .card {
    margin-bottom: 0 !important;
}

.search-page .card-body {
    padding: 1rem !important;
    line-height: 1.5 !important;
}

/* 搜索页面容器间距 */
.search-page .container.mt-4 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

/* 搜索页面标题区域间距 */
.search-page h3 {
    margin-top: 0.5rem !important;
    margin-bottom: 1.5rem !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* 搜索页面分页间距 */
.search-page .mt-4 {
    margin-top: 1.5rem !important;
}

/* 搜索页面卡片内间距 */
.search-page .card-body.py-3 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

/* 搜索页面按钮间距 */
.search-page .btn.btn-outline-primary.btn-sm {
    margin-bottom: 0.25rem !important;
    margin-top: 0.25rem !important;
    padding: 0.375rem 0.75rem !important;
    line-height: 1.4 !important;
}

/* 搜索页面卡片美化 */
.search-page .card {
    border-radius: 12px !important;
    border: 1px solid #e9ecef !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
}

.search-page .card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.15) !important;
    border-color: #dee2e6 !important;
}

/* 搜索页面卡片图片美化 */
.search-page .card-img-top {
    border-radius: 0 !important;
    transition: transform 0.3s ease !important;
}

.search-page .card:hover .card-img-top {
    transform: scale(1.05) !important;
}

/* 搜索页面卡片内容区域美化 */
.search-page .card-body {
    padding: 1.25rem !important;
    line-height: 1.5 !important;
}

/* 搜索页面卡片标题美化 */
.search-page .card-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin-bottom: 0.5rem !important;
}

.search-page .card-title a {
    color: #343a40 !important;
    transition: color 0.3s ease !important;
    text-decoration: none !important;
}

.search-page .card-title a:hover {
    color: #e5003c !important;
}

/* 搜索页面标签美化 */
.search-page .badge {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 20px !important;
}

/* 搜索页面内容摘要美化 */
.search-page .card-text {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    color: #6c757d !important;
    margin-bottom: 1rem !important;
}

/* 搜索页面底部信息美化 */
.search-page .card-body .mt-auto {
    border-top: 1px solid #f8f9fa !important;
    padding-top: 0.75rem !important;
}

.search-page .card-body .mt-auto small {
    font-size: 0.8rem !important;
    color: #868e96 !important;
}

/* 搜索页面默认图片美化 */
.search-page .bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-radius: 0 !important;
}

.search-page .bg-light i {
    color: #adb5bd !important;
    transition: color 0.3s ease !important;
}

.search-page .card:hover .bg-light i {
    color: #6c757d !important;
}

/* 搜索页面卡片链接美化 */
.search-page .text-decoration-none {
    position: relative !important;
    overflow: hidden !important;
}

/* 资讯页面专用间距设置 - 与活动页保持一致 */
.articles-page {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

/* 资讯页面卡片间距控制 */
.articles-page .mb-4 {
    margin-bottom: 1.5rem !important;
}

.articles-page .row {
    row-gap: 1.5rem !important;
}

.articles-page .col-md-6.mb-4,
.articles-page .col-lg-4.mb-4 {
    margin-bottom: 1.5rem !important;
}

.articles-page .card {
    margin-bottom: 0 !important;
}

.articles-page .card-body {
    padding: 1rem !important;
    line-height: 1.5 !important;
}

/* 资讯页面容器间距 */
.articles-page .container.mt-4 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

/* 资讯页面面包屑导航间距 */
.articles-page .breadcrumb {
    margin-bottom: 1.5rem !important;
}

/* 资讯页面标题区域间距 */
.articles-page .d-flex.justify-content-between.align-items-center.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* 资讯页面分类筛选区域间距 */
.articles-page .mb-4:last-child {
    margin-bottom: 1.5rem !important;
}

/* 资讯页面分页间距 */
.articles-page .mt-4 {
    margin-top: 1.5rem !important;
}

/* 资讯页面侧边栏卡片间距 */
.articles-page .card.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* 资讯页面文章卡片间距 */
.articles-page .article-card {
    margin-bottom: 0 !important;
}

/* 资讯页面按钮间距 */
.articles-page .btn.btn-sm.btn-outline-primary {
    margin-bottom: 0.25rem !important;
    margin-top: 0.25rem !important;
    padding: 0.375rem 0.75rem !important;
    line-height: 1.4 !important;
}

/* 资讯页面卡片圆角效果 */
.articles-page .card,
.article-detail-page .card {
    border-radius: 12px !important;
    overflow: hidden !important;
}

/* 资讯页面图片圆角效果 */
.articles-page .card-img-top,
.article-detail-page .card-img-top {
    border-radius: 12px 12px 0 0 !important;
}

/* 首页左侧资讯文章：鼠标悬停图片时标题变色效果 */
.latest-articles-section .article-card:hover .article-title-hover {
    color: #E5003C !important;
}

/* 为图片添加悬停触发区域 */
.latest-articles-section .article-card .card-img-top {
    cursor: pointer;
}

.latest-articles-section .article-card .card-img-top:hover ~ .card-body .article-title-hover {
    color: #E5003C !important;
}

/* 占位符图片的悬停效果 */
.latest-articles-section .article-card .bg-light:hover ~ .card-body .article-title-hover {
    color: #E5003C !important;
}

