:root {
  --ink: #20252b;
  --muted: #7b8188;
  --line: #e7e8e8;
  --panel: #ffffff;
  --canvas: #f5f6f4;
  --accent: #d85f3d;
  --accent-dark: #a7442b;
  --green: #2f836b;
  --yellow: #bf7b29;
  --blue: #477a9f;
  --shadow: 0 16px 38px rgba(37, 43, 43, .08);
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.shell { min-height: 100vh; }
.topbar { height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 42px; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .2px; }
.brand-mark { width: 31px; height: 31px; background: var(--accent); color: #fff; display: grid; place-items: center; border-radius: 8px; font-size: 14px; }
.brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; margin-top: 2px; letter-spacing: 0; }
.user-menu { display: flex; align-items: center; gap: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #e9d2c8; color: var(--accent-dark); font-weight: 700; font-size: 13px; }
.avatar-image { object-fit: cover; overflow: hidden; }
.user-copy { line-height: 1.2; }
.user-copy strong { display: block; font-size: 13px; }
.user-copy span { font-size: 11px; color: var(--muted); }
.ghost-btn { border: 0; background: transparent; color: var(--muted); padding: 7px 0; font-size: 12px; }
.ghost-btn:hover { color: var(--accent-dark); }
.layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: calc(100vh - 70px); }
.sidebar { padding: 30px 18px; background: #f0f1ee; border-right: 1px solid var(--line); }
.workspace-label { padding: 0 15px 18px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; }
.nav { display: grid; gap: 5px; }
.nav button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 15px; color: #697078; border: 0; background: transparent; text-align: left; border-radius: 7px; font-size: 13px; }
.nav button.active, .nav button:hover { color: var(--ink); background: #fff; box-shadow: 0 4px 12px rgba(35, 41, 42, .05); }
.nav-icon { width: 18px; text-align: center; font-size: 15px; }
.sidebar-note { margin: 40px 15px 0; padding-top: 18px; border-top: 1px solid #dedfdd; color: var(--muted); font-size: 11px; line-height: 1.8; }
.content { padding: 42px 48px 60px; max-width: 1500px; width: 100%; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.heading-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.eyebrow { color: var(--accent); font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 700; }
h1 { margin: 7px 0 0; font-size: 31px; letter-spacing: -.5px; }
.heading-sub { color: var(--muted); font-size: 13px; margin-top: 8px; }
.project-switcher { display: block; margin-top: 16px; width: min(360px, 100%); border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); padding: 10px 12px; outline: none; }
.primary-btn { background: var(--accent); color: white; border: 0; border-radius: 6px; padding: 12px 17px; font-weight: 700; box-shadow: 0 7px 14px rgba(216, 95, 61, .2); }
.primary-btn:hover { background: var(--accent-dark); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 24px; }
.stat { background: var(--panel); border: 1px solid var(--line); padding: 19px 20px; border-radius: 7px; }
.stat-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }
.stat-value { margin-top: 13px; font-size: 27px; font-weight: 750; letter-spacing: -.4px; }
.stat-mark { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.stat:nth-child(2) .stat-mark { background: var(--yellow); }
.stat:nth-child(3) .stat-mark { background: var(--blue); }
.stat:nth-child(4) .stat-mark { background: var(--green); }
.toolbar { background: #fff; border: 1px solid var(--line); border-radius: 7px 7px 0 0; padding: 14px; display: flex; gap: 10px; align-items: center; }
.search { flex: 1; min-width: 180px; position: relative; }
.search input, .toolbar select { border: 1px solid var(--line); background: #fbfcfb; border-radius: 5px; height: 37px; padding: 0 12px; color: var(--ink); outline: none; width: 100%; }
.search input { padding-right: 34px; }
.search-clear { position: absolute; top: 7px; right: 8px; width: 23px; height: 23px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); line-height: 20px; padding: 0; }
.search-clear:hover { background: #f0f1ef; color: var(--ink); }
.search-clear.hidden { display: none; }
.search-submit { height: 37px; padding: 0 15px; white-space: nowrap; }
.search input:focus, select:focus, input:focus, textarea:focus { border-color: #c9917f; box-shadow: 0 0 0 3px rgba(216, 95, 61, .08); }
.toolbar select { width: 150px; }
.toolbar select { flex: 0 1 150px; }
.issue-table { background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 7px 7px; overflow: hidden; }
.table-head, .issue-row { display: grid; grid-template-columns: 84px minmax(280px, 1.7fr) 100px 100px 120px 135px 94px; align-items: center; gap: 14px; }
.table-head { padding: 13px 20px; color: #94999d; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; border-bottom: 1px solid var(--line); }
.issue-row { padding: 17px 20px; min-height: 83px; border-bottom: 1px solid #f0f1ef; font-size: 12px; }
.issue-row:last-child { border-bottom: 0; }
.issue-row:hover { background: #fcfcfa; }
.issue-row-clickable { cursor: pointer; }
.issue-id { font-weight: 700; color: var(--muted); }
.issue-title { font-weight: 700; font-size: 13px; margin-bottom: 5px; }
.issue-link { border: 0; background: transparent; padding: 0; text-align: left; color: inherit; }
.issue-link:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.issue-desc { color: var(--muted); line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { display: inline-flex; align-items: center; width: fit-content; border-radius: 99px; padding: 5px 9px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.status-待处理 { background: #f2f1ee; color: #76746d; }
.status-处理中 { background: #f7eadb; color: var(--yellow); }
.status-待确认 { background: #e7eff4; color: var(--blue); }
.status-已解决 { background: #e4f1eb; color: var(--green); }
.status-已关闭 { background: #e9eaea; color: #707677; }
.priority-高 { color: #c65336; }
.priority-中 { color: #aa752d; }
.priority-低 { color: #718087; }
.person { display: flex; align-items: center; gap: 8px; }
.mini-avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #e9ecea; color: #697578; font-size: 10px; font-weight: 700; }
.row-action { color: var(--accent-dark); font-weight: 700; background: transparent; border: 0; font-size: 12px; padding: 0; text-align: left; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); font-size: 13px; }
.search-summary { padding: 11px 2px 14px; color: var(--muted); font-size: 12px; }
.search-summary strong { color: var(--accent-dark); }
.admin-note { display: flex; gap: 12px; align-items: center; padding: 15px 18px; margin-bottom: 18px; background: #f7ebe6; border: 1px solid #f0d9d0; border-radius: 7px; color: #7f4e40; font-size: 12px; }
.admin-note strong { color: var(--accent-dark); }
#nav-resources { display: none !important; }
.user-table { background: #fff; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.user-table-head, .user-row { display: grid; grid-template-columns: 1.35fr 1fr .95fr 1fr 1fr 190px; gap: 18px; align-items: center; }
.user-table-head { padding: 13px 20px; border-bottom: 1px solid var(--line); color: #94999d; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; }
.user-row { min-height: 69px; padding: 12px 20px; border-bottom: 1px solid #f0f1ef; font-size: 13px; }
.user-row:last-child { border-bottom: 0; }
.user-row:hover { background: #fcfcfa; }
.user-login { color: var(--muted); font-family: Consolas, monospace; font-size: 12px; }
.user-actions { display: flex; align-items: center; gap: 12px; }
.user-edit { padding: 7px 11px; font-size: 11px; }
.role-pill { display: inline-flex; padding: 5px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; background: #eef0ef; color: #697477; }
.role-管理员 { background: #f7eadb; color: var(--yellow); }
.role-工程师 { background: #e7eff4; color: var(--blue); }
.role-测试人员 { background: #e4f1eb; color: var(--green); }
.danger-btn { border: 0; background: transparent; color: #b14e3e; font-size: 12px; padding: 5px 0; }
.danger-btn:hover { color: #8e2e25; }
.detail-delete { display: block; margin-top: 13px; padding: 0; }
.muted-note, .file-hint { color: var(--muted); font-size: 11px; }
.file-hint { margin-top: 7px; line-height: 1.5; }
.attachments { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.attachment-image { width: 132px; color: var(--muted); text-decoration: none; font-size: 10px; }
.attachment-image img { display: block; width: 132px; height: 92px; object-fit: cover; border-radius: 5px; border: 1px solid var(--line); background: #f4f5f3; margin-bottom: 5px; }
.attachment-image span, .attachment-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-video { width: min(300px, 100%); max-height: 190px; border-radius: 5px; background: #1e2526; }
.attachment-name { width: min(300px, 100%); color: var(--muted); font-size: 10px; margin-top: 4px; }
.attachment-file { display: flex; align-items: center; gap: 11px; width: min(470px, 100%); padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); text-decoration: none; background: #fbfcfb; }
.attachment-file:hover { border-color: #d49a86; background: #fffaf8; }
.file-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 5px; background: #f7eadb; color: var(--accent-dark); font-weight: 700; }
.attachment-file-copy { min-width: 0; flex: 1; }
.attachment-file-copy strong, .attachment-file-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-file-copy strong { font-size: 12px; }
.attachment-file-copy small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.file-download { color: var(--accent-dark); font-size: 11px; white-space: nowrap; }
.attachment-video-wrap { display: block; padding: 0; border: 0; background: transparent; }
.attachment-video-wrap .attachment-name { display: block; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) 460px; background: #f5f6f4; }
.login-art { padding: 60px; display: flex; flex-direction: column; justify-content: space-between; background: #272c2e; color: white; position: relative; overflow: hidden; }
.login-art:after { content: ""; position: absolute; width: 360px; height: 360px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; right: -100px; bottom: -100px; }
.login-art h1 { font-size: clamp(38px, 5vw, 68px); max-width: 640px; line-height: 1.03; font-weight: 750; }
.login-art p { max-width: 480px; color: #b8c0bd; line-height: 1.8; font-size: 14px; }
.login-tag { color: #e9a38d; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; }
.login-quote { color: #929d98; font-size: 12px; letter-spacing: .2px; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 42px; background: #fff; }
.login-card { width: 100%; max-width: 340px; }
.login-card h2 { font-size: 25px; margin: 0 0 8px; }
.login-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 30px; line-height: 1.6; }
.field { margin-bottom: 17px; }
.field label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 5px; background: #fbfcfb; padding: 11px 12px; outline: none; }
.field textarea { resize: vertical; min-height: 105px; line-height: 1.6; }
.login-card .primary-btn { width: 100%; margin-top: 5px; }
.demo { margin-top: 28px; padding-top: 19px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.8; }
.demo code { color: var(--ink); }
.modal-backdrop { position: fixed; inset: 0; background: rgba(25, 29, 30, .38); display: grid; place-items: center; padding: 20px; z-index: 10; }
.modal { width: min(680px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 8px; box-shadow: var(--shadow); }
.modal-header { padding: 21px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { margin: 0; font-size: 18px; }
.close { background: transparent; border: 0; color: var(--muted); font-size: 23px; line-height: 1; }
.modal-body { padding: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.full { grid-column: 1 / -1; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding-top: 10px; }
.secondary-btn { border: 1px solid var(--line); background: #fff; color: #62696d; border-radius: 5px; padding: 11px 16px; }
.detail { width: min(920px, 100%); }
.issue-detail-page { max-width: 1180px; margin: 0 auto; }
.issue-detail-toolbar { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.issue-path { color: var(--muted); font-size: 12px; }
.detail-main { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 28px 31px; }
.detail-section { border-top: 1px solid var(--line); margin-top: 25px; padding-top: 22px; }
.detail-section h3 { font-size: 15px; margin: 0 0 15px; }
.detail-section h3 span { color: var(--muted); font-weight: 400; }
.side-value { font-size: 13px; line-height: 1.5; }
.detail-layout { display: grid; grid-template-columns: 1fr 285px; gap: 24px; }
.detail-title { font-size: 23px; margin: 0 0 9px; }
.detail-meta { color: var(--muted); font-size: 12px; margin-bottom: 23px; }
.detail-description { padding: 17px 0 22px; border-bottom: 1px solid var(--line); color: #4d5559; line-height: 1.8; white-space: pre-wrap; font-size: 13px; }
.feedback-title { font-size: 14px; margin: 23px 0 13px; }
.feedback-item { border-left: 2px solid #e5ded8; padding: 1px 0 3px 13px; margin-bottom: 17px; }
.feedback-item header { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.feedback-item time { color: var(--muted); font-size: 11px; }
.feedback-item p { margin: 8px 0 0; color: #5f686c; font-size: 12px; line-height: 1.65; }
.detail-side { border-left: 1px solid var(--line); padding-left: 24px; }
.side-field { margin-bottom: 17px; }
.side-field label { display: block; color: var(--muted); font-size: 11px; margin-bottom: 7px; }
.side-field select { width: 100%; border: 1px solid var(--line); padding: 9px 10px; border-radius: 5px; background: #fbfcfb; color: var(--ink); }
.save-state { color: var(--green); font-size: 11px; margin-left: 9px; }
.toast { position: fixed; bottom: 24px; right: 25px; padding: 12px 16px; background: #2d3435; color: white; font-size: 12px; border-radius: 5px; box-shadow: var(--shadow); z-index: 20; }
.license-error { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: var(--canvas); }
.license-error section { width: min(540px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 34px; box-shadow: var(--shadow); }
.license-error h1 { margin-bottom: 14px; }
.license-error p { color: #5f686c; line-height: 1.8; font-size: 13px; }
.license-meta { color: var(--muted) !important; font-size: 12px !important; }
.activity-list { background: #fff; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.activity-toolbar { border-radius: 7px; margin-bottom: 14px; }
.activity-toolbar input, .activity-toolbar select { flex: 1 1 180px; min-width: 150px; border: 1px solid var(--line); background: #fbfcfb; border-radius: 5px; height: 37px; padding: 0 12px; color: var(--ink); outline: none; }
.activity-toolbar select { flex: 0 1 190px; }
.activity-item { display: flex; gap: 14px; padding: 18px 21px; border-bottom: 1px solid #f0f1ef; }
.activity-item:last-child { border-bottom: 0; }
.activity-icon { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #f7eadb; color: var(--accent-dark); font-size: 14px; }
.activity-main { min-width: 0; }
.activity-action { font-size: 13px; font-weight: 700; }
.activity-issue { border: 0; background: transparent; color: var(--accent-dark); font-weight: 700; padding: 0; }
.activity-issue:hover { text-decoration: underline; }
.activity-detail { color: #5f686c; font-size: 12px; line-height: 1.6; margin-top: 5px; overflow-wrap: anywhere; }
.activity-meta { color: var(--muted); font-size: 11px; margin-top: 7px; }
.settings-panel { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 24px; max-width: 820px; }
.settings-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 21px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.settings-header strong { display: block; font-size: 15px; }
.settings-header span { display: block; color: var(--muted); font-size: 11px; margin-top: 6px; }
.account-identity { display: flex; align-items: center; gap: 13px; }
.settings-avatar { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #e9d2c8; color: var(--accent-dark); font-size: 19px; font-weight: 750; }
.settings-user-copy strong { display: block; font-size: 15px; }
.settings-user-copy span { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; }
.read-only { white-space: nowrap; color: var(--muted) !important; font-size: 11px !important; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.project-card { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 21px; min-height: 205px; }
.project-card.selected { border-color: #d49a86; box-shadow: 0 8px 20px rgba(216, 95, 61, .09); }
.project-card-top { display: flex; justify-content: space-between; align-items: center; min-height: 21px; }
.project-status, .current-project { display: inline-flex; padding: 5px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.project-status { background: #e4f1eb; color: var(--green); }
.current-project { background: #f7eadb; color: var(--yellow); }
.project-card h3 { margin: 21px 0 9px; font-size: 17px; }
.project-card p { color: #5f686c; font-size: 12px; line-height: 1.7; min-height: 42px; margin: 0; }
.project-card-meta { color: var(--muted); font-size: 11px; margin: 18px 0; }
.project-edit { padding: 8px 11px; font-size: 11px; }
@media (max-width: 950px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .content { padding: 28px 20px 45px; }
  .table-head { display: none; }
  .issue-row { grid-template-columns: 70px minmax(0, 1fr) 100px; gap: 10px; }
  .issue-row > :nth-child(3), .issue-row > :nth-child(4), .issue-row > :nth-child(5), .issue-row > :nth-child(6) { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .login-shell { grid-template-columns: 1fr; }
  .login-art { min-height: 330px; padding: 34px 25px; }
  .login-art h1 { font-size: 42px; }
  .login-panel { padding: 38px 25px; }
}
@media (max-width: 580px) {
  .topbar { padding: 0 18px; }
  .user-copy { display: none; }
  .page-heading { align-items: start; flex-direction: column; }
  .toolbar { flex-wrap: wrap; }
  .search { flex-basis: 100%; }
  .toolbar select { flex: 1; }
  .form-grid, .detail-layout { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .detail-side { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
  .user-table-head { display: none; }
  .user-row { grid-template-columns: 1fr auto; gap: 8px; }
  .user-row > :nth-child(2), .user-row > :nth-child(3), .user-row > :nth-child(4), .user-row > :nth-child(5) { display: none; }
  .user-actions { justify-content: flex-end; flex-wrap: wrap; }
  .admin-note { align-items: flex-start; flex-direction: column; gap: 5px; }
}
