/* ============================================================
   纪念日 anniversary.s1.css
   粉红玫瑰渐变主题 + 玻璃拟态，移动端自适应
   ============================================================ */

.ann-card {
    background: linear-gradient(160deg, rgba(255,255,255,0.96), rgba(253,242,248,0.92));
    border: 1px solid rgba(244, 114, 182, 0.35);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(236, 72, 153, 0.10);
    padding: 22px;
    position: relative;
    overflow: hidden;
}
.ann-card::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(244,63,94,0.10), transparent 70%);
    pointer-events: none;
}
.ann-card::after {
    content: '';
    position: absolute;
    bottom: -40px; left: -40px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(236,72,153,0.08), transparent 70%);
    pointer-events: none;
}
.ann-icon {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%) !important;
    box-shadow: 0 6px 18px rgba(236, 72, 153, 0.35);
    animation: ann-breath 3s ease-in-out infinite;
}
@keyframes ann-breath {
    0%, 100% { box-shadow: 0 6px 18px rgba(236,72,153,0.35); }
    50% { box-shadow: 0 6px 26px rgba(244,63,94,0.55); }
}

/* ---------- 登录引导 ---------- */
.ann-login-guide { text-align: center; padding: 34px 16px 26px; position: relative; z-index: 1; }
.ann-login-guide i { font-size: 40px; background: linear-gradient(135deg,#ec4899,#f43f5e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ann-login-guide h3 { margin: 12px 0 6px; font-size: 1.05rem; color: #1e293b; }
.ann-login-guide p { margin: 0 0 18px; font-size: 0.85rem; color: #64748b; }
.ann-login-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ann-login-btns a {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 26px; border-radius: 999px; text-decoration: none;
    font-size: 0.9rem; font-weight: 600; transition: all .25s ease;
}
.ann-login-btns a.main { background: linear-gradient(135deg,#ec4899,#f43f5e); color: #fff; box-shadow: 0 6px 16px rgba(236,72,153,0.35); }
.ann-login-btns a.main:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(244,63,94,0.45); }
.ann-login-btns a.ghost { border: 1.5px solid rgba(236,72,153,0.45); color: #db2777; background: rgba(255,255,255,0.7); }
.ann-login-btns a.ghost:hover { background: rgba(236,72,153,0.08); }

/* ---------- Tabs ---------- */
.ann-tabs {
    display: flex; gap: 5px; margin: 6px 0 16px;
    background: rgba(252,231,243,0.55); border: 1px solid rgba(244,114,182,0.28);
    padding: 5px; border-radius: 14px;
    position: relative; z-index: 1;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.ann-tabs::-webkit-scrollbar { display: none; }
.ann-tab {
    flex: 1 0 auto; border: none; background: transparent; cursor: pointer;
    padding: 9px 12px; border-radius: 10px; font-size: 0.85rem; font-weight: 600;
    color: #94a3b8; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    transition: all .22s ease; white-space: nowrap;
}
.ann-tab i { font-size: 0.8rem; }
.ann-tab:hover { color: #db2777; }
.ann-tab.active {
    background: linear-gradient(135deg,#ec4899,#f43f5e); color: #fff;
    box-shadow: 0 4px 14px rgba(236,72,153,0.35);
}
.ann-pane { display: none; animation: ann-slide-in .3s ease; position: relative; z-index: 1; }
.ann-pane.active { display: block; }
@keyframes ann-slide-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 新增按钮 ---------- */
.ann-add-row { margin-bottom: 16px; position: relative; z-index: 1; }
.ann-add-btn {
    width: 100%; border: none; cursor: pointer;
    padding: 13px 18px; border-radius: 14px;
    font-size: 0.92rem; font-weight: 600; color: #fff;
    background: linear-gradient(135deg,#ec4899,#f43f5e);
    box-shadow: 0 6px 16px rgba(236,72,153,0.35);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: all .25s ease;
}
.ann-add-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(244,63,94,0.45); }

/* ---------- 汇总卡 ---------- */
.ann-summary-card {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    background: linear-gradient(135deg, #fce7f3 0%, #fecdd3 100%);
    border-radius: 16px; padding: 18px 20px;
    border: 1px solid rgba(244,114,182,0.4);
    box-shadow: 0 6px 20px rgba(236,72,153,0.10);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.ann-summary-main { flex: 1; min-width: 0; }
.ann-summary-label { font-size: 0.78rem; color: #be185d; font-weight: 600; letter-spacing: 0.5px; }
.ann-summary-num { font-size: 2rem; font-weight: 800; color: #9d174d; margin: 4px 0 2px; line-height: 1; }
.ann-summary-sub { font-size: 0.82rem; color: #be185d; }
.ann-summary-side { display: flex; flex-direction: column; gap: 6px; }
.ann-summary-side-item { display: flex; align-items: center; gap: 7px; font-size: 0.82rem; color: #9d174d; font-weight: 500; }
.ann-sum-ico { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,0.5); display: inline-flex; align-items: center; justify-content: center; font-size: 0.72rem; }

/* ---------- 即将到来列表 ---------- */
.ann-coming-list { display: flex; flex-direction: column; gap: 10px; }
.ann-coming-item {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,0.8); border: 1px solid rgba(244,114,182,0.18);
    border-radius: 14px; padding: 14px 16px;
    transition: all .2s;
}
.ann-coming-item:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(236,72,153,0.12); }
.ann-coming-item.is-today { border-color: #ec4899; background: linear-gradient(135deg, rgba(252,231,243,0.9), rgba(254,205,211,0.6)); }
.ann-coming-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: #fff; flex-shrink: 0;
}
.ann-coming-info { flex: 1; min-width: 0; }
.ann-coming-title { font-size: 0.92rem; font-weight: 700; color: #1e293b; display: flex; align-items: center; gap: 6px; }
.ann-coming-title .ann-type-tag { font-size: 0.7rem; font-weight: 500; padding: 2px 8px; border-radius: 999px; color: #fff; }
.ann-coming-date { font-size: 0.78rem; color: #94a3b8; margin-top: 3px; }
.ann-coming-days { text-align: right; flex-shrink: 0; }
.ann-coming-days .ann-days-num { font-size: 1.6rem; font-weight: 800; color: #ec4899; line-height: 1; }
.ann-coming-days .ann-days-unit { font-size: 0.75rem; color: #94a3b8; }
.ann-coming-days.is-today .ann-days-num { color: #f43f5e; font-size: 1.3rem; }
.ann-coming-actions { display: flex; gap: 6px; margin-left: 8px; }
.ann-act-btn { border: none; background: rgba(236,72,153,0.08); color: #db2777; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 0.8rem; transition: all .2s; }
.ann-act-btn:hover { background: rgba(236,72,153,0.18); }
.ann-act-btn.del { color: #ef4444; background: rgba(239,68,68,0.08); }
.ann-act-btn.del:hover { background: rgba(239,68,68,0.18); }

/* ---------- 全部列表 ---------- */
.ann-sort-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.ann-sort-label { font-size: 0.82rem; color: #64748b; font-weight: 600; }
.ann-sort-btn {
    border: 1.5px solid rgba(244,114,182,0.25); background: #fff;
    padding: 6px 14px; border-radius: 999px; cursor: pointer;
    font-size: 0.78rem; color: #64748b; font-weight: 500; transition: all .2s;
}
.ann-sort-btn.active { background: linear-gradient(135deg,#ec4899,#f43f5e); color: #fff; border-color: transparent; }
.ann-list { display: flex; flex-direction: column; gap: 10px; }
.ann-list-item {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,0.8); border: 1px solid rgba(244,114,182,0.18);
    border-radius: 12px; padding: 12px 14px;
    transition: all .2s;
}
.ann-list-item:hover { background: rgba(255,255,255,0.95); }
.ann-list-icon {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: #fff; flex-shrink: 0;
}
.ann-list-info { flex: 1; min-width: 0; }
.ann-list-title { font-size: 0.88rem; font-weight: 600; color: #1e293b; }
.ann-list-meta { font-size: 0.75rem; color: #94a3b8; margin-top: 2px; display: flex; gap: 10px; flex-wrap: wrap; }
.ann-list-days { text-align: right; flex-shrink: 0; }
.ann-list-days-num { font-size: 1.15rem; font-weight: 700; color: #ec4899; line-height: 1; }
.ann-list-days-unit { font-size: 0.7rem; color: #94a3b8; }

/* ---------- 分类视图 ---------- */
.ann-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.ann-cat-card {
    background: rgba(255,255,255,0.8); border: 1px solid rgba(244,114,182,0.18);
    border-radius: 14px; padding: 14px 10px; text-align: center;
    cursor: pointer; transition: all .2s;
}
.ann-cat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(236,72,153,0.12); }
.ann-cat-card.active { border-color: #ec4899; background: linear-gradient(135deg, rgba(252,231,243,0.9), rgba(254,205,211,0.5)); }
.ann-cat-icon { font-size: 1.4rem; margin-bottom: 6px; }
.ann-cat-name { font-size: 0.8rem; color: #475569; font-weight: 600; margin-bottom: 2px; }
.ann-cat-count { font-size: 0.72rem; color: #94a3b8; }
.ann-cat-list { display: flex; flex-direction: column; gap: 10px; }

/* ---------- 空状态 ---------- */
.ann-empty { text-align: center; padding: 36px 16px; color: #94a3b8; }
.ann-empty i { font-size: 2.2rem; margin-bottom: 10px; opacity: 0.4; }
.ann-empty div { font-size: 0.85rem; }

/* ---------- 表单弹窗 ---------- */
.ann-modal-mask {
    position: fixed; inset: 0; background: rgba(15,23,42,0.45);
    z-index: 999998; display: flex; align-items: center; justify-content: center;
    padding: 16px; animation: ann-fade .2s ease;
}
@keyframes ann-fade { from { opacity: 0; } to { opacity: 1; } }
.ann-modal {
    background: #fff; border-radius: 18px; max-width: 460px; width: 100%;
    padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: ann-pop .25s ease;
    max-height: 88vh; overflow-y: auto;
}
@keyframes ann-pop { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
.ann-modal-title { font-size: 1.05rem; font-weight: 700; color: #9d174d; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.ann-modal-title i { color: #ec4899; }

.ann-field { margin-bottom: 14px; }
.ann-field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.ann-field-row .ann-field { flex: 1; min-width: 130px; }
.ann-field label { display: block; font-size: 0.82rem; font-weight: 600; color: #475569; margin-bottom: 7px; }
.ann-field label > i { color: #ec4899; margin-right: 4px; }
.ann-field input[type="text"], .ann-field input[type="date"], .ann-field select {
    width: 100%; padding: 10px 12px; border: 1.5px solid rgba(244,114,182,0.25);
    border-radius: 10px; font-size: 0.88rem; color: #1e293b;
    background: #fff; box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}
.ann-field input:focus, .ann-field select:focus { outline: none; border-color: #ec4899; box-shadow: 0 0 0 3px rgba(236,72,153,0.12); }

.ann-note-input {
    width: 100%; box-sizing: border-box;
    padding: 11px 12px; border: 1.5px solid rgba(244,114,182,0.25);
    border-radius: 10px; font-size: 0.88rem; color: #1e293b;
    background: #fff; resize: vertical; min-height: 70px; font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.ann-note-input:focus { outline: none; border-color: #ec4899; box-shadow: 0 0 0 3px rgba(236,72,153,0.12); }

/* 颜色选择 */
.ann-color-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.ann-color-item {
    width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
    border: 3px solid transparent; transition: all .2s;
    display: flex; align-items: center; justify-content: center;
}
.ann-color-item i { color: #fff; font-size: 0.8rem; opacity: 0; }
.ann-color-item.active { border-color: #fff; box-shadow: 0 0 0 2px #ec4899; }
.ann-color-item.active i { opacity: 1; }

/* 开关 */
.ann-switch-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-size: 0.86rem; color: #475569; }
.ann-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.ann-switch input { opacity: 0; width: 0; height: 0; }
.ann-switch i {
    position: absolute; inset: 0; cursor: pointer;
    background: #cbd5e1; border-radius: 999px; transition: .3s;
}
.ann-switch i::before {
    content: ''; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px;
    background: #fff; border-radius: 50%; transition: .3s;
}
.ann-switch input:checked + i { background: linear-gradient(135deg,#ec4899,#f43f5e); }
.ann-switch input:checked + i::before { transform: translateX(20px); }

/* 表单按钮 */
.ann-form-actions { display: flex; gap: 10px; margin-top: 6px; }
.ann-btn {
    flex: 1; border: none; cursor: pointer;
    padding: 12px 20px; border-radius: 12px;
    font-size: 0.92rem; font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: all .25s ease;
}
.ann-btn.primary {
    background: linear-gradient(135deg,#ec4899,#f43f5e); color: #fff;
    box-shadow: 0 6px 16px rgba(236,72,153,0.35);
}
.ann-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(244,63,94,0.45); }
.ann-btn.ghost {
    border: 1.5px solid rgba(244,114,182,0.4); color: #db2777; background: rgba(255,255,255,0.7);
}
.ann-btn.ghost:hover { background: rgba(236,72,153,0.08); }

/* ---------- Toast ---------- */
.ann-toast {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    background: #fff; padding: 12px 20px; border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: flex; align-items: center; gap: 10px;
    font-size: 0.88rem; font-weight: 500; z-index: 999999;
    border-left: 4px solid #ec4899;
    animation: ann-toast-in .3s ease;
    max-width: 90vw;
}
.ann-toast.success { border-left-color: #10b981; }
.ann-toast.error { border-left-color: #ef4444; }
.ann-toast.warning { border-left-color: #f59e0b; }
.ann-toast.info { border-left-color: #3b82f6; }
.ann-toast i { font-size: 1rem; }
.ann-toast.success i { color: #10b981; }
.ann-toast.error i { color: #ef4444; }
.ann-toast.warning i { color: #f59e0b; }
.ann-toast.info i { color: #3b82f6; }
@keyframes ann-toast-in { from { opacity: 0; transform: translateX(-50%) translateY(-15px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ---------- 响应式 ---------- */
@media (max-width: 600px) {
    .ann-card { padding: 14px; border-radius: 16px; }
    .ann-tab { padding: 8px 10px; font-size: 0.78rem; }
    .ann-tab i { display: none; }
    .ann-summary-card { padding: 14px; }
    .ann-summary-num { font-size: 1.6rem; }
    .ann-coming-item { padding: 12px; }
    .ann-coming-icon { width: 38px; height: 38px; font-size: 1rem; }
    .ann-coming-days .ann-days-num { font-size: 1.3rem; }
    .ann-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .ann-modal { padding: 16px; }
    .ann-field-row { gap: 8px; }
}
