:root {
  color-scheme: light;
  --navy: #102b3f;
  --navy-2: #193d54;
  --teal: #2c827b;
  --mint: #e9f5f1;
  --ink: #1e3441;
  --muted: #6d7e87;
  --line: #dce5e7;
  --paper: #fff;
  --bg: #f3f6f5;
  --amber: #d98a36;
  --danger: #b64a4a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 75% 15%, #d8ece7 0, transparent 28%), var(--bg); }
.login-card { width: min(460px, 100%); background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 36px; box-shadow: 0 18px 50px #16394b18; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--navy); color: #fff; font-weight: 800; letter-spacing: .04em; }
.eyebrow { color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1,h2,h3,p { margin-top: 0; }
.login-card h1 { margin: 18px 0 8px; font-size: 27px; }
.login-card p { color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0,1fr); }
.sidebar { min-height: 100vh; padding: 24px 16px; background: var(--navy); color: #eef5f4; display: flex; flex-direction: column; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 26px; }
.sidebar-brand .brand-mark { background: #f2f6f3; color: var(--navy); }
.brand-title { font-weight: 750; line-height: 1.2; }
.brand-subtitle { font-size: 11px; color: #abc1c8; margin-top: 4px; }
.nav-label { padding: 8px 10px; color: #8eabb5; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.nav-list { display: grid; gap: 5px; }
.nav-item { width: 100%; text-align: left; border: 0; border-radius: 9px; padding: 11px 12px; color: #d7e5e7; background: transparent; display: flex; gap: 10px; align-items: center; }
.nav-item:hover, .nav-item.active { background: #ffffff17; color: #fff; }
.nav-item.active { box-shadow: inset 3px 0 #76c0b0; }
.nav-emoji { width: 18px; text-align: center; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid #ffffff20; padding: 16px 8px 0; }
.user-name { font-size: 13px; font-weight: 700; }
.user-role { margin-top: 4px; color: #aac0c5; font-size: 11px; }
.logout { margin-top: 12px; width: 100%; border: 1px solid #ffffff33; border-radius: 8px; color: #eaf2f2; background: transparent; padding: 9px; }
.main { min-width: 0; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 32px; background: #ffffffd9; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(10px); }
.crumb { font-size: 12px; color: var(--muted); }
.top-title { font-size: 16px; font-weight: 750; margin-top: 4px; }
.top-meta { color: var(--muted); font-size: 12px; }
.main-content { max-width: 1440px; margin: 0 auto; padding: 30px 32px 56px; }
.hero { background: linear-gradient(120deg, #12344a, #225d65); color: white; border-radius: 18px; padding: 28px 32px; position: relative; overflow: hidden; }
.hero:after { content: ""; width: 210px; height: 210px; border: 1px solid #ffffff20; border-radius: 50%; position: absolute; right: 8%; top: -95px; box-shadow: 0 0 0 28px #ffffff09, 0 0 0 57px #ffffff08; }
.hero h1 { font-size: clamp(25px, 3vw, 36px); margin: 10px 0 8px; position: relative; z-index: 1; }
.hero p { color: #d3e3e3; line-height: 1.7; margin: 0; max-width: 690px; position: relative; z-index: 1; }
.hero .eyebrow { color: #9fe0cf; }
.hero-actions { margin-top: 20px; display: flex; gap: 10px; position: relative; z-index: 1; }
.grid { display: grid; gap: 16px; }
.stat-grid { grid-template-columns: repeat(4, minmax(0,1fr)); margin: 20px 0 28px; }
.stat-card, .panel, .workflow-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.stat-card { padding: 18px 20px; }
.stat-value { font-size: 26px; font-weight: 800; color: var(--navy); }
.stat-label { margin-top: 6px; color: var(--muted); font-size: 12px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 28px 0 14px; }
.section-head h2 { margin: 0; font-size: 19px; }
.section-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.workflow-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.workflow-card { overflow: hidden; padding: 22px; display: flex; flex-direction: column; min-height: 198px; position: relative; }
.workflow-card:hover { border-color: #9dcfc2; box-shadow: 0 10px 26px #173e4b0c; }
.workflow-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: var(--mint); color: var(--teal); font-size: 20px; }
.workflow-card h3 { margin: 18px 0 8px; font-size: 17px; }
.workflow-card p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 0 18px; }
.workflow-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; color: var(--teal); font-weight: 750; font-size: 12px; }
.card-hit { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; background: transparent; cursor: pointer; }
.panel { padding: 20px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar .search { flex: 1 1 240px; }
.search, .field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 10px 12px; color: var(--ink); outline: none; }
.search:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: #58a99a; box-shadow: 0 0 0 3px #58a99a20; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 780px; }
th, td { padding: 13px 12px; text-align: left; border-bottom: 1px solid #e8eded; font-size: 12px; vertical-align: middle; }
th { color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.ticket-title { font-weight: 750; color: var(--navy); }
.ticket-sub { color: var(--muted); font-size: 11px; margin-top: 4px; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; background: #eef3f3; color: #54686f; font-size: 10px; white-space: nowrap; }
.badge.status-待受理 { background: #eef1f2; }
.badge.status-设计中 { background: #e9f3ff; color: #34648d; }
.badge.status-待运营确认 { background: #fff3df; color: #9c6a1c; }
.badge.status-修改中 { background: #fff0e8; color: #a45c31; }
.badge.status-已确认 { background: #e8f5ec; color: #3e8052; }
.badge.status-已取消 { background: #f4eaea; color: #8b5656; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; color: #405761; font-weight: 700; }
.field small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.field textarea { min-height: 105px; resize: vertical; }
.file-drop { border: 1px dashed #9db6ba; background: #f8fbfa; border-radius: 10px; padding: 14px; }
.file-drop input { padding: 6px; border: 0; background: transparent; }
.file-list { margin: 7px 0 0; color: var(--muted); font-size: 11px; display: grid; gap: 4px; }
.button { border: 1px solid transparent; border-radius: 8px; padding: 10px 14px; font-weight: 700; font-size: 12px; background: var(--navy); color: white; }
.button:hover { background: #204860; }
.button.secondary { border-color: var(--line); background: white; color: var(--ink); }
.button.secondary:hover { background: #f3f7f6; }
.button.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.button.danger { background: #fff1ef; color: var(--danger); border-color: #f0ceca; }
.button:disabled { opacity: .55; cursor: wait; }
.notice { border-radius: 9px; padding: 11px 13px; background: #eef7f5; color: #346e65; font-size: 12px; line-height: 1.6; }
.notice.warning { background: #fff7e9; color: #8a641f; }
.error { color: var(--danger); font-size: 12px; margin-top: 8px; }
.empty { padding: 40px 15px; text-align: center; color: var(--muted); font-size: 13px; }
.modal-backdrop { position: fixed; inset: 0; background: #102b3f77; display: grid; place-items: center; padding: 18px; z-index: 20; }
.modal { background: white; width: min(820px, 100%); max-height: 92vh; overflow: auto; border-radius: 16px; padding: 24px; box-shadow: 0 24px 60px #102b3f33; }
.modal-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 18px; }
.modal-head h2 { font-size: 20px; margin: 0; }
.modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.file-link { color: var(--teal); cursor: pointer; border: 0; background: none; text-decoration: underline; font-size: 12px; padding: 0; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 50; padding: 12px 16px; border-radius: 10px; color: #fff; background: var(--navy); box-shadow: 0 8px 24px #102b3f33; font-size: 13px; }
.toast-error { background: var(--danger); }
.process-admin { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 10px; align-items: end; }
.mobile-menu { display: none; }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { min-height: unset; padding: 12px 14px; }
  .sidebar-brand { padding: 3px 5px 12px; }
  .nav-label, .sidebar-bottom { display: none; }
  .nav-list { display: flex; overflow-x: auto; }
  .nav-item { white-space: nowrap; width: auto; }
  .main-content { padding: 18px 16px 36px; }
  .topbar { padding: 0 16px; height: 64px; }
}
@media (max-width: 640px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .workflow-grid, .field-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .hero { padding: 22px; }
  .process-admin { grid-template-columns: 1fr; }
  .top-meta { display: none; }
  .panel { padding: 14px; }
}
