:root {
  --bg: #f3f5f8;
  --panel: #fff;
  --ink: #172033;
  --muted: #667085;
  --line: #e4e8ef;
  --primary: #2563eb;
  --primary-soft: #eaf1ff;
  --nav: #182132;
  --nav-muted: #98a4b7;
  --green: #16865f;
  --amber: #c77800;
  --shadow: 0 8px 22px rgba(28, 39, 60, .06);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 1120px;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  letter-spacing: 0;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.app { min-height: 100vh; display: grid; grid-template-columns: 220px 1fr; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 220px;
  padding: 24px 16px;
  background: var(--nav);
  color: #fff;
  z-index: 5;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 25px; border-bottom: 1px solid #2c3545; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 8px; background: #fff; color: var(--nav); font-weight: 900;
}
.brand strong { display: block; font-size: 17px; }
.brand small { color: var(--nav-muted); font-size: 11px; }
.nav-label { margin: 24px 10px 9px; color: #778398; font-size: 11px; }
.nav-item {
  width: 100%; height: 42px; border: 0; border-radius: 6px; padding: 0 12px;
  display: flex; align-items: center; gap: 11px; background: transparent; color: #d2d8e3; text-align: left;
}
.nav-item.active { background: #2b6ae9; color: #fff; font-weight: 700; }
.nav-icon { width: 20px; text-align: center; font-size: 17px; }
.user-box {
  position: absolute; left: 16px; right: 16px; bottom: 18px; padding: 12px;
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px;
  border-top: 1px solid #2c3545;
}
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #dce8ff; color: #2458b8; font-weight: 800; }
.user-box strong { display: block; font-size: 13px; }
.user-box small { color: var(--nav-muted); font-size: 11px; }

.main { grid-column: 2; min-height: 100vh; }
.topbar {
  height: 68px; padding: 0 34px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.topbar-title { font-weight: 800; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; color: #475467; font-size: 17px;
}
.user-pill { display: flex; align-items: center; gap: 8px; color: #475467; font-size: 13px; }
.content { max-width: 1320px; margin: 0 auto; padding: 30px 34px 46px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-head h1 { margin: 0; font-size: 25px; }
.page-head p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.count { color: var(--primary); }
.btn {
  height: 38px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #344054; font-weight: 700; font-size: 13px;
}
.btn.primary { border-color: var(--primary); background: var(--primary); color: #fff; }
.btn.ghost { background: transparent; }
.btn.sm { height: 32px; padding: 0 10px; }
.btn.danger { border-color: #f0c4c0; background: #fff; color: #c0392b; }

.search-row { display: grid; grid-template-columns: 1fr 150px; gap: 12px; margin-bottom: 26px; }
.overview-search {
  margin-bottom: 26px; padding: 15px; display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.15fr) auto auto;
  align-items: end; gap: 12px; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; box-shadow: var(--shadow);
}
.search-field label { display: block; margin: 0 0 7px 2px; color: #475467; font-size: 11px; font-weight: 700; }
.search-control {
  height: 44px; padding: 0 13px; display: flex; align-items: center; gap: 9px;
  border: 1px solid #ccd4e0; border-radius: 7px; background: #fff; transition: .15s;
}
.search-control:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.search-control input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-control input::placeholder { color: #98a2b3; }
.overview-search .search-submit, .overview-search .search-reset { height: 44px; }
.search {
  height: 48px; border: 1px solid #ccd4e0; border-radius: 7px; background: #fff;
  display: flex; align-items: center; gap: 10px; padding: 0 15px; box-shadow: 0 2px 5px rgba(16,24,40,.02);
}
.search input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search input::placeholder { color: #98a2b3; }
.search-icon { color: #8b98aa; font-size: 19px; }
.sort { height: 48px; }
.section-line { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.section-line strong { font-size: 14px; }
.view-switch { display: flex; gap: 5px; }
.view-switch button { width: 32px; height: 32px; border: 1px solid var(--line); background: #fff; border-radius: 5px; color: #7a8699; }
.view-switch button.active { border-color: #9fb6df; color: var(--primary); background: var(--primary-soft); }

.project-grid { display: grid; grid-template-columns: repeat(4, minmax(190px, 1fr)); gap: 16px; margin-top: 18px; }
.project-card {
  min-height: 190px; border: 1px solid var(--line); border-radius: 7px;
  background: #fff; box-shadow: var(--shadow); transition: .18s ease; overflow: hidden;
  display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-2px); border-color: #9eb7e5; box-shadow: 0 12px 28px rgba(37,99,235,.11); }
.project-card-main { display: block; flex: 1; padding: 20px; color: inherit; text-decoration: none; }
.project-top { display: flex; align-items: flex-start; justify-content: space-between; }
.project-symbol {
  width: 42px; height: 42px; border-radius: 7px; display: grid; place-items: center;
  background: #e8efff; color: #2563eb; font-weight: 900;
}
.project-symbol.green { background: #e7f6ef; color: #16865f; }
.project-symbol.amber { background: #fff2dd; color: #bb6b00; }
.project-symbol.red { background: #fdeceb; color: #c53c32; }
.more { border: 0; background: none; color: #98a2b3; font-size: 20px; line-height: 1; }
.project-view-label { color: #98a2b3; font-size: 11px; font-weight: 700; }
.project-card h3 { margin: 16px 0 7px; font-size: 16px; }
.project-card p { height: 38px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; overflow: hidden; }
.project-meta { margin-top: 16px; padding-top: 13px; border-top: 1px solid #edf0f5; display: flex; justify-content: space-between; color: #667085; font-size: 11px; }
.project-meta b { color: #344054; }
.project-card-actions { min-height: 42px; padding: 10px 20px; border-top: 1px solid #edf0f5; display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.project-card-actions form { margin: 0; }
.danger-text { color: #c53c32; }

.hidden { display: none !important; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: #667085; font-size: 12px; }
.breadcrumb-actions { margin-left: auto; }
.back { border: 0; padding: 0; background: none; color: var(--primary); font-weight: 700; cursor: pointer; }
.project-banner {
  padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 7px;
  display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow); margin-bottom: 18px;
}
.project-id { display: flex; align-items: center; gap: 14px; }
.project-id h1 { margin: 0; font-size: 21px; }
.project-id p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.banner-stats { display: flex; gap: 26px; }
.banner-stat { padding-left: 24px; border-left: 1px solid var(--line); }
.banner-stat b { display: block; font-size: 20px; }
.banner-stat span { color: var(--muted); font-size: 11px; }

.detail-grid { display: grid; grid-template-columns: minmax(610px, 1.75fr) minmax(330px, .85fr); gap: 18px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow); overflow: hidden; }
.panel-head { min-height: 58px; padding: 0 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h2 { margin: 0; font-size: 16px; }
.panel-head small { color: var(--muted); }
.panel-tools { padding: 14px 18px; display: grid; grid-template-columns: 1fr 120px; gap: 10px; border-bottom: 1px solid var(--line); }
.faq-search-form { grid-template-columns: minmax(220px, 1fr) auto auto; align-items: center; background: #fafbfc; }
.mini-search { height: 38px; border: 1px solid #ccd4e0; border-radius: 6px; display: flex; align-items: center; gap: 8px; padding: 0 11px; color: #98a2b3; font-size: 12px; background: #fff; transition: .15s; }
.mini-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.09); }
.mini-search input { border: 0; outline: 0; width: 100%; color: var(--ink); background: transparent; }
.mini-search input::placeholder { color: #98a2b3; }
.select { height: 38px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #667085; font-size: 12px; padding: 0 9px; }
.faq-list { padding: 4px 18px 14px; }
.faq-item { padding: 16px 3px; border-bottom: 1px solid #edf0f5; cursor: pointer; }
.faq-item:last-child { border-bottom: 0; }
.faq-item:hover h3 { color: var(--primary); }
.faq-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.faq-item h3 { margin: 0 0 7px; font-size: 14px; transition: .15s; }
.faq-item p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.faq-no { color: #98a2b3; font-size: 11px; white-space: nowrap; }
.faq-tags { margin-top: 10px; display: flex; gap: 7px; flex-wrap: wrap; }
.tag { min-height: 22px; padding: 0 7px; display: inline-flex; align-items: center; border-radius: 4px; background: #f1f4f8; color: #667085; font-size: 10px; }
.tag.green { background: #e8f6ef; color: var(--green); }
.tag.amber { background: #fff3df; color: var(--amber); }
.pagination { padding: 13px 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; overflow-x: auto; color: var(--muted); font-size: 11px; }
.page-jump { display: flex; flex: 0 0 auto; flex-wrap: nowrap; align-items: center; gap: 6px; white-space: nowrap; }
.page-btn { width: 30px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #dce4ec; border-radius: 3px; background: #fff; color: #aebdca; font-size: 16px; line-height: 1; }
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { border-color: #4d9de8; background: #4d9de8; color: #fff; }
.page-btn.disabled { pointer-events: none; opacity: .55; }
.page-input { width: 47px; height: 32px; margin-left: -2px; border: 1px solid #dce4ec; border-radius: 3px 0 0 3px; outline: none; padding: 0 6px; text-align: center; color: var(--text); }
.page-input:focus { border-color: #4d9de8; }
.page-input::-webkit-inner-spin-button, .page-input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.page-go { height: 32px; margin-left: -8px; padding: 0 13px; border: 1px solid #4d9de8; border-radius: 0 3px 3px 0; background: #4d9de8; color: #fff; cursor: pointer; font-size: 12px; }
.page-go:hover { background: #348bdc; }
.empty-list { padding: 40px 18px; color: var(--muted); text-align: center; }
.overview-faq-results { overflow: hidden; }

.right-stack { display: grid; gap: 18px; }
.file-list { padding: 6px 16px 12px; }
.file-item {
  width: 100%; padding: 13px 0; border: 0; border-bottom: 1px solid #edf0f5; background: #fff;
  display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; text-align: left;
  color: inherit; text-decoration: none; cursor: pointer;
}
.file-item:disabled { cursor: wait; opacity: .65; }
.file-item:last-child { border-bottom: 0; }
.file-icon { width: 34px; height: 34px; border-radius: 6px; display: grid; place-items: center; background: #eaf1ff; color: #2563eb; font-weight: 900; font-size: 11px; }
.file-icon.excel { background: #e6f5ed; color: #16865f; }
.file-name { min-width: 0; }
.file-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.file-name small { display: block; margin-top: 5px; color: #98a2b3; font-size: 10px; }
.file-open { color: var(--primary); font-size: 11px; font-weight: 700; }
.version-badge { padding: 3px 6px; border-radius: 4px; background: #f2f4f7; color: #667085; font-size: 10px; }

.close { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 20px; color: #667085; }
.faq-page-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.faq-page-head h1 { margin: 0; font-size: 23px; }
.faq-page-head p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.faq-page-actions { display: flex; gap: 9px; }
.edit-history-panel { margin-top: 18px; }
.edit-history-list { padding: 4px 18px 12px; }
.edit-history-empty { padding: 28px 0; color: var(--muted); font-size: 12px; text-align: center; }
.edit-history-item {
  width: 100%; min-height: 62px; padding: 10px 4px; display: grid; grid-template-columns: 46px 1fr auto;
  align-items: center; gap: 12px; border: 0; border-bottom: 1px solid #edf0f5; background: #fff; text-align: left;
}
.edit-history-item:last-child { border-bottom: 0; }
.edit-history-item:hover { background: #fafcff; }
.edit-history-item:disabled { opacity: .6; cursor: wait; }
.history-version { min-width: 38px; height: 26px; padding: 0 7px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 800; }
.history-meta strong, .history-meta small { display: block; }
.history-meta strong { color: #344054; font-size: 12px; }
.history-meta small { margin-top: 5px; color: #98a2b3; font-size: 10px; }
.history-view { color: var(--primary); font-size: 11px; font-weight: 700; }
.history-stage { min-height: 100%; padding: 30px; overflow: auto; background: #eef1f5; }
.history-article { width: min(900px, 100%); margin: 0 auto; }
.faq-article { background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow); overflow: hidden; }
.faq-summary { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.faq-summary h2 { margin: 0 0 12px; font-size: 20px; }
.faq-summary-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.info-grid { display: grid; grid-template-columns: 1.4fr 1fr; border-bottom: 1px solid var(--line); }
.info-cell { padding: 17px 24px; }
.info-cell + .info-cell { border-left: 1px solid var(--line); }
.field-label { display: block; margin-bottom: 7px; color: #667085; font-size: 11px; font-weight: 700; }
.field-value { font-size: 13px; font-weight: 700; }
.article-section { padding: 22px 24px 24px; border-bottom: 1px solid var(--line); }
.article-section:last-child { border-bottom: 0; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-title-row h3 { margin: 0; font-size: 14px; }
.attachment-count { color: var(--muted); font-size: 11px; }
.article-section > p { margin: 0; max-width: 1080px; font-size: 13px; line-height: 1.8; color: #344054; }
.solution-steps { margin: 0; padding-left: 20px; max-width: 1100px; color: #344054; font-size: 13px; line-height: 1.9; }
.solution-steps li { padding-left: 5px; margin-bottom: 4px; }
.image-gallery { display: grid; grid-template-columns: repeat(2, minmax(280px, 430px)); gap: 14px; margin-top: 17px; }
.content-image { padding: 0; border: 1px solid #dbe2ec; border-radius: 6px; overflow: hidden; background: #fff; text-align: left; }
.content-image:hover { border-color: #88a9e7; box-shadow: 0 6px 16px rgba(37,99,235,.09); }
.mock-shot { display: block; height: 184px; background: #f2f5f9; position: relative; overflow: hidden; }
.mock-top { height: 25px; background: #243044; display: flex; align-items: center; padding: 0 9px; gap: 4px; }
.mock-dot { width: 5px; height: 5px; border-radius: 50%; background: #7e8a9d; }
.mock-body { display: grid; grid-template-columns: 64px 1fr; height: 159px; }
.mock-side { background: #fff; border-right: 1px solid #e3e8f0; padding: 12px 8px; }
.mock-side i { display: block; height: 6px; margin-bottom: 10px; border-radius: 3px; background: #dfe5ed; }
.mock-side i.active { background: #8db1f4; }
.mock-main { padding: 14px; }
.mock-heading { display: block; width: 36%; height: 9px; border-radius: 3px; background: #8895a8; margin-bottom: 13px; }
.mock-row { display: block; height: 18px; border: 1px solid #e1e6ee; background: #fff; margin-bottom: 7px; }
.mock-row.error { height: 34px; border-color: #f1a9a4; background: #fff0ef; position: relative; }
.mock-row.error::after { content: "开票状态：处理中"; position: absolute; left: 9px; top: 8px; color: #c43f35; font-size: 9px; }
.mock-actions { display: flex; justify-content: flex-end; gap: 5px; }
.mock-actions i { display: block; width: 42px; height: 16px; border-radius: 3px; background: #dfe5ed; }
.mock-actions i.primary { background: #5f8fe9; }
.mock-shot.step .mock-row:nth-child(3) { border: 2px solid #e79b28; box-shadow: 0 0 0 3px rgba(231,155,40,.14); }
.mock-shot.step::after { content: "点击“重新推送”"; position: absolute; right: 38px; bottom: 43px; padding: 5px 8px; background: #fff7e8; border: 1px solid #e8a23a; color: #a86400; font-size: 9px; }
.image-caption { padding: 10px 12px; display: flex; justify-content: space-between; color: #475467; font-size: 11px; }
.image-caption span:last-child { color: var(--primary); font-weight: 700; }
.notice-box { padding: 13px 15px; border-left: 3px solid #e59a27; background: #fff9ed; color: #69420b; font-size: 13px; line-height: 1.75; }

/* ===== 弹窗 / 模态 ===== */
.modal-mask { position: fixed; inset: 0; z-index: 50; background: rgba(17,24,39,.5); display: none; align-items: flex-start; justify-content: center; padding: 60px 20px; overflow: auto; }
.modal-mask.show { display: flex; }
.modal { width: min(560px, 94vw); background: #fff; border-radius: 10px; box-shadow: 0 24px 70px rgba(0,0,0,.25); overflow: hidden; }
.modal.wide { width: min(720px, 94vw); }
.modal-head { height: 60px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.modal-head strong { font-size: 16px; }
.modal-body { padding: 20px; max-height: 64vh; overflow: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

.form-row { margin-bottom: 16px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 700; color: #475467; }
.form-label .req { color: #c0392b; }
.form-input, .form-select, .form-textarea {
  width: 100%; height: 40px; border: 1px solid #ccd4e0; border-radius: 6px; padding: 0 12px; color: var(--ink); background: #fff; outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.form-textarea { height: 110px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.form-hint { margin-top: 6px; font-size: 11px; color: #98a2b3; }
.form-error { color: #c0392b; font-size: 12px; margin: -8px 0 12px; }

/* ===== 账号表格 ===== */
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow); overflow: hidden; }
table.grid { width: 100%; border-collapse: collapse; }
table.grid th, table.grid td { padding: 14px 18px; text-align: left; border-bottom: 1px solid #edf0f5; font-size: 13px; }
table.grid th { background: #f7f9fc; color: #475467; font-size: 12px; font-weight: 700; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid tr:hover td { background: #fafbfe; }
.avatar-sm { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; background: #dce8ff; color: #2458b8; font-weight: 800; font-size: 12px; vertical-align: middle; margin-right: 9px; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 11px; font-weight: 700; }
.badge.green { background: #e7f6ef; color: var(--green); }
.badge.blue { background: var(--primary-soft); color: var(--primary); }
.badge.gray { background: #eef1f5; color: #667085; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; }
.status-dot.on { background: var(--green); }
.status-dot.off { background: #c4ccd8; }
.row-actions { display: flex; gap: 8px; }
.link-btn { border: 0; background: none; color: var(--primary); font-weight: 700; font-size: 12px; cursor: pointer; padding: 0; }

/* ===== 提示条 ===== */
.toast { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 80; padding: 11px 20px; border-radius: 8px; background: #182132; color: #fff; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: 0; transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; }
.toast.ok { background: #16865f; }
.toast.err { background: #c0392b; }

/* ===== 文件预览弹窗（复用原型 mock） ===== */
.preview { position: fixed; inset: 0; z-index: 30; background: rgba(17,24,39,.54); display: none; grid; place-items: center; padding: 32px; }
.preview.show { display: grid; }
.preview-window { width: min(1100px, 90vw); height: min(760px, 88vh); border-radius: 7px; overflow: hidden; background: #eef1f5; box-shadow: 0 24px 70px rgba(0,0,0,.25); display: flex; flex-direction: column; }
.preview-bar { height: 58px; flex: 0 0 auto; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--line); }
.preview-title { display: flex; align-items: center; gap: 10px; }
.preview-title strong { font-size: 13px; }
.preview-title small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.preview-tools { display: flex; align-items: center; gap: 8px; color: #667085; font-size: 11px; }
.document-stage { flex: 1; overflow: auto; padding: 26px; }
.word-page { width: 620px; min-height: 820px; margin: 0 auto; padding: 58px 64px; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.10); }
.word-page h1 { margin: 0 0 7px; text-align: center; font-size: 22px; }
.word-page .sub { text-align: center; color: #667085; font-size: 12px; }
.word-page h2 { margin: 35px 0 12px; padding-bottom: 8px; border-bottom: 1px solid #d7deea; font-size: 16px; color: #214f9f; }
.word-page p, .word-page li { font-size: 12px; line-height: 1.9; color: #344054; }
.doc-preview-content { width: min(760px, 100%); min-height: 700px; }
.doc-preview-content h2 { margin-top: 12px; text-align: left; color: #1d2939; border-bottom: 0; }
.doc-preview-content h3, .doc-preview-content h4 { margin: 26px 0 10px; color: #214f9f; }
.doc-preview-content p { margin: 0 0 12px; white-space: pre-wrap; }
.doc-table-wrap { margin: 18px 0; overflow-x: auto; }
.doc-preview-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.doc-preview-table td { min-width: 80px; padding: 8px 10px; border: 1px solid #cfd8e6; color: #344054; vertical-align: top; line-height: 1.65; }
.doc-preview-image { margin: 16px auto; text-align: center; }
.doc-preview-image img { max-width: 100%; height: auto; border: 1px solid #e1e6ee; border-radius: 4px; }
.doc-preview-note { padding: 10px 12px; border-radius: 5px; background: #fff7e8; color: #a86400 !important; }
.ppt-slide { min-height: 320px; margin: 0 0 24px; padding: 34px; border: 1px solid #dbe2ec; border-radius: 8px; background: #fff; box-shadow: 0 6px 20px rgba(16, 24, 40, .08); }
.ppt-slide p { margin-top: 24px; font-size: 18px; line-height: 1.8; }
.file-icon.ppt { background: #fff0eb; color: #c2412d; }
.sheet { width: 860px; margin: 0 auto; padding: 20px; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.10); }
.sheet-head { margin-bottom: 14px; display: flex; justify-content: space-between; }
.sheet h2 { margin: 0; font-size: 17px; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 11px; }
.sheet th, .sheet td { padding: 9px; border: 1px solid #cfd8d3; text-align: left; }
.sheet th { background: #e7f3ec; color: #165f46; }

/* 图片灯箱 */
.image-lightbox { position: fixed; inset: 0; z-index: 40; display: none; grid; place-items: center; padding: 40px; background: rgba(17,24,39,.68); }
.image-lightbox.show { display: grid; }
.lightbox-card { width: min(960px, 86vw); background: #fff; border-radius: 7px; overflow: hidden; box-shadow: 0 26px 70px rgba(0,0,0,.28); }
.lightbox-head { height: 54px; padding: 0 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.lightbox-head strong { font-size: 13px; }
.lightbox-image { padding: 24px; background: #e9edf3; }
.lightbox-image .mock-shot { height: 520px; max-width: 860px; margin: 0 auto; }
.lightbox-image .mock-body { height: 495px; grid-template-columns: 160px 1fr; }
.lightbox-image .mock-side { padding: 30px 20px; }
.lightbox-image .mock-side i { height: 12px; margin-bottom: 22px; }
.lightbox-image .mock-main { padding: 38px; }
.lightbox-image .mock-heading { height: 17px; margin-bottom: 28px; }
.lightbox-image .mock-row { height: 46px; margin-bottom: 15px; }
.lightbox-image .mock-row.error { height: 78px; }
.lightbox-image .mock-row.error::after { left: 20px; top: 25px; font-size: 15px; }
.lightbox-image .mock-actions i { width: 90px; height: 34px; }

@media (max-width: 1250px) {
  .project-grid { grid-template-columns: repeat(3, 1fr); }
  .content { padding-left: 26px; padding-right: 26px; }
  .detail-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .info-cell + .info-cell { border-left: 0; border-top: 1px solid var(--line); }
  .image-gallery { grid-template-columns: 1fr; }
}

/* ===== 账户管理（v2 原型） ===== */
.account-page .page-head { align-items: flex-end; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.admin-stat { min-height: 86px; padding: 17px 18px; background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow); }
.admin-stat span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.admin-stat b { color: #172033; font-size: 23px; line-height: 1; }

.admin-toolbar { padding: 14px 16px; display: grid; grid-template-columns: 1fr 150px 130px auto; gap: 10px; border-bottom: 1px solid var(--line); }
.admin-search { height: 38px; padding: 0 11px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #98a2b3; transition: .15s; }
.admin-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.admin-search input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.admin-search input::placeholder { color: #98a2b3; }
.admin-toolbar .select { width: 100%; }

.account-table-wrap { overflow-x: auto; }
.account-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.account-table th { padding: 12px 16px; background: #f8fafc; border-bottom: 1px solid var(--line); color: #667085; text-align: left; font-weight: 700; }
.account-table td { padding: 14px 16px; border-bottom: 1px solid #edf0f5; color: #475467; vertical-align: middle; }
.account-table tr:last-child td { border-bottom: 0; }
.account-table tbody tr:not(.hidden):hover td { background: #fbfcfe; }
.account-table th:first-child { width: 32%; }
.account-table th:nth-child(2) { width: 18%; }
.account-table th:nth-child(3) { width: 14%; }
.account-table th:nth-child(4) { width: 20%; }
.account-person { display: grid; grid-template-columns: 34px 1fr; gap: 9px; align-items: center; }
.account-person .avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #dce8ff; color: #2458b8; font-weight: 800; }
.account-person strong { display: block; color: #1d2939; font-size: 12px; }
.account-person small { color: #98a2b3; font-size: 10px; }
.account-person em { display: block; margin-top: 2px; color: #b0b8c5; font-size: 9px; font-style: normal; }
.account-role-tag { white-space: nowrap; }
.account-table .status-dot { width: auto; height: auto; margin-right: 0; white-space: nowrap; }
.account-actions { display: flex; align-items: center; gap: 10px; }
.account-actions form { margin: 0; }
.account-empty { padding: 20px; color: var(--muted); text-align: center; }
.account-pagination { background: #fff; }
.account-create-modal { width: min(560px, 94vw); }

/* 覆盖旧 status-dot，改用 v2 原型样式 */
.status-dot { display: inline-flex; align-items: center; gap: 5px; color: var(--green); }
.status-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.status-dot.off { color: #98a2b3; }
.status-dot.off::before { background: #98a2b3; }
.status-dot.on { background: none; width: auto; height: auto; display: inline-flex; }
.status-dot.on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.status-dot.on.off::before { background: #98a2b3; }

.table-action { border: 0; background: none; color: var(--primary); font-weight: 700; font-size: 11px; text-decoration: none; cursor: pointer; }

/* ===== 客服话术 ===== */
.script-box { padding: 16px; border: 1px solid #cfe0ff; border-radius: 6px; background: #f5f8ff; }
.script-box p { margin: 0; color: #29466f; font-size: 13px; line-height: 1.85; }
.script-actions { display: flex; justify-content: flex-end; margin-top: 11px; }
.copy-btn { height: 30px; padding: 0 10px; border: 1px solid #b8cdf5; border-radius: 5px; background: #fff; color: var(--primary); font-weight: 700; font-size: 11px; cursor: pointer; }
.copy-btn:hover { background: var(--primary-soft); }

/* ===== 文件下载 ===== */
.file-item-row { display: flex; align-items: center; gap: 0; border-bottom: 1px solid #edf0f5; }
.file-item-row:last-child { border-bottom: 0; }
.file-item-row .file-item { flex: 1; border-bottom: 0; }
.file-download { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: var(--primary); font-size: 16px; font-weight: 700; text-decoration: none; margin-right: 12px; transition: .15s; }
.file-download:hover { background: var(--primary-soft); border-color: #9fb6df; }

/* ===== 用户下拉菜单 ===== */
.user-dropdown { position: relative; }
.user-pill { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: .15s; }
.user-pill:hover { background: #eef1f6; }
.user-pill .caret { font-size: 10px; color: var(--muted); }
.dropdown-menu { position: absolute; top: calc(100% + 6px); right: 0; min-width: 180px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(28,39,60,.12); z-index: 20; display: none; overflow: hidden; }
.dropdown-menu.show { display: block; }
.dropdown-header { padding: 12px 14px; border-bottom: 1px solid #eef1f6; }
.dropdown-header strong { display: block; font-size: 13px; }
.dropdown-header small { color: var(--muted); font-size: 11px; }
.dropdown-item { display: block; padding: 10px 14px; color: #475467; font-size: 12px; text-decoration: none; transition: .12s; }
.dropdown-item:hover { background: #f4f6fa; color: var(--primary); }
.pwd-error { margin-top: 8px; padding: 8px 10px; border-radius: 5px; background: #fef2f2; border: 1px solid #fecaca; color: #c53c32; font-size: 12px; display: none; }

/* ===== FAQ 图片上传 ===== */
.rich-toolbar {
  min-height: 42px; padding: 6px 8px; display: flex; align-items: center; gap: 5px;
  border: 1px solid #ccd4e0; border-bottom: 0; border-radius: 7px 7px 0 0; background: #f8fafc;
}
.rich-toolbar button {
  min-width: 31px; height: 29px; padding: 0 8px; border: 1px solid transparent; border-radius: 5px;
  background: transparent; color: #475467; font-size: 12px; font-weight: 700;
}
.rich-toolbar button:hover { border-color: #c8d5eb; background: #fff; color: var(--primary); }
.rich-toolbar .rich-image-button { margin-left: auto; border-color: #b9c9e6; background: #fff; color: var(--primary); }
.rich-editor {
  min-height: 190px; max-height: 520px; padding: 14px 16px; overflow: auto;
  border: 1px solid #ccd4e0; border-radius: 0 0 7px 7px; background: #fff;
  color: #344054; font-size: 13px; line-height: 1.75; outline: 0;
}
.rich-editor:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.09); }
.rich-editor:empty::before { content: attr(data-placeholder); color: #98a2b3; pointer-events: none; }
.rich-editor p, .rich-content p { margin: 0 0 10px; }
.rich-editor ol, .rich-editor ul, .rich-content ol, .rich-content ul { margin: 8px 0 12px; padding-left: 25px; }
.rich-editor blockquote, .rich-content blockquote { margin: 10px 0; padding: 8px 12px; border-left: 3px solid #9fb6df; background: #f6f8fc; color: #475467; }
.rich-editor img, .rich-content img {
  display: block; max-width: 100%; height: auto; margin: 12px 0; border: 1px solid var(--line);
  border-radius: 7px; cursor: zoom-in;
}
.rich-content { color: #344054; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.rich-content .rich-empty { color: #98a2b3; }
.image-upload-area { margin-top: 8px; }
.image-upload-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px dashed #9fb6df; border-radius: 6px; background: #f5f8ff; color: var(--primary); font-size: 12px; font-weight: 700; cursor: pointer; transition: .15s; }
.image-upload-btn:hover { background: var(--primary-soft); border-color: var(--primary); }
.image-preview-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.image-preview-item { position: relative; width: 100px; height: 100px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.image-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.image-preview-item .remove-img { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; border: 0; font-size: 14px; cursor: pointer; display: grid; place-items: center; line-height: 1; }
.faq-detail-images { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.faq-detail-images img { width: 160px; height: 120px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); cursor: zoom-in; transition: .15s; }
.faq-detail-images img:hover { border-color: var(--primary); box-shadow: 0 4px 12px rgba(37,99,235,.15); }

/* ===== 问题回复 ===== */
.reply-panel { margin-top: 18px; }
.reply-list { padding: 0 22px; }
.reply-empty { padding: 30px 0; color: var(--muted); font-size: 12px; text-align: center; }
.reply-item { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid #edf0f5; }
.reply-item:last-child { border-bottom: 0; }
.reply-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #dce8ff; color: #2458b8; font-size: 13px; font-weight: 800; }
.reply-meta { min-height: 25px; display: flex; align-items: center; gap: 8px; }
.reply-meta strong { font-size: 13px; }
.reply-meta time { margin-left: auto; color: #98a2b3; font-size: 10px; }
.reply-content { padding-top: 7px; color: #344054; font-size: 13px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.reply-form { padding: 18px 22px; border-top: 1px solid var(--line); background: #fafbfe; }
.reply-form .form-textarea { min-height: 96px; background: #fff; }
.reply-form-foot { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.reply-readonly { padding: 16px 22px; border-top: 1px solid var(--line); background: #fafbfe; color: var(--muted); font-size: 12px; }

/* ===== 图片大图灯箱（真实图片） ===== */
.img-zoom-mask { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; background: rgba(17,24,39,.8); padding: 40px; }
.img-zoom-mask.show { display: grid; }
.img-zoom-mask img { max-width: 90vw; max-height: 85vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.img-zoom-close { position: fixed; top: 20px; right: 30px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; border: 0; font-size: 22px; cursor: pointer; display: grid; place-items: center; }

/* ===== 功能清单列表弹窗 ===== */
.file-list-popup { width: 560px; }
.file-list-popup .popup-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #edf0f5; cursor: pointer; transition: .12s; }
.file-list-popup .popup-item:hover { background: #f4f6fa; }
.file-list-popup .popup-item:last-child { border-bottom: 0; }
.file-list-popup .popup-item .file-icon { flex: 0 0 auto; }
.file-list-popup .popup-item strong { display: block; font-size: 13px; }
.file-list-popup .popup-item small { color: var(--muted); font-size: 11px; }
