/* ============ 摸鱼闹钟 v1 ============ */
.ma-hero {
    margin-top: 28px;
    padding: 24px 28px;
    border-radius: 18px;
    background: linear-gradient(160deg, #232a45 0%, #1c2340 55%, #17203c 100%);
    border: 1px solid #3a4470;
    box-shadow: 0 12px 34px rgba(40, 60, 140, 0.22);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.ma-hero::before {
    content: '';
    position: absolute;
    top: -70%;
    right: -8%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(255, 170, 70, 0.18), transparent 65%);
    pointer-events: none;
}
.ma-hero-left {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}
.ma-status-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}
.ma-status-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}
.ma-status-sub {
    font-size: 13px;
    color: #9aa3c4;
    margin-top: 3px;
    line-height: 1.5;
}
.ma-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.ma-btn {
    padding: 10px 18px;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
}
.ma-btn:active { transform: translateY(1px); }
.ma-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ma-btn-primary {
    background: linear-gradient(135deg, #ffb347, #ff8c42);
    color: #3a2400;
    box-shadow: 0 6px 18px rgba(255, 140, 66, 0.35);
}
.ma-btn-primary:hover { box-shadow: 0 8px 24px rgba(255, 140, 66, 0.5); }
.ma-btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #dfe4f5;
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.ma-btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.ma-btn-sm { padding: 8px 14px; font-size: 13px; }

/* ---------- 任性模式 ---------- */
.ma-power {
    margin-top: 18px;
    padding: 16px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.12), rgba(255, 179, 71, 0.06));
    border: 1px solid rgba(255, 150, 80, 0.28);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.ma-power-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}
.ma-power-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: rgba(255, 179, 71, 0.14);
    border: 1px solid rgba(255, 179, 71, 0.2);
    flex-shrink: 0;
}
.ma-power-title {
    font-size: 15px;
    font-weight: 800;
    color: #ffd9a8;
}
.ma-power-sub {
    font-size: 12.5px;
    color: #9aa3c4;
    margin-top: 3px;
    line-height: 1.6;
}
.ma-power-sub b {
    color: #ffb347;
    font-weight: 700;
}

