/* ========== 星火活动中心 - 前台样式（移动端优先 · 小程序风格） ========== */
/* 设计标准：参照会员中心首页移动端样式，暖色系 #ff6b35
   设计方向：卡片化 / 大按钮 / 清晰层级 / 小程序体验 */

/* ========== 基础布局 ========== */
.xhzc-act-front {
    max-width: 750px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #303133;
    background: #f5f7fa;
    min-height: 100vh;
    padding-bottom: 30px;
    position: relative;
}

/* 安全区域内容容器 - 确保在PC端居中 */
.xhzc-act-container {
    width: 100%;
}

/* ========== 页面头部（小程序风格导航栏） ========== */
.act-page-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.act-page-header h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #1f2937;
}

.act-page-header .back-btn {
    position: absolute;
    left: 0;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    font-size: 20px;
    color: #303133;
    text-decoration: none;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
}

.act-page-header .back-btn:active {
    opacity: 0.6;
}

/* ========== 页面顶部横幅卡片 ========== */
.act-page-banner {
    background: linear-gradient(135deg, #ff6b35 0%, #d4380d 100%);
    margin: 0 -20px 16px;
    padding: 28px 20px;
    color: #fff;
    -webkit-box-shadow: 0 4px 16px rgba(255, 107, 53, 0.25);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.25);
    position: relative;
    overflow: hidden;
}

