/**
events 通用样式（抽离重复部分，统一管理）
 */
/* 1. 卡片基础样式（统一核心属性，页面差异通过子类区分） */


/* 时间和浏览量信息栏样式 */
.news-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap;
}
.news-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6c757d;
}
.news-meta-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.events-title {
    font-family: 'Arial Black', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: #222;
    text-align: left;
    line-height: 1.2;
}



.events-cards-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    z-index: 1;
    position: relative;
    width: 100%;
    flex-wrap: nowrap; /* 确保不换行 */
    box-sizing: border-box; /* 避免宽度溢出 */
}

.events-card {
    flex: 1; /* 核心：三个卡片均分宽度 */
    min-width: 0; /* 解决flex子元素宽度溢出问题 */
    width: calc(100% / 3 - 20px / 3); /* 辅助：明确宽度占比，抵消gap的影响 */
    height: 350px; /* 图片高度 */
    display: flex;
    flex-direction: column;
    position: relative; /* 关键：给子元素的绝对定位提供参考 */
    box-sizing: border-box; /* 避免内边距/边框影响宽度 */
    overflow: hidden; /* 新增：隐藏超出卡片的部分，避免圆角被遮挡 */
    border-radius: 16px; /* 新增：给整个卡片加圆角，和图片圆角呼应 */
    /* 移动端卡片高度适配 */
    @media (max-width: 576px) {
        height: 180px; /* 适度调高移动端卡片高度，给文字更多空间 */
    }
}

/* 图片样式优化 */
.events-card-img {
    background-color: #fff;
    border-radius: 16px; /* 统一为整体圆角 */
    background-image:
            linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0),
            linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    position: absolute; /* 绝对定位占满整个卡片 */
    top: 0;
    left: 0;
    width: 100%; /* 图片占满卡片宽度 */
    height: 100%; /* 图片占满卡片高度 */
    object-fit: cover; /* 图片等比缩放，不拉伸 */
    z-index: 1; /* 图片层级低于文字卡片 */
}

/* 底部文本卡片基础样式 - 优化版 */
.events-card-text {
    position: absolute;
    bottom: 0; /* 贴到底部 */
    left: 0;
    right: 0;
    border-color: #1a1d20;
    color: #1a1d20;
    border-radius: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    box-sizing: border-box; /* 避免内边距溢出 */
    z-index: 2; /* 文字卡片层级高于图片 */
    /* 适配不同屏幕的文字框高度 */
    height: 120px;
    top: calc(100% - 120px + 10px);
    /* 背景渐变优化：让覆盖区域过渡更自然 */
    background: linear-gradient(to top, #fff9f0 80%, rgba(255, 249, 240, 0.9) 100%);

    /* 移动端文字框适配 */
    @media (max-width: 576px) {
        height: 90px; /* 移动端文字框高度适配 */
        top: calc(100% - 90px + 10px); /* 调整覆盖高度 */
        padding: 5px; /* 移动端更小的内边距 */
    }
}

/* 文本内容基础样式：PC端单行，移动端多行 */
.events-card-text .text-content {
    font-size: 20px;
    line-height: 1.4; /* 优化行高，更易读 */
    color: #222;
    margin-bottom: 5px; /* 减小间距，适配紧凑布局 */
    overflow: hidden; /* 防止文字溢出 */
    text-overflow: ellipsis; /* 文字溢出显示省略号 */
    white-space: nowrap; /* PC端单行显示 */

    /* 移动端文字样式：变小+显示3行 */
    @media (max-width: 576px) {
        font-size: 15px; /* 移动端字体缩小 */
        white-space: normal; /* 取消单行限制 */
        display: -webkit-box; /* 启用多行省略 */
        -webkit-line-clamp: 3; /* 限制显示3行 */
        -webkit-box-orient: vertical; /* 垂直排列 */
        line-height: 1.3; /* 移动端更小的行高 */
        margin-bottom: 3px; /* 移动端更小的间距 */
    }
}

/* 调整小字体文本间距，适配紧凑布局 */
.events-card-text .small {
    margin-bottom: 3px !important;
    line-height: 1.2;
    /* 移动端小字体进一步缩小 */
    @media (max-width: 576px) {
        font-size: 10px; /* 移动端小字体更小 */
        line-height: 1.1; /* 更紧凑的行高 */
    }
}
/* 3. 通用切换横线样式（仅定义一次） */
.page-switch-line {
    width: 120px;
    height: 2px;
    background-color: #ddd;
    margin: 10px 0 20px 0;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s;
}
.page-switch-line.active,
.page-switch-line:hover {
    background-color: #dc3545;
}

/* 4. 空列表兜底样式（统一+变体） */
.empty-container {
    width: 100%;
    text-align: center;
    color: #6c757d;
}
/* list 页面空列表 */
.empty-container.list-empty {
    padding: 60px 0;
    font-size: 16px;
}
/* home/details 空列表/推荐 */
.empty-container.home-empty,
.empty-container.recommend-empty {
    padding: 40px 0;
    font-size: 14px;
}
/* 空列表图标 */
.empty-container i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ced4da;
}

