/* ==========================================================================
   管理站 · 视觉统一层（沿用既有系统同一套视觉语言）
   性质：纯显示层，不含业务逻辑；只覆盖本站已存在的组件
   ========================================================================== */
* {
  box-sizing: border-box;
}
.shell {
  width: min(1120px, calc(100% - 40px));
  padding-top: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.button-primary {
  font-weight: 650;
}
.button-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}
.button-quiet {
  color: var(--green-dark);
  background: #fff;
  border: 1px solid #cbd6d2;
}
.button-quiet:hover {
  color: var(--green-dark);
  background: #f7faf8;
  border-color: var(--green);
}
.button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.button:disabled {
  color: #8b979e;
  background: #f3f5f5;
  border-color: #e0e6e3;
  cursor: not-allowed;
}
.button-primary:disabled {
  color: #fff;
  background: #8fa8a0;
  border-color: #8fa8a0;
}
.button-quiet:disabled {
  color: #8b979e;
  background: #f7f8f8;
  border-color: #e0e6e3;
}
.topbar {
  --band-h: 56px;
  height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: var(--band-h) auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background-color: #fff;
  background-image: linear-gradient(135deg, #1d7a62 0%, #176b58 55%, #105544 100%);
  background-repeat: no-repeat;
  background-size: 100% var(--band-h);
  box-shadow: 0 4px 16px rgba(31, 70, 60, .1), 0 0 0 1px rgba(31, 70, 60, .06);
  overflow: hidden;
}
.brand {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  height: auto;
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .5px;
  text-decoration: none;
}
.brand-mark {
  width: 28px;
  height: 28px;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 8px;
}
.topbar-right {
  display: contents;
}
#system-status {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  margin-right: 16px;
  height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
}
#system-status::before {
  flex: 0 0 auto;
  background: #8ef0c8;
}
#system-status:hover {
  background: rgba(255, 255, 255, .2);
}
#system-status.system-status-error {
  color: #ffe8e3;
  border-color: rgba(255, 190, 180, .62);
}
#system-status.system-status-error::before {
  background: #ffa191;
}
.page-heading {
  padding: 20px 0 14px;
}
.page-heading h1 {
  font-size: 24px;
}
.heading-meta {
  display: none;
}
input, select {
  height: 42px;
  border-radius: 8px;
  font-size: 14px;
}
textarea {
  border-radius: 8px;
  font-size: 14px;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 107, 88, .14);
}
input::placeholder, textarea::placeholder {
  color: #9aa5a1;
}
input:disabled, select:disabled, textarea:disabled {
  color: #8b979e;
  background: #f3f5f5;
  border-color: #e0e6e3;
  opacity: 1;
  cursor: not-allowed;
}
.section-heading {
  align-items: flex-start;
}
.section-heading > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.modal-actions {
  justify-content: flex-end;
}
.modal-panel {
  overscroll-behavior: contain;
}
@media (max-width: 900px) {
  .topbar {
    --band-h: 52px;
  }
  .brand {
    margin-left: 0;
    font-size: 15px;
  }
  #system-status {
    margin-right: 12px;
  }
}
@media (max-width: 560px) {
  .shell {
    width: calc(100% - 24px);
    padding-top: 10px;
  }
  .topbar {
    --band-h: 50px;
    column-gap: 8px;
  }
  .brand {
    margin-left: 0;
    font-size: 14px;
    gap: 8px;
  }
  .brand-mark {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    font-size: 13px;
  }
  #system-status {
    margin-right: 10px;
    width: 30px;
    height: 30px;
    padding: 0;
    font-size: 0;
    gap: 0;
  }
  #system-status::before {
    margin: 0;
  }
  .page-heading {
    padding: 14px 0 10px;
  }
  .page-heading h1 {
    font-size: 21px;
  }
  .page-heading .eyebrow {
    margin-bottom: 5px;
    font-size: 10px;
  }
  .page-heading .muted {
    font-size: 12px;
  }
  .section-heading {
    margin-bottom: 12px;
  }
  .section-heading h2 {
    font-size: 15px;
  }
  .section-heading p {
    font-size: 11px;
  }
  .section-heading.compact h3 {
    font-size: 13px;
  }
  .button {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 13px;
  }
  .section-heading > div:last-child {
    width: 100%;
    flex-wrap: wrap;
  }
  .modal-actions {
    flex-direction: column-reverse;
  }
  .modal-actions .button {
    width: 100%;
  }
}
.topbar {
  grid-template-rows: var(--band-h);
}
.topbar {
  --band-h: 88px;
}
.brand {
  gap: 11px;
  font-size: 19px;
  letter-spacing: .6px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 16px;
}
#system-status {
  height: 34px;
  padding: 0 15px;
  font-size: 12.5px;
}
@media (max-width: 900px) {
  .topbar {
    --band-h: 80px;
  }
  .brand {
    font-size: 18px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
  }
}
@media (max-width: 560px) {
  .topbar {
    --band-h: 72px;
  }
  .brand {
    gap: 9px;
    font-size: 16px;
  }
  .brand-mark {
    width: 29px;
    height: 29px;
    border-radius: 8px;
    font-size: 14px;
  }
  #system-status {
    width: 32px;
    height: 32px;
  }
}
.topbar {
  --band-h: 120px;
  position: relative;
}
.topbar::before,
.topbar::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  pointer-events: none;
}
.topbar::before {
  width: 190px;
  height: 190px;
  top: -95px;
  left: -60px;
}
.topbar::after {
  width: 150px;
  height: 150px;
  right: -50px;
  bottom: -85px;
}
.brand {
  font-size: 20px;
  gap: 12px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 18px;
}
#system-status {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}
@media (max-width: 900px) {
  .topbar {
    --band-h: 104px;
  }
  .brand {
    font-size: 19px;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
  }
  .topbar::before {
    width: 150px;
    height: 150px;
    top: -80px;
  }
  .topbar::after {
    width: 120px;
    height: 120px;
    bottom: -70px;
  }
}
@media (max-width: 560px) {
  .topbar {
    --band-h: 88px;
  }
  .brand {
    font-size: 17px;
    gap: 9px;
  }
  .brand-mark {
    width: 31px;
    height: 31px;
    border-radius: 9px;
    font-size: 15px;
  }
  #system-status {
    width: 34px;
    height: 34px;
    padding: 0;
    gap: 0;
    font-size: 0;
  }
  #system-status::before {
    margin: 0;
  }
  .topbar::before {
    width: 120px;
    height: 120px;
    top: -66px;
  }
  .topbar::after {
    display: none;
  }
}
body {
  overflow-x: clip;
}
.shell {
  padding-top: 0;
}
.topbar {
  --band-h: 132px;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-inline: max(20px, calc((100vw - 1120px) / 2));
  border-radius: 0;
  box-shadow: 0 7px 24px rgba(31, 70, 60, .18);
  background-image: linear-gradient(135deg, #1d7a62 0%, #20805f 54%, #176b58 100%);
  background-size: 100% 100%;
}
.topbar::before {
  width: 210px;
  height: 210px;
  top: -142px;
  left: 8%;
  right: auto;
  bottom: auto;
}
.topbar::after {
  display: block;
  width: 290px;
  height: 290px;
  right: 7%;
  bottom: -245px;
  top: auto;
  left: auto;
}
.brand {
  gap: 11px;
  font-size: 28px;
  font-weight: 760;
  letter-spacing: .5px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  color: #176b58;
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 12px;
  font-size: 20px;
  font-weight: 700;
}
#system-status {
  height: 48px;
  padding: 0 16px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
}
@media (max-width: 900px) {
  .topbar {
    padding-inline: 28px;
  }
  .brand {
    font-size: 26px;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }
  .topbar::before {
    width: 180px;
    height: 180px;
    top: -120px;
  }
  .topbar::after {
    width: 230px;
    height: 230px;
    bottom: -195px;
  }
}
@media (max-width: 560px) {
  .topbar {
    --band-h: 112px;
    padding-inline: 18px;
  }
  .brand {
    gap: 9px;
    font-size: 21px;
    letter-spacing: .3px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 17px;
  }
  #system-status {
    width: 48px;
    height: 48px;
    padding: 0;
    gap: 0;
    font-size: 0;
    border-radius: 8px;
  }
  #system-status::before {
    margin: 0;
    width: 9px;
    height: 9px;
  }
  .topbar::before {
    width: 130px;
    height: 130px;
    top: -78px;
    left: 6%;
  }
  .topbar::after {
    display: none;
  }
}
@media (max-width: 560px) {
  .topbar #system-status {
    grid-column: 3;
    grid-row: 1;
  }
}
