/* ============================================================
   周月复盘 review.s1.css
   靛蓝渐变主题 + 玻璃拟态，移动端自适应
   ============================================================ */

.rvw-card {
    background: linear-gradient(160deg, rgba(255,255,255,0.96), rgba(238,242,255,0.92));
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.10);
    padding: 22px;
    position: relative;
    overflow: hidden;
}
.rvw-card::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(139,92,246,0.10), transparent 70%);
    pointer-events: none;
}
.rvw-card::after {
    content: '';
    position: absolute;
    bottom: -40px; left: -40px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(99,102,241,0.08), transparent 70%);
    pointer-events: none;
}
.rvw-icon {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
    animation: rvw-breath 3s ease-in-out infinite;
}
@keyframes rvw-breath {
    0%, 100% { box-shadow: 0 6px 18px rgba(99,102,241,0.35); }
    50% { box-shadow: 0 6px 26px rgba(139,92,246,0.55); }
}

/* ---------- 登录引导 ---------- */
.rvw-login-guide { text-align: center; padding: 34px 16px 26px; position: relative; z-index: 1; }
.rvw-login-guide i { font-size: 40px; background: linear-gradient(135deg,#6366f1,#8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rvw-login-guide h3 { margin: 12px 0 6px; font-size: 1.05rem; color: #1e293b; }
.rvw-login-guide p { margin: 0 0 18px; font-size: 0.85rem; color: #64748b; }
.rvw-login-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.rvw-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;
}
.rvw-login-btns a.main { background: linear-gradient(135deg,#6366f1,#8b5cf6); color: #fff; box-shadow: 0 6px 16px rgba(99,102,241,0.35); }
.rvw-login-btns a.main:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(139,92,246,0.45); }
.rvw-login-btns a.ghost { border: 1.5px solid rgba(99,102,241,0.45); color: #4f46e5; background: rgba(255,255,255,0.7); }
.rvw-login-btns a.ghost:hover { background: rgba(99,102,241,0.08); }

/* ---------- Tabs ---------- */
.rvw-tabs {
    display: flex; gap: 5px; margin: 6px 0 16px;
    background: rgba(224,231,255,0.55); border: 1px solid rgba(99,102,241,0.28);
    padding: 5px; border-radius: 14px;
    position: relative; z-index: 1;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.rvw-tabs::-webkit-scrollbar { display: none; }
.rvw-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;
}
.rvw-tab i { font-size: 0.8rem; }
.rvw-tab:hover { color: #4f46e5; }
.rvw-tab.active {
    background: linear-gradient(135deg,#6366f1,#8b5cf6); color: #fff;
    box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}
.rvw-pane { display: none; animation: rvw-slide-in .3s ease; position: relative; z-index: 1; }
.rvw-pane.active { display: block; }
@keyframes rvw-slide-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 统计概览 ---------- */
.rvw-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.rvw-stat-card {
    background: rgba(255,255,255,0.8); border-radius: 14px; padding: 14px;
    border: 1px solid rgba(99,102,241,0.18);
}
.rvw-stat-card.c1 { background: linear-gradient(135deg, #e0e7ff, #fff); }
.rvw-stat-card.c2 { background: linear-gradient(135deg, #ede9fe, #fff); }
.rvw-stat-card.c3 { background: linear-gradient(135deg, #fef3c7, #fff); }
.rvw-stat-label { font-size: 0.78rem; color: #64748b; margin-bottom: 6px; }
.rvw-stat-label i { margin-right: 4px; }
.rvw-stat-value { font-size: 1.5rem; font-weight: 800; color: #1e293b; }
.rvw-stat-value small { font-size: 0.8rem; font-weight: 500; color: #64748b; }

/* ---------- 表单 ---------- */
.rvw-form-card {
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(99,102,241,0.22);
    border-radius: 16px; padding: 18px;
}
.rvw-form-title { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 700; color: #3730a3; margin-bottom: 16px; }
.rvw-form-title i { color: #6366f1; }

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

.rvw-textarea {
    width: 100%; box-sizing: border-box;
    padding: 11px 12px; border: 1.5px solid rgba(99,102,241,0.25);
    border-radius: 10px; font-size: 0.88rem; color: #1e293b;
    background: #fff; resize: vertical; font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.rvw-textarea:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.12); }

/* 评分 */
.rvw-rating { display: inline-flex; gap: 6px; }
.rvw-star {
    font-size: 1.6rem; color: #cbd5e1; cursor: pointer;
    transition: all .2s; line-height: 1;
}
.rvw-star:hover { transform: scale(1.15); }
.rvw-star.active { color: #f59e0b; }

/* 保存按钮 */
.rvw-save-row { display: flex; gap: 10px; margin-top: 6px; }
.rvw-save-btn {
    flex: 1; border: none; cursor: pointer;
    padding: 12px 20px; border-radius: 12px;
    font-size: 0.92rem; font-weight: 600; color: #fff;
    background: linear-gradient(135deg,#6366f1,#8b5cf6);
    box-shadow: 0 6px 16px rgba(99,102,241,0.35);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: all .25s ease;
}
.rvw-save-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(139,92,246,0.45); }
.rvw-cancel-btn {
    border: 1.5px solid rgba(99,102,241,0.4); cursor: pointer;
    padding: 12px 20px; border-radius: 12px;
    font-size: 0.92rem; font-weight: 600; color: #4f46e5; background: rgba(255,255,255,0.7);
    transition: all .2s;
}
.rvw-cancel-btn:hover { background: rgba(99,102,241,0.08); }

/* ---------- 月复盘CTA ---------- */
.rvw-monthly-cta { display: flex; justify-content: center; padding: 24px 0; }
.rvw-tip {
    display: flex; align-items: flex-start; gap: 8px;
    background: rgba(99,102,241,0.06); border: 1px solid rgba(99,102,241,0.2);
    border-radius: 10px; padding: 10px 14px; font-size: 0.82rem; color: #3730a3;
    margin-bottom: 16px;
}
.rvw-tip i { margin-top: 2px; color: #6366f1; flex-shrink: 0; }

/* ---------- 全部列表 ---------- */
.rvw-filter-row { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.rvw-filter-btn {
    border: 1.5px solid rgba(99,102,241,0.3); background: rgba(255,255,255,0.7);
    color: #4f46e5; cursor: pointer; padding: 7px 16px; border-radius: 999px;
    font-size: 0.82rem; font-weight: 600; transition: all .2s;
}
.rvw-filter-btn:hover { background: rgba(99,102,241,0.08); }
.rvw-filter-btn.active { background: linear-gradient(135deg,#6366f1,#8b5cf6); color: #fff; border-color: transparent; }

.rvw-list { display: flex; flex-direction: column; gap: 12px; }
.rvw-item {
    background: rgba(255,255,255,0.8); border: 1px solid rgba(99,102,241,0.18);
    border-radius: 14px; padding: 14px 16px;
    transition: all .2s;
}
.rvw-item:hover { box-shadow: 0 6px 20px rgba(99,102,241,0.10); transform: translateY(-1px); }
.rvw-item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.rvw-item-type {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.rvw-item-type.weekly { background: rgba(99,102,241,0.12); color: #4f46e5; }
.rvw-item-type.monthly { background: rgba(139,92,246,0.12); color: #7c3aed; }
.rvw-item-period { font-size: 0.9rem; font-weight: 700; color: #1e293b; }
.rvw-item-date { font-size: 0.75rem; color: #94a3b8; }
.rvw-item-rating { display: inline-flex; gap: 1px; }
.rvw-item-rating .fas { color: #f59e0b; font-size: 0.8rem; }
.rvw-item-rating .far { color: #e2e8f0; font-size: 0.8rem; }
.rvw-item-body { font-size: 0.82rem; color: #475569; line-height: 1.6; }
.rvw-item-section { margin-bottom: 6px; }
.rvw-item-section:last-child { margin-bottom: 0; }
.rvw-item-label { font-weight: 600; color: #3730a3; margin-right: 6px; }
.rvw-item-actions { display: flex; gap: 8px; margin-top: 10px; }
.rvw-item-btn {
    border: none; background: rgba(99,102,241,0.08); color: #4f46e5;
    padding: 6px 12px; border-radius: 8px; cursor: pointer;
    font-size: 0.78rem; font-weight: 600; transition: all .2s;
    display: inline-flex; align-items: center; gap: 5px;
}
.rvw-item-btn:hover { background: rgba(99,102,241,0.18); }
.rvw-item-btn.del { color: #ef4444; background: rgba(239,68,68,0.08); }
.rvw-item-btn.del:hover { background: rgba(239,68,68,0.18); }

.rvw-empty { text-align: center; padding: 36px 16px; color: #94a3b8; }
.rvw-empty i { font-size: 2.2rem; margin-bottom: 10px; opacity: 0.5; }
.rvw-empty div { font-size: 0.85rem; }

.rvw-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.rvw-page-btn {
    border: 1.5px solid rgba(99,102,241,0.3); background: #fff; color: #4f46e5;
    cursor: pointer; padding: 6px 12px; border-radius: 8px;
    font-size: 0.82rem; font-weight: 600; transition: all .2s;
}
.rvw-page-btn:hover:not(:disabled) { background: rgba(99,102,241,0.08); }
.rvw-page-btn.active { background: linear-gradient(135deg,#6366f1,#8b5cf6); color: #fff; border-color: transparent; }
.rvw-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- Toast ---------- */
.rvw-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 #6366f1;
    animation: rvw-toast-in .3s ease;
    max-width: 90vw;
}
.rvw-toast.success { border-left-color: #10b981; }
.rvw-toast.error { border-left-color: #ef4444; }
.rvw-toast.warning { border-left-color: #f59e0b; }
.rvw-toast.info { border-left-color: #3b82f6; }
.rvw-toast i { font-size: 1rem; }
.rvw-toast.success i { color: #10b981; }
.rvw-toast.error i { color: #ef4444; }
.rvw-toast.warning i { color: #f59e0b; }
.rvw-toast.info i { color: #3b82f6; }
@keyframes rvw-toast-in { from { opacity: 0; transform: translateX(-50%) translateY(-15px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ---------- 响应式 ---------- */
@media (max-width: 600px) {
    .rvw-card { padding: 14px; border-radius: 16px; }
    .rvw-tab { padding: 8px 10px; font-size: 0.78rem; }
    .rvw-tab i { display: none; }
    .rvw-stats-row { gap: 8px; }
    .rvw-stat-card { padding: 12px; }
    .rvw-stat-value { font-size: 1.25rem; }
    .rvw-form-card { padding: 14px; }
    .rvw-field-row { gap: 8px; }
    .rvw-star { font-size: 1.4rem; }
}