.act-page-banner::before {
    content: '';
    position: absolute;
    right: -30px;
    top: -30px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.act-page-banner::after {
    content: '';
    position: absolute;
    right: 40px;
    bottom: -40px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.act-page-banner .banner-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.act-page-banner .banner-desc {
    font-size: 13px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* ========== 分类筛选（横向滚动标签） ========== */
.act-category-nav {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    gap: 10px;
    padding: 0 16px 16px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: sticky;
    top: 44px;
    background: #f5f7fa;
    z-index: 40;
    padding-top: 12px;
    padding-bottom: 12px;
}

.act-category-nav::-webkit-scrollbar {
    display: none;
}

.act-category-nav .cat-item {
    flex-shrink: 0;
    padding: 8px 18px;
    background: #fff;
    border-radius: 20px;
    font-size: 14px;
    color: #606266;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
    -webkit-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    white-space: nowrap;
}

.act-category-nav .cat-item:active {
    transform: scale(0.95);
}

.act-category-nav .cat-item.active {
    background: linear-gradient(135deg, #ff8c3f 0%, #ff6b35 100%);
    color: #fff;
    border-color: #ff6b35;
    -webkit-box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    font-weight: 600;
}

/* ========== 活动列表区 ========== */
.act-list-section {
    padding: 0 16px;
}

.act-list-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.act-list-section-title .count {
    font-size: 13px;
    font-weight: normal;
    color: #909399;
}

/* ========== 活动卡片（小程序风格大卡片） ========== */
.act-list {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #ebedf0;
    box-shadow: none; /* 微信风格主卡片标准 */
    overflow: hidden;
    -webkit-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-card:active {
    transform: scale(0.98);
    -webkit-box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

/* 封面区 */
.activity-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f5f7fa;
}

.activity-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.activity-cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffd6a5 0%, #ff9a56 50%, #ff6b35 100%);
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
}

/* 状态标签（右上角） */
.activity-status-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
}

.activity-status-tag.status-signup {
    background: linear-gradient(135deg, #67c23a 0%, #85ce61 100%);
    -webkit-box-shadow: 0 2px 6px rgba(103, 194, 58, 0.3);
    box-shadow: 0 2px 6px rgba(103, 194, 58, 0.3);
}

.activity-status-tag.status-ongoing {
    background: linear-gradient(135deg, #409eff 0%, #66b1ff 100%);
    -webkit-box-shadow: 0 2px 6px rgba(64, 158, 255, 0.3);
    box-shadow: 0 2px 6px rgba(64, 158, 255, 0.3);
}

.activity-status-tag.status-ended {
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* 分类标签（左上角） */
.activity-cat-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border-radius: 10px;
    font-size: 12px;
    color: #fff;
    font-weight: 500;
    z-index: 2;
}

/* 卡片内容区 */
.activity-content {
    padding: 14px 16px 16px;
}

.activity-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.activity-meta {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.activity-meta-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #909399;
    gap: 6px;
}

.activity-meta-row .meta-icon {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

/* 卡片底部操作区 */
.activity-footer {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f2f6fc;
}

.activity-footer-info {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* 奖励标签 */
.activity-reward-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff7e6;
    color: #ff6b35;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

/* 报名人数 */
.activity-signup-count {
    font-size: 12px;
    color: #909399;
}

.activity-signup-count b {
    color: #ff6b35;
    font-weight: 600;
}

/* 报名按钮 */
.activity-signup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    background: linear-gradient(135deg, #ff8c3f 0%, #ff6b35 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    -webkit-box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    -webkit-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.activity-signup-btn:active {
    transform: scale(0.95);
    -webkit-box-shadow: 0 1px 4px rgba(255, 107, 53, 0.3);
    box-shadow: 0 1px 4px rgba(255, 107, 53, 0.3);
}

.activity-signup-btn.ended {
    background: #f5f7fa;
    color: #c0c4cc;
    -webkit-box-shadow: none;
    box-shadow: none;
    cursor: not-allowed;
}

/* ========== 加载更多 ========== */
.act-load-more {
    text-align: center;
    padding: 20px 16px 10px;
}

.act-load-more-btn {
    display: inline-block;
    padding: 10px 40px;
    background: #fff;
    color: #606266;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    -webkit-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.act-load-more-btn:active {
    background: #f5f7fa;
    transform: scale(0.98);
}

.act-load-more-btn.no-more {
    color: #c0c4cc;
    border: none;
    background: transparent;
}

/* ========== 空状态 ========== */
.act-empty {
    text-align: center;
    padding: 80px 20px 60px;
    color: #909399;
}

.act-empty .empty-icon {
    font-size: 80px;
    margin-bottom: 16px;
    opacity: 0.5;
    line-height: 1;
}

.act-empty .empty-title {
    font-size: 16px;
    color: #606266;
    margin-bottom: 8px;
    font-weight: 500;
}

.act-empty .empty-desc {
    font-size: 13px;
    color: #c0c4cc;
    margin-bottom: 24px;
}

.act-empty .empty-btn {
    display: inline-block;
    padding: 10px 28px;
    background: linear-gradient(135deg, #ff8c3f 0%, #ff6b35 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    -webkit-box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.act-empty .empty-btn:active {
    transform: scale(0.95);
}

/* ========== 活动详情页 ========== */

/* 详情页顶部封面区 */
.act-detail-header {
    position: relative;
}

.act-detail-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f5f7fa;
}

.act-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.act-detail-cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff8c3f 0%, #ff6b35 50%, #d4380d 100%);
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 20px;
    box-sizing: border-box;
}

.act-detail-cover-placeholder .cover-cat {
    background: rgba(255, 255, 255, 0.25);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 12px;
    font-weight: 500;
}

.act-detail-cover-placeholder .cover-title {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

/* 返回按钮悬浮在封面上 */
.act-detail-back {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    z-index: 10;
    -webkit-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.act-detail-back:active {
    transform: scale(0.9);
    background: rgba(0, 0, 0, 0.6);
}

/* 分享按钮（悬浮右上角） */
.act-detail-share {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    z-index: 10;
    -webkit-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.act-detail-share:active {
    transform: scale(0.9);
    background: rgba(0, 0, 0, 0.6);
}

/* 底栏分享按钮 */
.act-btn-share {
    background: #f5f5f5;
    color: #333;
    padding: 12px 20px;
    border-radius: 24px;
    font-size: 14px;
    white-space: nowrap;
}

.act-btn-share:active {
    background: #e8e8e8;
}

/* 分享toast提示 */
.act-share-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    pointer-events: none;
    animation: actToastFade 2s ease forwards;
}

@keyframes actToastFade {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    75% { opacity: 1; }
    100% { opacity: 0; }
}

/* 详情页标题区 */
.act-detail-title-section {
    background: #fff;
    margin: -20px 16px 0;
    border-radius: 12px;
    border: 1px solid #ebedf0;
    box-shadow: none; /* 微信风格主卡片标准 */
    padding: 20px;
    position: relative;
    z-index: 5;
}

.act-detail-title-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.act-detail-title {
    flex: 1;
    font-size: 18px; /* 微信风格统一 */
    font-weight: 600; /* 微信风格统一 */
    color: #1f2937;
    line-height: 1.4;
    margin: 0;
}

.act-detail-status {
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.act-detail-status.status-signup {
    background: linear-gradient(135deg, #67c23a 0%, #85ce61 100%);
}

.act-detail-status.status-ongoing {
    background: linear-gradient(135deg, #409eff 0%, #66b1ff 100%);
}

.act-detail-status.status-ended {
    background: #909399;
}

.act-detail-subtitle {
    font-size: 13px;
    color: #909399;
    line-height: 1.5;
}

/* 信息卡片 */
.act-info-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #ebedf0;
    box-shadow: none; /* 微信风格主卡片标准 */
    margin: 12px 16px 0;
    padding: 4px 0;
}

.act-info-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #f5f7fa;
    gap: 12px;
}

.act-info-item:last-child {
    border-bottom: none;
}

.act-info-item .info-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fff7e6;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.act-info-item:nth-child(2) .info-icon {
    background: #ecf5ff;
}

.act-info-item:nth-child(3) .info-icon {
    background: #f0f9eb;
}

.act-info-item:nth-child(4) .info-icon {
    background: #fef0f0;
}

.act-info-item .info-content {
    flex: 1;
    min-width: 0;
}

.act-info-item .info-label {
    font-size: 12px;
    color: #909399;
    margin-bottom: 2px;
}

.act-info-item .info-value {
    font-size: 14px;
    color: #303133;
    font-weight: 500;
    line-height: 1.4;
}

/* 奖励展示区 */
.act-reward-section {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #ebedf0;
    box-shadow: none; /* 微信风格主卡片标准 */
    margin: 12px 16px 0;
    padding: 20px;
}

.act-reward-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    gap: 6px;
}

.act-reward-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.act-reward-item {
    background: linear-gradient(135deg, #fff7e6 0%, #ffedd5 100%);
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
    -webkit-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.act-reward-item:active {
    transform: scale(0.97);
}

.act-reward-item .reward-label {
    font-size: 12px;
    color: #e6a23c;
    margin-bottom: 4px;
    font-weight: 500;
}

.act-reward-item .reward-value {
    color: #ff6b35;
    font-weight: 700;
    font-size: 18px;
}

.act-reward-item .reward-value small {
    font-size: 12px;
    font-weight: 500;
}

/* 邀请码卡片 */
.act-verify-card {
    background: linear-gradient(135deg, #ff8c3f 0%, #ff6b35 50%, #d4380d 100%);
    color: #fff;
    border-radius: 12px;
    border: 1px solid #ebedf0;
    box-shadow: none; /* 微信风格主卡片标准 */
    padding: 24px 20px;
    text-align: center;
    margin: 12px 16px 0;
    position: relative;
    overflow: hidden;
}

.act-verify-card::before {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.act-verify-card .code-title {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 12px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.act-verify-card .code-value {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 8px;
    font-family: 'Courier New', monospace;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.act-verify-card .code-desc {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

/* 活动详情内容区 */
.act-detail-content-section {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #ebedf0;
    box-shadow: none; /* 微信风格主卡片标准 */
    margin: 12px 16px 100px;
    padding: 20px;
}

.act-detail-content-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f2f6fc;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    gap: 6px;
}

.act-detail-content {
    color: #303133;
    line-height: 1.8;
    font-size: 15px;
}

.act-detail-content p {
    margin: 0 0 14px 0;
}

.act-detail-content p:last-child {
    margin-bottom: 0;
}

.act-detail-content img {
    max-width: 100%;
    border-radius: 8px;
}

/* 底部固定操作栏 */
.act-detail-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 750px;
    background: #fff;
    padding: 12px 16px;
    -webkit-box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
    z-index: 100;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
}

.bottom-bar-price {
    flex: 1;
}

.bottom-bar-price .price-label {
    font-size: 12px;
    color: #909399;
    margin-bottom: 2px;
}

.bottom-bar-price .price-value {
    font-size: 18px;
    font-weight: 700;
    color: #ff6b35;
}

.bottom-bar-price .price-value.free {
    color: #67c23a;
}

/* 按钮样式统一 */
.act-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    -webkit-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    box-sizing: border-box;
}

.act-btn-primary {
    background: linear-gradient(135deg, #ff8c3f 0%, #ff6b35 100%);
    color: #fff;
    -webkit-box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.act-btn-primary:active {
    transform: scale(0.96);
    -webkit-box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
}

.act-btn-success {
    background: linear-gradient(135deg, #85ce61 0%, #67c23a 100%);
    color: #fff;
    -webkit-box-shadow: 0 4px 12px rgba(103, 194, 58, 0.3);
    box-shadow: 0 4px 12px rgba(103, 194, 58, 0.3);
}

.act-btn-success:active {
    transform: scale(0.96);
}

.act-btn-disable {
    background: #f5f7fa;
    color: #c0c4cc;
    cursor: not-allowed;
}

.act-btn-block {
    flex: 1;
    width: 100%;
}

.act-btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

/* 报名弹窗（底部滑出） */
.act-modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.act-modal {
    background: #fff;
    width: 100%;
    max-width: 750px;
    border-radius: 20px 20px 0 0;
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    max-height: 85vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.act-modal-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f2f6fc;
}

.act-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.act-modal-close {
    font-size: 28px;
    cursor: pointer;
    color: #909399;
    -webkit-transition: color 0.2s;
    transition: color 0.2s;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
}

.act-modal-close:active {
    color: #606266;
}

/* 表单 */
.act-form-group {
    margin-bottom: 18px;
}

.act-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #606266;
    font-weight: 500;
}

.act-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e4e7ed;
    border-radius: 12px;
    font-size: 15px;
    box-sizing: border-box;
    -webkit-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafafa;
    font-family: inherit;
    color: #303133;
}

.act-form-control:focus {
    outline: none;
    border-color: #ff6b35;
    background: #fff;
    -webkit-box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.act-form-control::placeholder {
    color: #c0c4cc;
}

.act-required {
    color: #f56c6c;
    margin-left: 2px;
}

/* ========== 首页活动模块样式（嵌入会员中心首页） ========== */

.xhzc-pm-home-section {
    margin-bottom: 16px;
}

.section-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 4px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #303133;
    margin: 0;
    line-height: 1.4;
}

.section-more {
    font-size: 13px;
    color: #909399;
    text-decoration: none;
    -webkit-transition: color 0.2s;
    transition: color 0.2s;
}

.section-more:active {
    color: #ff6b35;
}

/* 活动列表容器 */
.xhzc-pm-activity-panel {
    background: #fff;
    border-radius: 12px /* 微信风格主卡片标准 */;
    padding: 15px;
    
    
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.xhzc-pm-activity-list {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 小卡片网格 */
.activity-small-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.activity-card-small {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    gap: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    -webkit-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-card-small:active {
    transform: scale(0.97);
}

.activity-small-cover {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f5f7fa;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-small-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.activity-small-info {
    flex: 1;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.activity-small-title {
    font-size: 14px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.activity-small-time {
    font-size: 12px;
    color: #909399;
}

/* 首页暂无活动占位卡片 */
.activity-empty-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.activity-empty-icon {
    font-size: 40px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.activity-empty-text {
    font-size: 14px;
    color: #909399;
    margin-bottom: 12px;
}

.activity-empty-link {
    display: inline-block;
    font-size: 13px;
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
}

/* ========== 文字辅助样式 ========== */
.text-muted { color: #909399 !important; }
.text-center { text-align: center !important; }
.text-primary { color: #ff6b35 !important; }
.text-success { color: #67c23a !important; }
.text-warning { color: #e6a23c !important; }
.text-danger { color: #f56c6c !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 5px !important; }
.mb-2 { margin-bottom: 10px !important; }
.mb-3 { margin-bottom: 15px !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 5px !important; }
.mt-2 { margin-top: 10px !important; }
.mt-3 { margin-top: 15px !important; }

/* ========== 响应式适配 ========== */

/* 平板及以上：居中显示，模拟手机宽度 */
@media (min-width: 768px) {
    .xhzc-act-front {
        padding: 0;
        -webkit-box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
        min-height: 100vh;
        background: #fff;
    }

    body {
        background: #f0f2f5;
    }

    .act-page-banner {
        margin: 0 0 16px;
        border-radius: 0 0 12px 12px; /* 微信风格PC端底部圆角 */
    }

    .act-detail-bottom-bar {
        border-left: 1px solid rgba(0, 0, 0, 0.05);
        border-right: 1px solid rgba(0, 0, 0, 0.05);
    }
}

/* 手机端：全屏宽度 */
@media (max-width: 767px) {
    .xhzc-act-front {
        max-width: 100%;
    }

    .act-page-banner {
        margin: 0 0 16px;
        border-radius: 0 0 20px 20px;
    }

    .act-category-nav {
        top: 44px;
    }

    .activity-small-grid {
        grid-template-columns: 1fr;
    }

    .activity-small-cover {
        width: 80px;
        height: 80px;
    }
}

/* 小屏手机适配（375px以下） */
@media (max-width: 375px) {
    .act-detail-title {
        font-size: 18px;
    }

    .act-reward-grid {
        grid-template-columns: 1fr;
    }

    .activity-title {
        font-size: 15px;
    }
}

/* 超大屏限制宽度 */
@media (min-width: 1024px) {
    .xhzc-act-front {
        max-width: 480px;
    }

    .act-detail-bottom-bar {
        max-width: 480px;
    }

    .act-modal {
        max-width: 480px;
    }
}
