﻿/* =========================================================
   TTS ONE CRM · 浅色工作台（视觉层重写 v20260903）
   暖白 #f3f2ee · 白卡片 · 深墨侧边栏 #26262c ·
   朱红强调 #c0392b · 圆角卡片 + 状态胶囊 + 触控适配
   仅重写视觉层，保留全部功能类名与交互绑定
   ========================================================= */
:root {
  --bg: #f3f2ee;
  --paper: #ffffff;
  --ink: #2b2a2a;
  --ink-2: #55504a;
  --ink-3: #8d8578;
  --line: #e7e3da;
  --accent: #c0392b;
  --accent-2: #e26d55;
  --accent-soft: #f7e9e4;
  --nav: #26262c;
  --nav-2: #33333c;
  --nav-txt: #b9b2a6;
  --green: #1e7d4f;
  --amber: #b0761a;
  --blue: #2f5fa8;
  --purple: #7b5cd6;
  --teal: #147d84;
  --serif: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.6; }
.hidden { display: none !important; }
button { font-family: inherit; }

/* ---------- 登录页：左品牌 + 右表单 ---------- */
.login-page { min-height: 100vh; padding: 24px; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1000px 600px at 20% -10%, #f4ded8, transparent 60%), radial-gradient(800px 500px at 90% 110%, #e3e6d8, transparent 55%), var(--bg); }
.lg-wrap { width: min(880px, 100%); display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-radius: 16px; overflow: hidden; box-shadow: 0 18px 50px rgba(60,40,30,.1); }
.lg-brand { background: linear-gradient(160deg, #2c2522, #3a2c28 60%, #4a3028); color: #f6ede8; padding: 34px 30px; display: flex; flex-direction: column; }
.lg-logo { width: 46px; height: 46px; border-radius: 11px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; color: #fff; }
.lg-name { font-size: 22px; font-weight: 800; letter-spacing: 1px; margin-top: 18px; }
.lg-sub { font-size: 12px; color: rgba(246,237,232,.66); line-height: 1.8; margin-top: 6px; }
.lg-mk { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.lg-mk span { font-size: 10.5px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 4px 10px; border-radius: 99px; }
.lg-card { padding: 38px 32px; }
.lg-card h2 { font-size: 18px; font-weight: 800; }
.lg-card .subtitle { color: var(--ink-3); font-size: 12px; margin: 5px 0 22px; }
.login-page .mock-input { width: 100%; padding: 11px 14px; margin-bottom: 12px; border: 1px solid var(--line); background: #fff; border-radius: 9px; font-size: 14px; color: var(--ink); min-height: 44px; }
.mock-input:hover:not(:focus):not(:disabled) { border-color: #d8d2c6; }
.mock-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- 表单控件：input / select / textarea 全局现代基础（20260904 字体与控件现代化） ---------- */
input.mock-input, select.mock-input, textarea.mock-input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  min-height: 38px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
  line-height: 1.5;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input.mock-input::placeholder, textarea.mock-input::placeholder { color: var(--ink-3); opacity: 1; }
select.mock-input {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%238d8578' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
select.mock-input option { background: #fff; color: var(--ink); font-family: inherit; font-size: 13.5px; }
.mock-input[readonly], .mock-input[disabled] { background: #f6f4ef; border-color: #ede9e0; color: var(--ink-2); cursor: not-allowed; }
select.mock-input[readonly], select.mock-input[disabled] { background-color: #f6f4ef; }
.mock-button { padding: 10px 18px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--ink-2); min-height: 40px; transition: background .15s, color .15s; }
.mock-button:hover { background: #f3efe6; }
.mock-button.primary { width: 100%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; font-weight: 700; min-height: 46px; }
.mock-button.primary:hover { filter: brightness(1.05); }
.mock-button.small { padding: 6px 14px; font-size: 13px; background: transparent; min-height: 36px; }
.mock-button.small:hover { background: var(--accent-soft); }
.error-text { color: var(--accent); font-size: 13px; margin-top: 10px; min-height: 18px; }

/* ---------- 应用框架：左侧导航 + 右侧主区 ---------- */
.app-frame { display: flex; min-height: 100vh; }
.side { width: 224px; flex: 0 0 auto; background: var(--nav); color: #e9e6e0; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px; border-bottom: 1px solid rgba(255,255,255,.09); gap: 8px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; }
.brand-logo { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; color: #fff; flex: 0 0 auto; }
.brand-txt { font-size: 13px; color: #e9e6e0; }
.brand-txt b { color: #fff; }
.side-nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
#nav.side-nav button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: none; border-radius: 8px; padding: 10px 12px; margin-bottom: 3px; font-size: 13px; color: var(--nav-txt); cursor: pointer; min-height: 40px; transition: background .15s, color .15s; }
#nav.side-nav button:hover { color: #fff; background: rgba(255,255,255,.05); }
#nav.side-nav button.active { background: linear-gradient(90deg, rgba(224,122,95,.3), rgba(224,122,95,.1)); color: #fff; font-weight: 600; box-shadow: inset 2px 0 0 var(--accent-2); }
#nav.side-nav .mi-ic { width: 24px; height: 24px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; background: rgba(255,255,255,.07); border-radius: 6px; color: #d8cfc4; }
#nav.side-nav button.active .mi-ic { background: rgba(255,255,255,.14); color: #fff; }
#nav.side-nav .mi-txt { flex: 1; min-width: 0; }
.nav-notice-badge { display: inline-block; min-width: 16px; height: 16px; line-height: 16px; border-radius: 99px; background: var(--accent-2); color: #fff !important; font-size: 11px; font-weight: 700; text-align: center; padding: 0 5px; margin-left: 2px; flex: 0 0 auto; }
.side-user { border-top: 1px solid rgba(255,255,255,.09); padding: 12px 14px; display: flex; align-items: center; gap: 8px; }
.side-user .user-name { flex: 1; min-width: 0; font-size: 12px; color: #e9e6e0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn.ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #e9e6e0; min-height: 30px; padding: 3px 10px; font-size: 11px; }
.btn.ghost:hover { background: rgba(255,255,255,.16); }
.hamburger { display: none; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; width: 40px; height: 40px; cursor: pointer; font-size: 18px; color: #fff; line-height: 1; }
.mobile-menu { display: none; }
.main-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.view-top { position: sticky; top: 0; z-index: 60; min-height: 52px; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 22px; }
.view-name { font-size: 15px; font-weight: 800; color: var(--ink); }
.main { flex: 1; width: 100%; max-width: 1360px; margin: 0 auto; padding: 18px 22px 60px; }

/* ---------- 板块卡片 ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 1px 3px rgba(60,50,30,.04); padding: 16px 18px; margin-bottom: 16px; }
.card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 14px; font-weight: 800; letter-spacing: .02em; color: var(--ink); }
.card h3::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--accent-2); flex: 0 0 auto; }
.card h3:after { content: none; }
.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }

/* ---------- 表格 ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #f0ede6; vertical-align: middle; }
thead th { background: transparent; color: var(--ink-3); font-weight: 600; font-size: 11px; letter-spacing: .04em; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:hover td { background: #fbfaf7; }

/* ---------- 状态徽章 ---------- */
.badge { display: inline-block; padding: 3px 11px; border-radius: 99px; font-size: 11.5px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.badge.pending { background: #f6ead2; color: var(--amber); }
.badge.approved { background: #e3f0e8; color: var(--green); }
.badge.rejected { background: #f9e3de; color: var(--accent); }
.badge.sample { background: #e0eef1; color: var(--teal); }
.badge.shipped { background: #f6ead2; color: var(--amber); }
.badge.live { background: #ece7f7; color: var(--purple); }
.badge.done { background: #d9ecdf; color: #146c3e; }
.badge.negotiating { background: #f6ead2; color: var(--amber); }
.badge.deleted { background: #eceae5; color: var(--ink-3); text-decoration: line-through; }
.badge.urgent { background: #f9e3de; color: var(--accent); font-weight: 700; }
.badge.normal { background: #e3f0e8; color: var(--green); }
.badge.dup { background: #f9e3de; color: var(--accent); font-weight: 700; }
.badge.highpass { background: #e3f0e8; color: var(--green); font-weight: 700; }

/* ---------- 按钮 ---------- */
.btn { display: inline-block; padding: 7px 13px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; font-size: 12.5px; color: var(--ink-2); min-height: 36px; transition: all .15s; }
.btn:hover { background: #f3efe6; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.success { background: var(--green); border-color: transparent; color: #fff; }
.btn.danger { background: var(--accent); border-color: transparent; color: #fff; }
.btn.warn { background: #f6ead2; border-color: #e7d9b8; color: var(--amber); }
.btn.sm { padding: 4px 10px; font-size: 11.5px; min-height: 28px; }
.row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.row .field { flex: 1; min-width: 140px; }
.field label { display: block; font-size: 11px; color: var(--ink-3); margin-bottom: 4px; letter-spacing: .02em; }
.field .mock-input { margin-bottom: 0; }

/* ---------- 统计数字（KPI 卡片化） ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-box { background: var(--paper); border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(60,50,30,.04); }
.stat-box .num { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; color: var(--ink); }
.stat-box:nth-child(6) .num { color: var(--accent); }
.stat-box .label { font-size: 11px; color: var(--ink-3); letter-spacing: .05em; margin-top: 6px; }
.stat-item { background: var(--paper); border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(60,50,30,.04); }
.stat-item .stat-value { font-size: 24px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-item .stat-label { color: var(--ink-3); font-size: 11px; letter-spacing: .04em; margin-top: 4px; }
.stat-item .stat-trend { margin-top: 6px; font-size: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.trend-up { color: var(--green); }
.trend-down { color: var(--accent); }
.trend-flat { color: var(--ink-3); }
.bd-chip { display: inline-block; background: #eee9e0; color: var(--ink-2); border-radius: 99px; padding: 2px 10px; font-size: 12px; margin: 1px 3px 1px 0; }

/* ---------- 弹窗 ---------- */
.mask { position: fixed; inset: 0; background: rgba(38,38,44,.5); display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 16px; }
.mask-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 20px; width: 92%; max-width: 500px; max-height: 86vh; overflow-y: auto; overflow-x: hidden; box-shadow: 0 18px 54px rgba(38,38,44,.22); }
.mask-card h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.mask-card h3::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--accent-2); }

/* ---------- 通知列表 ---------- */
.notice-item { padding: 11px 14px; border: 1px solid var(--line); background: #fff; border-radius: 10px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; gap: 10px; }
.notice-item.unread { background: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.notice-item .time { color: var(--ink-3); font-size: 11.5px; white-space: nowrap; }
.notice-read-tag { display: inline-block; background: #eceae5; color: var(--ink-3); border-radius: 99px; padding: 2px 10px; font-size: 11.5px; flex-shrink: 0; }
.notice-item.notice-new { background: var(--accent-soft); border-color: #ecc9c0; color: var(--accent); font-weight: 600; }
.notice-type-new { background: var(--accent) !important; color: #fff !important; }
.notice-type { display: inline-block; background: #eee9e0; color: var(--ink-2); border-radius: 99px; padding: 2px 10px; font-size: 11.5px; margin-right: 8px; flex-shrink: 0; }
.notice-msg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-qtag { font-size: 12px; flex-shrink: 0; }
.notice-red-dot { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; margin-left: 6px; flex-shrink: 0; }
.q-replied { color: var(--green); }
.homepage-link { color: var(--accent); text-decoration: none; }
.homepage-link:hover { text-decoration: underline; }
.muted { color: var(--ink-3); }

/* ---------- 我的提报 tabs ---------- */
.mine-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.mine-tabs .tab { border: 1px solid var(--line); background: #fff; padding: 8px 13px; border-radius: 99px; font-size: 12px; cursor: pointer; color: var(--ink-2); min-height: 36px; transition: all .15s; }
.mine-tabs .tab:hover { background: #f3efe6; }
.mine-tabs .tab.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; font-weight: 600; }
.mine-tabs .tab .cnt { display: inline-block; margin-left: 5px; background: #eee9e0; color: var(--ink-2); border-radius: 99px; padding: 0 8px; font-size: 11px; }
.mine-tabs .tab.active .cnt { background: rgba(255,255,255,.25); color: #fff; }

/* ---------- 详情表 ---------- */
.detail-table { width: 100%; }
.detail-table td { padding: 8px 10px; border: 1px solid var(--line); font-size: 13px; }
.detail-table td:nth-child(odd) { background: #f6f4ef; color: var(--ink-3); width: 130px; white-space: nowrap; }
.detail-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.detail-head h3 { margin-bottom: 0; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.info-box { background: #f6f4ef; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.textarea { resize: vertical; min-height: 60px; }
.ellipsis { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 视频 / Code 历史 ---------- */
.vid-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 13px; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.vid-index { display: inline-block; background: var(--nav); color: #fff; border-radius: 99px; padding: 1px 10px; font-size: 12px; }
.vid-row .time { color: var(--ink-3); font-size: 12px; }
.budget-row { margin-bottom: 8px; }

/* ---------- 看板条形 / 漏斗 / 月度 ---------- */
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.bar-label { width: 80px; text-align: right; color: var(--ink-2); flex-shrink: 0; }
.bar-track { flex: 1; background: #efeae0; border-radius: 99px; height: 8px; overflow: hidden; min-width: 60px; }
.bar-fill { height: 100%; border-radius: 99px; min-width: 2px; transition: width .3s; }
.bar-fill.blue { background: var(--blue); }
.bar-fill.green { background: var(--green); }
.bar-fill.orange { background: var(--amber); }
.bar-fill.purple { background: var(--purple); }
.bar-fill.cyan { background: var(--teal); }
.bar-val { width: 36px; font-weight: 600; color: var(--ink); }
.funnel { padding: 4px 0; max-width: 560px; }
.funnel-item { margin: 5px auto; background: linear-gradient(90deg, var(--nav), #4a4a55); color: #fff; border-radius: 6px; padding: 5px 12px; font-size: 12px; text-align: center; transition: width .3s; max-width: 100%; }

/* ---------- 项目进度卡片 ---------- */
.project-stat-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.project-stat-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; box-shadow: 0 1px 3px rgba(60,50,30,.04); }
.project-stat-card .ps-title { font-weight: 600; font-size: 13px; color: var(--ink); margin-bottom: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-stat-card .ps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ps-item { background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 10px 4px; text-align: center; cursor: pointer; transition: all .15s; min-height: 56px; }
.ps-item:hover { border-color: var(--accent); box-shadow: 0 2px 8px rgba(192,57,43,.12); transform: translateY(-1px); }
.ps-item .ps-num { font-size: 20px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.ps-item:nth-child(2) .ps-num { color: var(--amber); }
.ps-item:nth-child(3) .ps-num { color: var(--purple); }
.ps-item:nth-child(4) .ps-num { color: var(--green); }
.ps-item .ps-label { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

/* ---------- 项目画像与价格提示 ---------- */
.project-hint { background: var(--accent-soft); border: 1px solid #ecc9c0; border-radius: 10px; padding: 10px 14px; margin: 12px 0; font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; }
.project-hint .hint-label { color: var(--accent); font-weight: 600; flex-shrink: 0; }
.project-hint .hint-value { color: var(--ink); }
.project-hint .hint-price { display: inline-flex; gap: 12px; color: var(--accent); font-weight: 600; }
.project-hint .hint-tier { white-space: nowrap; }

/* ---------- 不分配BD / 月份块 ---------- */
.exclude-bd-wrap { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 10px 0; }
.exclude-bd { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; cursor: pointer; min-height: 32px; }
.month-block { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 12px; background: #fff; }
.month-title { font-weight: 700; color: var(--ink); margin-bottom: 8px; }

/* ---------- 通知弹窗 ---------- */
.notice-pop { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(680px, 92vw); max-height: 80vh; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 54px rgba(38,38,44,.25); z-index: 9999; display: none; flex-direction: column; overflow: hidden; }
.notice-pop.open { display: flex; }
.notice-pop-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--nav); color: #fff; cursor: move; user-select: none; }
.notice-pop-title { font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.notice-pop-title::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }
.notice-pop-btns { display: inline-flex; gap: 6px; }
.notice-pop-btns .btn { padding: 4px 10px; font-size: 12px; min-height: 30px; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; }
.notice-pop-btns .btn:hover { background: rgba(255,255,255,.25); }
.notice-pop-body { padding: 10px 14px; overflow-y: auto; max-height: 56vh; }
.notice-pop-item { border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; margin-bottom: 8px; font-size: 12px; cursor: pointer; background: #fff; transition: background .15s; }
.notice-pop-item:hover { background: var(--accent-soft); }
.notice-pop-item .np-tag { display: inline-block; padding: 0 8px; border-radius: 99px; font-size: 11px; color: #fff; margin-right: 6px; background: var(--nav); }
.notice-pop-item .np-time { color: var(--ink-3); font-size: 11px; margin-left: 6px; }
.notice-pop-foot { padding: 6px 14px; border-top: 1px solid var(--line); font-size: 11px; display: flex; justify-content: space-between; align-items: center; color: var(--ink-3); }
.notice-pop-badge { position: absolute; top: -6px; left: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(192,57,43,.4); z-index: 10; }
.notice-pop-badge.hidden { display: none; }
.notice-pop-body .notice-item { padding: 7px 8px; margin-bottom: 6px; font-size: 12px; border-radius: 6px; background: #fff; }
.notice-pop-body .notice-item .notice-msg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0 4px; }
.notice-pop-body .notice-item .notice-type { font-size: 11px; padding: 0 8px; margin-right: 4px; }
.notice-pop-body .notice-item .notice-qtag { font-size: 11px; margin-left: 4px; flex-shrink: 0; }
.notice-pop-body .notice-item .time { font-size: 11px; margin-left: 6px; flex-shrink: 0; }
.notice-pop-body .notice-item .notice-read-tag { font-size: 11px; padding: 0 6px; margin-left: 6px; }
.notice-pop-body .notice-item .notice-red-dot { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; margin-left: 6px; flex-shrink: 0; }
.notice-ask-form { margin-top: 8px; }
.notice-ask-form textarea { width: 100%; min-height: 56px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 13.5px; font-family: inherit; color: var(--ink); line-height: 1.5; resize: vertical; background: #fff; }
.proj-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.budget-price { font-weight: 600; }
.budget-tier { color: var(--ink-2); }

/* ============ 移动端适配（≤768px）：侧栏折叠顶部、表格转卡片 ============ */
@media (max-width: 768px) {
  .app-frame { flex-direction: column; }
  .side { position: relative; width: 100%; height: auto; flex: none; }
  .main-wrap { width: 100%; flex: 1 1 auto; min-width: 0; }
  select.mock-input { max-width: 100%; min-width: 0; }
  input.mock-input, select.mock-input, textarea.mock-input, .notice-ask-form textarea { min-height: 44px; font-size: 16px; }
  .login-page .mock-input { font-size: 16px; }
  .side-head { padding: 10px 14px; }
  #nav.side-nav { display: none; }
  .hamburger { display: block; }
  .mobile-menu.open { display: block; border-top: 1px solid rgba(255,255,255,.09); padding: 8px 10px 12px; background: var(--nav); }
  .mobile-menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 11px 12px; min-height: 44px; background: none; border: none; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 14px; color: #d9d2c6; cursor: pointer; font-family: inherit; }
  .mobile-menu button:last-child { border-bottom: none; }
  .mobile-menu button.active { color: #fff; font-weight: 600; background: rgba(224,122,95,.2); border-radius: 8px; }
  .side-user { display: none; }
  .view-top { padding: 0 14px; }
  .main { padding: 14px 14px 70px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-box { padding: 12px; }
  .stat-box .num { font-size: 26px; }
  .stat-item { padding: 12px; }
  /* 表格转卡片式行 */
  .main table, .main tbody { display: block; width: 100%; }
  .main thead { display: block; margin-bottom: 10px; }
  .main thead tr { display: flex; flex-wrap: wrap; gap: 4px 10px; border-bottom: 1px solid var(--line); padding: 4px 2px 8px; }
  .main thead th { border: none; font-size: 11px; flex: 1 1 30%; min-width: 80px; white-space: normal; padding: 2px; }
  .main tbody tr { display: block; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; }
  .main tbody td { display: inline-block; width: 50%; vertical-align: top; padding: 5px 4px; border-bottom: none; font-size: 12px; word-break: break-all; }
  .main tbody td:last-child { width: 100%; }
  .main tbody tr:hover td { background: transparent; }
  .card { padding: 14px; }
  .card h3 { font-size: 13.5px; }
  .btn, .btn.sm, .mock-button, .mock-button.small, .mine-tabs .tab { min-height: 44px; }
  .btn.sm { padding: 9px 13px; }
  .mask-card { max-width: 100%; }
  .login-page { padding: 12px; }
  .lg-wrap { grid-template-columns: 1fr; }
  .lg-brand { display: none; }
  .lg-card { padding: 30px 24px; }
}
@media (max-width: 420px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .main tbody td { width: 100%; display: block; }
}

/* ===== UI 补齐辅助类（20260903 视图补齐批次） ===== */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 2px 0 16px; flex-wrap: wrap; }
.page-title { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); line-height: 1.25; }
.page-title::before { content: ""; display: inline-block; width: 4px; height: 18px; border-radius: 3px; background: var(--accent-2); margin-right: 10px; vertical-align: -2px; }
.page-desc { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.page-head-badge { flex-shrink: 0; }
.section-h { font-size: 13px; font-weight: 700; color: var(--ink); margin: 26px 0 12px; display: flex; align-items: center; gap: 8px; }
.section-h::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: var(--accent-2); }
.section-h:first-child { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px 14px; }
.form-grid .field { min-width: 0; }
.form-grid .field.span2 { grid-column: span 2; }
.form-grid .field.span3 { grid-column: span 3; }
.form-grid .field.span4 { grid-column: span 4; }
.form-grid .field.span6 { grid-column: span 6; }
.form-grid .field.submit-cell { display: flex; align-items: flex-end; }
.form-grid .field .mock-input { width: 100%; }
.btn-lg { min-height: 44px; padding: 9px 24px; font-size: 13.5px; border-radius: 10px; }
.stat-caps { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.stat-caps .cap { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 14px; font-size: 12px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 1px 2px rgba(28, 26, 23, 0.03); }
.stat-caps .cap b { color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.stat-caps .cap.hot { background: var(--accent-soft); border-color: #eec9be; color: var(--accent); }
.stat-caps .cap.hot b { color: var(--accent); }
.batch-sync-note { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: #eef4fb; border: 1px solid #d3e3f4; color: var(--ink-2); border-radius: 10px; padding: 8px 14px; font-size: 12.5px; margin-bottom: 14px; }
.batch-sync-note b { color: var(--accent); font-size: 13px; font-variant-numeric: tabular-nums; }
.stat-caps .cap.good { background: #e3f0e8; border-color: #c9e2d3; color: var(--green); }
.stat-caps .cap.good b { color: var(--green); }
.stat-caps .cap.amber { background: #f6ead2; border-color: #ecd9ac; color: var(--amber); }
.stat-caps .cap.amber b { color: var(--amber); }
.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 12px 0 14px; }
.toolbar .field { min-width: 190px; margin: 0; }
.toolbar .field .mock-input { width: 100%; }
.toolbar .toolbar-btn { min-height: 36px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.empty-tip { padding: 34px 12px; text-align: center; color: var(--ink-3); font-size: 13px; background: #fbfaf7; border: 1px dashed var(--line); border-radius: 10px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 768px) {
  .page-head { align-items: flex-start; }
  .page-title { font-size: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .field.span2, .form-grid .field.span3, .form-grid .field.span4, .form-grid .field.span6 { grid-column: span 1; }
  .toolbar .field { flex: 1 1 100%; min-width: 0; }
  .toolbar .field label { display: none; }
  .stat-caps .cap { min-height: 40px; }
}

/* ===== 提报进度详情视图（浅色双栏，20260904 进度视图批次） ===== */
.progress-view { max-width: 1180px; }
.warn-band { display: flex; align-items: center; gap: 8px; border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; font-size: 13px; line-height: 1.5; }
.warn-band b { flex: 0 0 auto; }
.warn-band span { opacity: .92; }
.warn-band.band-gray { background: #efede8; border: 1px solid #ddd8ce; color: var(--ink-3); }
.warn-band.band-red { background: #f9e3de; border: 1px solid #eec9be; color: var(--accent); }
.warn-band.band-amber { background: #f6ead2; border: 1px solid #ecd9ac; color: var(--amber); }
.warn-band.band-blue { background: #e4ecf7; border: 1px solid #c9d8ec; color: var(--blue); }
.progress-layout { display: grid; grid-template-columns: minmax(320px, 1.05fr) 1.35fr; gap: 16px; align-items: start; }
.progress-layout .card { margin-bottom: 0; }
.timeline-card.card { padding: 18px 20px; }
.progress-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 10px; gap: 12px; flex-wrap: wrap; }
.ph-title { display: flex; align-items: center; gap: 8px; }
.ph-title b { font-size: 15px; font-weight: 800; color: var(--ink); }
.ph-pct { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.1; }
.progress-track { height: 8px; background: #efeae0; border-radius: 99px; overflow: hidden; margin-bottom: 22px; }
.progress-bar { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .35s ease; }
.progress-bar.is-dim { background: #cfc9bd; }
.timeline { padding-top: 2px; }
.timeline-step { display: flex; gap: 12px; min-height: 52px; }
.tl-line-wrap { display: flex; flex-direction: column; align-items: center; width: 22px; flex: 0 0 auto; }
.timeline-step .dot { width: 16px; height: 16px; border-radius: 50%; background: #e3ded4; flex: 0 0 auto; margin-top: 3px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: #fff; transition: all .2s; box-shadow: 0 0 0 1.5px #e3ded4; }
.timeline-step.done .dot { background: var(--green); box-shadow: 0 0 0 1.5px var(--green); }
.timeline-step.active .dot { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); width: 18px; height: 18px; margin-top: 2px; }
.timeline-step.pending .dot { background: #e3ded4; box-shadow: 0 0 0 1.5px #e3ded4; }
.tl-line { flex: 1; width: 2px; background: #e3ded4; margin: 4px 0 2px; border-radius: 2px; min-height: 30px; }
.timeline-step.done .tl-line, .timeline-step.active .tl-line { background: linear-gradient(180deg, var(--accent-2), #ecc9c0); }
.timeline-step:last-child .tl-line { background: transparent; }
.tl-body { padding-bottom: 16px; min-width: 0; }
.tl-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.timeline-step.active .tl-title { color: var(--accent); font-weight: 700; }
.timeline-step.pending .tl-title { color: var(--ink-3); font-weight: 500; }
.tl-time { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; font-variant-numeric: tabular-nums; }
.timeline-step:last-child .tl-body { padding-bottom: 2px; }
.tl-note { font-size: 11.5px; line-height: 1.6; padding-top: 8px; border-top: 1px dashed var(--line); margin-top: 2px; }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.meta-card.card { padding: 14px 16px; }
.meta-card h4 { font-size: 12.5px; font-weight: 800; color: var(--ink); margin-bottom: 10px; letter-spacing: .02em; display: flex; align-items: center; gap: 8px; }
.meta-card h4::before { content: ""; width: 3px; height: 12px; border-radius: 2px; background: var(--accent-2); }
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 16px; }
.kv-item { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.kv-item.kv-wide { grid-column: 1 / -1; }
.kv-label { font-size: 11px; color: var(--ink-3); }
.kv-value { font-size: 13px; color: var(--ink); word-break: break-all; line-height: 1.55; }
.kv-value .vid-row { padding: 4px 0; }
@media (max-width: 768px) {
  .progress-layout { grid-template-columns: 1fr; }
  .meta-grid { grid-template-columns: 1fr; }
  .progress-view .detail-head { flex-direction: column; align-items: flex-start; }
  .progress-view .detail-head h3 { font-size: 16px; }
  .progress-view .detail-actions { width: 100%; }
  .progress-view .detail-actions .btn { min-height: 44px; }
  .kv-grid { grid-template-columns: 1fr; }
  .kv-item.kv-wide { grid-column: auto; }
  .ph-pct { font-size: 22px; }
}
/* ---------- 项目管理：卡片式项目看板（20260904 项目看板批次） ---------- */
.page-head-btns { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-bottom: 16px; }
.p-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 2px 10px rgba(60, 50, 30, .05); padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.p-card:hover { border-color: #ded8cb; box-shadow: 0 6px 18px rgba(60, 50, 30, .09); }
.p-name { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.p-name-txt { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.p-name .badge { flex: 0 0 auto; }
.p-meta { display: flex; flex-wrap: wrap; gap: 3px 14px; color: var(--ink-3); font-size: 12px; line-height: 1.6; }
.p-stat { display: flex; flex-direction: column; gap: 6px; }
.p-stat-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12.5px; color: var(--ink-3); }
.p-stat-row b { font-size: 13px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.p-track { height: 8px; background: #ece9e3; border-radius: 99px; overflow: hidden; }
.p-bar { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .3s ease; }
.p-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.mask-card-scroll { max-width: 720px !important; max-height: 80vh; overflow-y: auto; overflow-x: hidden; }
@media (max-width: 768px) {
  .project-grid { grid-template-columns: 1fr; }
  .page-head-btns .btn { padding: 7px 12px; font-size: 12px; }
}

/* ---------- AI 日报（20260904） ---------- */
.ai-dash-card { border: 1px solid #eadfcb; background: linear-gradient(180deg, #fffdf9, #fff); overflow: hidden; }
.ai-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px dashed var(--line); margin-bottom: 4px; }
.ai-head-title { font-size: 15px; font-weight: 800; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.ai-sub { font-size: 11px; color: var(--ink-3); }
.ai-head-right { margin-left: auto; }
.ai-src { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.ai-llm { background: var(--accent-soft); color: var(--accent); border: 1px solid #ecd3ca; }
.ai-tpl { background: #f2efe8; color: var(--ink-3); border: 1px solid var(--line); }
.ai-brief { background: #faf6ef; border-left: 3px solid var(--accent-2); border-radius: 8px; padding: 10px 12px; margin: 10px 0 6px; color: var(--ink-2); font-size: 13px; line-height: 1.75; white-space: pre-wrap; }
.ai-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.ai-col { min-width: 0; }
.ai-sec-title { font-size: 12px; font-weight: 800; color: var(--ink-2); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.ai-sec-title::before { content: ""; width: 3px; height: 12px; border-radius: 2px; background: var(--accent-2); flex: 0 0 auto; }
.ai-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ai-list li { position: relative; padding: 6px 10px 6px 22px; background: #f8f6f1; border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; color: var(--ink); line-height: 1.6; }
.ai-list li::before { content: "\2022"; position: absolute; left: 10px; top: 5px; color: var(--accent-2); font-weight: 800; }
.ai-empty { font-size: 12px; padding: 8px 0; }
/* AI 日报右上角浮层 */
.ai-pop { position: fixed; top: 74px; right: 18px; z-index: 1500; width: min(430px, calc(100vw - 36px)); max-height: 74vh; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 54px rgba(38,38,44,.18); overflow: hidden; }
.ai-pop-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: linear-gradient(135deg, #fdf6f1, #fff); border-bottom: 1px solid var(--line); }
.ai-pop-title { font-weight: 800; font-size: 13.5px; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.ai-pop-date { font-size: 11px; color: var(--ink-3); }
.ai-pop-btns { margin-left: auto; display: flex; gap: 6px; }
.ai-pop-body { overflow-y: auto; padding: 10px 14px 14px; }
.ai-pop-body .ai-brief { margin-top: 4px; }
@media (max-width: 768px) {
  .ai-cols { grid-template-columns: 1fr; }
  .ai-pop { top: 8px; right: 8px; width: calc(100vw - 16px); max-height: 80vh; }
  .ai-pop-btns .btn { font-size: 11px; padding: 5px 9px; }
}
/* ---------- 通知页信息增强（20260904） ---------- */
.notice-item.notice-full { flex-direction: column; align-items: stretch; gap: 6px; }
.notice-item.notice-full .notice-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.notice-item.notice-full .notice-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 0 24px; font-size: 11.5px; color: var(--ink-2); background: #faf8f3; border: 1px solid #f0ece3; border-radius: 8px; padding: 6px 10px; min-width: 0; }
.notice-item.notice-full .notice-sub b { color: var(--ink); font-weight: 700; }
.notice-item.notice-full .notice-sub .sub-sep { color: #d8d2c6; }
.notice-item.notice-full .notice-sub .proj-dot { margin: 0 1px; }
.notice-item.notice-full .notice-sub .time { color: var(--ink-3); font-size: 11px; white-space: nowrap; }
.notice-item.notice-full .notice-sub .badge { padding: 1px 8px; font-size: 10.5px; }
.notice-item.notice-full .notice-msg { white-space: normal; line-height: 1.5; }
#main .notice-item.unread { background: #fffaf6; border-color: #f0d9cf; box-shadow: inset 4px 0 0 var(--accent); }
.notice-clickable { cursor: pointer; }
.notice-clickable:hover { border-color: #dfc4b8; box-shadow: 0 2px 8px rgba(60,40,30,.06); }
