/* ============================================================
   心愿清单 wish.s1.css
   金色渐变主题 + 玻璃拟态，移动端自适应
   ============================================================ */

.wish-card {
    background: linear-gradient(160deg, rgba(255,255,255,0.96), rgba(255,251,235,0.92));
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.10);
    padding: 22px;
    position: relative;
    overflow: hidden;
}
.wish-card::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(251,191,36,0.12), transparent 70%);
    pointer-events: none;
}
.wish-card::after {
    content: '';
    position: absolute;
    bottom: -40px; left: -40px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(245,158,11,0.08), transparent 70%);
    pointer-events: none;
}
.wish-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%) !important;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
    animation: wish-breath 3s ease-in-out infinite;
}
@keyframes wish-breath {
    0%, 100% { box-shadow: 0 6px 18px rgba(245,158,11,0.35); }
    50% { box-shadow: 0 6px 26px rgba(251,191,36,0.55); }
}

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

/* ---------- Tabs ---------- */
.wish-tabs {
    display: flex; gap: 5px; margin: 6px 0 16px;
    background: rgba(254,243,199,0.55); border: 1px solid rgba(251,191,36,0.28);
    padding: 5px; border-radius: 14px;
    position: relative; z-index: 1;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.wish-tabs::-webkit-scrollbar { display: none; }
.wish-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;
}
.wish-tab i { font-size: 0.8rem; }
.wish-tab:hover { color: #b45309; }
.wish-tab.active {
    background: linear-gradient(135deg,#f59e0b,#fbbf24); color: #fff;
    box-shadow: 0 4px 14px rgba(245,158,11,0.35);
}
.wish-pane { display: none; animation: wish-slide-in .3s ease; position: relative; z-index: 1; }
.wish-pane.active { display: block; }
@keyframes wish-slide-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 汇总概览 ---------- */
.wish-summary {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 16px; padding: 16px;
    border: 1px solid rgba(251,191,36,0.4);
    box-shadow: 0 6px 20px rgba(245,158,11,0.10);
    margin-bottom: 16px;
}
.wish-sum-item { text-align: center; display: flex; flex-direction: column; }
.wish-sum-num { font-size: 1.5rem; font-weight: 800; color: #92400e; line-height: 1.1; }
.wish-sum-label { font-size: 0.75rem; color: #b45309; margin-top: 4px; font-weight: 500; }

/* ---------- 新增按钮 ---------- */
.wish-add-row { display: flex; gap: 10px; margin-bottom: 16px; }
.wish-add-btn {
    flex: 1; border: none; cursor: pointer;
    padding: 13px 18px; border-radius: 14px;
    font-size: 0.92rem; font-weight: 600; color: #fff;
    background: linear-gradient(135deg,#f59e0b,#fbbf24);
    box-shadow: 0 6px 16px rgba(245,158,11,0.35);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: all .25s ease;
}
.wish-add-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(251,191,36,0.45); }

/* ---------- 心愿卡片网格 ---------- */
.wish-card-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;
}
.wish-item {
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(251,191,36,0.22);
    border-radius: 14px; padding: 14px;
    display: flex; flex-direction: column; gap: 8px;
    transition: all .2s; position: relative; overflow: hidden;
    backdrop-filter: blur(6px);
}
.wish-item:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(245,158,11,0.15); border-color: rgba(251,191,36,0.45); }
.wish-item.status-done { background: linear-gradient(135deg, rgba(16,185,129,0.06), rgba(255,255,255,0.85)); }
.wish-item.status-doing { border-left: 3px solid #f59e0b; }
.wish-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.wish-item-title { font-size: 0.95rem; font-weight: 700; color: #1e293b; line-height: 1.3; flex: 1; word-break: break-word; }
.wish-item.status-done .wish-item-title { color: #64748b; text-decoration: line-through; }
.wish-item-pri {
    flex-shrink: 0; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px;
    color: #fff; display: inline-flex; align-items: center; gap: 3px;
}
.wish-item-desc { font-size: 0.8rem; color: #64748b; line-height: 1.5; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wish-item-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.72rem; color: #94a3b8; }
.wish-item-meta .wish-tag {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(245,158,11,0.08); color: #b45309; padding: 2px 8px; border-radius: 999px;
}
.wish-item-meta .wish-tag.cost { color: #059669; background: rgba(16,185,129,0.08); }
.wish-item-meta .wish-tag.deadline { color: #dc2626; background: rgba(239,68,68,0.08); }
.wish-item-meta .wish-tag.deadline.soon { color: #fff; background: #ef4444; }
.wish-item-actions { display: flex; gap: 6px; margin-top: 4px; }
.wish-item-btn {
    border: none; cursor: pointer; font-size: 0.78rem; font-weight: 600;
    padding: 6px 10px; border-radius: 8px; transition: all .2s;
    display: inline-flex; align-items: center; gap: 4px;
}
.wish-item-btn.start { background: rgba(245,158,11,0.12); color: #b45309; }
.wish-item-btn.start:hover { background: rgba(245,158,11,0.22); }
.wish-item-btn.done { background: rgba(16,185,129,0.12); color: #059669; }
.wish-item-btn.done:hover { background: rgba(16,185,129,0.22); }
.wish-item-btn.edit { background: rgba(59,130,246,0.1); color: #2563eb; }
.wish-item-btn.edit:hover { background: rgba(59,130,246,0.2); }
.wish-item-btn.del { background: rgba(239,68,68,0.08); color: #dc2626; margin-left: auto; }
.wish-item-btn.del:hover { background: rgba(239,68,68,0.18); }

/* ---------- 空状态 ---------- */
.wish-empty { text-align: center; padding: 28px 16px; color: #94a3b8; }
.wish-empty i { font-size: 2rem; margin-bottom: 8px; opacity: 0.5; color: #f59e0b; }
.wish-empty div { font-size: 0.85rem; }

/* ---------- 表单（弹窗） ---------- */
.wish-form-title { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 700; color: #92400e; margin-bottom: 16px; }
.wish-form-title i { color: #f59e0b; }
.wish-field { margin-bottom: 14px; }
.wish-field label { display: block; font-size: 0.82rem; font-weight: 600; color: #475569; margin-bottom: 7px; }
.wish-field label i { color: #f59e0b; margin-right: 4px; }
.wish-field input[type="text"], .wish-field input[type="date"], .wish-field input[type="number"], .wish-field select {
    width: 100%; padding: 10px 12px; border: 1.5px solid rgba(251,191,36,0.25);
    border-radius: 10px; font-size: 0.88rem; color: #1e293b;
    background: #fff; box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}
.wish-field input:focus, .wish-field select:focus { outline: none; border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.12); }
.wish-field textarea {
    width: 100%; box-sizing: border-box;
    padding: 11px 12px; border: 1.5px solid rgba(251,191,36,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;
}
.wish-field textarea:focus { outline: none; border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.12); }
.wish-field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.wish-field-row .wish-field { flex: 1; min-width: 130px; }

.wish-priority-grid { display: flex; gap: 8px; }
.wish-pri-item {
    flex: 1; text-align: center; padding: 10px 6px;
    border: 1.5px solid rgba(251,191,36,0.25); border-radius: 12px;
    cursor: pointer; transition: all .2s; background: #fff;
}
.wish-pri-item .wish-pri-dot { width: 10px; height: 10px; border-radius: 50%; margin: 0 auto 5px; }
.wish-pri-item .wish-pri-name { font-size: 0.8rem; color: #64748b; font-weight: 500; }
.wish-pri-item.active { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.wish-pri-item.active .wish-pri-name { color: #1e293b; font-weight: 700; }

.wish-save-row { display: flex; gap: 10px; margin-top: 6px; }
.wish-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,#f59e0b,#fbbf24);
    box-shadow: 0 6px 16px rgba(245,158,11,0.35);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: all .25s ease;
}
.wish-save-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(251,191,36,0.45); }
.wish-cancel-btn {
    border: 1.5px solid rgba(251,191,36,0.4); cursor: pointer;
    padding: 12px 20px; border-radius: 12px;
    font-size: 0.92rem; font-weight: 600; color: #b45309; background: rgba(255,255,255,0.7);
    transition: all .2s;
}
.wish-cancel-btn:hover { background: rgba(245,158,11,0.08); }

/* ---------- 统计页 ---------- */
.wish-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.wish-stat-card {
    background: rgba(255,255,255,0.8); border-radius: 14px; padding: 14px;
    border: 1px solid rgba(251,191,36,0.18);
}
.wish-stat-card.c1 { background: linear-gradient(135deg, #fef3c7, #fff); }
.wish-stat-card.c2 { background: linear-gradient(135deg, #d1fae5, #fff); }
.wish-stat-card.c3 { background: linear-gradient(135deg, #dbeafe, #fff); }
.wish-stat-card.c4 { background: linear-gradient(135deg, #fef3c7, #fff); }
.wish-stat-label { font-size: 0.78rem; color: #64748b; margin-bottom: 6px; }
.wish-stat-label i { margin-right: 4px; }
.wish-stat-value { font-size: 1.5rem; font-weight: 800; color: #1e293b; }
.wish-stat-value small { font-size: 0.8rem; font-weight: 500; color: #64748b; }
.wish-stat-value.sm { font-size: 1.1rem; }

.wish-top-title { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 700; color: #92400e; margin: 18px 0 12px; }
.wish-top-title i { color: #f59e0b; }

.wish-cat-dist { display: flex; flex-direction: column; gap: 8px; }
.wish-cat-bar { display: flex; align-items: center; gap: 10px; }
.wish-cat-bar .wish-cat-ico { width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 0.8rem; flex-shrink: 0; background: linear-gradient(135deg,#f59e0b,#fbbf24); }
.wish-cat-bar .wish-cat-info { flex: 1; min-width: 0; }
.wish-cat-bar .wish-cat-head { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 4px; }
.wish-cat-bar .wish-cat-head .wish-cat-nm { color: #475569; font-weight: 500; }
.wish-cat-bar .wish-cat-head .wish-cat-pct { color: #94a3b8; }
.wish-cat-bar .wish-cat-track { height: 7px; background: rgba(251,191,36,0.12); border-radius: 999px; overflow: hidden; }
.wish-cat-bar .wish-cat-fill { height: 100%; border-radius: 999px; transition: width .5s ease; background: linear-gradient(90deg,#f59e0b,#fbbf24); }

.wish-pri-dist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wish-pri-card {
    background: rgba(255,255,255,0.8); border-radius: 12px; padding: 14px; text-align: center;
    border: 1px solid rgba(251,191,36,0.18);
}
.wish-pri-card .wish-pri-dot-lg { width: 14px; height: 14px; border-radius: 50%; margin: 0 auto 6px; }
.wish-pri-card .wish-pri-num { font-size: 1.3rem; font-weight: 800; color: #1e293b; }
.wish-pri-card .wish-pri-nm { font-size: 0.75rem; color: #64748b; margin-top: 2px; }

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

/* ---------- 弹窗 ---------- */
.wish-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: wish-fade .2s ease;
}
@keyframes wish-fade { from { opacity: 0; } to { opacity: 1; } }
.wish-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: wish-pop .25s ease;
    max-height: 88vh; overflow-y: auto;
}
@keyframes wish-pop { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
.wish-modal-title { font-size: 1.05rem; font-weight: 700; color: #92400e; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.wish-modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.wish-modal-btn {
    flex: 1; border: none; cursor: pointer; padding: 10px; border-radius: 10px;
    font-size: 0.88rem; font-weight: 600; transition: all .2s;
}
.wish-modal-btn.primary { background: linear-gradient(135deg,#f59e0b,#fbbf24); color: #fff; }
.wish-modal-btn.primary:hover { transform: translateY(-1px); }
.wish-modal-btn.ghost { background: rgba(245,158,11,0.08); color: #b45309; }

/* ---------- 响应式 ---------- */
@media (max-width: 600px) {
    .wish-card { padding: 14px; border-radius: 16px; }
    .wish-tab { padding: 8px 10px; font-size: 0.78rem; }
    .wish-tab i { display: none; }
    .wish-summary { padding: 12px; gap: 6px; }
    .wish-sum-num { font-size: 1.2rem; }
    .wish-sum-label { font-size: 0.7rem; }
    .wish-add-btn { padding: 11px 14px; font-size: 0.85rem; }
    .wish-card-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
    .wish-item { padding: 12px; }
    .wish-stat-grid { gap: 8px; }
    .wish-stat-card { padding: 12px; }
    .wish-stat-value { font-size: 1.25rem; }
    .wish-pri-dist { gap: 8px; }
    .wish-pri-card { padding: 10px; }
}
