/* 活动报名管理（学务通后台） */
.eps-page { max-width: 1180px; margin: 0 auto; }
.eps-hero {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 24px 26px;
    margin-bottom: 18px;
    color: #fff8ec;
    background:
        radial-gradient(700px 240px at 8% 0%, rgba(216, 173, 108, .38), transparent 70%),
        radial-gradient(520px 220px at 100% 30%, rgba(76, 108, 86, .35), transparent 70%),
        linear-gradient(140deg, #2c2118, #1b1511);
}
.eps-hero::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -70px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 0 0 30px rgba(255, 255, 255, .03), 0 0 0 60px rgba(255, 255, 255, .02);
    pointer-events: none;
}
.eps-hero-top { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.eps-hero h1 {
    margin: 0 0 6px;
    font-size: 26px;
    line-height: 1.3;
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    letter-spacing: .01em;
}
.eps-hero p { margin: 0; font-size: 13px; color: rgba(255, 248, 236, .68); max-width: 640px; }
.eps-hero-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.eps-hero .btn-primary {
    background: #f2d8ac;
    color: #2a1e15;
    border-color: transparent;
    font-weight: 600;
}
.eps-hero .btn-outline {
    border-color: rgba(255, 248, 236, .3);
    color: #fff8ec;
    background: rgba(255, 255, 255, .06);
}

.eps-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.eps-toolbar .eps-search {
    flex: 1 1 220px;
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, #e3ded6);
    border-radius: 10px;
    padding: 0 11px;
}
.eps-toolbar .eps-search input {
    border: 0;
    outline: none;
    background: transparent;
    padding: 10px 0;
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: var(--color-text, #2a2420);
}
.eps-tabs { display: inline-flex; background: rgba(0, 0, 0, .04); border-radius: 10px; padding: 3px; gap: 2px; }
.eps-tab {
    border: 0;
    background: transparent;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--color-text-secondary, #6c6258);
    white-space: nowrap;
}
.eps-tab.active { background: var(--color-surface, #fff); color: var(--color-text, #2a2420); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); font-weight: 600; }

.eps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.eps-card {
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border-light, #eee9e1);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s, box-shadow .18s;
    min-width: 0;
}
.eps-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(45, 32, 20, .09); }
.eps-cover {
    height: 152px;
    background:
        radial-gradient(280px 120px at 20% 0%, rgba(216, 173, 108, .5), transparent 70%),
        linear-gradient(145deg, #d8c3a5, #a9835b);
    position: relative;
}
.eps-cover img { width: 100%; height: 100%; object-fit: cover; }
.eps-cover.plain {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(320px 150px at 18% 0%, rgba(216, 173, 108, .5), transparent 70%),
        linear-gradient(145deg, #d8c3a5, #a9835b);
}
.eps-cover.plain.act-plain-cover {
    background:
        radial-gradient(300px 150px at 80% 10%, rgba(63, 93, 71, .35), transparent 70%),
        linear-gradient(145deg, #d9cdb9, #a89a86);
}
.act-cover-ic { color: rgba(255, 255, 255, .75); display: flex; }
.ev-quick-ok {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border-radius: 50%;
    background: #3f5d47;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.eps-cover .eps-cover-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(24, 17, 12, .56);
    color: #ffe9c7;
    font-size: 11px;
    backdrop-filter: blur(6px);
}
.eps-card-body { padding: 14px 15px 15px; flex: 1; display: flex; flex-direction: column; }
.eps-card-title { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.eps-card-title h3 { margin: 0; font-size: 16px; line-height: 1.4; flex: 1; min-width: 0; }
.eps-card-sub { margin: 0 0 10px; font-size: 12px; color: var(--color-text-secondary, #857a6d); line-height: 1.55; min-height: 18px; }
.eps-card-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 11.5px; color: var(--color-text-secondary, #857a6d); margin-bottom: 12px; }
.eps-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.eps-card-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.eps-card-foot .eps-count { font-size: 12px; color: var(--color-text-secondary, #857a6d); margin-right: auto; }
.eps-card-foot .eps-count b { color: var(--color-text, #2a2420); font-size: 16px; }
.eps-empty {
    padding: 56px 20px;
    text-align: center;
    color: var(--color-text-secondary, #857a6d);
    background: var(--color-surface, #fff);
    border: 1px dashed var(--color-border, #e3ded6);
    border-radius: 16px;
    font-size: 14px;
}

.eps-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    white-space: nowrap;
    background: rgba(120, 110, 100, .12);
    color: #6c6258;
}
.eps-badge.published { background: rgba(63, 93, 71, .12); color: #3f5d47; }
.eps-badge.draft { background: rgba(182, 129, 63, .14); color: #9a6b2e; }
.eps-badge.closed { background: rgba(163, 61, 51, .1); color: #a33d33; }
.eps-badge.pending { background: rgba(182, 129, 63, .14); color: #9a6b2e; }
.eps-badge.approved { background: rgba(63, 93, 71, .12); color: #3f5d47; }
.eps-badge.rejected { background: rgba(163, 61, 51, .1); color: #a33d33; }
.eps-badge.cancelled { background: rgba(120, 110, 100, .12); color: #6c6258; }
.eps-badge.unpaid { background: rgba(182, 129, 63, .18); color: #8a5f27; }
.eps-pay-amount { margin-top: 3px; font-size: 11px; color: #857a6d; }
.eps-pay-channel { margin-left: 6px; font-size: 11px; color: #857a6d; }
.eps-pay-free { font-size: 12px; color: #a89a89; }

/* 编辑器 */
.eps-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.eps-panel {
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border-light, #eee9e1);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 14px;
}
.eps-panel h3 { margin: 0 0 14px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.eps-panel h3 .eps-hint { font-size: 11px; font-weight: 400; color: var(--color-text-secondary, #857a6d); }
.eps-field { margin-bottom: 13px; }
.eps-field > label { display: block; font-size: 12.5px; font-weight: 600; color: var(--color-text, #2a2420); margin-bottom: 6px; }
.eps-field .eps-help { font-size: 11px; color: var(--color-text-secondary, #857a6d); margin-top: 4px; }
.eps-field input[type="text"], .eps-field input[type="number"], .eps-field input[type="datetime-local"],
.eps-field textarea, .eps-field select,
.eps-repeat input, .eps-repeat textarea, .eps-repeat select {
    width: 100%;
    border: 1px solid var(--color-border, #e3ded6);
    border-radius: 9px;
    padding: 9px 11px;
    font-size: 14px;
    background: var(--color-bg, #fff);
    color: var(--color-text, #2a2420);
    outline: none;
}
.eps-field input:focus, .eps-field textarea:focus, .eps-field select:focus { border-color: #b6813f; box-shadow: 0 0 0 3px rgba(182, 129, 63, .12); }
.eps-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.eps-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.eps-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.eps-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid var(--color-border, #e3ded6);
    border-radius: 9px;
    font-size: 12.5px;
    cursor: pointer;
    background: var(--color-bg, #fff);
}
.eps-check input { accent-color: #b6813f; }

.eps-repeat { display: grid; gap: 8px; }
.eps-repeat-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 9px;
    border: 1px solid var(--color-border-light, #eee9e1);
    border-radius: 10px;
    background: rgba(0, 0, 0, .012);
}
.eps-repeat-row .eps-repeat-fields { flex: 1; display: grid; gap: 7px; min-width: 0; }
.eps-repeat-row .eps-del {
    border: 0;
    background: transparent;
    color: #a33d33;
    padding: 6px;
    border-radius: 6px;
    flex: 0 0 auto;
}
.eps-repeat-row .eps-del:hover { background: rgba(163, 61, 51, .08); }
.eps-add-btn {
    border: 1px dashed var(--color-border, #d8d0c5);
    background: transparent;
    color: var(--color-text-secondary, #857a6d);
    border-radius: 9px;
    padding: 9px;
    font-size: 12.5px;
    width: 100%;
}
.eps-add-btn:hover { border-color: #b6813f; color: #b6813f; }

/* 封面 / 图片 */
.eps-cover-picker { display: flex; gap: 10px; align-items: flex-start; }
.eps-cover-preview {
    width: 112px;
    height: 148px;
    border-radius: 12px;
    overflow: hidden;
    background: #efe6d8;
    border: 1px solid var(--color-border, #e3ded6);
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a89a89;
    font-size: 11px;
}
.eps-cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.eps-cover-actions { flex: 1; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.eps-cover-actions .btn { justify-content: center; }
.eps-url-row { display: flex; gap: 6px; }
.eps-url-row input { flex: 1; min-width: 0; }
.eps-gallery-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.eps-gallery-item { position: relative; width: 86px; height: 86px; border-radius: 10px; overflow: hidden; border: 1px solid var(--color-border, #e3ded6); }
.eps-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.eps-gallery-item button {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 0;
    background: rgba(20, 14, 10, .62);
    color: #fff;
    font-size: 12px;
    line-height: 20px;
    padding: 0;
}

/* 富文本（仅电脑端显示） */
.eps-rte-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 7px;
    border: 1px solid var(--color-border, #e3ded6);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    background: rgba(0, 0, 0, .02);
}
.eps-rte-toolbar button {
    border: 0;
    background: transparent;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--color-text-secondary, #857a6d);
}
.eps-rte-toolbar button:hover { background: rgba(182, 129, 63, .12); color: #9a6b2e; }
.eps-rte {
    min-height: 220px;
    max-height: 520px;
    overflow-y: auto;
    border: 1px solid var(--color-border, #e3ded6);
    border-radius: 0 0 10px 10px;
    padding: 14px 16px;
    background: var(--color-bg, #fff);
    font-size: 14px;
    line-height: 1.8;
    outline: none;
}
.eps-rte:focus { border-color: #b6813f; }
.eps-rte h2 { font-size: 18px; margin: 16px 0 8px; }
.eps-rte p { margin: 0 0 10px; }
.eps-mobile-only-note { display: none; font-size: 12px; color: var(--color-text-secondary, #857a6d); padding: 10px; border: 1px dashed var(--color-border, #e3ded6); border-radius: 9px; }

/* 右侧提要 */
.eps-side { position: sticky; top: 12px; }
.eps-link-box { display: flex; gap: 6px; }
.eps-link-box input { flex: 1; min-width: 0; font-size: 12px; }
.eps-mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.eps-mini-stat { padding: 10px; border-radius: 10px; background: rgba(182, 129, 63, .07); border: 1px solid rgba(182, 129, 63, .14); }
.eps-mini-stat b { display: block; font-size: 18px; }
.eps-mini-stat span { font-size: 11px; color: var(--color-text-secondary, #857a6d); }

.eps-savebar {
    position: fixed;
    z-index: 60;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .95);
    border-top: 1px solid var(--color-border-light, #eee9e1);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}
.eps-savebar .eps-save-hint { margin-right: auto; font-size: 12px; color: var(--color-text-secondary, #857a6d); }

/* 报名名单 */
.eps-stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.eps-hub-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.eps-stat {
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border-light, #eee9e1);
    border-radius: 14px;
    padding: 14px 15px;
    min-width: 0;
}
.eps-stat b { display: block; font-size: 24px; line-height: 1.2; }
.eps-stat span { font-size: 11.5px; color: var(--color-text-secondary, #857a6d); }
.eps-stat.gold b { color: #9a6b2e; }
.eps-stat.green b { color: #3f5d47; }
.eps-table-wrap { overflow-x: auto; background: var(--color-surface, #fff); border: 1px solid var(--color-border-light, #eee9e1); border-radius: 14px; }
.eps-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.eps-table th, .eps-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--color-border-light, #f1ece4); white-space: nowrap; }
.eps-table th { font-size: 11.5px; color: var(--color-text-secondary, #857a6d); font-weight: 600; background: rgba(0, 0, 0, .015); }
.eps-table tr:last-child td { border-bottom: 0; }
.eps-table td.eps-wrap { white-space: normal; min-width: 150px; }
.eps-row-actions { display: flex; gap: 4px; }
.eps-row-actions .btn { padding: 3px 7px; font-size: 11px; }
.eps-pager { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; font-size: 12px; color: var(--color-text-secondary, #857a6d); }
.eps-mobile-cards { display: none; }
.eps-reg-card {
    padding: 12px 13px;
    border: 1px solid var(--color-border-light, #eee9e1);
    border-radius: 12px;
    background: var(--color-surface, #fff);
    margin-bottom: 8px;
}
.eps-reg-card-top { display: flex; align-items: center; gap: 8px; }
.eps-reg-card-top b { font-size: 15px; }
.eps-reg-card-top .eps-badge { margin-left: auto; }
.eps-reg-card-meta { font-size: 12px; color: var(--color-text-secondary, #857a6d); margin-top: 5px; }
.eps-feedback-list { display: grid; gap: 8px; max-height: 240px; overflow-y: auto; }
.eps-feedback-item {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--color-border-light, #eee9e1);
    background: rgba(0, 0, 0, .012);
}
.eps-feedback-top { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--color-text-secondary, #857a6d); margin-bottom: 5px; }
.eps-feedback-item p { margin: 0; font-size: 13px; line-height: 1.65; white-space: pre-wrap; }
.eps-feedback-by { margin-top: 5px; font-size: 11px; color: var(--color-text-secondary, #857a6d); text-align: right; }

/* 图片选择弹窗 */
.eps-picker-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-height: 52vh; overflow-y: auto; padding: 2px; }
.eps-picker-item { position: relative; padding-top: 78%; border-radius: 9px; overflow: hidden; border: 2px solid transparent; background: #eee6da; cursor: pointer; }
.eps-picker-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.eps-picker-item.selected { border-color: #b6813f; }
.eps-picker-item .eps-picker-check {
    position: absolute; right: 5px; top: 5px; width: 18px; height: 18px; border-radius: 50%;
    background: #b6813f; color: #fff; font-size: 11px; line-height: 18px; text-align: center; display: none;
}
.eps-picker-item.selected .eps-picker-check { display: block; }

@media (max-width: 980px) {
    .eps-editor-layout { grid-template-columns: 1fr; }
    .eps-side { position: static; }
    .eps-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .eps-page { padding: 0 12px; }
    .eps-hero { border-radius: 14px; padding: 18px 16px; }
    .eps-hero h1 { font-size: 21px; }
    .eps-hero-actions { width: 100%; margin-left: 0; }
    .eps-hero-actions .btn { flex: 1 1 auto; }
    .eps-grid { grid-template-columns: 1fr; }
    .eps-row, .eps-row-3 { grid-template-columns: 1fr; }
    .eps-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .eps-table-wrap { display: none; }
    .eps-mobile-cards { display: block; }
    .eps-picker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .eps-rte-toolbar, .eps-rte { display: none; }
    .eps-mobile-only-note { display: block; }
    .eps-savebar { padding-left: 12px; padding-right: 12px; }
    .eps-panel { padding: 14px; border-radius: 14px; }
    .eps-cover-preview { width: 96px; height: 126px; }
}
