:root {
  --brand: #d91b46;
  --brand-hover: #c4143d;
  --brand-soft: #fff2f6;
  --brand-border: #f6c7d4;
  --brand-gradient: #d91b46;
  --action: #3658d4;
  --action-hover: #2948b8;
  --action-soft: #eef2ff;
  --ink: #303a59;
  --ink-2: #58627d;
  --ink-3: #68728c;
  --line: #e7e8f1;
  --line-strong: #cbd0df;
  --canvas: #fff8fa;
  --panel: #ffffff;
  --sidebar: #d91b46;
  --success: #00a870;
  --success-soft: #e8ffea;
  --warning: #d46b08;
  --warning-soft: #fff7e6;
  --danger: #d92d20;
  --shadow: 0 10px 28px rgba(31, 35, 41, 0.08);
  --shadow-sm: 0 4px 14px rgba(31, 35, 41, 0.07);
  --radius: 8px;
  --radius-lg: 12px;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button { color: inherit; }
::selection { color: #fff; background: var(--brand); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c9cdd4; border: 3px solid transparent; border-radius: 10px; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

:focus-visible { outline: 3px solid rgba(54, 88, 212, 0.18); outline-offset: 2px; }

.icon { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 15px; height: 15px; }

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center end;
  padding: clamp(28px, 6vw, 96px);
  background:
    linear-gradient(90deg, rgba(255,255,255,0) 45%, rgba(245,247,255,.12) 68%, rgba(255,247,250,.32) 100%),
    url("assets/login-scene.png") center / cover no-repeat;
}

.login-card {
  width: min(460px, 100%);
  padding: 58px 50px 52px;
  background: rgba(255,255,255,.95);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(88, 103, 170, .2);
}
.login-card h1 { margin: 0 0 44px; color: #4d5f9e; font-size: 28px; line-height: 1.3; letter-spacing: -.02em; text-align: center; font-weight: 680; }
.login-card .field + .field { margin-top: 22px; }
.login-card .field > label { color: #68738f; }
.login-card .input { min-height: 50px; padding: 12px 15px; border-color: #d8dcea; border-radius: 10px; background: rgba(255,255,255,.88); }
.login-card .input:hover { border-color: #9fa8d4; }
.login-card .btn-primary { width: 100%; height: 52px; margin-top: 32px; color: #fff; background: var(--brand); border-color: transparent; border-radius: 10px; font-size: 16px; box-shadow: 0 12px 24px rgba(217, 27, 70, .2); }
.login-card .btn-primary:hover { color: #fff; background: var(--brand-hover); border-color: transparent; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 216px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 216px; overflow: hidden; color: #fff; background: var(--sidebar); }
.sidebar::after { content: ""; position: absolute; right: -58px; bottom: -76px; width: 260px; height: 160px; background: rgba(255,255,255,.16); border-radius: 54% 46% 0 0; transform: rotate(-8deg); }
.sidebar-head { position: relative; z-index: 2; height: 88px; display: flex; align-items: center; justify-content: center; padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.14); }
.sidebar-title { font-size: 17px; font-weight: 650; white-space: nowrap; color: #fff; letter-spacing: .02em; }
.nav-list { position: relative; z-index: 2; display: grid; gap: 8px; padding: 20px 12px; }
.nav-item {
  width: 100%; height: 44px; display: flex; align-items: center; gap: 12px;
  padding: 0 15px; color: #fff; background: transparent; border: 0; border-radius: 10px;
  cursor: pointer; text-align: left; transition: background .18s ease, color .18s ease;
}
.nav-item:hover { color: #fff; background: rgba(107,9,38,.12); }
.nav-item.active { color: #fff; background: rgba(107,9,38,.22); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); font-weight: 600; }
.sidebar-mascot { position: absolute; z-index: 1; left: 10px; bottom: -22px; width: 190px; height: auto; pointer-events: none; user-select: none; filter: drop-shadow(0 16px 24px rgba(113,8,39,.22)); }

.main-wrap { grid-column: 2; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 15; height: 64px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; background: rgba(255,255,255,.98); border-bottom: 1px solid #f1e5e9; box-shadow: 0 4px 18px rgba(157,39,71,.04);
}
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 13px; }
.breadcrumb strong { color: var(--ink); font-weight: 600; }
.user-menu { display: flex; align-items: center; gap: 11px; border: 0; background: transparent; cursor: pointer; }
.avatar { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: var(--brand-gradient); border-radius: 8px; font-size: 12px; font-weight: 700; }
.user-name { font-size: 13px; font-weight: 550; }

.main-content { padding: 28px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: 24px; line-height: 1.35; letter-spacing: -.02em; }
.page-desc { margin: 6px 0 0; color: var(--ink-3); font-size: 13px; }
.head-actions { display: flex; align-items: center; gap: 10px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 2px 8px rgba(31,35,41,.03); }
.filter-panel { padding: 18px 20px; margin-bottom: 16px; }
.filter-grid { display: grid; grid-template-columns: minmax(180px, 1.3fr) repeat(3, minmax(130px, .75fr)) auto; gap: 12px; align-items: end; }
.filter-actions { display: flex; gap: 8px; }

.field { display: grid; gap: 7px; }
.field > label, .field-label { color: var(--ink-2); font-size: 13px; font-weight: 550; }
.required::before { content: "*"; margin-right: 4px; color: var(--brand); }
.input, .select, .textarea {
  width: 100%; min-height: 36px; padding: 7px 11px; color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: 6px; transition: border-color .16s ease, box-shadow .16s ease;
}
.input::placeholder, .textarea::placeholder { color: #6f7680; opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: #9ca1aa; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(139,98,214,.09); }
.input.invalid, .select.invalid, .textarea.invalid { border-color: var(--danger); }
.textarea { min-height: 116px; resize: vertical; }
.field-help { color: var(--ink-3); font-size: 12px; }
.field-error { color: var(--danger); font-size: 12px; }
.field-error:empty { display: none; }
.field-hint { display: block; margin-top: 8px; color: var(--ink-3); font-size: 13px; line-height: 1.6; }
.form-grid .input, .form-grid .select { height: 40px; }

.btn {
  min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 15px;
  color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; cursor: pointer;
  font-weight: 550; transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease;
}
.btn:hover { color: var(--action); border-color: var(--action); }
.btn:active { transform: translateY(1px); }
.btn-primary { color: #fff; background: var(--action); border-color: transparent; box-shadow: 0 6px 14px rgba(54,88,212,.18); }
.btn-primary:hover { color: #fff; background: var(--action-hover); border-color: transparent; }
.btn-danger { color: var(--danger); }
.btn-danger:hover { color: #fff; background: var(--danger); border-color: var(--danger); }
.btn-link { min-height: auto; padding: 3px 4px; color: #2468c7; background: transparent; border: 0; font-weight: 500; }
.btn-link:hover { color: var(--action-hover); border: 0; }
.btn-link.danger { color: var(--danger); }
.btn-icon { width: 32px; min-height: 32px; padding: 0; }
.btn:disabled { color: #b6bac2; background: #f4f5f7; border-color: var(--line); cursor: not-allowed; transform: none; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.data-table th { padding: 13px 14px; color: var(--ink-2); background: #fafafa; border-bottom: 1px solid var(--line); font-size: 12px; text-align: left; font-weight: 600; }
.data-table td { padding: 14px; border-bottom: 1px solid #eef0f2; vertical-align: middle; }
.data-table tbody tr:hover { background: #fafbfc; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.content-table th:first-child, .content-table td:first-child { width: 96px; }
.content-table th:nth-child(2), .content-table td:nth-child(2) { min-width: 190px; }
.table-thumb { width: 72px; height: 52px; display: grid; place-items: center; flex: 0 0 auto; color: var(--ink-2); background: #f7eef1; border-radius: 8px; font-size: 17px; font-weight: 700; overflow: hidden; }
.table-thumb img { width: 100%; height: 100%; object-fit: cover; }
.name-main { max-width: 180px; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.tag-row { display: flex; align-items: center; gap: 6px; }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; color: var(--ink-2); background: #f2f3f5; border: 1px solid #e5e6eb; border-radius: 4px; font-size: 12px; }
.tag-red { color: #b71c1c; background: var(--brand-soft); border-color: var(--brand-border); }
.tag-blue { color: #245b9d; background: #e8f3ff; border-color: #bedaff; }
.tag-green { color: #087443; background: var(--success-soft); border-color: #b7ebc6; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.status.on::before { background: var(--success); box-shadow: 0 0 0 3px rgba(0,168,112,.1); }
.status.off { color: var(--ink-3); }
.status.pending::before { background: var(--warning); }
.action-row { display: flex; align-items: center; gap: 6px; }
.table-footer { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-top: 1px solid var(--line); }
.total { color: var(--ink-3); font-size: 13px; }
.pagination { display: flex; gap: 6px; }
.page-btn { width: 32px; height: 32px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; cursor: pointer; }
.page-btn.active { color: #fff; background: var(--action); border-color: transparent; }

.empty { padding: 72px 20px; color: var(--ink-3); text-align: center; }
.empty-symbol { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 12px; color: #b6bac2; background: #f4f5f7; border-radius: 50%; }

.form-page { max-width: 1080px; margin: 0 auto; padding-bottom: 76px; }
.form-section { padding: 24px; margin-bottom: 16px; }
.section-title { margin: 0 0 4px; font-size: 16px; }
.section-desc { margin: 0 0 22px; color: var(--ink-3); font-size: 12px; }
.form-grid-after-title, .section-content { margin-top: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.span-2 { grid-column: 1 / -1; }
.segmented { width: fit-content; display: flex; padding: 3px; background: #f2f3f5; border-radius: 7px; }
.segment { min-width: 88px; padding: 6px 14px; color: var(--ink-2); background: transparent; border: 0; border-radius: 5px; cursor: pointer; }
.segment.active { color: var(--brand); background: #fff; box-shadow: var(--shadow-sm); font-weight: 600; }

.upload-list { display: flex; flex-wrap: wrap; gap: 12px; }
.upload-card { position: relative; width: 112px; height: 112px; overflow: hidden; background: #f6f7f8; border: 1px solid var(--line); border-radius: 8px; }
.upload-card img { width: 100%; height: 100%; object-fit: cover; }
.upload-mock { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #596175 0%, #8c698f 100%); font-size: 28px; font-weight: 700; }
.cover-label { position: absolute; top: 7px; left: 7px; padding: 2px 7px; color: #fff; background: var(--brand-gradient); border-radius: 4px; font-size: 11px; }
.upload-actions { position: absolute; inset: auto 0 0; display: flex; justify-content: center; gap: 4px; padding: 6px; color: #fff; background: rgba(18,18,19,.76); }
.upload-actions button { width: 24px; height: 24px; display: grid; place-items: center; padding: 0; color: #fff; background: transparent; border: 0; cursor: pointer; }
.upload-add { width: 112px; height: 112px; display: grid; place-items: center; align-content: center; gap: 6px; color: var(--ink-3); background: #fafafa; border: 1px dashed #b6bac2; border-radius: 8px; cursor: pointer; }
.upload-add:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.upload-add input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.upload-count { font-size: 12px; }

.tag-input-wrap { min-height: 38px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 5px 8px; background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; }
.tag-input-wrap:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(139,98,214,.09); }
.tag-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; color: #b71c1c; background: var(--brand-soft); border: 1px solid var(--brand-border); border-radius: 4px; font-size: 12px; }
.tag-chip button { display: grid; place-items: center; padding: 0; color: inherit; background: transparent; border: 0; cursor: pointer; }
.tag-editor { flex: 1; min-width: 160px; padding: 2px; border: 0; outline: 0; }

.coord-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.info-strip { display: flex; gap: 10px; padding: 12px 14px; color: #245b9d; background: #f0f7ff; border: 1px solid #cce3ff; border-radius: 7px; font-size: 12px; }

.recommend-list { display: grid; gap: 12px; }
.recommend-item { display: grid; grid-template-columns: 64px minmax(160px, 1fr) minmax(155px, .8fr) minmax(155px, .8fr) auto; gap: 12px; align-items: center; padding: 14px; background: #fafbfc; border: 1px solid var(--line); border-radius: 8px; }
.recommend-thumb { width: 64px; height: 64px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); border: 1px dashed var(--brand-border); border-radius: 7px; cursor: pointer; overflow: hidden; }
.recommend-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recommend-actions { display: flex; gap: 6px; }
.section-add { margin-top: 14px; }
.section-add-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.section-add-row .section-add { margin-top: 0; }
.limit-hint { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }

.form-sticky { position: fixed; inset: auto 0 0 216px; z-index: 12; height: 64px; display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 0 28px; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -8px 22px rgba(31,35,41,.06); }

.tabs { display: flex; gap: 24px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.tab { position: relative; min-height: 48px; padding: 0 2px; color: var(--ink-2); background: transparent; border: 0; cursor: pointer; }
.tab.active { color: var(--brand); font-weight: 600; }
.tab.active::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--brand); }
.tab-content { padding: 20px; }
.sort-value { font-variant-numeric: tabular-nums; }
.category-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); border: 1px solid var(--brand-border); border-radius: 7px; }
.category-icon .icon { width: 18px; height: 18px; }
.category-icon img { width: 20px; height: 20px; object-fit: contain; }
.icon-upload-button { width: 56px; height: 56px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); border: 1px dashed var(--brand-border); border-radius: 8px; overflow: hidden; cursor: pointer; transition: color .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.icon-upload-button:hover { border-color: var(--brand); background: #ffe8ef; }
.icon-upload-button:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(217,27,70,.12); }
.icon-upload-button span { width: 100%; height: 100%; display: grid; place-items: center; }
.icon-upload-button .icon { width: 20px; height: 20px; }
.icon-upload-button img { width: 30px; height: 30px; object-fit: contain; }
.icon-upload-button input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

.switch { position: relative; width: 38px; height: 22px; padding: 0; background: #c9cdd4; border: 0; border-radius: 20px; cursor: pointer; transition: background .18s ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: transform .18s ease; }
.switch.on { background: var(--success); }
.switch.on::after { transform: translateX(16px); }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(16,18,20,.45); animation: fade-in .16s ease both; }
.modal { width: min(480px, 100%); background: #fff; border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.2); animation: modal-in .22s cubic-bezier(.2,.9,.3,1) both; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-body { padding: 20px; }
.modal-body .field + .field { margin-top: 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; background: #fafafa; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; }
.confirm-content { display: flex; gap: 14px; }
.confirm-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; color: var(--danger); background: var(--brand-soft); border-radius: 50%; }
.confirm-content h4 { margin: 1px 0 6px; font-size: 16px; }
.confirm-content p { margin: 0; color: var(--ink-2); line-height: 1.7; }

.toast-root { position: fixed; top: 20px; left: 50%; z-index: 200; display: grid; gap: 10px; transform: translateX(-50%); }
.toast { min-width: 260px; display: flex; align-items: center; gap: 9px; padding: 11px 15px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); animation: toast-in .24s ease both; }
.toast.success { color: #087443; }
.toast.error { color: var(--danger); }

.account-name { display: flex; align-items: center; gap: 10px; }
.account-avatar { width: 34px; height: 34px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 8px; font-weight: 700; }

/* 2026-10 需求调整 */
.login-card-v2 { padding-top: 42px; }
.login-card-v2 h1 { margin-bottom: 28px; }
.login-switch { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.login-switch button { position: relative; height: 44px; color: var(--ink-3); background: transparent; border: 0; cursor: pointer; }
.login-switch button.active { color: var(--brand); font-weight: 650; }
.login-switch button.active::after { content: ""; position: absolute; inset: auto 18px -1px; height: 2px; background: var(--brand); }
.captcha-row { display: grid; grid-template-columns: 1fr 126px; gap: 10px; }
.captcha-code { min-height: 50px; color: var(--brand); background: #fff6f8; border: 1px solid var(--brand-border); border-radius: 10px; font-size: 20px; font-weight: 750; letter-spacing: .14em; cursor: pointer; }
.filter-grid-compact { grid-template-columns: minmax(180px,1.2fr) repeat(3,minmax(135px,.8fr)) auto; }
.content-table-v2 th:first-child, .content-table-v2 td:first-child { width: 88px; }
.content-table-v2 .cell-wrap { min-width: 180px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.point-icon-upload { width: 76px; height: 76px; }
.point-icon-upload img { width: 48px; height: 48px; }
.textarea-short { min-height: 76px; }
.guide-list { display: grid; gap: 12px; }
.guide-item { position: relative; display: grid; gap: 14px; padding: 14px 58px 14px 14px; background: #fafbfc; border: 1px solid var(--line); border-radius: 8px; }
.guide-delete { position: absolute; top: 14px; right: 14px; }
.guide-image-section > label { display: block; margin-bottom: 8px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.guide-image-list { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-image-card, .guide-image-add { position: relative; width: 76px; height: 76px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; }
.guide-image-card img { width: 100%; height: 100%; object-fit: cover; }
.guide-image-actions { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: center; padding: 3px; background: rgba(30,34,43,.72); }
.guide-image-actions button { display: grid; width: 22px; height: 22px; padding: 0; place-items: center; color: #fff; background: transparent; border: 0; border-radius: 4px; cursor: pointer; }
.guide-image-actions button:disabled { opacity: .35; cursor: not-allowed; }
.guide-image-actions .icon { width: 13px; height: 13px; }
.guide-image-add { display: grid; place-items: center; align-content: center; gap: 4px; color: var(--brand); background: #fff; border-style: dashed; border-color: var(--brand-border); cursor: pointer; font-size: 12px; }
.guide-image-add .icon { width: 20px; height: 20px; }
.section-head-inline { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.route-form-page { max-width: 1180px; }
.route-map { position: relative; height: 480px; margin-top: 20px; overflow: hidden; cursor: crosshair; background-color: #edf3ec; background-image: linear-gradient(rgba(157,174,157,.16) 1px,transparent 1px),linear-gradient(90deg,rgba(157,174,157,.16) 1px,transparent 1px); background-size: 32px 32px; border: 1px solid #cfd9ce; border-radius: 10px; }
.route-layer { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.route-layer polyline { fill: none; stroke: var(--brand); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.route-node { position: absolute; z-index: 4; width: 28px; height: 28px; padding: 0; color: #fff; background: var(--brand); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 4px 10px rgba(120,30,52,.24); transform: translate(-50%,-50%); cursor: pointer; font-size: 11px; font-weight: 700; }
.log-filter-v2 { grid-template-columns: minmax(130px,.8fr) minmax(150px,.9fr) repeat(2,minmax(145px,.8fr)) minmax(130px,.7fr) auto; }
.detail-list { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.detail-list > div { display: grid; grid-template-columns: 110px 1fr; border-bottom: 1px solid var(--line); }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt, .detail-list dd { margin: 0; padding: 10px 12px; }
.detail-list dt { color: var(--ink-2); background: #fafafa; font-weight: 600; }
.detail-list dd { white-space: normal; word-break: break-word; }

.user-actions { display: flex; align-items: center; gap: 14px; }
.account-flag { margin-left: 10px; }
.publish-status { margin-top: 20px; }
.coord-actions { margin: 16px 0; }
.coord-readout { margin-top: 14px; }
.coord-readout .input[readonly] { color: var(--ink-2); background: #f7f8fa; }
.empty.compact { padding: 30px 20px; }

.map-picker {
  position: relative; height: 280px; margin-top: 18px; overflow: hidden; cursor: crosshair;
  background-color: #edf3ec;
  background-image: linear-gradient(rgba(157,174,157,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(157,174,157,.16) 1px, transparent 1px);
  background-size: 32px 32px; border: 1px solid #cfd9ce; border-radius: 10px;
}
.map-picker:focus-visible { outline: 3px solid rgba(217,27,70,.18); outline-offset: 2px; }
.map-road { position: absolute; display: block; background: #fff; border: 1px solid #d9dcda; box-shadow: 0 0 0 5px rgba(255,255,255,.55); }
.road-one { width: 130%; height: 22px; left: -15%; top: 46%; transform: rotate(-7deg); }
.road-two { width: 22px; height: 130%; left: 65%; top: -15%; transform: rotate(12deg); }
.map-building { position: absolute; display: grid; place-items: center; color: #64736a; background: #d8e4d5; border: 1px solid #bacbb8; border-radius: 8px; font-size: 12px; }
.map-building.b1 { left: 9%; top: 15%; width: 150px; height: 70px; }
.map-building.b2 { right: 8%; top: 15%; width: 122px; height: 58px; }
.map-building.b3 { left: 18%; bottom: 10%; width: 118px; height: 52px; }
.map-marker { position: absolute; z-index: 3; width: 24px; height: 24px; transform: translate(-50%,-100%); background: var(--brand); border: 3px solid #fff; border-radius: 50% 50% 50% 0; box-shadow: 0 4px 12px rgba(120,30,52,.28); rotate: -45deg; }
.map-marker span { position: absolute; inset: 6px; background: #fff; border-radius: 50%; }
.map-hint { position: absolute; right: 12px; bottom: 12px; padding: 5px 9px; color: var(--ink-2); background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 6px; font-size: 12px; }

.role-filter { display: grid; grid-template-columns: minmax(220px, 380px) auto; gap: 12px; align-items: end; }
.log-filter { display: grid; grid-template-columns: minmax(150px,1fr) minmax(180px,1.2fr) repeat(2,minmax(150px,.8fr)) auto; gap: 12px; align-items: end; }
.log-options { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13px; }
.log-options label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.log-detail { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.status.failed { color: var(--danger); }
.status.failed::before { background: var(--danger); }

.permission-list { display: grid; gap: 8px; }
.permission-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; background: #fafbfc; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.permission-row input { margin-top: 4px; accent-color: var(--brand); }
.permission-row span { display: grid; gap: 2px; }
.permission-row strong { color: var(--ink); font-size: 13px; }
.permission-row small { color: var(--ink-3); font-size: 12px; }

@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 1100px) {
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .recommend-item { grid-template-columns: 64px 1fr 1fr; }
  .recommend-actions { grid-column: 2 / -1; justify-content: flex-end; }
  .log-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .log-filter-v2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .login-page { place-items: end center; padding: 24px; background-position: 34% center; }
  .login-card { padding: 36px 26px 32px; border-radius: 20px; }
  .login-card h1 { margin-bottom: 30px; font-size: 24px; }
  .app-shell { display: block; }
  .sidebar { position: sticky; top: 0; width: 100%; height: auto; display: flex; align-items: center; }
  .sidebar-head { width: 185px; border-bottom: 0; }
  .nav-list { display: flex; flex: 1; padding: 10px; overflow-x: auto; }
  .nav-item { width: auto; min-width: max-content; }
  .sidebar-mascot, .sidebar::after { display: none; }
  .main-wrap { width: 100%; }
  .topbar { top: 64px; padding: 0 18px; }
  .main-content { padding: 18px; }
  .form-grid, .filter-grid, .coord-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .page-head { align-items: stretch; flex-direction: column; }
  .head-actions .btn { width: 100%; }
  .recommend-item { grid-template-columns: 56px 1fr; }
  .recommend-item > .field { grid-column: 1 / -1; }
  .recommend-actions { grid-column: 1 / -1; }
  .form-sticky { left: 0; }
  .user-name { display: none; }
  .user-actions .btn-link { display: none; }
  .role-filter, .log-filter { grid-template-columns: 1fr; }
  .map-picker { height: 230px; }
  .filter-grid-compact, .log-filter-v2 { grid-template-columns: 1fr; }
  .guide-item { padding-right: 50px; }
  .route-map { height: 340px; }
}
