/* ============================================================
   UI/UX Pro Max Optimized - Activity Countdown Styles (Center Hero Layout)
   ============================================================ */

:root {
    --ac-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ac-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --ac-radius: 16px;
    --ac-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
    .ac-container, .ac-time-card {
        transition: none !important;
        transform: none !important;
    }
}

/* 核心容器：居中 Hero 式卡片 */
.ac-container {
    max-width: 100%;
    margin: 20px 0;
    padding: 24px 28px;
    border-radius: var(--ac-radius);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
    font-family: var(--ac-font-sans);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    transition: var(--ac-transition);
    text-align: center;
}

/* 头部：标题与描述居中 */
.ac-header-block {
    margin-bottom: 18px;
}

.ac-title {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.ac-content {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.88;
    max-width: 90%;
    margin: 0 auto;
}

/* 核心居中倒计时区域 */
.ac-timer-center-block {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ac-timer-status {
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.02em;
    margin-bottom: 14px;
    padding: 4px 16px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.04);
}

/* 状态微指示点 */
.ac-timer-status::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
    opacity: 0.85;
}

.ac-timer-status.ac-upcoming::before {
    background-color: #3b82f6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

.ac-timer-status.ac-running::before {
    background-color: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.ac-timer-status.ac-ended {
    font-size: 16px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 8px;
    margin-bottom: 0;
}
.ac-timer-status.ac-ended::before {
    display: none;
}

/* 倒计时数字盒子网格（居中对齐、更大视效） */
.ac-timer-boxes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ac-time-card {
    min-width: 64px;
    padding: 10px 12px;
    border-radius: 12px;
    text-align: center;
    transition: var(--ac-transition);
    cursor: default;
    user-select: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ac-time-card:hover {
    transform: translateY(-3px);
}

.ac-time-num {
    display: block;
    font-family: var(--ac-font-mono);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}

.ac-time-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-top: 4px;
    opacity: 0.75;
    text-transform: uppercase;
}

/* 数字冒号分隔符 */
.ac-time-colon {
    font-family: var(--ac-font-mono);
    font-size: 24px;
    font-weight: 700;
    opacity: 0.4;
    margin-top: -14px;
}

/* 底部起止时间说明 */
.ac-footer-block {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.ac-timer-range {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ============================================================
   UI/UX Pro Max 调色板 (5大专业配色方案)
   ============================================================ */

/* 1. 暗夜赛博/黑金风格 (Dark) */
.ac-style-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.ac-style-dark .ac-title { color: #ffffff; }
.ac-style-dark .ac-content { color: #94a3b8; }
.ac-style-dark .ac-timer-status { background: rgba(255, 255, 255, 0.08); color: #cbd5e1; }
.ac-style-dark .ac-time-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.ac-style-dark .ac-time-card:hover {
    border-color: rgba(244, 63, 94, 0.7);
    box-shadow: 0 6px 16px rgba(244, 63, 94, 0.2);
}
.ac-style-dark .ac-time-num { color: #ffffff; }
.ac-style-dark .ac-time-label { color: #94a3b8; }
.ac-style-dark .ac-time-colon { color: #ffffff; }
.ac-style-dark .ac-footer-block { border-top-color: rgba(255, 255, 255, 0.12); }
.ac-style-dark .ac-timer-range { color: #94a3b8; }
.ac-style-dark .ac-timer-status.ac-ended { color: #f87171; background: rgba(239, 68, 68, 0.15); }

/* 2. 热情大促/火山红 (Red) */
.ac-style-red {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    color: #881337;
    border: 1px solid #fecdd3;
}
.ac-style-red .ac-title { color: #881337; }
.ac-style-red .ac-content { color: #9f1239; }
.ac-style-red .ac-timer-status { background: rgba(225, 29, 72, 0.1); color: #9f1239; }
.ac-style-red .ac-time-card {
    background: #ffffff;
    border: 1px solid #fda4af;
}
.ac-style-red .ac-time-card:hover {
    border-color: #e11d48;
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.18);
}
.ac-style-red .ac-time-num { color: #be123c; }
.ac-style-red .ac-time-label { color: #9f1239; }
.ac-style-red .ac-time-colon { color: #be123c; }
.ac-style-red .ac-footer-block { border-top-color: #fecdd3; }
.ac-style-red .ac-timer-range { color: #9f1239; }
.ac-style-red .ac-timer-status.ac-ended { color: #ffffff; background: #e11d48; }

/* 3. 科技/极光蓝 (Blue) */
.ac-style-blue {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #0c4a6e;
    border: 1px solid #bae6fd;
}
.ac-style-blue .ac-title { color: #0c4a6e; }
.ac-style-blue .ac-content { color: #0369a1; }
.ac-style-blue .ac-timer-status { background: rgba(2, 132, 199, 0.1); color: #0369a1; }
.ac-style-blue .ac-time-card {
    background: #ffffff;
    border: 1px solid #7dd3fc;
}
.ac-style-blue .ac-time-card:hover {
    border-color: #0284c7;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.18);
}
.ac-style-blue .ac-time-num { color: #0369a1; }
.ac-style-blue .ac-time-label { color: #0c4a6e; }
.ac-style-blue .ac-time-colon { color: #0369a1; }
.ac-style-blue .ac-footer-block { border-top-color: #bae6fd; }
.ac-style-blue .ac-timer-range { color: #0369a1; }
.ac-style-blue .ac-timer-status.ac-ended { color: #ffffff; background: #0284c7; }

/* 4. 健康/翡翠绿 (Green) */
.ac-style-green {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #14532d;
    border: 1px solid #bbf7d0;
}
.ac-style-green .ac-title { color: #14532d; }
.ac-style-green .ac-content { color: #15803d; }
.ac-style-green .ac-timer-status { background: rgba(22, 163, 74, 0.1); color: #15803d; }
.ac-style-green .ac-time-card {
    background: #ffffff;
    border: 1px solid #86efac;
}
.ac-style-green .ac-time-card:hover {
    border-color: #16a34a;
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.18);
}
.ac-style-green .ac-time-num { color: #15803d; }
.ac-style-green .ac-time-label { color: #14532d; }
.ac-style-green .ac-time-colon { color: #15803d; }
.ac-style-green .ac-footer-block { border-top-color: #bbf7d0; }
.ac-style-green .ac-timer-range { color: #15803d; }
.ac-style-green .ac-timer-status.ac-ended { color: #ffffff; background: #16a34a; }

/* 5. 极简/高对比度白 (Light) */
.ac-style-light {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.ac-style-light .ac-title { color: #0f172a; }
.ac-style-light .ac-content { color: #475569; }
.ac-style-light .ac-timer-status { background: #f1f5f9; color: #334155; }
.ac-style-light .ac-time-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.ac-style-light .ac-time-card:hover {
    border-color: #0f172a;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
}
.ac-style-light .ac-time-num { color: #0f172a; }
.ac-style-light .ac-time-label { color: #475569; }
.ac-style-light .ac-time-colon { color: #0f172a; }
.ac-style-light .ac-footer-block { border-top-color: #f1f5f9; }
.ac-style-light .ac-timer-range { color: #475569; }
.ac-style-light .ac-timer-status.ac-ended { color: #ffffff; background: #0f172a; }

/* 移动端响应式适配 (375px ~ 576px) */
@media (max-width: 576px) {
    .ac-container {
        padding: 18px 16px;
    }
    .ac-title {
        font-size: 18px;
    }
    .ac-content {
        font-size: 13px;
        max-width: 100%;
    }
    .ac-timer-boxes {
        gap: 4px;
    }
    .ac-time-card {
        min-width: 48px;
        padding: 8px 6px;
    }
    .ac-time-num {
        font-size: 22px;
    }
    .ac-time-label {
        font-size: 10px;
    }
    .ac-time-colon {
        font-size: 18px;
        margin-top: -10px;
    }
}