/**
events list 专属样式
 */
/* 筛选区域 */

.price-radio {
    margin-right: 15px;
    cursor: pointer;
}
.price-radio input {
    margin-right: 5px;
}

/* 分页样式 */
.pagination-bar {
    text-align: center;
    margin: 30px 0;
}
.page-item.active .page-link {
    background-color: #212529;
    border-color: #212529;
}
.page-link {
    color: #212529;
}
.page-link:hover {
    color: #000;
    background-color: #e9ecef;
}

/**
events home 专属样式
 */
/* MORE按钮 */
.more-btn-section {
    width: 100%;
    padding: 30px 0;
    text-align: center;
    margin: 20px 0;
}
/* 区分home的more-btn（加前缀） */
.events-more-btn {
    display: inline-block;
    padding: 15px 60px;
    background-color: #dc3545;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.events-more-btn:hover {
    background-color: #c82333;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 67, 0.2);
}

/**
events details 专属样式
 */
/* 间距样式（命名规范化） */
.gap-4 {
    margin: 100px 20px;
}

/* 单图+信息栏 */
.event-single-img {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}

.event-info-bar {
    background-color: #000;
    color: #fff;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}
.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}
.info-item i {
    color: #fff;
    width: 24px;
    height: 24px;
    background-color: #dc3545;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.info-text {
    font-size: 14px;
    line-height: 1.5;
}
/* 按钮组 */
.btn-group {
    display: flex;
    gap: 12px;
    margin-left: auto;
}
.copy-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}
.collect-btn {
    width: 40px;
    height: 40px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.collect-btn.active {
    background: #fff;
    color: #dc3545;
    border: 1px solid #dc3545;
}


/**
活动导航
 */
/* 分页容器样式 - 增大按钮间距 */
.pagination-bar .pagination {
    gap: var(--spacing-md, 12px); /* 增大间距，使用中等间距变量，默认12px */
}

/* 分页按钮基础样式 - 白底红字 */
.pagination-bar .page-link {
    border-radius: 50% !important; /* 保留必要!important（适配Bootstrap） */
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-gray-2);
    color: #d92121; /* 改为红色字体（可替换为你的红色变量） */
    background-color: #ffffff; /* 明确设置白色背景 */
    font-size: 0.9rem;
    transition: var(--transition-base);
    outline: none;
}

/* 焦点样式 - 适配新的红色主题 */
.pagination-bar .page-link:focus {
    box-shadow: 0 0 0 2px rgba(217, 33, 33, 0.2); /* 改为红色系焦点阴影 */
}

/* 选中状态 - 红底白字 */
.pagination-bar .page-item.active .page-link {
    background-color: #d92121; /* 红色背景（可替换为你的红色变量） */
    border-color: #d92121; /* 边框同步为红色 */
    color: #ffffff; /* 白色字体 */
}

/* 禁用状态 - 调整配色适配新主题 */
.pagination-bar .page-item.disabled .page-link {
    color: #b3b3b3; /* 浅灰色字体 */
    background-color: #ffffff; /* 保持白色背景 */
    border-color: var(--color-gray-2);
    cursor: not-allowed;
    opacity: 0.7;
}

/* 悬浮状态（非禁用） - 优化交互 */
.pagination-bar .page-link:hover:not(.disabled) {
    background-color: #fef2f2; /* 浅红色背景，提升交互感 */
    border-color: #d92121; /* 边框改为红色 */
    color: #d92121; /* 保持红色字体 */
}

/* 分页箭头适配 */
.pagination-bar .page-link:first-child,
.pagination-bar .page-link:last-child {
    font-size: 0.8rem;
}

/* 响应式适配：小屏幕优化 - 同步调整间距 */
@media (max-width: 576px) {
    .pagination-bar .page-link {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.8rem;
    }

    .pagination-bar .pagination {
        gap: var(--spacing-sm, 8px); /* 小屏幕也增大间距，默认8px */
        padding: 15px 0;
    }

    .events-title {
        font-size: 28px;
    }
}