/* ===== 活动中心页面 ===== */
.activity-center-page {
    height: 100%;
    background: rgba(139, 13, 16, 0.98);
    position: relative;
    overflow: hidden;
}

.activity-center-page .status-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(139, 13, 16, 0.98);
    z-index: 100;
    flex-shrink: 0;
}

.ac-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(139, 13, 16, 0.98);
    overflow: hidden;
}

/* 头部 */
.ac-header {
    flex-shrink: 0;
    position: relative;
    margin-top: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(139, 13, 16, 0.98);
    z-index: 90;
}

.ac-back-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
}

.ac-back-btn i {
    color: #fff;
    font-size: 17px;
}

.ac-back-btn:active {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.ac-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.ac-header-placeholder {
    width: 44px;
    height: 44px;
}

.ac-header-right {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
}

.ac-header-right i {
    font-size: 18px;
}

/* 搜索框 */
.ac-search-bar {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    border-radius: 25px;
    margin: 0 16px 12px;
    padding: 0 16px;
    height: 40px;
}

.ac-search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.ac-search-bar input::placeholder {
    color: rgba(255,255,255,0.6);
}

.ac-search-bar i {
    color: rgba(255,255,255,0.6);
    cursor: pointer;
}

/* 分类标签 */
.ac-category-tabs {
    flex-shrink: 0;
    display: flex;
    overflow-x: auto;
    padding: 8px 16px;
    gap: 10px;
    scrollbar-width: none;
    background: rgba(139, 13, 16, 0.98);
    z-index: 80;
}

.ac-category-tabs::-webkit-scrollbar {
    display: none;
}

.ac-category-tab {
    flex-shrink: 0;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ac-category-tab.active {
    background: #fff;
    color: #C41E3A;
    font-weight: 600;
}

/* 活动列表 */
.ac-activity-list {
    flex: 1;
    min-height: 0;
    padding: 0 16px 80px;
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* 活动卡片 */
.ac-activity-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    margin-bottom: 16px;
    width: 100%;
    flex-shrink: 0;
}

.ac-card-image {
    position: relative;
    width: 100%;
    height: 150px;
}

.ac-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ac-card-type {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #C41E3A, #E8384F);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.ac-card-content {
    padding: 14px;
}

.ac-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.4;
}

.ac-card-info {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.ac-info-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
}

.ac-info-item i {
    font-size: 11px;
}

.ac-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ac-participants {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #999;
}

.ac-join-btn {
    background: linear-gradient(135deg, #C41E3A, #E8384F);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ac-join-btn:active {
    transform: scale(0.95);
}

/* 弹窗遮罩 */
.ac-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 200;
}

.ac-modal-content {
    width: 100%;
    background: #fff;
    border-radius: 24px 24px 0 0;
    max-height: 85vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
}

.ac-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.4);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    z-index: 10;
}

.ac-modal-image {
    position: relative;
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.ac-modal-type {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #C41E3A, #E8384F);
    color: #fff;
    padding: 6px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
}

.ac-modal-body {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
    max-height: 180px;
}

.ac-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
}

.ac-modal-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.ac-modal-info span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #666;
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 16px;
}

.ac-modal-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 16px;
}

.ac-modal-tips {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #FFF9E6;
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    color: #8B6914;
}

.ac-modal-tips i {
    font-size: 14px;
    margin-top: 1px;
}

.ac-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px 24px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.ac-modal-btn {
    flex: 1;
    height: 48px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ac-modal-cancel {
    background: #f0f0f0;
    color: #666;
}

.ac-modal-confirm {
    background: linear-gradient(135deg, #C41E3A, #E8384F);
    color: #fff;
}

.ac-modal-btn:active {
    transform: scale(0.98);
}