/* =========================================================
   home-ui.css —— 新首页模块 / 使用记录 / 首页偏好 的基础样式（桌面优先）
   配合 home-config.js、conversations.js 使用
   ========================================================= */

/* —— 图标按钮 —— */
.btn.icon-btn { display: inline-flex; align-items: center; gap: 6px; }
.btn.icon-btn svg { flex: none; }
.send-btn .ico { display: none; }

/* —— 首页任务输入（紧凑版） —— */
.hero.compact { min-height: 0; padding: 24px 26px; }
.hero.compact h2 { font-size: 22px; margin: 0 0 6px; }
.hero-welcome { margin: 0; color: #c8dad3; font-size: 12px; line-height: 1.7; }
.hero-composer .send-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* —— 公告 —— */
.home-notice {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 16px;
  background: #fff8e9; border: 1px solid #f0e0bd; border-radius: 12px; padding: 12px 14px;
}
.home-notice b { flex: none; font-size: 11px; color: #8a6317; background: #f7ecd2; border-radius: 6px; padding: 3px 7px; }
.home-notice p { margin: 0; font-size: 12px; color: #6b5a34; line-height: 1.7; }

/* —— 继续上次任务 —— */
.continue-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.continue-item {
  display: flex; align-items: center; gap: 11px; text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 13px 14px; transition: .18s;
}
.continue-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #cad7ce; }
.ci-badge { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--mint); color: var(--green); font-weight: 800; font-size: 14px; }
.ci-main { flex: 1; min-width: 0; }
.ci-main b { display: block; font-size: 13px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-main small { display: block; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-go { flex: none; font-size: 11px; color: var(--green); }

/* —— 最近生成 —— */
.output-list { display: flex; flex-direction: column; gap: 9px; }
.output-row {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 15px; transition: .18s;
}
.output-row:hover { border-color: #cad7ce; box-shadow: var(--shadow); }
.or-main { flex: 1; min-width: 0; }
.or-main b { display: block; font-size: 13px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.or-main small { display: block; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.or-view { flex: none; border: 1px solid var(--line); background: #f7faf8; color: var(--green); border-radius: 8px; height: 30px; padding: 0 12px; font-size: 11px; }

/* —— 会员权益条：需要提醒时高亮 —— */
.membership-card.urgent { border-left-color: #f26b38; background: linear-gradient(110deg, #fff, #fdf1ea); }

/* —— 使用数据 —— */
.usage-stats.home { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.usage-stats.home .usage-stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.usage-stats.home .usage-stat b { display: block; font-size: 17px; }
.usage-stats.home .usage-stat span { font-size: 10px; color: var(--muted); }
.daily.standalone { margin-top: 16px; }

/* —— 使用记录 —— */
.rec-toolbar { display: flex; gap: 9px; margin-bottom: 14px; }
.rec-toolbar input { flex: 1; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: #f8faf8; padding: 0 12px; font-size: 12px; outline: 0; }
.records-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
table.records { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 640px; }
table.records th { text-align: left; font-size: 10px; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.records td { padding: 12px 14px; border-bottom: 1px solid #f0f4f1; vertical-align: middle; }
table.records tr:last-child td { border-bottom: 0; }
.record-agent { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.record-agent i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--mint); color: var(--green); font-style: normal; font-weight: 800; font-size: 12px; }
table.records .mini { border: 1px solid var(--line); background: #f7faf8; color: var(--green); border-radius: 7px; height: 27px; padding: 0 10px; font-size: 11px; margin-right: 6px; }
table.records .mini[data-rec-del] { color: #a33b57; }

/* —— 个人中心：首页偏好设置 —— */
.pf-tip { font-size: 11px; color: var(--muted); line-height: 1.7; margin: 0 0 12px; }
.hp-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hp-row { display: flex; align-items: flex-start; gap: 9px; border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; background: #fafcfa; cursor: pointer; }
.hp-row.locked { opacity: .72; cursor: default; }
.hp-row input { margin-top: 2px; flex: none; }
.hp-main b { display: block; font-size: 12px; margin-bottom: 2px; }
.hp-main small { font-size: 10px; color: var(--muted); line-height: 1.6; }
.hp-lock { font-style: normal; font-size: 9px; color: var(--green); background: var(--mint); border-radius: 5px; padding: 1px 5px; margin-left: 6px; }
.hp-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 14px; }

/* —— 高频任务自定义弹窗 —— */
.qe-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 52vh; overflow: auto; margin: 12px 0; }
.qe-row { display: flex; gap: 9px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; cursor: pointer; }
.qe-row input { margin-top: 2px; flex: none; }
.qe-row b { display: block; font-size: 12px; }
.qe-row small { font-size: 10px; color: var(--muted); }

/* —— 侧栏二级智能体预览：桌面端不展开 —— */
.nav-group .nav-sub { display: none; }
.nav-chev { display: none; }

/* —— 高耗部门 PRO 锁标（免费账号可见，提示升级） —— */
.nav-lock { font-size: 9px; font-weight: 700; color: #8a6d1a; background: #fdf3d8; border: 1px solid #eeddab; border-radius: 5px; padding: 1px 5px; margin-left: auto; flex: none; letter-spacing: .4px; }
.nav-item.active .nav-lock { color: #f5e6b8; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .25); }

/* —— 抽屉遮罩 / 顶栏头像：默认隐藏，移动端启用 —— */
.nav-mask { display: none; }
.top-user { display: none; }

/* —— 品牌标记固定显示「AI」 —— */
.brand-mark { font-weight: 800; letter-spacing: .4px; }
