.remind-page {
    padding: 16px;
    max-width: 1400px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.remind-header {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.remind-title {
    font-size: 20px;
    font-weight: 700;
}

.remind-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.remind-nav a,
.remind-nav button {
    border: 1px solid #d9d9d9;
    background: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: #222;
    cursor: pointer;
}

.remind-nav a:hover,
.remind-nav button:hover {
    background: #f6f6f6;
}

.remind-nav .active {
    border-color: #1677ff;
    color: #1677ff;
    font-weight: 700;
}

.months-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.month-card {
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.month-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    font-weight: 700;
}

.month-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.month-table th {
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    padding: 6px 0;
    background: #fcfcfc;
    border-bottom: 1px solid #eee;
}

.month-table td {
    border: 1px solid #f0f0f0;
    vertical-align: top;
    height: 88px;
    padding: 6px;
    cursor: pointer;
    position: relative;
}

.month-table td:hover {
    background: #f7fbff;
}

.day-number {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.day-meta {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 12px;
    color: #999;
}

.is-today {
    background: #fff2f0;
}

.is-other-month {
    background: #fafafa;
    color: #aaa;
}

.is-weekend .day-number {
    color: #d4380d;
}

.reminder-item {
    display: block;
    font-size: 12px;
    line-height: 1.35;
    padding: 2px 6px;
    margin: 2px 0;
    border-radius: 6px;
    background: #e6f4ff;
    color: #0b3a5d;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reminder-item:hover {
    background: #bae0ff;
}

.remind-footer-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-mask {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-mask.open {
    display: flex;
}

.modal {
    width: min(520px, calc(100vw - 24px));
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 12px 14px;
    background: #1677ff;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.modal-close {
    appearance: none;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
}

.modal-body {
    padding: 14px;
}

.form-row {
    margin-bottom: 10px;
}

.form-row label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    font-weight: 700;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    outline: none;
}

.form-row textarea {
    height: 90px;
    resize: vertical;
}

.preset-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.preset-btn {
    border: 1px solid #d9d9d9;
    background: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
}

.preset-btn:hover {
    background: #f6f6f6;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 12px 14px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.btn {
    border: 1px solid #d9d9d9;
    background: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    color: #222;
}

.btn-primary {
    border-color: #1677ff;
    background: #1677ff;
    color: #fff;
}

.btn-primary:hover {
    background: #0958d9;
    border-color: #0958d9;
}

.btn:hover {
    background: #f6f6f6;
}
