/* 列表页样式 - list.css */

/* 活动列表页面 */
.activity_list_page {
    background: #f5f5f5;
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.activity_list_container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.activity_list_title {
    text-align: center;
    margin-bottom: 40px;
}

.activity_list_title h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.activity_list_title p {
    color: #666;
    font-size: 16px;
}

.activity_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* 页面内容区 */
/* 页面内容区 - 用于分类页面 */
.page_content {
    display: flex !important;
    flex-wrap: nowrap !important; /* 确保不换行 */
    padding: 20px 0;
    min-height: 600px;
    width: 100% !important; /* 覆盖.wrap的固定宽度 */
    max-width: none !important; /* 移除最大宽度限制 */
}

/* 确保.page_content.wrap的样式正确 */
.page_content.wrap {
    width: 100% !important;
    max-width: 1200px !important;
    padding: 20px 0 !important;
    margin: 0 auto !important;
}

/* 在小屏幕下调整布局 */
@media screen and (max-width: 1024px) {
    .page_content {
        flex-direction: column !important;
        padding: 15px !important;
    }

    .page_content.wrap {
        width: 100% !important;
        max-width: 100% !important;
    }

    #aside {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 20px !important;
        float: none !important;
        order: -1;
    }

    .activity_list_container {
        padding: 20px;
    }

    .activity_grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 文章详情页面的样式现在在base.css中处理 */

/* 小屏幕下的文章详情页面 */
@media screen and (max-width: 1024px) {
    #content {
        flex-direction: column !important;
        padding: 15px !important;
    }
    
    #content #aside {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 20px !important;
        float: none !important;
        order: -1;
    }
}

/* 侧边栏样式 */
#aside {
    width: 200px !important;
    overflow: hidden;
    margin-right: 30px !important;
    float: left;
    border-top: 7px solid #005A84;
    box-shadow: 1px 0 2px 0px rgba(0,0,0,0.05);
    flex-shrink: 0 !important;
    flex-basis: 200px !important;
    order: 0 !important;
}

#aside ul {
    padding-left: 24px;
    border: 1px solid #F0F0F0;
}

#aside li {
    width: 149px;
    line-height: 35px;
    text-align: center;
    padding: 13px 21px 13px 0;
    border-bottom: 1px solid #F0F0F0;
}

#aside li:last-child {
    border-bottom: none;
}

#aside li a {
    display: block;
    font-size: 16px;
    color: #424242;
    letter-spacing: 0;
    border-left: 3px solid transparent;
}

#aside li a:hover {
    color: #1DA5EA;
}

#aside li.active a {
    color: #1DA5EA;
    position: relative;
}

#aside li.active a:before {
    content: "";
    position: absolute;
    display: block;
    width: 0px;
    height: 100%;
    top: 0;
    left: -27px;
    border-left: 3px solid #1DA5EA;
}

/* 主体区域 */
.main {
    flex: 1;
    background: #fff;
    padding: 20px;
    border: 1px solid #e5e5e5;
}

/* 面包屑 */
.breads {
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 20px;
    font-size: 14px;
    color: #999;
}

.breads a {
    color: #666;
}

.breads a:hover {
    color: #16B1B7;
}

.breads span {
    margin: 0 8px;
    color: #999;
}

/* 分享按钮 */
.sharebuttonbox {
    float: right;
    margin-bottom: 20px;
}

.sharebuttonbox span {
    color: #999;
    font-size: 13px;
    margin-right: 10px;
}

.sharebuttonbox .share_btn {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-left: 8px;
    background-size: contain;
    border-radius: 50%;
    vertical-align: middle;
}

.sharebuttonbox .wechat {
    background-image: url('../images/wechat.png');
}

.sharebuttonbox .qq {
    background-image: url('../images/qq.png');
}

.sharebuttonbox .weibo {
    background-image: url('../images/weibo.png');
}