/* ---------- 卡片区 ---------- */
.ma-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 22px;
}
@media (max-width: 900px) {
    .ma-cards { grid-template-columns: 1fr; }
}
.ma-card {
    background: #1a2138;
    border: 1px solid #2c3554;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ma-card:hover {
    border-color: #3d4875;
    box-shadow: 0 8px 24px rgba(20, 30, 70, 0.25);
}
.ma-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ma-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}
.ma-card-title { flex: 1; min-width: 0; }
.ma-card-title h3 {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}
.ma-card-title p {
    font-size: 12px;
    color: #8b93b4;
    margin: 4px 0 0;
    line-height: 1.5;
}
.ma-card-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ma-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ma-field label {
    font-size: 12px;
    color: #9aa3c4;
}
.ma-field input {
    background: #12182c;
    border: 1px solid #2c3554;
    border-radius: 10px;
    color: #e8ebf7;
    padding: 9px 12px;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.ma-field input:focus {
    outline: none;
    border-color: #ff9d4d;
    box-shadow: 0 0 0 3px rgba(255, 157, 77, 0.15);
}
.ma-card-status {
    font-size: 13px;
    color: #8b93b4;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 10px 12px;
    line-height: 1.5;
}
.ma-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---------- 上班日 ---------- */
.ma-days {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ma-days-label {
    font-size: 12px;
    color: #9aa3c4;
    margin-right: 2px;
}
.ma-days button {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    border: 1px solid #2c3554;
    background: #12182c;
    color: #8b93b4;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.ma-days button:hover { border-color: #4a5688; color: #cfd6ee; }
.ma-days button.active {
    background: linear-gradient(135deg, #ffb347, #ff8c42);
    border-color: transparent;
    color: #3a2400;
    font-weight: 800;
}

/* ---------- 开关 ---------- */
.ma-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}
.ma-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.ma-switch span {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: #2c3554;
    transition: background 0.2s;
}
.ma-switch span::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s;
}
.ma-switch input:checked + span {
    background: linear-gradient(135deg, #ffb347, #ff8c42);
}
.ma-switch input:checked + span::before {
    transform: translateX(20px);
}

/* ---------- 下一次提醒 ---------- */
.ma-next {
    margin-top: 22px;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px dashed #3d4875;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.ma-next-label {
    font-size: 13px;
    color: #9aa3c4;
}
.ma-next-value {
    font-size: 15px;
    font-weight: 800;
    color: #ffb347;
    font-variant-numeric: tabular-nums;
}

/* ---------- 页内浮条 ---------- */
.ma-toast-wrap {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.ma-toast {
    max-width: 320px;
    background: #232b4a;
    border: 1px solid #3a4470;
    border-left: 4px solid #ff9d4d;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    animation: maToastIn 0.3s ease;
    transition: opacity 0.35s, transform 0.35s;
}
.ma-toast.out {
    opacity: 0;
    transform: translateY(10px);
}
.ma-toast-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}
.ma-toast-body {
    font-size: 13px;
    color: #b6bedb;
    margin-top: 3px;
    line-height: 1.5;
}
@keyframes maToastIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- 全宽卡片 ---------- */
.ma-card--full {
    grid-column: 1 / -1;
}

/* ---------- 自定义提醒表单 & 列表 ---------- */
.ma-custom-form {
    display: grid;
    grid-template-columns: 2fr 3fr 120px 120px 120px auto;
    gap: 12px;
    align-items: end;
}
@media (max-width: 900px) {
    .ma-custom-form {
        grid-template-columns: 1fr;
    }
}
.ma-field--grow { grid-column: span 1; }
.ma-field--short input,
.ma-field--short select {
    min-width: 0;
}
.ma-field select {
    background: #12182c;
    border: 1px solid #2c3554;
    border-radius: 10px;
    color: #e8ebf7;
    padding: 9px 10px;
    font-size: 15px;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
}
.ma-field select:focus {
    outline: none;
    border-color: #ff9d4d;
    box-shadow: 0 0 0 3px rgba(255, 157, 77, 0.15);
}
.ma-field input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8);
    cursor: pointer;
}
.ma-custom-list {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ma-custom-empty {
    padding: 18px;
    text-align: center;
    color: #6c7698;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px dashed #2c3554;
}
.ma-custom-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #2c3554;
    transition: background 0.15s;
}
.ma-custom-item.disabled { opacity: 0.55; }
.ma-custom-item:hover { background: rgba(255, 255, 255, 0.07); }
.ma-custom-info { min-width: 0; }
.ma-custom-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ma-custom-meta {
    font-size: 11.5px;
    color: #ffb347;
    margin-top: 2px;
}
.ma-custom-body {
    font-size: 12px;
    color: #9aa3c4;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ma-custom-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ---------- 页面内强力兜底弹窗 ---------- */
.ma-page-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.ma-page-modal.shown {
    opacity: 1;
    pointer-events: auto;
}
.ma-page-modal.hidden {
    opacity: 0;
    pointer-events: none;
}
.ma-page-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 30, 0.85);
    backdrop-filter: blur(4px);
}
.ma-page-modal-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    background: linear-gradient(160deg, #232b4a 0%, #1a2138 100%);
    border: 1px solid #3d4875;
    border-radius: 22px;
    padding: 34px 28px 28px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 157, 77, 0.2) inset;
    animation: maModalIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.ma-page-modal-icon {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 10px;
    animation: maModalBell 1s ease infinite alternate;
}
.ma-page-modal-title {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
}
.ma-page-modal-body {
    font-size: 16px;
    color: #c8cee6;
    line-height: 1.7;
    margin-bottom: 24px;
}
@keyframes maModalIn {
    from { opacity: 0; transform: scale(0.86) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes maModalBell {
    from { transform: rotate(-6deg) scale(1); }
    to { transform: rotate(6deg) scale(1.08); }
}

/* ---------- 屏幕闪白 ---------- */
.ma-screen-flash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(255, 180, 80, 0.0);
    pointer-events: none;
    transition: background 0.18s ease;
}
.ma-screen-flash.active { background: rgba(255, 180, 80, 0.18); }

/* ---------- 小按钮/小开关 ---------- */
.ma-btn-xs {
    padding: 5px 9px;
    font-size: 12px;
    border-radius: 8px;
}
.ma-switch--sm {
    width: 38px;
    height: 20px;
}
.ma-switch--sm span { border-radius: 20px; }
.ma-switch--sm span::before {
    width: 16px;
    height: 16px;
    left: 2px;
    top: 2px;
}
.ma-switch--sm input:checked + span::before { transform: translateX(18px); }
.ma-switch--sm input:checked + span { background: linear-gradient(135deg, #4cd964, #2eb872); }
