.activities-page {
    background-color: #000000;
    padding: 0.8rem 0.5rem 1.2rem;
    max-width: 1800px;
    margin: 0 auto;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.3rem;
    align-items: stretch;
}

/* ===== 卡片 ===== */
.activity-card {
    background: #141414;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(207, 141, 54, 0.12), 0 0 0 1px rgba(207, 141, 54, 0.08);
}

/* ===== 封面 ===== */
.card-cover {
    position: relative;
    width: 100%;
    padding-top: 62%;
    overflow: hidden;
    flex-shrink: 0;
}

.cover-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: no-repeat center;
    background-size: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.activity-card:hover .cover-img {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.55) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s;
}

.activity-card:hover .card-overlay { opacity: 1; }

.media-badge { position: relative; }

.media-badge svg {
    width: 64px; height: 64px;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.5));
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.activity-card:hover .media-badge svg { transform: scale(1.12); }

.photo-count {
    position: absolute;
    bottom: -4px; right: -8px;
    background: linear-gradient(135deg, #CF8D36, #E8A84C);
    color: #fff;
    font-size: 11px; font-weight: 700;
    min-width: 22px; height: 22px; line-height: 22px;
    text-align: center;
    border-radius: 11px;
    padding: 0 7px;
    box-shadow: 0 3px 10px rgba(207, 141, 54, 0.4);
}

/* ===== 卡片内容 ===== */
.card-info {
    padding: 0.24rem 0.28rem 0.3rem;
    display: flex;
    flex-direction: column;
}

.card-title {
    color: #ffffff;
    font-family: hm;
    font-size: 0.2rem;
    line-height: 1.55;
    margin-bottom: 0.14rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.1em;
}

.card-meta {
    color: #999;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-bottom: 0.14rem;
    font-family: hr;
    font-size: 0.15rem;
}

.card-date::before {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 6px;
    vertical-align: -3px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.card-location::before {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 5px;
    vertical-align: -3px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0.14rem;
    min-height: 28px;
}

.card-tags .tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(207, 141, 54, 0.12);
    color: #D4A04A;
    border: 1px solid rgba(207, 141, 54, 0.25);
    border-radius: 20px;
    font-size: 13px;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.card-desc {
    color: #888;
    font-size: 0.15rem;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0.04rem;
    height: 5.4em;
}

/* ====================================================
   分屏弹窗
   ==================================================== */
.act-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2000;
}

.act-modal.show { display: block; }

.act-modal-backdrop {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.92);
    animation: fadeIn 0.3s ease;
}

.act-modal-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    max-height: 800px;
    margin: 10vh auto;
    background: #111111;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
    animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.act-modal-close {
    position: absolute;
    top: 16px; right: 20px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    width: 40px; height: 40px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s;
    backdrop-filter: blur(12px);
}

.act-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: rotate(90deg);
}

/* 弹窗主体：左右分栏 */
.act-modal-body {
    display: flex;
    height: 100%;
}

/* 左侧媒体区 */
.act-modal-media {
    flex: 1;
    min-width: 0;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    padding: 24px;
    padding-right: 0;
}

