/* ============================================================ */
/* 活動頁面 — TY 主題                                              */
/* ============================================================ */
.activity-page {
    padding: 16px 16px 32px;
}

.activity-page-inner {
    max-width: 600px;
    margin: 0 auto;
}

.activity-page-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--sn-text, #222);
}

/* 列表（移动端单列） */
.activity-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* 卡片 */
.activity-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.activity-card:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* 封面 */
.activity-card-cover {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.activity-card-cover img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
}

/* 角标 */
.activity-card-badge {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    padding: 3px 10px 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: #aaa;
    border-radius: 0 0 0 6px;
    letter-spacing: 0.03em;
}

.activity-card-badge--active {
    background: var(--sn-primary, #E88CA5);
}

/* 已结束 */
.activity-card--expired {
    cursor: default;
    pointer-events: none;
}

.activity-card--expired .activity-card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.activity-card--expired:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* 内容区 */
.activity-card-body {
    padding: 10px 12px 12px;
}

.activity-card-name {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--sn-primary, #E88CA5);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.activity-card-time {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.activity-card-tip {
    margin: 4px 0 0;
    font-size: 12px;
    color: #999;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.activity-empty {
    text-align: center;
    padding: 48px 16px;
    color: #bbb;
    font-size: 14px;
}

/* splash 卡片可点击 */
.activity-card--splash {
    cursor: pointer;
}

/* ============================================================ */
/* 开屏图弹窗                                                     */
/* ============================================================ */
.actSplashPopup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10002;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.actSplashPopup.show {
    display: flex;
}

.actSplashPopup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.actSplashPopup-content {
    position: relative;
    width: 360px;
    max-width: 90vw;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.actSplashPopup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    transition: transform 0.3s;
}

.actSplashPopup-close:hover {
    transform: scale(1.1);
}

.actSplashPopup-link {
    display: block;
    width: 100%;
    line-height: 0;
    position: relative;
}

.actSplashPopup-link img {
    width: 100%;
    height: auto;
    display: block;
}

.actSplashPopup .splash-hotzone {
    position: absolute;
    bottom: 6%;
    width: 42%;
    height: 12%;
    z-index: 2;
    display: block;
}

.actSplashPopup .splash-btn-left {
    left: 6%;
}

.actSplashPopup .splash-btn-right {
    right: 6%;
}

/* ============================================================ */
/* PC 适配                                                        */
/* ============================================================ */
@media (min-width: 768px) {
    .activity-page {
        padding: 24px 24px 48px;
    }

    .activity-page-inner {
        max-width: 900px;
    }

    .activity-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1200px) {
    .activity-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
