/* 家庭日程独立子页面 CSS */
.fh-sched-page { max-width:1200px; margin:0 auto; padding:8px 0 120px 0; }
.fh-sched-topbar { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; flex-wrap:wrap; gap:8px; }
.fh-sched-topbar-left { display:flex; align-items:center; gap:12px; }
.fh-sched-back { font-size:20px; cursor:pointer; padding:4px 8px; border-radius:8px; color:var(--h-secondary,#666); }
.fh-sched-back:hover { background:var(--h-bg-hover,rgba(0,0,0,0.06)); }
.fh-sched-title { font-size:22px; font-weight:700; color:var(--h-text,#1a1a1a); }
[data-theme=light] .fh-sched-title { color:#111827; }
.fh-sched-btn { padding:8px 16px; border:none; border-radius:8px; font-size:13px; cursor:pointer; transition:all 0.2s; }
.fh-sched-btn-primary { background:var(--h-accent,#4f8ef7); color:#fff; }
.fh-sched-btn-primary:hover { opacity:0.9; }
.fh-sched-btn-secondary { background:var(--h-card-bg,rgba(255,255,255,0.08)); color:var(--h-text,#ccc); }
.fh-sched-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:10px; margin-bottom:20px; }
.fh-sched-card { background:var(--h-card-bg,rgba(255,255,255,0.06)); border-radius:12px; padding:14px; }
[data-theme=light] .fh-sched-card { background:#f9fafb; border:1px solid #e5e7eb; }
.fh-sched-card-label { font-size:12px; color:var(--h-secondary,#888); margin-bottom:4px; }
.fh-sched-card-value { font-size:22px; font-weight:700; color:var(--h-accent,#4f8ef7); }
.fh-sched-event { display:flex; gap:12px; padding:12px 14px; background:var(--h-card-bg,rgba(255,255,255,0.06)); border-radius:10px; margin-bottom:8px; border-left:3px solid var(--h-accent,#4f8ef7); }
[data-theme=light] .fh-sched-event { background:#f9fafb; border:1px solid #e5e7eb; }
.fh-sched-event-date { text-align:center; min-width:48px; }
.fh-sched-event-day { font-size:20px; font-weight:700; color:var(--h-accent,#4f8ef7); }
.fh-sched-event-month { font-size:11px; color:var(--h-secondary,#888); }
.fh-sched-event-info { flex:1; }
.fh-sched-event-title { font-size:15px; font-weight:600; color:var(--h-text,#ccc); }
.fh-sched-event-meta { font-size:12px; color:var(--h-secondary,#888); margin-top:2px; }
.fh-sched-event-time { font-size:13px; color:var(--h-accent,#4f8ef7); margin-top:2px; }
.fh-sched-event-countdown { font-size:11px; padding:2px 8px; border-radius:10px; background:rgba(79,142,247,0.15); color:var(--h-accent,#4f8ef7); display:inline-block; margin-top:4px; }
.fh-sched-empty { text-align:center; padding:40px 20px; color:var(--h-secondary,#888); }
.fh-sched-empty-icon { font-size:48px; margin-bottom:12px; opacity:0.5; }
.fh-sched-form-row { margin-bottom:10px; }
.fh-sched-form-input, .fh-sched-form-select { width:100%; padding:8px 12px; border-radius:8px; border:1px solid var(--h-border,rgba(255,255,255,0.1)); background:var(--h-card-bg,rgba(255,255,255,0.06)); color:var(--h-text,#ccc); font-size:14px; box-sizing:border-box; }
[data-theme=light] .fh-sched-form-input, [data-theme=light] .fh-sched-form-select { background:#fff; border-color:#d1d5db; color:#111827; }
.fh-sched-form-label { font-size:12px; color:var(--h-secondary,#888); margin-bottom:4px; }
@media(max-width:768px) { .fh-sched-cards { grid-template-columns:repeat(2,1fr); } .fh-sched-title { font-size:18px; } }
@media(max-width:480px) { .fh-sched-cards { grid-template-columns:1fr; } }

/* 朋友活动 CSS */
.fh-friend-page { max-width:1200px; margin:0 auto; padding:8px 0 120px 0; }
.fh-friend-topbar { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; flex-wrap:wrap; gap:8px; }
.fh-friend-topbar-left { display:flex; align-items:center; gap:12px; }
.fh-friend-back { font-size:20px; cursor:pointer; padding:4px 8px; border-radius:8px; color:var(--h-secondary,#666); }
.fh-friend-back:hover { background:var(--h-bg-hover,rgba(0,0,0,0.06)); }
.fh-friend-title { font-size:22px; font-weight:700; color:var(--h-text,#1a1a1a); }
[data-theme=light] .fh-friend-title { color:#111827; }
.fh-friend-views { display:flex; gap:4px; margin-bottom:16px; border-bottom:1px solid var(--h-border,rgba(255,255,255,0.1)); overflow-x:auto; }
.fh-friend-view-btn { padding:8px 16px; font-size:14px; border:none; background:none; color:var(--h-secondary,#888); cursor:pointer; white-space:nowrap; border-bottom:2px solid transparent; transition:all 0.2s; }
.fh-friend-view-btn:hover { color:var(--h-text,#fff); }
.fh-friend-view-btn.active { color:var(--h-accent,#4f8ef7); border-bottom-color:var(--h-accent,#4f8ef7); font-weight:600; }
[data-theme=light] .fh-friend-view-btn { color:#6b7280; }
[data-theme=light] .fh-friend-view-btn:hover { color:#111827; }
[data-theme=light] .fh-friend-view-btn.active { color:#3b82f6; border-bottom-color:#3b82f6; }
.fh-friend-btn { padding:8px 16px; border:none; border-radius:8px; font-size:13px; cursor:pointer; transition:all 0.2s; }
.fh-friend-btn-primary { background:var(--h-accent,#4f8ef7); color:#fff; }
.fh-friend-btn-primary:hover { opacity:0.9; }
.fh-friend-btn-secondary { background:var(--h-card-bg,rgba(255,255,255,0.08)); color:var(--h-text,#ccc); }
.fh-friend-card { background:var(--h-card-bg,rgba(255,255,255,0.06)); border-radius:12px; padding:14px; margin-bottom:10px; }
[data-theme=light] .fh-friend-card { background:#f9fafb; border:1px solid #e5e7eb; }
.fh-friend-card-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.fh-friend-card-name { font-size:15px; font-weight:600; color:var(--h-text,#ccc); }
.fh-friend-card-type { font-size:11px; padding:2px 8px; border-radius:10px; background:rgba(79,142,247,0.15); color:var(--h-accent,#4f8ef7); }
.fh-friend-card-meta { font-size:12px; color:var(--h-secondary,#888); }
.fh-friend-card-amount { font-size:16px; font-weight:600; color:#ef4444; }
.fh-friend-empty { text-align:center; padding:40px 20px; color:var(--h-secondary,#888); }
.fh-friend-empty-icon { font-size:48px; margin-bottom:12px; opacity:0.5; }
.fh-friend-stats { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:10px; margin-bottom:20px; }
.fh-friend-stat { background:var(--h-card-bg,rgba(255,255,255,0.06)); border-radius:12px; padding:12px; text-align:center; }
[data-theme=light] .fh-friend-stat { background:#f9fafb; border:1px solid #e5e7eb; }
.fh-friend-stat-num { font-size:24px; font-weight:700; color:var(--h-accent,#4f8ef7); }
.fh-friend-stat-label { font-size:12px; color:var(--h-secondary,#888); margin-top:2px; }
.fh-relation-card { background:var(--h-card-bg,rgba(255,255,255,0.06)); border-radius:12px; padding:14px; margin-bottom:8px; display:flex; align-items:center; justify-content:space-between; }
[data-theme=light] .fh-relation-card { background:#f9fafb; border:1px solid #e5e7eb; }
.fh-relation-name { font-size:15px; font-weight:600; color:var(--h-text,#ccc); }
.fh-relation-temp { font-size:12px; padding:4px 10px; border-radius:10px; }
.fh-relation-temp.hot { background:rgba(239,68,68,0.15); color:#ef4444; }
.fh-relation-temp.warm { background:rgba(251,191,36,0.15); color:#fbbf24; }
.fh-relation-temp.cool { background:rgba(96,165,250,0.15); color:#60a5fa; }
.fh-relation-temp.cold { background:rgba(156,163,175,0.15); color:#9ca3af; }
@media(max-width:768px) { .fh-friend-stats { grid-template-columns:repeat(2,1fr); } .fh-friend-title { font-size:18px; } }
@media(max-width:480px) { .fh-friend-stats { grid-template-columns:1fr; } .fh-friend-views { gap:0; } .fh-friend-view-btn { padding:6px 10px; font-size:13px; } }