.act-modal-gallery {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* 视频 */
.act-modal-video {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 24px;
}

.act-video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* 图片主轮播 */
.act-swiper-main {
    flex: 1;
    min-height: 0;
    height: 0;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 24px;
    position: relative; /* 让导航箭头定位在 swiper 内 */
}

.act-swiper-main .swiper-wrapper {
    height: 100%;
}

.act-swiper-main .swiper-slide {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.act-swiper-main .slide-img {
    width: 100%;
    height: 100%;
    background: no-repeat center;
    background-size: contain;
    border-radius: 8px;
}

/* Swiper 导航箭头 */
.act-swiper-main .swiper-button-prev,
.act-swiper-main .swiper-button-next {
    width: 44px; height: 44px;
    border-radius: 50%;
    backdrop-filter: blur(8px);
    transition: all 0.3s;
    /* Swiper 4 用背景图做箭头，覆盖为自定义样式 */
    background-color: rgba(255, 255, 255, 0.15);
    background-size: 18px 18px;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: -22px;
}

.act-swiper-main .swiper-button-prev {
    left: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E");
}

.act-swiper-main .swiper-button-next {
    right: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
}

.act-swiper-main .swiper-button-prev:hover,
.act-swiper-main .swiper-button-next:hover {
    background-color: rgba(207, 141, 54, 0.7);
    transform: scale(1.1);
}

/* 隐藏 Swiper 4 默认箭头 */
.act-swiper-main .swiper-button-prev::after,
.act-swiper-main .swiper-button-next::after {
    display: none;
}

/* 缩略图轮播 */
.act-swiper-thumbs {
    height: 72px;
    margin-top: 12px;
    margin-right: 24px;
}

.act-swiper-thumbs .swiper-slide {
    width: 88px;
    height: 64px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    opacity: 0.45;
    transition: all 0.3s;
}

.act-swiper-thumbs .swiper-slide-thumb-active,
.act-swiper-thumbs .swiper-slide.thumb-active {
    border-color: #CF8D36;
    opacity: 1;
    box-shadow: 0 0 12px rgba(207, 141, 54, 0.3);
}

.act-swiper-thumbs .swiper-slide:hover {
    opacity: 0.85;
}

.act-swiper-thumbs .thumb-img {
    width: 100%; height: 100%;
    background: no-repeat center;
    background-size: cover;
}

/* 右侧信息区 */
.act-modal-info {
    width: 360px;
    flex-shrink: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    overflow-y: auto;
}

.act-modal-info-inner {
    padding: 40px 32px;
}

.act-info-title {
    font-family: hm;
    font-size: 24px;
    color: #ffffff;
    line-height: 1.5;
    margin: 0 0 20px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.act-info-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    font-family: hr;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
}

.meta-date::before {
    content: '';
    display: inline-block; width: 16px; height: 16px;
    margin-right: 8px; vertical-align: -3px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(207,141,54,0.7)' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.meta-loc::before {
    content: '';
    display: inline-block; width: 16px; height: 16px;
    margin-right: 8px; vertical-align: -3px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(207,141,54,0.7)' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.act-info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.info-tag {
    padding: 4px 14px;
    background: rgba(207, 141, 54, 0.1);
    color: #CF8D36;
    border: 1px solid rgba(207, 141, 54, 0.2);
    border-radius: 20px;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.act-info-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(207, 141, 54, 0.3), transparent);
    margin-bottom: 20px;
}

.act-info-desc {
    font-size: 15px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.55);
    font-family: hr;
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
    .activities-grid { grid-template-columns: repeat(3, 1fr); gap: 0.24rem; }
}

@media (max-width: 900px) {
    .act-modal-body { flex-direction: column; }
    /* 关闭按钮：移动端给顶部留出空间，避免和视频重叠 */
    .act-modal-close {
        top: 8px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    .act-modal-media {
        padding: 52px 16px 16px; /* 顶部留出关闭按钮空间 */
        padding-right: 16px;
        flex: none;
    }
    /* 视频：移动端限制高度，不撑满 */
    .act-modal-video {
        flex: none;
        padding-right: 0;
        max-height: 45vh;
    }
    .act-modal-video video {
        max-height: 45vh !important;
        height: auto !important;
        width: 100%;
    }
    /* 图片画廊：给一个合理的固定高度 */
    .act-modal-gallery {
        height: 45vh;
        flex: none;
    }
    .act-swiper-main { margin-right: 0; }
    .act-swiper-thumbs { margin-right: 0; }
    .act-modal-info {
        width: 100%;
        flex: 1;
        min-height: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
    .act-modal-info-inner { padding: 20px 24px; }
    .act-info-title { font-size: 20px; margin-bottom: 12px; }
    .act-modal-container { height: 90vh; margin: 5vh auto; width: 95%; }
}

@media (max-width: 768px) {
    .activities-page { padding: 40px 15px 60px; }
    .activities-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .card-info { padding: 14px 16px 18px; }
    .card-title { font-size: 16px; height: 2.6em; line-height: 1.3; margin-bottom: 10px; }
    .card-meta { font-size: 13px; gap: 10px; margin-bottom: 10px; }
    .card-date::before,
    .card-location::before { width: 13px; height: 13px; }
    .card-tags { gap: 6px; margin-bottom: 10px; min-height: 24px; }
    .card-tags .tag { font-size: 11px; padding: 3px 10px; }
    .card-desc { font-size: 13px; line-height: 1.7; height: 4.42em; -webkit-line-clamp: 2; }
    .media-badge svg { width: 48px; height: 48px; }
}

@media (max-width: 480px) {
    .activities-grid { grid-template-columns: 1fr; gap: 16px; }
    .card-title { font-size: 17px; height: auto; min-height: 1.3em; }
    .card-desc { height: auto; min-height: 1.7em; -webkit-line-clamp: 3; }
}
