/* 智蜂制造 | 造价通 —— 设计稿落地样式 */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text-main: #1f2937;
  --text-sub: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --bg: #f3f4f6;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 14px rgba(0,0,0,.05);
  --shadow-lg: 0 8px 30px rgba(37,99,235,.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background: #fff;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 32px; height: 64px;
}
.logo { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: var(--primary); }
.logo-badge {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
}
.main-nav { display: flex; gap: 28px; flex: 1; }
.main-nav a { color: var(--text-sub); font-size: 15px; padding: 6px 2px; position: relative; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); font-weight: 500; }
.main-nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; border-radius: 2px; background: var(--primary);
}
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-search {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg); border-radius: 20px; padding: 6px 14px;
}
.header-search input { border: none; outline: none; background: transparent; width: 160px; font-size: 13px; }
.header-icon { font-size: 18px; cursor: pointer; }
.header-user {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--primary-light); padding: 4px 12px 4px 4px; border-radius: 20px;
}
.avatar-circle {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}

/* ===== 浮层按钮（右侧） ===== */
.float-bar {
  position: fixed; right: 16px; top: 50%; transform: translateY(-50%);
  z-index: 99; display: flex; flex-direction: column; gap: 10px;
}
.float-bar a {
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text-sub);
}
.float-bar a:hover { color: var(--primary); }

