/* ============================================================
   足迹记录 footprint.s1.css
   青绿渐变主题 + 玻璃拟态，移动端自适应
   ============================================================ */

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

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

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

/* ---------- 新增按钮 ---------- */
.fp-add-row { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.fp-add-btn {
    border: none; cursor: pointer;
    padding: 12px 22px; border-radius: 14px;
    font-size: 0.92rem; font-weight: 600; color: #fff;
    background: linear-gradient(135deg,#14b8a6,#06b6d4);
    box-shadow: 0 6px 16px rgba(20,184,166,0.35);
    display: inline-flex; align-items: center; gap: 8px;
    transition: all .25s ease;
}
.fp-add-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(6,182,212,0.45); }

/* ---------- 足迹墙卡片网格 ---------- */
.fp-wall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}
.fp-wall-card {
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(20,184,166,0.2);
    border-radius: 14px; overflow: hidden;
    display: flex; flex-direction: column;
    transition: all .25s ease;
    box-shadow: 0 4px 14px rgba(20,184,166,0.06);
}
.fp-wall-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(20,184,166,0.16); }
.fp-wall-photo {
    width: 100%; aspect-ratio: 16/10;
    background: linear-gradient(135deg,#ccfbf1,#cffafe);
    display: flex; align-items: center; justify-content: center;
    color: #14b8a6; font-size: 2rem; overflow: hidden;
}
.fp-wall-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fp-wall-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; }
.fp-wall-name { font-size: 0.95rem; font-weight: 700; color: #1e293b; margin-bottom: 4px; }
.fp-wall-loc { font-size: 0.75rem; color: #64748b; margin-bottom: 6px; min-height: 1em; }
.fp-wall-date { font-size: 0.78rem; color: #0f766e; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.fp-wall-actions { display: flex; gap: 6px; padding: 0 14px 12px; }
.fp-wall-btn { border: none; background: rgba(20,184,166,0.08); color: #0f766e; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 0.8rem; transition: all .2s; }
.fp-wall-btn:hover { background: rgba(20,184,166,0.18); }
.fp-wall-btn.del { color: #ef4444; background: rgba(239,68,68,0.08); }
.fp-wall-btn.del:hover { background: rgba(239,68,68,0.18); }

/* ---------- 列表 ---------- */
.fp-list { display: flex; flex-direction: column; gap: 10px; }
.fp-list-item {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,0.8); border: 1px solid rgba(20,184,166,0.18);
    border-radius: 12px; padding: 12px 14px;
}
.fp-list-photo { width: 54px; height: 54px; border-radius: 10px; flex-shrink: 0; background: linear-gradient(135deg,#ccfbf1,#cffafe); display: flex; align-items: center; justify-content: center; color: #14b8a6; overflow: hidden; }
.fp-list-photo img { width: 100%; height: 100%; object-fit: cover; }
.fp-list-info { flex: 1; min-width: 0; }
.fp-list-name { font-size: 0.9rem; font-weight: 600; color: #1e293b; }
.fp-list-meta { font-size: 0.75rem; color: #94a3b8; margin-top: 2px; }
.fp-list-actions { display: flex; gap: 6px; }
.fp-list-btn { border: none; background: rgba(20,184,166,0.08); color: #0f766e; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 0.8rem; transition: all .2s; }
.fp-list-btn:hover { background: rgba(20,184,166,0.18); }
.fp-list-btn.del { color: #ef4444; background: rgba(239,68,68,0.08); }
.fp-list-btn.del:hover { background: rgba(239,68,68,0.18); }

/* ---------- 分页 ---------- */
.fp-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.fp-page-btn {
    border: none; background: rgba(20,184,166,0.1); color: #0f766e;
    width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
    font-size: 0.85rem; transition: all .2s;
}
.fp-page-btn:hover:not(:disabled) { background: rgba(20,184,166,0.2); }
.fp-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.fp-page-info { font-size: 0.82rem; color: #64748b; font-weight: 500; }

/* ---------- 统计页 ---------- */
.fp-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.fp-stat-card {
    background: rgba(255,255,255,0.8); border-radius: 14px; padding: 14px;
    border: 1px solid rgba(20,184,166,0.18);
}
.fp-stat-card.c1 { background: linear-gradient(135deg, #ccfbf1, #fff); }
.fp-stat-card.c2 { background: linear-gradient(135deg, #cffafe, #fff); }
.fp-stat-card.c3 { background: linear-gradient(135deg, #fef3c7, #fff); }
.fp-stat-card.c4 { background: linear-gradient(135deg, #dcfce7, #fff); }
.fp-stat-label { font-size: 0.78rem; color: #64748b; margin-bottom: 6px; }
.fp-stat-label i { margin-right: 4px; color: #14b8a6; }
.fp-stat-value { font-size: 1.5rem; font-weight: 800; color: #1e293b; }
.fp-stat-value.sm { font-size: 1.05rem; }

.fp-top-title { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 700; color: #0f766e; margin: 18px 0 12px; }
.fp-top-title i { color: #14b8a6; }

.fp-monthly-chart { display: flex; flex-direction: column; gap: 8px; }
.fp-month-bar { display: flex; align-items: center; gap: 10px; }
.fp-month-bar .fp-mb-label { width: 56px; font-size: 0.78rem; color: #64748b; font-weight: 500; flex-shrink: 0; }
.fp-month-bar .fp-mb-track { flex: 1; height: 18px; background: rgba(20,184,166,0.08); border-radius: 999px; overflow: hidden; }
.fp-month-bar .fp-mb-fill { height: 100%; background: linear-gradient(135deg,#14b8a6,#06b6d4); border-radius: 999px; transition: width .5s ease; }
.fp-month-bar .fp-mb-cnt { width: 32px; text-align: right; font-size: 0.78rem; color: #1e293b; font-weight: 600; flex-shrink: 0; }

.fp-empty { text-align: center; padding: 28px 16px; color: #94a3b8; }
.fp-empty i { font-size: 2rem; margin-bottom: 8px; opacity: 0.5; }
.fp-empty div { font-size: 0.85rem; }

/* ---------- 弹窗 ---------- */
.fp-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: fp-fade .2s ease;
}
@keyframes fp-fade { from { opacity: 0; } to { opacity: 1; } }
.fp-modal {
    background: #fff; border-radius: 18px; max-width: 480px; width: 100%;
    padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: fp-pop .25s ease;
    max-height: 85vh; overflow-y: auto;
}
@keyframes fp-pop { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
.fp-modal-title { font-size: 1.05rem; font-weight: 700; color: #0f766e; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.fp-modal-title i { color: #14b8a6; }

.fp-field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.fp-field { flex: 1; min-width: 130px; margin-bottom: 14px; }
.fp-field label { display: block; font-size: 0.82rem; font-weight: 600; color: #475569; margin-bottom: 7px; }
.fp-field label i { color: #14b8a6; margin-right: 4px; }
.fp-field input[type="text"], .fp-field input[type="date"], .fp-field textarea {
    width: 100%; box-sizing: border-box;
    padding: 10px 12px; border: 1.5px solid rgba(20,184,166,0.25);
    border-radius: 10px; font-size: 0.88rem; color: #1e293b;
    background: #fff; font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.fp-field input:focus, .fp-field textarea:focus { outline: none; border-color: #14b8a6; box-shadow: 0 0 0 3px rgba(20,184,166,0.12); }
.fp-notes-input { resize: vertical; min-height: 70px; }

.fp-modal-actions { display: flex; gap: 10px; margin-top: 6px; }
.fp-modal-btn {
    flex: 1; border: none; cursor: pointer; padding: 11px; border-radius: 12px;
    font-size: 0.9rem; font-weight: 600; transition: all .2s;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.fp-modal-btn.primary { background: linear-gradient(135deg,#14b8a6,#06b6d4); color: #fff; box-shadow: 0 6px 16px rgba(20,184,166,0.35); }
.fp-modal-btn.primary:hover { transform: translateY(-1px); }
.fp-modal-btn.ghost { background: rgba(20,184,166,0.08); color: #0f766e; }

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

/* ---------- 响应式 ---------- */
@media (max-width: 600px) {
    .fp-card { padding: 14px; border-radius: 16px; }
    .fp-tab { padding: 8px 10px; font-size: 0.78rem; }
    .fp-tab i { display: none; }
    .fp-wall-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
    .fp-wall-body { padding: 10px 12px; }
    .fp-wall-name { font-size: 0.85rem; }
    .fp-stat-grid { gap: 8px; }
    .fp-stat-card { padding: 12px; }
    .fp-stat-value { font-size: 1.25rem; }
    .fp-modal { padding: 16px; }
}