/* 文章列表 */
.article_list_ul {
    list-style: none;
    padding: 0;
}

.article_list_ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed #e5e5e5;
}

.article_list_ul li a {
    color: #333;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s;
}

.article_list_ul li a:hover {
    color: #16B1B7;
}

.article_list_ul li span {
    color: #999;
    font-size: 14px;
}

/* 分页 */
.pagination {
    margin-top: 30px;
    justify-content: center;
}

.pagination .page-item .page-link {
    color: #16B1B7;
}

.pagination .page-item.active .page-link {
    background-color: #16B1B7;
    border-color: #16B1B7;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
}

/* 活动卡片统一样式 */
.activity_card {
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    background: #fff;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.activity_card:hover {
    border-color: #3370FF;
    box-shadow: 0 8px 25px rgba(51, 112, 255, 0.2);
    transform: translateY(-5px) scale(1.02);
}

.activity_name {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.activity_info {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.activity_features {
    text-align: left;
    margin-bottom: 20px;
}

.activity_features h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

.activity_features ul {
    margin: 0;
    padding-left: 20px;
}

.activity_features li {
    color: #666;
    line-height: 1.8;
    font-size: 13px;
}

.btn_view_detail {
    display: inline-block;
    width: 100%;
    padding: 12px 0;
    background: linear-gradient(135deg, #3370FF 0%, #5dade2 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn_view_detail:hover {
    background: linear-gradient(135deg, #2e86de 0%, #54a0ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(51, 112, 255, 0.4);
}

/* 活动信息项样式 */
.info_item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.info_item i {
    color: #3370FF;
    margin-right: 8px;
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.info_label {
    font-weight: 600;
    color: #333;
    margin-right: 4px;
    flex-shrink: 0;
}

.info_value {
    color: #666;
    flex: 1;
}

/* 无活动提示 */
.no_activities {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no_activities i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ddd;
}

.no_activities h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #666;
}

.no_activities p {
    font-size: 14px;
    color: #999;
}

/* 活动卡片内部结构 */
.activity-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.75rem;
}

.activity-details {
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
}

.detail-item i {
    color: #3370FF;
    margin-right: 0.5rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
    font-size: 0.85rem;
}

.detail-label {
    font-weight: 600;
    color: #495057;
    margin-right: 0.25rem;
    flex-shrink: 0;
}

.detail-value {
    color: #6c757d;
    flex: 1;
}

.activity-actions {
    margin-top: auto;
}

/* 内容区域 */
.content_area {
    clear: both;
}

.main_con {
    line-height: 1.8;
}

.main_con p {
    font-size: 16px;
    margin-bottom: 15px;
    text-indent: 2em;
}

/* 文章标题 */
.article_title {
    text-align: center;
    font-size: 24px;
    color: #333;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

/* 文章内容 */
.article_content {
    padding: 20px 0;
    font-size: 16px;
    line-height: 2;
    color: #333;
}

.article_content p {
    margin-bottom: 1em;
}

.article_content img {
    max-width: 100%;
    height: auto;
}

/* 新闻列表 */
.news_list {
    padding: 10px 0;
}

.news_list li {
    padding: 15px 0;
    border-bottom: 1px dashed #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news_list li:last-child {
    border-bottom: none;
}

.news_list li a {
    flex: 1;
    color: #333;
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 20px;
}

.news_list li a::before {
    content: "•";
    color: #16B1B7;
    margin-right: 10px;
}

.news_list li a:hover {
    color: #16B1B7;
}

.news_list li span {
    color: #999;
    font-size: 13px;
    flex-shrink: 0;
}

.news_list li.empty {
    text-align: center;
    color: #999;
    justify-content: center;
}

.news_list li.empty::before {
    display: none;
}

/* 分页 */
.pagination {
    text-align: center;
    padding: 30px 0 10px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 3px;
    border: 1px solid #ddd;
    color: #666;
    font-size: 14px;
}

.pagination a:hover {
    color: #16B1B7;
    border-color: #16B1B7;
}

.pagination .current {
    background: #16B1B7;
    color: #fff;
    border-color: #16B1B7;
}

.pagination .prev,
.pagination .next {
    background: #f5f5f5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .activity-card {
        margin-bottom: 1rem;
    }

    .activity-card .card-body {
        padding: 1.25rem;
    }

    .activity-card .card-title {
        font-size: 1.1rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.activity-card {
    animation: fadeInUp 0.6s ease-out;
}

.activity-card:nth-child(1) { animation-delay: 0.1s; }
.activity-card:nth-child(2) { animation-delay: 0.2s; }
.activity-card:nth-child(3) { animation-delay: 0.3s; }
.activity-card:nth-child(4) { animation-delay: 0.4s; }
.activity-card:nth-child(5) { animation-delay: 0.5s; }
.activity-card:nth-child(6) { animation-delay: 0.6s; }

/* ==================== 响应式设计 - 手机 (<=768px) ==================== */
@media screen and (max-width: 768px) {
    /* 活动列表页 */
    .activity_list_page {
        padding: 20px 0;
    }

    .activity_list_container {
        padding: 15px;
        border-radius: 0;
    }

    .activity_list_title h1 {
        font-size: 22px;
    }

    .activity_list_title p {
        font-size: 14px;
    }

    .activity_grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* 页面内容区 */
    .page_content {
        flex-direction: column !important;
        padding: 12px !important;
        min-height: auto;
    }

    /* 侧边栏 */
    #aside {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
        margin-bottom: 15px !important;
        border-top-width: 4px;
    }

    #aside ul {
        display: flex;
        flex-wrap: wrap;
        padding: 6px 8px;
        gap: 4px;
    }

    #aside li {
        width: auto;
        padding: 6px 14px;
        border-bottom: none;
        border-right: none;
        text-align: center;
    }

    #aside li a {
        font-size: 14px;
        border-left: none !important;
    }

    /* 移动端水平布局时隐藏竖向蓝色状态条，改用底部下划线高亮 */
    #aside li.active a:before {
        display: none;
    }

    #aside li.active a {
        border-bottom: 2px solid #1DA5EA;
        padding-bottom: 2px;
    }

    /* 主体内容 */
    .main {
        padding: 15px;
        border: none;
        border-top: 1px solid #e5e5e5;
    }

    /* 面包屑 */
    .breads {
        font-size: 12px;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }

    /* 文章列表 */
    .article_list_ul li {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 0;
    }

    .article_list_ul li a {
        font-size: 15px;
        margin-bottom: 5px;
    }

    .article_list_ul li span {
        font-size: 12px;
    }

    /* 新闻列表 */
    .news_list li {
        padding: 12px 0;
    }

    .news_list li a {
        font-size: 14px;
    }

    /* 活动卡片 */
    .activity_card {
        padding: 20px;
    }

    .activity_name {
        font-size: 18px;
    }

    /* 文章详情 */
    .article_title {
        font-size: 20px;
        padding: 15px 0;
    }

    .article_content {
        padding: 15px 0;
        font-size: 15px;
    }

    .main_con p {
        font-size: 15px;
    }

    /* 分页 */
    .pagination a,
    .pagination span {
        padding: 6px 10px;
        font-size: 13px;
    }

    /* 分享按钮 */
    .sharebuttonbox {
        float: none;
        margin-bottom: 15px;
    }
}

/* ==================== 响应式设计 - 小屏手机 (<=480px) ==================== */
@media screen and (max-width: 480px) {
    .activity_list_title h1 {
        font-size: 18px;
    }

    #aside li {
        padding: 6px 10px;
    }

    #aside li a {
        font-size: 13px;
    }

    .article_title {
        font-size: 18px;
    }

    .article_content {
        font-size: 14px;
        line-height: 1.8;
    }

    .main_con p {
        font-size: 14px;
    }
}
