/* ========== Hero 区域 ========== */
.activity-hero {
    position: relative;
    padding: 4.5rem 0 3rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 40%, #e0f2fe 100%);
    overflow: hidden;
}
.activity-hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.activity-hero-desc {
    color: #475569;
    font-size: 1.02rem;
    line-height: 1.9;
    max-width: 760px;
}

/* ---- Hero Badge ---- */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59,130,246,0.08);
    border: 1px solid rgba(59,130,246,0.18);
    border-radius: 50px;
    padding: 0.35rem 1.25rem;
    margin-bottom: 1.5rem;
    color: #2563eb;
    font-size: 0.85rem;
    font-weight: 500;
}
.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(59,130,246,0.5);
    animation: badge-pulse 2s infinite;
}
@keyframes badge-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ========== 活动区域 ========== */
.activity-section {
    padding: 3.5rem 0 5rem;
    background: #f8fafc;
    position: relative;
}

/* ---- 活动卡片通用 ---- */
.activity-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.8rem 1.5rem;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.35s ease;
}
.activity-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 44px rgba(0,0,0,0.08), 0 0 0 1px rgba(59,130,246,0.08) inset;
}
.card-body-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ---- 渐变顶线颜色扩展 ---- */
.card-line-orange { background: linear-gradient(90deg, #f97316, #fb923c); }

/* ---- 品牌标题（上云·精选）---- */
.card-brand {
    font-size: 1.55rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: #0f172a;
}
.brand-text { color: #ea580c; }
.brand-dot { color: #94a3b8; margin: 0 0.15rem; }
.brand-highlight {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.card-detail {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.8;
    margin: 0 0 1.1rem;
}

/* ---- 按钮 ---- */
.activity-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.85rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
    align-self: flex-start;
    width: auto;
}
.activity-btn-primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    box-shadow: 0 4px 12px rgba(249,115,22,0.35);
}
.activity-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(249,115,22,0.45);
    color: #fff;
}
.activity-btn-outline {
    background: transparent;
    color: #2563eb;
    border: 1.5px solid #bfdbfe;
    box-sizing: border-box;
}
.activity-btn-outline:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    transform: translateY(-2px);
    color: #1d4ed8;
}

/* ---- 底部倒计时条 ---- */
.card-footer-bar {
    margin-top: auto;
    padding-top: 1rem;
    margin-bottom: 1.2rem; /* 与下方推广条拉开间距 */
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.32rem;
    flex-wrap: wrap;
}
.countdown-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    padding: 0 6px;
}
.countdown-day { background: linear-gradient(135deg, #fb923c, #f97316); }
.countdown-hour { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.countdown-min { background: linear-gradient(135deg, #a78bfa, #8b5cf6); }
.countdown-sec { background: linear-gradient(135deg, #ec4899, #db2777); }

/* ---- 底部推广标签 ---- */
.card-promo-tag {
    margin-top: auto;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 8px;
    font-size: 0.8rem;
    color: #3b82f6;
    font-weight: 500;
    text-align: center;
    border-top: 1px solid #dbeafe;
    cursor: pointer;
    transition: all 0.25s ease;
}
.card-promo-tag:hover {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1d4ed8;
}

/* ---- 插图区域（普通卡片） ---- */
.card-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
}
/* 右下角背景装饰效果 */
.card-visual-sm {
    position: absolute;
    right: -10px;
    bottom: -10px;
    opacity: 0.28;
    pointer-events: none;
}
.card-visual-sm svg {
    width: 156px;       /* 120px × 1.3 */
    height: auto;
}

/* ---- 普通活动卡片的标题/描述 ---- */
.act-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
}
.act-card-desc {
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.6;
    margin: 0 0 1.1rem;
    flex: 1;
}

/* ========== 特色大卡片：左右分栏布局 ========== */
.featured-main {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}
.featured-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.featured-right {
    flex-shrink: 0;
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0;
}
.cloud-illu {
    max-width: 100%;
    height: auto;
}

/* ---- 特色大卡片额外样式 ---- */
.activity-card-featured {
    background: #fff;
    border: 1px solid #fed7aa;
}
.activity-card-featured:hover {
    box-shadow: 0 14px 44px rgba(249,115,22,0.1), 0 0 0 1px rgba(249,115,22,0.1) inset;
}

/* ---- 移动端适配：小屏幕下特色卡变回上下布局 ---- */
@media (max-width: 767px) {
    .featured-main {
        flex-direction: column;
        gap: 0.5rem;
    }
    .featured-right {
        width: auto;
        justify-content: center;
    }
    .cloud-illu {
        width: 120px;
        height: auto;
    }
}

/* ========== 活动列表板块 ========== */
.activity-list-section {
    padding: 4rem 0 5rem;
    background: #fff;
}
.activity-list-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.6rem;
}
.section-subtitle {
    font-size: 0.95rem;
    color: #94a3b8;
}

/* ---- 活动列表卡片 ---- */
.act-list-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}
.act-list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.07);
    border-color: #bfdbfe;
}

/* 图标容器 */
.act-list-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
}
.act-icon-blue { background: #eff6ff; }
.act-icon-orange { background: #fff7ed; }
.act-icon-purple { background: #f5f3ff; }

/* 标题 & 描述 */
.act-list-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.45rem;
}
.act-list-desc {
    font-size: 0.86rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

/* 角标标签 */
.act-list-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}
.tag-hot { background: #fef2f2; color: #dc2626; }
.tag-new { background: #fefce8; color: #ca8a04; }
.tag-vip { background: #faf5ff; color: #9333ea; }

/* ========== 活动详情表格 ========== */
.activity-table-section {
    margin-top: 25px;
}
.act-tb-wrapper {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.act-table {
    width: 100%;
    border-collapse: collapse;
}
.act-table thead tr {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}
.act-table th {
    padding: 1rem 1.25rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0;
}
.act-table td {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.act-table tbody tr:last-child td { border-bottom: none; }
.act-table tbody tr:hover { background: #fafbff; }

.col-name { width: 36%; }
.col-type { width: 14%; }
.col-time { width: 28%; }
.col-status { width: 10%; }
.col-action { width: 12%; }

/* 活动名称 + 圆点 */
.td-name { display: flex; align-items: center; gap: 0.65rem; font-weight: 600; color: #1e293b; }
.name-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-blue { background: #3b82f6; box-shadow: 0 0 6px rgba(59,130,246,0.4); }
.dot-orange { background: #f97316; box-shadow: 0 0 6px rgba(249,115,22,0.4); }
.dot-purple { background: #8b5cf6; box-shadow: 0 0 6px rgba(139,92,246,0.4); }
.dot-gray { background: #cbd5e1; }

/* 类型标签 */
.type-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.type-discount { background: #fff7ed; color: #ea580c; }
.type-free { background: #ecfdf5; color: #059669; }
.type-subsidy { background: #fef2f2; color: #dc2626; }

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}
.status-active { background: #ecfdf5; color: #059669; }
.status-ended { background: #f1f5f9; color: #94a3b8; }

/* 操作按钮 */
.tb-btn {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.tb-btn-primary {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}
.tb-btn-primary:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}
.tb-btn-disabled {
    background: #f8fafc;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    cursor: not-allowed;
}

/* 表格时间列 */
.td-time { color: #64748b; font-size: 0.86rem; }

/* 移动端表格适配 */
@media (max-width: 767px) {
    .act-tb-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .act-table { min-width: 650px; }
}

/* iframe 弹窗圆角 */
.layui-layer-iframe-no-title {
    border-radius: 20px !important;
    overflow: hidden !important;
}