/* ===== 页脚 ===== */
.site-footer { background: #111827; color: #9ca3af; margin-top: 0; }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 40px 20px 28px;
}
.footer-top {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
}
.footer-nav {
  display: flex; justify-content: center; gap: 36px; margin-top: 18px; flex-wrap: wrap;
}
.footer-nav a {
  color: #9ca3af; font-size: 14px; transition: color .2s;
}
.footer-nav a:hover { color: #fff; }
.footer-brand { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.footer-bottom {
  border-top: 1px solid #1f2937; text-align: center;
  padding: 16px 20px; font-size: 12px;
}

/* ===== 通用容器/区块 ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.section-title { font-size: 24px; font-weight: 700; position: relative; padding-left: 14px; }
.section-title::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 4px; border-radius: 2px; background: var(--primary);
}
.link-more { color: var(--primary); font-size: 14px; }
.link-more:hover { text-decoration: underline; }
.section-sub { color: var(--text-sub); font-size: 14px; margin-top: 4px; }

/* ===== 首页 Hero ===== */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
  color: #fff; padding: 72px 0 64px; position: relative; overflow: hidden;
}
.hero::after {
  content: '🐝'; position: absolute; right: -40px; bottom: -40px;
  font-size: 220px; opacity: .12; transform: rotate(-15deg);
}
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hero h1 { font-size: 40px; font-weight: 700; margin-bottom: 12px; }
.hero p { font-size: 16px; opacity: .9; margin-bottom: 28px; }
.hero-search { display: flex; max-width: 560px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-search input { flex: 1; border: none; outline: none; padding: 14px 18px; font-size: 15px; }
.hero-search button { border: none; background: var(--primary); color: #fff; padding: 14px 28px; font-size: 15px; }
.hero-stats { display: flex; gap: 56px; margin-top: 36px; }
.hero-stat .num { font-size: 28px; font-weight: 700; }
.hero-stat .label { font-size: 13px; opacity: .8; margin-top: 2px; }

/* ===== 核心服务卡片 ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, box-shadow .2s; cursor: pointer;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-icon { font-size: 32px; margin-bottom: 14px; }
.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { color: var(--text-sub); font-size: 14px; margin-bottom: 16px; }
.service-meta { display: flex; gap: 20px; color: var(--primary); font-size: 13px; font-weight: 600; }

/* ===== 造价师卡片 ===== */
.engineer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.engineer-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; text-align: center; transition: transform .2s, box-shadow .2s; cursor: pointer;
}
.engineer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.engineer-avatar {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; font-weight: 700;
}
.engineer-card h4 { font-size: 16px; margin-bottom: 4px; }
.engineer-meta { color: var(--text-sub); font-size: 13px; }
.engineer-rating { color: #f59e0b; font-size: 13px; margin: 8px 0; }
.engineer-stats { display: flex; justify-content: center; gap: 24px; color: var(--text-sub); font-size: 13px; margin-bottom: 12px; }
.engineer-tags { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tag { background: var(--primary-light); color: var(--primary); font-size: 12px; padding: 3px 10px; border-radius: 12px; }
.tag.online { background: #ecfdf5; color: var(--success); }
.btn {
  display: inline-block; border: none; border-radius: 8px; padding: 9px 20px;
  font-size: 14px; transition: background .2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-block { width: 100%; }

/* ===== 案例卡片 ===== */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, box-shadow .2s; cursor: pointer;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case-cover { height: 160px; background: linear-gradient(135deg, #dbeafe, #eff6ff); position: relative; }
.case-cover img { width: 100%; height: 100%; object-fit: cover; }
.case-price {
  position: absolute; top: 12px; right: 12px; background: rgba(17,24,39,.75);
  color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 600;
}
.case-price.free { background: var(--success); }
.case-body { padding: 18px; }
.case-body h4 { font-size: 15px; line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.case-info { color: var(--text-sub); font-size: 13px; margin-bottom: 8px; }
.case-foot { display: flex; align-items: center; justify-content: space-between; color: var(--text-light); font-size: 13px; }
.case-foot .stars { color: #f59e0b; }

/* ===== 问答卡片 ===== */
.qa-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 16px; transition: box-shadow .2s; cursor: pointer;
}
.qa-card:hover { box-shadow: var(--shadow); }
.qa-title { font-size: 16px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.qa-reward { background: var(--warning); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 10px; flex-shrink: 0; }
.qa-meta { display: flex; gap: 18px; color: var(--text-sub); font-size: 13px; flex-wrap: wrap; }
.qa-status { color: var(--success); font-size: 12px; padding: 2px 8px; border-radius: 10px; background: #ecfdf5; }
.qa-status.pending { color: var(--warning); background: #fffbeb; }

/* ===== AI 问答面板 ===== */
.ai-panel {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  border-radius: var(--radius); padding: 40px; color: #fff;
  display: flex; gap: 48px; align-items: center;
}
.ai-panel-left { flex: 1; }
.ai-panel-left h3 { font-size: 22px; margin-bottom: 10px; }
.ai-panel-left p { opacity: .85; font-size: 14px; margin-bottom: 20px; }
.ai-input { display: flex; background: #fff; border-radius: 10px; overflow: hidden; }
.ai-input input { flex: 1; border: none; outline: none; padding: 13px 16px; font-size: 14px; }
.ai-input button { border: none; background: var(--primary-dark); color: #fff; padding: 13px 22px; }
.ai-suggests { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ai-suggest {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px; padding: 12px 16px; font-size: 14px; cursor: pointer;
}
.ai-suggest:hover { background: rgba(255,255,255,.22); }
.ai-tip { font-size: 12px; opacity: .6; margin-top: 12px; }

/* ===== 列表页页头 ===== */
.page-head {
  background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #fff;
  padding: 48px 0; text-align: center;
}
.page-head h1 { font-size: 30px; margin-bottom: 8px; }
.page-head p { opacity: .85; font-size: 14px; }
.page-stats { display: flex; justify-content: center; gap: 56px; margin-top: 24px; }
.page-stat .num { font-size: 26px; font-weight: 700; }
.page-stat .label { font-size: 13px; opacity: .8; }

/* ===== 筛选栏 ===== */
.filter-bar {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; margin: -24px auto 28px; position: relative; z-index: 5;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  box-shadow: var(--shadow);
}
.filter-bar select, .filter-bar input {
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px;
  font-size: 13px; outline: none; background: #fff; color: var(--text-main);
}
.filter-bar input { width: 220px; }
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--primary); }
.filter-search {
  background: var(--primary); color: #fff; border: none; border-radius: 8px;
  padding: 8px 20px; font-size: 13px;
}
.filter-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.filter-tab {
  padding: 6px 14px; border-radius: 16px; font-size: 13px; cursor: pointer;
  color: var(--text-sub); background: var(--bg);
}
.filter-tab.active { background: var(--primary); color: #fff; }
.filter-sort { margin-left: auto; color: var(--text-sub); font-size: 13px; }

/* ===== 分页 ===== */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span {
  min-width: 36px; height: 36px; border-radius: 8px; display: flex;
  align-items: center; justify-content: center; font-size: 14px;
  border: 1px solid var(--border); color: var(--text-sub);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .ellipsis { border: none; }

/* ===== 列表页表格行（问答） ===== */
.list-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; }
.side-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin-bottom: 20px;
}
.side-card h4 { font-size: 15px; margin-bottom: 14px; }
.qa-side-item {
  display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px;
  color: var(--text-main); text-decoration: none; transition: all .15s;
}
.qa-side-item:hover { background: var(--primary-light); color: var(--primary); }
.qa-side-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }

/* ===== 造价师中心 ===== */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 40px 0; min-height: 70vh; }
.dash-side {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 16px; height: fit-content;
}
.dash-profile { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.dash-profile .avatar-circle { margin: 0 auto 10px; width: 56px; height: 56px; font-size: 24px; }
.dash-profile .name { font-weight: 600; }
.dash-profile .role { color: var(--text-sub); font-size: 13px; }
.dash-menu a {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border-radius: 8px; color: var(--text-sub); font-size: 14px; margin-bottom: 4px;
}
.dash-menu a:hover, .dash-menu a.active { background: var(--primary-light); color: var(--primary); }
.dash-menu .badge { margin-left: auto; background: var(--danger); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 10px; }
.dash-main h2 { font-size: 22px; margin-bottom: 20px; }
.dash-toolbar { display: flex; gap: 10px; margin-bottom: 20px; }
.dash-toolbar button {
  border: 1px solid var(--border); background: #fff; border-radius: 8px;
  padding: 7px 16px; font-size: 13px;
}
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; }
.dash-stat {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px;
}
.dash-stat .icon { font-size: 22px; margin-bottom: 8px; }
.dash-stat .num { font-size: 24px; font-weight: 700; }
.dash-stat .label { color: var(--text-sub); font-size: 13px; margin-top: 2px; }
.dash-stat .trend { color: var(--success); font-size: 12px; margin-top: 6px; }
.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dash-panel {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
}
.dash-panel h3 { font-size: 16px; margin-bottom: 16px; }
.dash-panel .panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dash-panel .panel-head h3 { margin: 0; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: none; }
.list-item .avatar-circle { width: 36px; height: 36px; font-size: 15px; flex-shrink: 0; }
.list-item .info { flex: 1; min-width: 0; }
.list-item .info .t { font-size: 14px; font-weight: 500; }
.list-item .info .d { color: var(--text-sub); font-size: 12px; }
.status-pill { font-size: 12px; padding: 2px 10px; border-radius: 10px; flex-shrink: 0; }
.status-doing { color: var(--primary); background: var(--primary-light); }
.status-wait { color: var(--warning); background: #fffbeb; }
.status-done { color: var(--success); background: #ecfdf5; }
.status-todo { color: var(--danger); background: #fef2f2; }

/* ===== 空状态 ===== */
.empty { text-align: center; padding: 60px 20px; color: var(--text-light); }
.empty .icon { font-size: 48px; margin-bottom: 12px; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .services-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
  .engineer-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .list-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .services-grid, .case-grid, .engineer-grid, .dash-cols { grid-template-columns: 1fr; }
  .header-search { display: none; }
  .hero h1 { font-size: 28px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .main-nav { gap: 16px; }
}

/* ===== 弹窗 ===== */
.overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(17,24,39,.55); display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.overlay.show { display: flex; }
.modal {
  background: #fff; border-radius: 14px; width: 100%; max-width: 560px;
  max-height: 86vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.25);
  animation: modalIn .2s ease;
}
.modal.modal-lg { max-width: 720px; }
.modal.modal-sm { max-width: 440px; }
@keyframes modalIn { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--border);
}
.modal-hd h3 { font-size: 17px; }
.modal-close { cursor: pointer; font-size: 16px; color: var(--text-light); }
.modal-close:hover { color: var(--danger); }
.modal-bd { padding: 24px; }
.modal-ft {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 24px; border-top: 1px solid var(--border);
}
.fg { margin-bottom: 16px; }
.fl { display: block; font-size: 13px; margin-bottom: 6px; font-weight: 500; }
.fi {
  width: 100%; border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; font-size: 14px; outline: none;
}
.fi:focus { border-color: var(--primary); }
.fta { resize: vertical; font-family: inherit; }
.fr { display: flex; gap: 16px; }
.fr > .fg { flex: 1; }
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); }
.tab {
  padding: 10px 18px; font-size: 14px; color: var(--text-sub);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tag-green { background: #ecfdf5; color: #059669; }
.tag-blue { background: var(--primary-light); color: var(--primary); }
.tag-yellow { background: #fffbeb; color: #b45309; }
.tag-gray { background: var(--bg); color: var(--text-sub); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.status-on { color: var(--success); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 9px 8px; text-align: left; border-bottom: 1px solid var(--border); }
.table th { color: var(--text-sub); font-weight: 500; }

/* ===== 浮层（用户下拉/消息/聊天） ===== */
.panel-pop {
  position: fixed; z-index: 300; background: #fff; border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18); border: 1px solid var(--border);
  display: none; overflow: hidden;
}
.panel-pop.show { display: block; animation: modalIn .15s ease; }
.up-panel { width: 240px; }
.up-item {
  padding: 12px 16px; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 10px;
}
.up-item:hover { background: var(--bg); }
.up-divider { height: 1px; background: var(--border); margin: 4px 0; }
.msg-panel { width: 320px; }
.msg-ph { padding: 14px 16px; font-weight: 600; border-bottom: 1px solid var(--border); }
.msg-item { display: flex; gap: 10px; padding: 12px 16px; cursor: pointer; }
.msg-item:hover { background: var(--bg); }
.msg-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); margin-top: 6px; flex-shrink: 0; }
.msg-item .dot.r { background: var(--text-light); }
.msg-item .mc { flex: 1; }
.msg-item .mt { font-size: 13px; font-weight: 600; }
.msg-item .md { font-size: 12px; color: var(--text-sub); margin: 2px 0; }
.msg-item .mtm { font-size: 11px; color: var(--text-light); }
.chat-panel { width: 320px; height: 420px; display: none; flex-direction: column; position: fixed; right: 20px; bottom: 20px; z-index: 300; background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.18); border: 1px solid var(--border); }
.chat-panel.show { display: flex; }
.chat-hd { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.chat-bd { flex: 1; padding: 14px; overflow-y: auto; background: var(--bg); }
.chat-msg { display: flex; margin-bottom: 12px; }
.chat-msg .bub {
  background: #fff; border-radius: 10px; padding: 9px 12px; font-size: 13px;
  max-width: 78%; box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.chat-msg.other { justify-content: flex-start; }
.chat-msg.self { justify-content: flex-end; }
.chat-msg.self .bub { background: var(--primary); color: #fff; }
.chat-msg .tm { font-size: 10px; color: var(--text-light); margin-top: 4px; }
.chat-ft { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); }
.chat-ft input { flex: 1; border: 1px solid var(--border); border-radius: 20px; padding: 8px 14px; font-size: 13px; outline: none; }
.chat-ft button { border: none; background: var(--primary); color: #fff; border-radius: 20px; padding: 8px 16px; font-size: 13px; }

/* ===== 造价师中心（两栏布局） ===== */
.ce-layout { display: flex; min-height: calc(100vh - 64px); }
.ce-sidebar {
  width: 220px; background: #0a2a44; color: #fff; flex-shrink: 0;
  position: sticky; top: 64px; height: calc(100vh - 64px);
  display: flex; flex-direction: column; overflow-y: auto;
}
.ce-user { text-align: center; padding: 20px 20px 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.ce-av {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #4a90d9, #6ab0f0);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px; font-size: 20px; font-weight: 600;
  border: 2px solid rgba(255,255,255,.3);
}
.ce-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.ce-role { font-size: 12px; color: rgba(255,255,255,.5); }
.ce-nav { padding: 8px 12px; }
.ce-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border-radius: 8px; cursor: pointer; font-size: 14px;
  color: rgba(255,255,255,.6); margin-bottom: 2px; transition: background .2s;
}
.ce-nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.ce-nav-item.active { background: #4a90d9; color: #fff; font-weight: 600; }
.ce-nav-item .nav-icon { font-size: 16px; width: 20px; text-align: center; }
.ce-nav-item .badge { margin-left: auto; background: #ef4444; color: #fff; padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.ce-content { flex: 1; padding: 24px 28px; background: #f5f8fc; }
.ce-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.ce-header h2 { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.ce-header h2 .bar { width: 4px; height: 24px; background: var(--primary); border-radius: 2px; }

/* KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.kpi-card {
  background: var(--card); border-radius: 12px; padding: 22px 20px;
  box-shadow: var(--shadow); border: 1px solid var(--border); position: relative; overflow: hidden;
}
.kpi-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 12px; }
.kpi-icon.blue { background: var(--primary-light); color: var(--primary); }
.kpi-icon.green { background: #ecfdf5; color: var(--success); }
.kpi-icon.yellow { background: #fffbeb; color: var(--warning); }
.kpi-icon.purple { background: #f5f3ff; color: #7c3aed; }
.kpi-val { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.kpi-label { font-size: 13px; color: var(--text-sub); }
.kpi-trend { font-size: 12px; margin-top: 8px; color: var(--success); }

/* 设置区块 */
.setting-section { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--border); padding: 24px; margin-bottom: 20px; }
.setting-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.toggle-switch {
  position: relative; width: 44px; height: 24px; background: var(--border);
  border-radius: 12px; cursor: pointer; display: inline-block; vertical-align: middle; flex-shrink: 0;
}
.toggle-switch.on { background: var(--primary); }
.toggle-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle-switch.on::after { left: 22px; }
.radio-group { display: flex; gap: 16px; flex-wrap: wrap; }
.radio-item {
  display: flex; align-items: center; gap: 8px; padding: 10px 18px;
  border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 14px; transition: all .2s;
}
.radio-item:hover { border-color: var(--primary); }
.radio-item.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary); font-weight: 600; }
.radio-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; }
.radio-item.selected .radio-dot { border-color: var(--primary); }
.radio-item.selected .radio-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

/* 客户端列表 + 聊天 */
.client-list { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden; }
.client-item { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .2s; }
.client-item:last-child { border-bottom: none; }
.client-item:hover { background: var(--primary-light); }
.client-av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,#6ab0f0,#4a90d9); display: flex; align-items: center; justify-content: center; font-size: 14px; color: #fff; font-weight: 600; flex-shrink: 0; }
.client-info { flex: 1; }
.client-info .cname { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.client-info .clast { font-size: 12px; color: var(--text-sub); }
.client-chat {
  background: var(--card); border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--border);
  display: flex; flex-direction: column; height: 520px;
}
.client-chat-hd { padding: 14px 18px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: space-between; }
.client-chat-bd { flex: 1; overflow-y: auto; padding: 16px 18px; background: var(--bg); }
.client-chat-ft { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; gap: 8px; align-items: flex-start; }
.client-chat-ft textarea { flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font-size: 13px; outline: none; resize: none; height: 60px; font-family: inherit; }
.client-chat-ft textarea:focus { border-color: var(--primary); }
.quick-replies { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 18px 12px; }
.quick-reply {
  padding: 4px 12px; border-radius: 16px; font-size: 12px;
  border: 1px solid var(--border); cursor: pointer; background: var(--card); color: var(--text-sub);
}
.quick-reply:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* 我的案例 */
.my-case-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.my-case-item:last-child { border-bottom: none; }
.my-case-cover { width: 120px; height: 80px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: linear-gradient(135deg,#0a2a44,#3a7abd); display: flex; align-items: center; justify-content: center; font-size: 28px; color: rgba(255,255,255,.6); }
.my-case-cover img { width: 100%; height: 100%; object-fit: cover; }
.my-case-info { flex: 1; }
.my-case-info .meta-row { display: flex; gap: 16px; font-size: 12px; color: var(--text-sub); margin-bottom: 8px; flex-wrap: wrap; }
.my-case-actions { display: flex; gap: 8px; align-items: flex-start; flex-shrink: 0; flex-wrap: wrap; }

/* 荣誉墙 */
.honor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.honor-card { background: var(--card); border-radius: 12px; border: 1px solid var(--border); overflow: hidden; position: relative; }
.honor-card:hover { box-shadow: var(--shadow-lg); border-color: var(--primary); }
.honor-img { height: 120px; background: linear-gradient(135deg,#e8f4fd,#f5f9fe); display: flex; align-items: center; justify-content: center; font-size: 36px; }
.honor-img img { width: 100%; height: 100%; object-fit: cover; }
.honor-body { padding: 12px; }
.honor-body h4 { font-size: 14px; margin-bottom: 4px; }
.honor-body p { font-size: 12px; color: var(--text-sub); }
.honor-drag { position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; background: rgba(0,0,0,.4); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; cursor: grab; z-index: 2; }

/* 申诉列表 */
.appeal-item { background: var(--card); border-radius: 12px; border: 1px solid var(--border); padding: 18px 20px; margin-bottom: 12px; }
.appeal-item:hover { box-shadow: var(--shadow); border-color: var(--primary); }
.appeal-item .meta { font-size: 12px; color: var(--text-sub); display: flex; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }

/* 空状态 */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-light); }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; opacity: .4; }
.empty-state h3 { font-size: 16px; margin-bottom: 8px; color: var(--text-main); }
.empty-state p { font-size: 13px; }

@media (max-width: 992px) {
  .kpi-grid, .honor-grid { grid-template-columns: repeat(2, 1fr); }
  .ce-sidebar { width: 68px; }
  .ce-nav-item { justify-content: center; padding: 11px 8px; }
  .ce-nav-item .nav-icon { margin: 0; }
  .ce-nav-item span:not(.nav-icon) { display: none; }
  .ce-content { padding: 20px; }
}
@media (max-width: 640px) {
  .kpi-grid, .honor-grid { grid-template-columns: 1fr; }
  .ce-layout { flex-direction: column; }
  .ce-sidebar { position: static; width: 100%; height: auto; flex-direction: row; overflow-x: auto; }
  .ce-nav { display: flex; padding: 8px; }
  .ce-user { display: none; }
}

/* ===== 上传子页面 ===== */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.ce-file-drop {
  display: block; border: 2px dashed var(--border); border-radius: 12px;
  padding: 24px 20px; text-align: center; cursor: pointer;
  transition: border-color .2s;
}
.ce-file-drop:hover { border-color: var(--primary); }

/* ===== 分组标题 ===== */
.group-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; margin-bottom: 16px;
}
.group-title span { font-size: 18px; }
