/* ==================== events 页面样式 ==================== */

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'HarmonyOS Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
            background: white;
            overflow-x: hidden;
        }

        /* 主容器 - 响应式布局 */
        .main-wrapper {
            width: 100%;
            max-width: 1920px;
            margin: 0 auto;
            position: relative;
            background: white;
        }

        /* 1200px-1920px：流体布局（替代有害的transform scale） */
        @media screen and (min-width: 1200px) and (max-width: 1920px) {
            .main-wrapper {
                width: 100vw;
                max-width: 100vw;
                margin: 0;
                position: relative;
                /* 移除transform scale，使用自然流体布局 */
            }
            body {
                min-height: auto;
                /* 移除缩放相关的高度计算 */
            }
        }

        /* 大于1920px：居中显示，取消缩放 */
        @media screen and (min-width: 1921px) {
            .main-wrapper {
                width: 1920px;
                max-width: 1920px;
                transform: none;
            }
            body {
                min-height: auto;
            }
        }
        
        /* 小于1200px */
        @media screen and (max-width: 1199px) {
            .main-wrapper {
                width: 100%;
                max-width: 100%;
                transform: none;
            }
        }

        /* 内容容器 */
        .content-container {
            width: 1920px;
            padding-top: 150px; /* header(110) + spacing(40) - 统一间距标准 */
            display: flex;
            position: relative;
        }

        /* 侧边导航 */
        .sidebar {
            width: 98px;
            position: sticky;
            top: 150px; /* 与padding-top保持一致 */
            margin-left: 49px;
            margin-right: 118px;
            align-self: flex-start;
            z-index: 10;
        }

        .sidebar-nav {
            position: relative;
        }

        .sidebar-nav a {
            display: block;
            font-size: 24px;
            line-height: 60px;
            color: #999999;
            text-decoration: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            position: relative;
            padding-left: 0;
            white-space: nowrap; /* 防止文字换行 */
        }

        .sidebar-nav a.active {
            color: #000000;
            font-weight: 500;
        }

        .sidebar-nav a.active::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 11px; /* 下移，距离底部更远 */
            width: 100%; /* 与文字宽度对齐 */
            height: 3px;
            background: #000000;
            transition: width 0.3s ease;
        }

        .sidebar-nav a:hover {
            color: #000000;
            padding-left: 5px;
        }
        
        .sidebar-nav a:not(.active):hover::before {
            content: '';
            position: absolute;
            left: 0;
            bottom: 11px; /* 与active状态保持一致 */
            width: 50%; /* 悬停状态显示一半宽度 */
            height: 3px;
            background: #CCCCCC;
            transition: width 0.3s ease;
        }

        /* 主内容区域 */
        .main-content {
            flex: 1;
            max-width: 1606px; /* 4列布局：4×370px + 3×42px = 1606px */
        }

        /* 活动网格 - 4列布局 */
        .events-grid {
            display: grid;
            grid-template-columns: repeat(4, 370px);
            gap: 80px 42px; /* 行间距80px，列间距42px */
            margin-bottom: 60px;
            min-height: 600px; /* 保持最小高度，避免切换时跳动 */
        }

        /* 活动卡片 */
        .event-card {
            width: 370px;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }

        .event-card:hover {
            transform: translateY(-10px);
            filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
        }

        .event-image {
            width: 370px;
            height: 494px;
            object-fit: cover;
            display: block;
            margin-bottom: 25px; /* 图片到状态文字的间距 */
            overflow: hidden;
            transition: all 0.4s ease;
            border-radius: 2px;
            position: relative;
        }
        
        /* 图片悬停放大效果 */
        .event-card:hover .event-image {
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }
        
        /* 真实图片的缩放 */
        .event-card:not(.placeholder):hover .event-image img {
            transform: scale(1.08);
        }
        
        .event-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        /* 占位卡片（暂无数据时显示） - 默认隐藏 */
        .event-card.placeholder {
            display: none; /* 默认隐藏占位卡片 */
        }
        
        /* 空状态提示 */
        .empty-state {
            width: 100%;
            text-align: center;
            padding: 100px 0;
            color: #999999;
            font-size: 18px;
        }
        
        /* 分页容器 */
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin-bottom: 100px;
        }
        
        /* 分页按钮 */
        .pagination-btn {
            width: 50px;
            height: 50px;
            border: 1px solid #E0E0E0;
            background: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 24px;
            color: #4F4F4F;
            border-radius: 2px;
        }
        
        .pagination-btn:hover:not(:disabled) {
            border-color: #000;
            background: #000;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        
        .pagination-btn:active:not(:disabled) {
            transform: translateY(0);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        }
        
        .pagination-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }
        
        /* 分页数字 */
        .pagination-numbers {
            display: flex;
            gap: 10px;
        }
        
        .pagination-number {
            width: 40px;
            height: 40px;
            border: 1px solid #E0E0E0;
            background: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 16px;
            color: #4F4F4F;
            border-radius: 2px;
        }
        
        .pagination-number:hover:not(.active) {
            border-color: #000;
            color: #000;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            background: #F5F5F5;
        }
        
        .pagination-number:active:not(.active) {
            transform: translateY(0);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        }
        
        .pagination-number.active {
            background: #000;
            border-color: #000;
            color: white;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            transform: translateY(-1px);
        }
        
        .pagination-number.active:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
        }
        
        /* 分页信息 */
        .pagination-info {
            font-size: 14px;
            color: #999;
            margin-left: 20px;
        }

        /* 状态标签 */
        .event-status {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 13px;
            transition: gap 0.3s ease;
        }
        
        .event-card:hover .event-status {
            gap: 10px;
        }

        .status-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #000000;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }
        
        .event-card:hover .status-dot {
            transform: scale(1.2);
        }

        .status-text {
            font-size: 16px;
            color: #000000;
            font-weight: 400;
            transition: all 0.3s ease;
        }
        
        .event-card:hover .status-text {
            font-weight: 500;
        }

        /* 标题 */
        .event-title {
            font-size: 24px;
            line-height: 1.4;
            color: #000000;
            font-weight: 400;
            margin-bottom: 18px; /* 标题到日期的间距 */
            transition: all 0.3s ease;
            /* 标题截断：单行显示，适应图片宽度（370px） */
            width: 370px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .event-card:hover .event-title {
            color: #333333;
        }

        /* 日期 */
        .event-date {
            font-size: 18px;
            line-height: 1.5;
            color: #4F4F4F;
            font-weight: 400;
            transition: all 0.3s ease;
            width: 370px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .event-card:hover .event-date {
            color: #000000;
        }

        /* 小于1200px：响应式流式布局 */
        @media (max-width: 1199px) {
            .main-wrapper {
                width: 100%;
            }

            .content-container {
                flex-direction: column;
                padding: 20px;
                padding-top: 130px;
            }

            .sidebar {
                position: static;
                width: 100%;
                margin: 0 0 30px 0;
                display: flex;
                gap: 20px;
                overflow-x: auto;
            }

            .sidebar-nav {
                display: flex;
                gap: 20px;
            }

            .sidebar-nav a {
                font-size: 18px;
                line-height: 40px;
                min-width: fit-content;
            }

            .main-content {
                width: 100%;
                max-width: 100%;
            }

            .events-grid {
                grid-template-columns: 1fr;
                gap: 40px;
                min-height: auto;
            }

            .event-card {
                width: 100%;
            }

            .event-image {
                width: 100%;
                height: auto;
                aspect-ratio: 370 / 494;
            }
            
            .event-title {
                width: 100%;
            }
            
            .event-date {
                width: 100%;
            }
            
            /* 移动端隐藏占位卡片 */
            .event-card.placeholder {
                display: none;
            }
            
            /* 分页按钮适配 */
            .pagination {
                flex-wrap: wrap;
                gap: 10px;
            }
            
            .pagination-btn {
                width: 40px;
                height: 40px;
                font-size: 20px;
            }
            
            .pagination-info {
                width: 100%;
                text-align: center;
                margin: 10px 0 0 0;
            }
        }