/* ============ 列表项（原 a 改为 div） ============ */
.flash-item {
    cursor: pointer;
}
.flash-share-list {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 14px;
}

/* ============ 顶部日期栏 ============ */
.flashes-date-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.fdb-date-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e6e8f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-size: 14px;
    font-weight: 600;
    color: #4a3f8f;
    cursor: pointer;
    transition: all 0.25s;
    max-width: 100%;
}
.fdb-date-btn:hover {
    border-color: #667eea;
    color: #667eea;
}
.fdb-date-btn .fdb-caret {
    font-size: 16px;
}
.fdb-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
}
.fdb-back-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.35);
}

/* ============ 日历弹窗 ============ */
.flash-cal-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
}
.flash-cal-modal.show {
    display: block;
}
.flash-cal-modal .fcm-mask {
    position: absolute;
    inset: 0;
    background: rgba(10, 8, 24, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fsmFade 0.2s ease;
}
.flash-cal-modal .fcm-dialog {
    position: relative;
    width: min(380px, calc(100vw - 32px));
    margin: 8vh auto 0;
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
    animation: fsmPop 0.25s ease;
    max-height: 84vh;
    overflow-y: auto;
}
.flash-cal-modal .fcm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.flash-cal-modal .fcm-nav {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #f2f3f9;
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}
.flash-cal-modal .fcm-nav:hover {
    background: #667eea;
    color: #fff;
}
.flash-cal-modal .fcm-month-label {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}
.flash-cal-modal .fcm-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}
.flash-cal-modal .fcm-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.flash-cal-modal .fcm-grid-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px 0;
    color: #999;
    font-size: 14px;
}
.flash-cal-modal .fcm-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #333;
    position: relative;
}
.flash-cal-modal .fcm-cell em {
    font-style: normal;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.1;
}
.flash-cal-modal .fcm-cell small {
    font-size: 10px;
    color: #999;
    line-height: 1.2;
    margin-top: 2px;
    font-weight: 600;
}
.flash-cal-modal .fcm-cell.fcm-empty {
    visibility: hidden;
}
.flash-cal-modal .fcm-cell.is-future {
    color: #ccc;
}
.flash-cal-modal .fcm-cell.has-flash {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
    cursor: pointer;
    color: #5a48c9;
}
.flash-cal-modal .fcm-cell.has-flash small {
    color: #e74c3c;
    font-weight: 700;
}
.flash-cal-modal .fcm-cell.has-flash:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: scale(1.06);
}
.flash-cal-modal .fcm-cell.has-flash:hover small {
    color: rgba(255, 255, 255, 0.9);
}
.flash-cal-modal .fcm-cell.is-today {
    box-shadow: inset 0 0 0 2px #f5c66b;
}
.flash-cal-modal .fcm-cell.is-selected.is-today {
    box-shadow: inset 0 0 0 2px #667eea;
}
.flash-cal-modal .fcm-footer {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 12px;
}

/* ============ 快讯分享按钮（列表/详情通用） ============ */
.flash-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
}
.flash-share-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
}
.flash-footer-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* 详情页：顶部 meta 区分享按钮靠右 */
.flash-detail-meta {
    flex-wrap: wrap;
}
.flash-share-top {
    margin-left: auto;
}
.flash-detail-footer-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.flash-share-bottom {
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
}

/* ============ 分享弹窗 ============ */
.flash-share-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}
.flash-share-modal.show {
    display: block;
}
.flash-share-modal .fsm-mask {
    position: absolute;
    inset: 0;
    background: rgba(10, 8, 24, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fsmFade 0.2s ease;
}
.flash-share-modal .fsm-dialog {
    position: relative;
    width: min(420px, calc(100vw - 32px));
    margin: 5vh auto 0;
    background: #fff;
    border-radius: 18px;
    padding: 18px 18px 20px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
    animation: fsmPop 0.25s ease;
    max-height: 90vh;
    overflow-y: auto;
}
@keyframes fsmFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fsmPop {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.flash-share-modal .fsm-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    z-index: 2;
}
.flash-share-modal .fsm-close:hover {
    background: rgba(0, 0, 0, 0.12);
}
.flash-share-modal .fsm-body {
    border-radius: 12px;
    overflow: hidden;
    background: #17162e;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.flash-share-modal .fsm-preview {
    display: none;
    width: 100%;
    height: auto;
}
.flash-share-modal .fsm-loading {
    padding: 60px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
}
.flash-share-modal .fsm-spinner {
    display: inline-block;
    width: 34px;
    height: 34px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #f5c66b;
    border-radius: 50%;
    animation: fsmSpin 0.8s linear infinite;
    margin-bottom: 14px;
}
@keyframes fsmSpin {
    to { transform: rotate(360deg); }
}
.flash-share-modal .fsm-loading-text {
    margin: 0;
    font-size: 14px;
}
.flash-share-modal .fsm-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.flash-share-modal .fsm-btn {
    flex: 1;
    padding: 12px 8px;
    border-radius: 12px;
    border: 1px solid #e5e7f2;
    background: #f6f7fb;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.flash-share-modal .fsm-btn:hover {
    border-color: #667eea;
}
.flash-share-modal .fsm-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
}
.flash-share-modal .fsm-tip {
    margin: 12px 0 0;
    text-align: center;
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}

/* 社交平台直接分享 */
.flash-share-modal .fsm-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
}
.flash-share-modal .fsm-sicon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.flash-share-modal .fsm-sicon:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.flash-share-modal .fsm-x {
    background: #1a1a1a;
}
.flash-share-modal .fsm-tg {
    background: #2aabee;
}
.flash-share-modal .fsm-wa {
    background: #25d366;
}
.flash-share-modal .fsm-fb {
    background: #1877f2;
}
.flash-share-modal .fsm-native {
    display: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-size: 18px;
}
