:root { color-scheme: light; color: #172642; background: #f5f7fb; font: 15px/1.55 "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif; --ink: #172642; --muted: #58657c; --border: #dfe5ef; --blue: #254cc7; --blue-soft: #eaf0ff; }
* { box-sizing: border-box; } [hidden] { display: none !important; }
body { margin: 0; min-width: 300px; } h1, h2, h3, p { margin: 0; } h1 { font-size: 27px; line-height: 1.4; letter-spacing: -.02em; } h2 { font-size: 23px; line-height: 1.4; }
button, input, textarea, select { font: inherit; } a { color: #234daf; } button { cursor: pointer; } button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 3px solid #5274dc; outline-offset: 3px; }
.skip-link { position: fixed; top: 10px; left: 16px; transform: translateY(-150%); padding: 10px 15px; border-radius: 8px; background: #fff; color: var(--blue); z-index: 200; } .skip-link:focus { transform: none; }
#admin-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--border); }
.header-inner { width: min(1480px, calc(100% - 64px)); min-height: 80px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-start, .brand, .identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand { color: var(--ink); text-decoration: none; font-size: 22px; font-weight: 800; white-space: nowrap; } .brand img { object-fit: contain; flex-shrink: 0; }
.brand-tag { margin-left: 6px; padding-left: 16px; border-left: 1px solid var(--border); color: var(--muted); font-size: 13px; font-weight: 500; }
.identity { flex-shrink: 0; gap: 10px; font-size: 14px; } #admin-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 15px; border: 1px solid #b6c4dc; border-radius: 9px; background: #fff; color: #234687; font-weight: 650; white-space: nowrap; text-decoration: none; }
.button:hover:enabled { background: #f1f5ff; border-color: #6c88c3; } .primary { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 2px 4px #254cc718; } .primary:hover:enabled { background: #193a9e; border-color: #193a9e; }
.danger { color: #a12c46; border-color: #d5a8b2; } .danger:hover:enabled { background: #fff0f3; border-color: #a12c46; } .menu-toggle { display: none; padding: 9px; }
main { width: min(1480px, calc(100% - 64px)); margin: 28px auto 70px; }
.admin-shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 32px; align-items: start; }
.admin-sidebar { position: sticky; top: 108px; display: flex; flex-direction: column; max-height: calc(100dvh - 132px); overflow-y: auto; padding: 20px 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 13px 12px; color: var(--ink); font-size: 14px; font-weight: 750; }
.admin-navigation { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.navigation-group { display: grid; gap: 5px; } .navigation-label { padding: 0 13px; color: #7b879c; font-size: 11px; font-weight: 600; letter-spacing: .07em; }
.admin-navigation a { position: relative; display: flex; align-items: center; gap: 11px; min-height: 43px; padding: 10px 13px; border: 1px solid transparent; border-radius: 9px; color: #465671; text-decoration: none; font-size: 14px; font-weight: 550; }
.admin-navigation a:hover { background: #f5f7fc; color: var(--ink); } .admin-navigation a[aria-current="page"] { background: var(--blue-soft); border-color: #dbe4fd; color: var(--blue); font-weight: 700; }
.admin-navigation svg { width: 19px; height: 19px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-note { margin: 24px 13px 0; padding-top: 15px; border-top: 1px solid #edf0f6; color: #8b95a7; font-size: 11px; }
.admin-content, .admin-panel { min-width: 0; } .content-context { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; color: #8a95a7; font-size: 12px; } #admin-current-page { color: #52627d; }
.admin-panel { scroll-margin-top: 106px; } .admin-panel > .finance-section:first-of-type, .admin-panel > .password-section { margin-top: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-width: 0; }
.eyebrow { color: #6a7c9c; font-size: 11px; font-weight: 650; letter-spacing: .09em; margin-bottom: 5px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 2px 6px #17264203; }
.subtle { color: var(--muted); font-size: 13px; } .description { margin: 10px 0 20px; line-height: 1.75; } .error { color: #a1263f; background: #fff0f3; border-radius: 9px; padding: 10px 12px; margin: 10px 0; } .notice { text-align: center; padding: 45px 10px; color: var(--muted); }
.signin { width: min(450px, 100%); margin: 50px auto; padding: 32px; } .login-logo { display: block; margin: 0 auto 15px; object-fit: contain; } .signin h1, .signin > p { text-align: center; } .signin form { margin-top: 24px; } .signin button { width: 100%; margin-top: 20px; }
label { display: block; font-size: 14px; font-weight: 600; margin: 15px 0 6px; } input:not([type="checkbox"]), textarea { display: block; width: 100%; min-width: 0; min-height: 44px; border: 1px solid #bcc7da; border-radius: 8px; padding: 10px 12px; background: #fff; color: var(--ink); } textarea { resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; margin: 0; white-space: nowrap; } .check input { width: 18px; height: 18px; accent-color: var(--blue); }
.search { display: flex; align-items: center; gap: 12px; padding: 16px; margin: 20px 0 12px; } .search-label { white-space: nowrap; margin: 0; font-size: 13px; } .search input[type="search"] { flex: 1; } #list-status { margin: 12px 0; }
.table-scroll { width: 100%; min-width: 0; overflow: auto; } table { border-collapse: collapse; width: 100%; font-size: 13px; } th { background: #f8faff; color: #68778f; text-align: left; font-weight: 600; white-space: nowrap; } td, th { padding: 14px 16px; border-bottom: 1px solid #e9edf4; vertical-align: middle; } td { overflow-wrap: anywhere; } tbody tr:last-child td { border-bottom: 0; } tbody tr:hover { background: #fcfdff; }
.actions-heading, .row-actions { text-align: right; } .row-action-group { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; } .row-actions .button { font-size: 12px; min-height: 34px; padding: 6px 10px; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 600; white-space: nowrap; background: #e8f4ed; color: #19664c; } .badge.disabled { background: #fff2dc; color: #855618; } .badge.archived { background: #edf0f5; color: #67748d; } .empty { padding: 35px 20px; color: var(--muted); text-align: center; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 13px; margin: 16px 0; }
.password-section { margin-top: 38px; padding: 28px; } .password-section form { max-width: 480px; } .password-section form > .button { margin-top: 20px; } .password-section > p { margin-top: 8px; }
dialog { width: min(520px, calc(100% - 28px)); border: 1px solid #d8dfea; border-radius: 16px; padding: 0; color: var(--ink); box-shadow: 0 20px 80px #15294d26; max-height: calc(100dvh - 32px); } dialog::backdrop { background: #13244475; } .modal-form { padding: 26px; } .modal-form > p { margin: 10px 0; } .modal-form .check { margin: 17px 0 5px; } .modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 24px; } #credential-text { font-family: ui-monospace, monospace; font-size: 14px; }
.feedback { position: fixed; z-index: 40; left: 50%; bottom: 22px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 30px); background: #172642; color: #fff; border-radius: 10px; padding: 12px 18px; font-size: 14px; box-shadow: 0 4px 20px #17264225; } .feedback:empty { display: none; }
.finance-section { margin-top: 32px; scroll-margin-top: 106px; } .finance-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 20px 0 14px; } .finance-metric { padding: 19px; min-width: 0; } .finance-metric strong { display: block; font-size: 25px; line-height: 1.3; margin: 9px 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.finance-details { display: flex; flex-direction: column; gap: 5px; overflow-wrap: anywhere; } .finance-details span:empty { display: none; } .finance-details span + span { color: var(--muted); font-size: 12px; } .finance-warning { background: #fff5df; border: 1px solid #eddbb8; color: #765314; border-radius: 10px; padding: 12px; font-size: 14px; } .finance-confirm { white-space: normal; align-items: flex-start; } .finance-confirm input { flex-shrink: 0; }
.modal-form select, .cloud-edit-card select { display: block; width: 100%; min-height: 44px; border: 1px solid #bcc7da; border-radius: 8px; padding: 9px 12px; color: var(--ink); background: white; } #traffic-batch-text { font: 13px/1.8 ui-monospace, monospace; overflow-wrap: anywhere; }
.cloud-resource-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 15px; } .cloud-resource { padding: 22px; min-width: 0; overflow-wrap: anywhere; } .cloud-resource h3 { font-size: 18px; margin: 12px 0 4px; } .cloud-resource > p { margin: 8px 0; }
.cloud-resource-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; } .cloud-resource-values .finance-details span:first-child { font-size: 12px; color: var(--muted); } .cloud-resource-values .finance-details span + span { font-size: 17px; font-weight: 700; color: var(--ink); }
.wide-dialog { width: min(860px, calc(100% - 28px)); } .cloud-edit-rows { margin: 24px 0 16px; } .cloud-edit-card { border: 1px solid var(--border); border-radius: 12px; min-width: 0; margin: 18px 0; padding: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .cloud-edit-card legend { font-size: 14px; font-weight: 700; padding: 0 7px; } .cloud-edit-card label { margin: 0; min-width: 0; } .cloud-edit-card input, .cloud-edit-card textarea, .cloud-edit-card select { margin-top: 6px; } .cloud-edit-card .button { align-self: end; }
.overview-customers { grid-template-columns: minmax(0, 1fr); max-width: 440px; } .overview-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 24px; } .overview-action { display: flex; flex-direction: column; gap: 9px; padding: 22px; text-decoration: none; color: var(--ink); } .overview-action:hover { border-color: #9bacce; background: #fafbff; } .overview-action strong { font-size: 17px; }
.menu-backdrop { position: fixed; inset: 0; z-index: 90; width: 100%; height: 100%; border: 0; background: #13244470; cursor: default; }
@media (min-width: 1001px) and (max-width: 1240px) { .admin-shell { grid-template-columns: 206px minmax(0, 1fr); gap: 24px; } .search { flex-wrap: wrap; } .search input[type="search"] { flex-basis: 65%; } .finance-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) {
  .header-inner, main { width: calc(100% - 40px); } .header-inner { min-height: 74px; gap: 14px; } .header-start { gap: 10px; } .brand-tag { display: none; } .menu-toggle { display: inline-flex; }
  .admin-shell { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .admin-sidebar { position: fixed; z-index: 100; top: 16px; left: 16px; bottom: 16px; width: min(280px, calc(100vw - 40px)); max-height: none; padding-top: 16px; visibility: hidden; transform: translateX(calc(-100% - 24px)); transition: transform .18s ease, visibility .18s; box-shadow: 0 15px 70px #13244435; overscroll-behavior: contain; }
  .admin-shell[data-menu-open="true"] .admin-sidebar { visibility: visible; transform: none; }
  .sidebar-heading { padding-right: 3px; margin-bottom: 4px; } .menu-close { min-height: 40px; padding: 6px 10px; border-color: transparent; background: #f5f7fc; font-size: 12px; } .menu-close span { font-size: 21px; line-height: 1; }
  .admin-navigation { gap: 17px; } .admin-navigation a { min-height: 44px; } .content-context { margin-bottom: 18px; }
  .search { flex-wrap: wrap; } .search input[type="search"] { flex-basis: 65%; } .finance-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cloud-edit-card { grid-template-columns: repeat(2, minmax(0, 1fr)); } .row-actions { min-width: 185px; }
}
@media (max-width: 650px) {
  .header-inner, main { width: calc(100% - 28px); } .header-inner { min-height: 72px; flex-wrap: wrap; gap: 8px; padding: 11px 0; } .header-start { gap: 7px; } .brand { gap: 6px; font-size: 17px; } .brand img { width: 35px; height: 26px; }
  .identity { margin-left: auto; gap: 7px; font-size: 12px; } #admin-name { max-width: 84px; } .identity .button { font-size: 12px; padding: 7px 9px; } .button { min-height: 44px; padding-inline: 12px; } .menu-toggle { padding: 9px; }
  main { margin-top: 20px; } h1 { font-size: 23px; } h2 { font-size: 21px; } .signin { padding: 25px 20px; margin-top: 28px; } .admin-panel > .section-heading, .admin-panel > section > .section-heading { flex-wrap: wrap; align-items: flex-start; }
  .search { gap: 10px; padding: 14px; margin-top: 18px; } .search-label { width: 100%; } .search input[type="search"] { flex-basis: 100%; } .check { font-size: 13px; } .search .button { flex: 1; }
  table, thead, tbody, tr, td { display: block; } thead { display: none; } tbody tr { display: grid; grid-template-columns: 1fr 1fr; padding: 15px; gap: 11px; border-bottom: 1px solid #e7eaf0; } tbody tr:last-child { border-bottom: 0; }
  td { padding: 0; border: 0; min-width: 0; overflow-wrap: anywhere; } td::before { content: attr(data-label); display: block; font-size: 11px; color: #6c7a91; margin-bottom: 3px; } td.row-actions { grid-column: 1/-1; display: block; min-width: 0; margin-top: 5px; text-align: left; } .row-actions .row-action-group { justify-content: flex-start; margin-top: 6px; } .row-actions .button { min-height: 44px; font-size: 12px; padding-inline: 11px; }
  .pagination { justify-content: space-between; gap: 6px; } .pagination .button { font-size: 12px; } .pagination span { font-size: 12px; } .password-section { padding: 20px; } .modal-form { padding: 23px 20px; }
  .finance-metrics { gap: 10px; } .finance-metric { padding: 15px; } .finance-metric strong { font-size: 21px; } .cloud-resource-list, .overview-actions { grid-template-columns: minmax(0, 1fr); } .cloud-resource, .overview-action { padding: 18px; } .cloud-edit-card { grid-template-columns: minmax(0, 1fr); padding: 12px; } .finance-confirm { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .admin-sidebar { transition: none; } }
.evidence-list { list-style: none; margin: 8px 0; padding: 0; }
.evidence-list li { padding: 8px 0; border-bottom: 1px solid #e3e9f0; overflow-wrap: anywhere; }
.evidence-list small { display: block; color: var(--muted); }
#evidence-add { margin-top: 16px; }
#evidence-add > summary { padding: 10px 0; cursor: pointer; font-weight: 650; }
#evidence-add > p { margin: 8px 0; }
