:root {
  --brand: #f75b2b;
  --brand-dark: #f75b2b;
  --ink: #202327;
  --muted: #8a93a2;
  --line: #e8ebf1;
  --panel: #ffffff;
  --soft: #f4f6fa;
  --nav: #222327;
  --ok: #19b77a;
  --warning: #f2a02a;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f2f4f8;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background-image:
    linear-gradient(90deg, rgba(13, 27, 39, 0.72), rgba(13, 27, 39, 0.28)),
    url("/assets/img/system/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.login-card {
  width: min(760px, 92vw);
  min-height: 500px;
  padding: 58px min(92px, 9vw);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 14px;
  box-shadow: 0 22px 70px rgba(18, 32, 48, 0.22);
}

.login-brand {
  display: flex;
  justify-content: center;
  margin: 0 0 26px;
}

.login-title {
  margin: 0 0 34px;
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
}

.field {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  height: 60px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  background: #f8f9fc;
}

.field-icon {
  display: grid;
  place-items: center;
  height: 100%;
  color: #a9b3c2;
  border-right: 1px solid var(--line);
}

.field-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.field input {
  width: 100%;
  height: 100%;
  padding: 0 18px;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
}

.login-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0 22px;
  color: #5e6878;
  font-size: 14px;
}

.check {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.link-button {
  padding: 0;
  color: var(--brand-dark);
  background: transparent;
}

.primary-btn {
  width: 100%;
  height: 60px;
  color: #fff;
  background: var(--brand);
  font-size: 22px;
  font-weight: 800;
  transition: 0.18s ease;
}

.primary-btn:hover {
  background: var(--brand-dark);
}

.message {
  min-height: 24px;
  margin-top: 14px;
  color: var(--brand-dark);
  text-align: center;
}

.reset-panel {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fbfcff;
}

.reset-panel h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.reset-card {
  width: min(620px, 92vw);
  min-height: auto;
}

.reset-page-panel {
  margin-top: 0;
  padding: 28px;
}

.reset-page-panel p {
  margin: 0 0 18px;
  color: #273140;
}

.reset-primary {
  height: 50px;
  margin-top: 4px;
  font-size: 18px;
}

.reset-back {
  display: block;
  margin: 16px auto 0;
}

.plain-input {
  width: 100%;
  min-height: 42px;
  margin-bottom: 12px;
  padding: 0 13px;
  border: 1px solid var(--line);
  outline: none;
  background: #fff;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  background: var(--nav);
  color: #fff;
}

.brand {
  width: 195px;
  min-width: 195px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  width: 175px;
  height: 50px;
  flex: 0 0 175px;
  object-fit: contain;
}

.brand-logo-fallback {
  width: 175px;
  height: 50px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-self: stretch;
  gap: 6px;
  min-width: 0;
}

.nav button {
  min-width: 96px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #f7f7f7;
  background: transparent;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
}

.nav-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav button.active,
.nav button:hover {
  background: var(--brand);
}

.top-actions {
  margin-left: auto;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 0 20px;
  white-space: nowrap;
}

.admin-top-search {
  width: 300px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  color: #1f2732;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.admin-search-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

.admin-search-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-top-search input {
  min-width: 0;
  flex: 1;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0 !important;
  color: #1f2732;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: none;
  box-shadow: none !important;
  appearance: none;
  font-size: 14px;
}

.admin-top-search input::placeholder {
  color: #8c96a3;
}

.admin-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.admin-menu-btn {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 0 8px;
  color: #fff !important;
  background: transparent !important;
  font-size: 14px;
  font-weight: 700;
}

.admin-menu-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.admin-menu-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 60;
  width: 168px;
  display: none;
  padding: 8px;
  background: #fff;
  border: 1px solid #e5e9f0;
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.admin-menu-popover.open {
  display: grid;
}

.admin-menu-popover button {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  color: #344054;
  background: transparent;
  border-radius: 4px;
  text-align: left;
  font-size: 14px;
}

.admin-menu-popover button:hover {
  color: var(--brand-dark);
  background: #fff3ef;
}

.page {
  padding: 20px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(520px, 3fr) minmax(260px, 1.2fr);
  gap: 20px;
}

.card,
.panel {
  background: var(--panel);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(18, 32, 48, 0.04);
}

.welcome-card {
  overflow: hidden;
}

.welcome-head {
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, #4374ff, #2ed0bd);
}

.welcome-head h2 {
  margin: 0 0 9px;
  font-size: 22px;
}

.notice {
  padding: 20px 24px;
  color: #2d3b4f;
  min-height: 138px;
  background: linear-gradient(180deg, #f7fbff, #fff);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 800;
}

.section-title::before {
  content: "";
  width: 3px;
  height: 18px;
  background: var(--brand);
}

.metrics {
  padding: 24px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 20px;
}

.metric {
  min-height: 112px;
  padding: 18px 20px;
  background: #f7f8fb;
  border-radius: 6px;
}

.metric-label {
  color: #536071;
}

.metric-value {
  margin-top: 12px;
  font-size: 34px;
  font-weight: 800;
}

.todo {
  padding: 24px;
}

.todo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.todo-item {
  min-height: 72px;
  display: grid;
  place-items: center;
  background: #f8f9fc;
  border-radius: 5px;
}

.todo-item strong {
  display: block;
  font-size: 28px;
}

.lower-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 340px minmax(420px, 1.4fr) repeat(3, minmax(220px, 1fr));
  gap: 20px;
}

.quick {
  padding: 24px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.quick button {
  min-height: 78px;
  display: grid;
  gap: 8px;
  place-items: center;
  background: transparent;
  font-weight: 700;
}

.quick-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 8px;
}

.chart-card {
  min-height: 344px;
  padding: 24px;
}

.chart-placeholder {
  height: 250px;
  display: grid;
  align-items: end;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to top, transparent 0, transparent 49px, #edf0f5 50px);
}

.bar {
  min-height: 2px;
  background: var(--brand);
}

.empty {
  height: 250px;
  display: grid;
  place-items: center;
  color: #9aa3af;
}

.settings-workspace {
  min-width: 0;
  background: #f4f6fa;
}

.settings-editor-page {
  min-height: calc(100vh - 92px);
  padding-bottom: 76px;
}

.settings-breadcrumb {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8a93a2;
  font-size: 14px;
}

.settings-breadcrumb button {
  color: #8a93a2;
  background: transparent;
}

.settings-breadcrumb strong {
  color: #242a33;
  font-weight: 700;
}

.settings-section {
  min-width: 0;
  max-width: 100%;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}

.settings-section + .settings-section {
  margin-top: 24px;
}

.settings-section-head {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid #eceef3;
}

.settings-section-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.settings-head-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.settings-head-actions #settingsMsg {
  color: var(--brand-dark);
  font-size: 13px;
}

.settings-head-save {
  min-width: 76px;
  height: 42px;
}

.settings-edit-btn {
  min-width: 56px;
  height: 42px;
  padding: 0 14px;
  color: #fff;
  background: var(--brand);
  border-radius: 4px;
}

.settings-module-page {
  min-width: 0;
}

.operation-log-section {
  min-height: 0;
}

.settings-editor-section {
  min-height: 0;
}

.settings-page-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  max-width: 1480px;
  padding: 28px 38px 48px;
}

.basic-settings-form {
  grid-template-columns: minmax(500px, 1fr) minmax(500px, 1fr) 460px;
  max-width: none;
  align-items: start;
}

.settings-page-form label {
  display: grid;
  align-content: start;
  gap: 9px;
  color: #4f5b6b;
}

.settings-page-form .plain-input {
  margin-bottom: 0;
}

.settings-page-form textarea.plain-input {
  padding-top: 12px;
  padding-bottom: 12px;
  line-height: 1.65;
  resize: vertical;
}

.settings-page-form label > span {
  font-size: 14px;
}

.settings-form-column {
  display: grid;
  align-content: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}

.site-name-and-logo {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  align-items: start;
}

.site-name-field,
.site-short-name-field {
  max-width: calc(100% - 50px);
}

.site-name-field .plain-input,
.site-short-name-field .plain-input {
  width: 100%;
}

.seo-keywords-field,
.seo-description-field,
.seo-page-field,
.remote-attachment-field {
  grid-column: 1 / -1;
}

.seo-page-field textarea.plain-input {
  min-height: 118px;
}

.home-hero-upload {
  margin-bottom: 4px;
}

.site-description-textarea {
  height: 190px;
  min-height: 190px;
}

.asset-upload-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.login-security-column {
  grid-template-columns: 1fr;
  gap: 24px;
  padding-left: 0;
  border-left: 0;
}

.settings-friend-links-column {
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 790px;
  width: 460px;
  padding: 0 0 0 26px;
  border-left: 1px solid #eef1f5;
}

.login-background-upload {
  margin-bottom: 4px;
}

.resource-setting-row {
  min-width: 0;
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(132px, 1fr) max-content;
  gap: 12px;
  align-items: center;
}

.admin-logo-field .resource-setting-row {
  grid-template-columns: minmax(112px, 1fr) max-content;
  gap: 8px;
}

.resource-setting-info {
  min-width: 0;
  height: 42px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 6px 12px;
  background: #fbfcff;
  border: 1px solid #e8ebf1;
  border-radius: 4px;
}

.resource-setting-info strong {
  min-width: 0;
  color: #283241;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.resource-setting-info span {
  min-width: 0;
  color: #8490a1;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.resource-setting-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-logo-field .resource-setting-actions {
  gap: 8px;
}

.resource-upload-btn {
  min-width: 112px;
  height: 42px;
  min-height: 42px;
  margin: 0;
  padding: 0 14px 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #fff;
  background: var(--brand);
  border-radius: 4px;
}

.admin-logo-field .resource-upload-btn {
  min-width: 108px;
  padding: 0 10px;
  gap: 5px;
}

.ghost-btn.resource-upload-btn {
  color: #fff;
  background: var(--brand);
}

.ghost-btn.resource-upload-btn:hover:not(:disabled),
.resource-upload-btn:hover:not(:disabled) {
  color: #fff;
  background: var(--brand-dark);
}

.upload-icon-box {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 3px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.upload-label {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.resource-setting-actions .asset-clear-btn {
  height: 42px;
  min-height: 42px;
  margin: 0;
}

.admin-logo-field .asset-clear-btn {
  padding: 0 10px;
}

.asset-current-preview {
  min-height: 96px;
  display: grid;
  grid-template-columns: 128px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #fbfcff;
  border: 1px solid #e8ebf1;
  border-radius: 4px;
}

.asset-current-preview.empty {
  min-height: 52px;
  display: flex;
  justify-content: center;
  color: #8a94a5;
  border-style: dashed;
}

.asset-current-preview img {
  width: 128px;
  height: 72px;
  display: block;
  object-fit: contain;
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 4px;
}

.asset-current-preview span {
  color: #667386;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.asset-clear-btn {
  width: max-content;
  min-height: 34px;
  padding: 0 12px;
}

.asset-clear-btn:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.security-settings-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  padding-bottom: 2px;
}

.security-settings-stack h3,
.contact-settings-stack h3,
.dispatcher-settings-stack h3,
.contact-settings-stack label:first-of-type,
.dispatcher-settings-stack .dispatcher-qr-field {
  grid-column: 1 / -1;
}

.basic-info-column .dispatcher-settings-stack {
  grid-column: 1 / -1;
}

.security-settings-stack,
.contact-settings-stack,
.dispatcher-settings-stack,
.filing-settings-stack {
  min-width: 0;
  padding-bottom: 22px;
  border-bottom: 1px solid #eef1f5;
}

.filing-settings-stack {
  border-bottom: 0;
}

.contact-settings-stack,
.dispatcher-settings-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  min-width: 0;
}

.filing-settings-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  padding-top: 2px;
}

.filing-settings-stack h3,
.filing-settings-stack .wide {
  grid-column: 1 / -1;
}

.settings-footer-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
  min-width: 0;
  padding-top: 2px;
}

.settings-footer-fields label {
  min-width: 0;
}

.settings-footer-fields .plain-input {
  width: 100%;
}

.settings-form-column h3 {
  grid-column: 1 / -1;
  margin: 0;
  color: #1f2630;
  font-size: 15px;
  font-weight: 800;
}

.friend-links-settings-stack {
  display: grid;
  gap: 14px;
  align-content: start;
}

.friend-links-settings-head {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.friend-links-settings-head h3 {
  margin: 0;
}

.friend-links-settings-head .ghost-btn {
  min-width: 82px;
  height: 34px;
  color: var(--brand-dark);
  background: #fff3ef;
}

.friend-links-editor {
  display: grid;
  gap: 12px;
}

.friend-link-row {
  display: grid;
  grid-template-columns: minmax(118px, 0.85fr) minmax(180px, 1.15fr) 52px;
  gap: 8px;
  align-items: end;
  padding: 12px;
  background: #fbfcff;
  border: 1px solid #e8ebf1;
  border-radius: 4px;
}

.friend-link-row label {
  gap: 7px;
}

.friend-link-row label > span {
  font-size: 12px;
}

.friend-link-row .plain-input {
  min-height: 36px;
  padding: 0 10px;
}

.friend-link-remove {
  height: 36px;
  min-width: 52px;
  padding: 0;
  color: #657083;
  background: #f1f3f7;
}

.friend-link-remove:hover {
  color: var(--brand-dark);
  background: #fff3ef;
}

.friend-links-note {
  margin: 0;
  color: #8a93a2;
  font-size: 12px;
  line-height: 1.7;
}


.asset-upload-field,
.login-background-field {
  display: grid;
  gap: 10px;
  color: #4f5b6b;
}

.asset-upload-field > span,
.login-background-field > span {
  font-size: 14px;
  white-space: nowrap;
}

.asset-dropzone,
.login-bg-dropzone {
  position: relative;
  min-height: 72px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 12px 10px;
  overflow: hidden;
  border: 1px dashed #c9d1df;
  background-color: #fbfcff;
  color: #7b8697;
  text-align: center;
  cursor: pointer;
}

.asset-dropzone input,
.login-bg-dropzone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.asset-dropzone strong,
.asset-dropzone small,
.login-bg-dropzone strong,
.login-bg-dropzone small {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.asset-dropzone strong,
.login-bg-dropzone strong {
  font-size: 14px;
}

.asset-dropzone small,
.login-bg-dropzone small {
  font-size: 12px;
}

.api-settings-column {
  padding-left: 46px;
  border-left: 1px solid #eef1f5;
}

.api-settings-column label:nth-of-type(1),
.api-settings-column label:nth-of-type(4) {
  grid-column: 1 / -1;
}

.api-status-box {
  grid-column: 1 / -1;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 16px;
  border: 1px solid #e8ebf1;
  background: #fbfcff;
  color: #586273;
}

.api-status-box strong {
  color: var(--brand-dark);
  font-size: 14px;
}

.api-check-result {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
}

.api-check-result:empty {
  display: none;
}

.api-check-result div,
.api-check-result li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  color: #586273;
  background: #fbfcff;
  border: 1px solid #eef1f5;
  border-radius: 4px;
}

.api-check-result strong,
.api-check-result em {
  min-width: 0;
  color: #2d3441;
  font-style: normal;
  overflow-wrap: anywhere;
}

.api-check-result ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.interface-log-table {
  min-width: 1080px;
}

.interface-log-summary {
  max-width: 360px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.settings-page-form .wide {
  grid-column: 1 / -1;
}

.settings-editor-actions {
  position: sticky;
  bottom: 0;
  min-height: 68px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  border-top: 1px solid #eceef3;
  background: rgba(255, 255, 255, 0.98);
}

.settings-editor-actions #settingsMsg {
  color: var(--brand-dark);
}

.cache-badge {
  width: fit-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: #15945f;
  background: #eaf8f1;
  border-radius: 3px;
}


.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 18px;
}

.form-grid label {
  display: grid;
  gap: 8px;
  color: #4f5b6b;
}

.save-row {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.secondary-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #fff;
  background: var(--brand);
  border-radius: 4px;
  text-decoration: none;
}

.ghost-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #3d4858;
  background: #eef1f6;
  border-radius: 4px;
  text-decoration: none;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.table th,
.table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.table th {
  color: #667386;
  background: #f8f9fc;
}

.log-filter {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid #eceef3;
  background: #fff;
}

.log-filter label {
  display: grid;
  gap: 8px;
  min-width: 210px;
  color: #596273;
  font-size: 13px;
}

.log-filter .settings-edit-btn,
.log-search-btn {
  height: 42px;
  min-width: 78px;
}

.log-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.log-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  table-layout: fixed;
}

.log-table th,
.log-table td {
  height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid #eef0f5;
  text-align: left;
  color: #414a58;
  font-size: 13px;
  vertical-align: middle;
}

.log-table th {
  height: 46px;
  color: #667386;
  font-weight: 700;
  background: #f8f9fc;
}

.log-table th:nth-child(1),
.log-table td:nth-child(1) {
  width: 110px;
}

.log-table th:nth-child(2),
.log-table td:nth-child(2),
.log-table th:nth-child(3),
.log-table td:nth-child(3) {
  width: 126px;
}

.log-table th:nth-child(5),
.log-table td:nth-child(5) {
  width: 136px;
}

.log-table th:nth-child(6),
.log-table td:nth-child(6) {
  width: 176px;
}

.log-table td:nth-child(4) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-empty {
  height: 180px !important;
  color: #8792a4 !important;
  text-align: center !important;
}

.log-pagination {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  color: #667386;
  font-size: 13px;
}

.pagination-total {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pagination-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.pagination-btn {
  min-width: 34px;
  height: 32px;
  padding: 0 10px;
  color: #4f5b6b;
  background: #fff;
  border: 1px solid #dfe4ec;
  border-radius: 4px;
}

.pagination-btn:hover:not(:disabled),
.pagination-btn.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.pagination-btn:disabled {
  cursor: default;
  opacity: 0.58;
}

.pagination-ellipsis {
  min-width: 22px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8a93a2;
}

.content-list-section {
  background: #fff;
}

.content-tabs {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 6px;
}

.content-tabs button {
  min-height: 36px;
  padding: 0 14px;
  color: #596575;
  background: transparent;
  border-radius: 4px;
}

.content-tabs button.active,
.content-tabs button:hover {
  color: var(--brand-dark);
  background: #fff3ef;
}

.content-filter label {
  min-width: 190px;
}

.content-list-section .table-toolbar {
  min-height: 90px;
  align-items: center;
  padding: 18px;
}

.content-list-section .toolbar-title {
  align-self: center;
}

.content-compact-filter {
  align-items: flex-end;
  gap: 12px;
  padding: 16px 18px;
}

.content-compact-filter label {
  min-width: 180px;
  margin: 0;
}

.content-compact-filter label:first-child {
  min-width: 210px;
}

.content-compact-filter .plain-input {
  height: 40px;
  min-height: 40px;
  margin-bottom: 0;
}

.content-compact-filter .log-search-btn {
  height: 40px;
  min-height: 40px;
  align-self: flex-end;
  margin-bottom: 0;
  padding: 0 24px;
}

.content-assets-filter {
  align-items: flex-end;
}

.content-assets-filter label {
  min-width: 190px;
  margin: 0;
}

.content-assets-filter .plain-input {
  height: 40px;
  min-height: 40px;
  margin-bottom: 0;
}

.content-assets-filter .log-search-btn {
  height: 40px;
  min-height: 40px;
  margin-bottom: 0;
  padding: 0 24px;
}

.content-list-mode,
.content-batch-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.content-list-mode {
  justify-content: flex-end;
}

.content-list-mode .secondary-btn,
.content-list-mode .table-action-btn {
  height: 42px;
  min-height: 42px;
  margin-right: 0;
  padding: 0 16px;
}

.content-list-mode .table-action-btn {
  font-size: 13px;
}

.content-list-mode .table-action-btn.active {
  color: #fff;
  background: var(--brand);
}

.content-batch-toolbar {
  justify-content: flex-start;
  padding: 12px 18px;
  color: #667386;
  background: #fbfcff;
  border-top: 1px solid #eef1f5;
  border-bottom: 1px solid #eef1f5;
  font-size: 13px;
}

.admin-balanced-table {
  width: 100%;
  table-layout: fixed;
}

.admin-balanced-table th,
.admin-balanced-table td {
  height: 66px;
  padding: 0 16px;
  overflow: hidden;
}

.admin-list-stack {
  min-width: 0;
  display: grid;
  gap: 5px;
  line-height: 1.35;
}

.admin-list-stack strong,
.admin-list-stack span,
.admin-list-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-list-stack strong {
  color: #263142;
  font-size: 13px;
  font-weight: 800;
}

.admin-list-stack span,
.admin-list-text,
.admin-status-stack span,
.admin-status-stack small {
  color: #6f7b8d;
  font-size: 12px;
}

.admin-list-stack.compact {
  gap: 4px;
}

.admin-status-stack {
  min-width: 0;
  display: inline-grid;
  justify-items: center;
  gap: 4px;
  line-height: 1.3;
}

.compact-row-actions {
  min-width: 0;
  justify-content: center;
}

.compact-row-actions button,
.compact-row-actions .table-action-link {
  min-width: 54px;
}

.content-table {
  min-width: 980px;
}

.content-category-table {
  min-width: 980px;
  table-layout: fixed;
}

.content-category-table th:nth-child(1),
.content-category-table td:nth-child(1) {
  width: 24%;
}

.content-category-table th:nth-child(2),
.content-category-table td:nth-child(2) {
  width: 18%;
}

.content-category-table th:nth-child(3),
.content-category-table td:nth-child(3) {
  width: 14%;
}

.content-category-table th:nth-child(4),
.content-category-table td:nth-child(4) {
  width: 10%;
}

.content-category-table th:nth-child(5),
.content-category-table td:nth-child(5) {
  width: 13%;
  text-align: center;
}

.content-category-table th:nth-child(6),
.content-category-table td:nth-child(6) {
  width: 220px;
  text-align: center;
}

.content-category-table td:nth-child(1) strong,
.content-category-table td:nth-child(2) code,
.content-category-table .category-cell-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-category-table .content-actions {
  white-space: nowrap;
}

.category-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.category-row-actions .table-action-btn {
  flex: 0 0 auto;
  min-width: 54px;
}

.content-table th:nth-child(1),
.content-table td:nth-child(1) {
  width: 48px;
  text-align: center;
}

.content-table th:nth-child(2),
.content-table td:nth-child(2),
.content-table th:nth-child(3),
.content-table td:nth-child(3),
.content-table th:nth-child(4),
.content-table td:nth-child(4),
.content-table th:nth-child(5),
.content-table td:nth-child(5),
.content-table th:nth-child(6),
.content-table td:nth-child(6) {
  width: 19%;
}

.content-table th:nth-child(n+3),
.content-table td:nth-child(n+3) {
  text-align: center;
}

.content-flags {
  display: inline-flex;
  gap: 5px;
  margin-left: 8px;
  vertical-align: middle;
}

.content-flags em {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  color: #bf4b2f;
  background: #fff3ef;
  border-radius: 3px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.content-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.content-status.published {
  color: #0f8f61;
  background: #e8f7ef;
}

.content-status.offline {
  color: #737d8d;
  background: #eef1f5;
}

.content-status.draft {
  color: #a66a00;
  background: #fff4dc;
}

.content-assets-section {
  min-height: 540px;
}

.asset-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  padding: 18px;
}

.asset-library-card {
  min-width: 0;
  position: relative;
  display: grid;
  grid-template-rows: 132px minmax(98px, auto) auto;
  background: #fff;
  border: 1px solid #e3e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.asset-thumb {
  display: grid;
  place-items: center;
  background: #f5f7fb;
  position: relative;
}

.asset-thumb img,
.asset-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-thumb.video-thumb::after {
  background: rgba(0, 0, 0, 0.62);
  border-radius: 999px;
  color: #fff;
  content: "视频";
  font-size: 12px;
  left: 50%;
  padding: 4px 10px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.asset-thumb span,
.asset-library-empty {
  color: #8994a6;
  font-size: 13px;
}

.asset-meta {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 11px 12px;
}

.asset-meta strong,
.asset-meta small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-meta strong {
  color: #263142;
  font-size: 13px;
}

.asset-meta span,
.asset-meta small {
  color: #6f7b8d;
  font-size: 12px;
}

.asset-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px 12px;
  gap: 8px;
  flex-wrap: wrap;
}

.asset-actions:empty {
  display: none;
}

.asset-card-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.asset-icon-btn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(31, 41, 55, 0.18);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.asset-icon-btn:disabled {
  cursor: wait;
  opacity: 0.62;
}

.asset-icon-btn.select {
  color: #fff;
  background: var(--brand);
}

.asset-icon-btn.delete {
  color: #fff;
  background: rgba(35, 45, 60, 0.78);
}

.asset-icon-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.asset-select-btn {
  min-width: 72px;
  height: 32px;
  padding: 0 14px;
}

.asset-type-select {
  min-width: 108px;
  height: 32px;
  padding: 0 8px;
  font-size: 12px;
}

.asset-library-empty {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  background: #fbfcff;
  border: 1px dashed #d8e0eb;
  border-radius: 6px;
}

.table-action-btn {
  min-height: 30px;
  margin-right: 7px;
  padding: 0 9px;
  color: #3d4858;
  background: #eef1f6;
  border-radius: 4px;
  font-size: 12px;
}

.table-action-btn:disabled {
  cursor: default;
  opacity: 0.68;
}

.table-action-btn.danger {
  color: #b33924;
  background: #fff3ef;
}

.content-actions {
  min-width: 0;
}

.content-row-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  flex-wrap: wrap;
}

.content-actions .table-action-btn {
  min-width: 46px;
  margin: 0;
  padding: 0 8px;
}

.content-more-select {
  width: 72px;
  height: 30px;
  min-height: 30px;
  box-sizing: border-box;
  margin: 0;
  padding: 0 8px;
  border-color: #d9e1ec;
  font-size: 12px;
  line-height: 30px;
}

.flag-toggle {
  min-width: 42px;
  height: 30px;
  padding: 0 8px;
  color: #697587;
  background: #fff;
  border: 1px solid #d9e1ec;
  border-radius: 4px;
  font-size: 12px;
}

.flag-toggle.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.content-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 24, 39, 0.42);
}

.content-modal {
  width: min(760px, 96vw);
  max-height: min(720px, 92vh);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.content-modal.small {
  width: min(620px, 96vw);
}

.account-settings-modal {
  width: min(560px, 96vw);
}

.account-settings-form {
  display: grid;
  gap: 15px;
  padding: 20px 22px 8px;
  overflow: auto;
}

.account-settings-form label {
  display: grid;
  gap: 8px;
  color: #4f5b6b;
  font-size: 14px;
}

.account-settings-form .plain-input {
  margin-bottom: 0;
}

.account-settings-msg {
  min-height: 22px;
  margin: 0;
  color: #667386;
  font-size: 13px;
}

.account-settings-msg[data-tone="ok"] {
  color: #0f8f61;
}

.account-settings-msg[data-tone="error"] {
  color: var(--brand-dark);
}

.article-editor-modal {
  width: min(1480px, 96vw);
  height: min(900px, 92vh);
  max-height: 92vh;
}

.content-editor-workspace {
  padding: 18px 22px 24px;
}

.content-editor-page {
  max-width: none;
}

.content-editor-screen {
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  overflow: hidden;
}

.content-modal header,
.content-modal footer,
.content-editor-screen header,
.content-editor-screen footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid #eef1f5;
}

.content-modal footer,
.content-editor-screen footer {
  justify-content: flex-end;
  border-top: 1px solid #eef1f5;
  border-bottom: 0;
}

.content-editor-screen footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  z-index: 2;
}

.content-modal header div,
.content-editor-screen header div {
  display: grid;
  gap: 5px;
}

.content-modal header strong,
.content-editor-screen header strong {
  font-size: 17px;
}

.content-modal header span,
.content-editor-screen header span {
  color: #778397;
  font-size: 13px;
}

.content-modal-close {
  width: 34px;
  height: 34px;
  color: #5f6b7b;
  background: #f3f5f9;
  border-radius: 4px;
  font-size: 22px;
  line-height: 1;
}

.content-editor-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
  overflow-y: auto;
}

.article-editor-modal .content-editor-form {
  grid-template-columns: minmax(360px, 0.72fr) minmax(520px, 1fr);
  gap: 18px 24px;
  padding: 22px 26px;
}

.article-editor-workbench .content-editor-form {
  grid-template-columns: minmax(0, 1fr) 420px;
  justify-content: stretch;
  align-content: start;
  align-items: start;
  gap: 16px 24px;
  padding: 18px 20px 26px;
}

.content-editor-form label {
  display: grid;
  gap: 8px;
  align-content: start;
  color: #536071;
  font-size: 13px;
}

.content-editor-form label.wide {
  grid-column: 1 / -1;
}

.content-editor-form .wide {
  grid-column: 1 / -1;
}

.content-editor-form .plain-input {
  margin-bottom: 0;
}

.article-editor-workbench .plain-input {
  min-height: 36px;
  padding: 0 11px;
  font-size: 13px;
}

.article-title-field {
  grid-column: 1;
  grid-row: 1;
}

.article-slug-field {
  display: none;
}

.article-category-field {
  grid-column: 2;
  grid-row: 1;
}

.article-status-field {
  grid-column: 2;
  grid-row: 2;
}

.article-published-field {
  grid-column: 2;
  grid-row: 3;
}

.article-cover-upload {
  grid-column: 2;
  grid-row: 4;
}

.article-source-name-field {
  grid-column: 2;
  grid-row: 5;
}

.article-source-field {
  grid-column: 2;
  grid-row: 6;
}

.article-import-inline {
  grid-column: 2;
  grid-row: 7;
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #f8fafc;
  border: 1px dashed #c8d3e3;
}

.article-import-inline strong {
  color: #263142;
  font-size: 14px;
}

.article-import-inline p {
  margin: 0;
  color: #6b7788;
  font-size: 12px;
  line-height: 1.6;
}

.article-import-inline div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 8px;
}

.article-summary-field {
  grid-column: 1;
  grid-row: 2;
}

.article-seo-keywords-field {
  grid-column: 1;
}

.article-seo-title-field {
  grid-column: 2;
}

.article-editor-workbench .content-rich-editor {
  grid-column: 1;
  grid-row: 3 / span 8;
}

.article-editor-workbench .content-rich-editor {
  width: 100%;
}

.article-editor-workbench .content-editor-form label.article-seo-description-field {
  grid-column: 3 / -1;
  grid-row: 3 / span 2;
  align-self: stretch;
}

.content-editor-form textarea {
  min-height: 112px;
  padding-top: 12px;
  line-height: 1.6;
  resize: vertical;
}

.article-editor-workbench .article-summary-field textarea {
  min-height: 72px;
  height: 72px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.article-editor-workbench .article-seo-description-field textarea {
  min-height: 92px;
  height: 92px;
  padding-top: 9px;
  padding-bottom: 9px;
  resize: vertical;
}

.field-hint {
  color: #7d8898;
  font-size: 12px;
}

.field-hint[data-tone="warning"] {
  color: #a66a00;
}

.seo-field-row {
  align-items: start;
}

.article-cover-upload {
  min-width: 0;
}

.article-cover-upload .asset-dropzone {
  min-height: 138px;
  padding: 10px;
  border-radius: 4px;
}

.article-cover-upload .asset-library-entry {
  width: 100%;
  cursor: pointer;
}

.article-cover-preview {
  display: block;
  width: 100%;
  height: 92px;
  margin-bottom: 9px;
  object-fit: cover;
  border-radius: 4px;
  background: #eef2f6;
}

.article-cover-upload.asset-upload-field {
  gap: 7px;
}

.asset-picker-link {
  justify-self: start;
  min-height: 30px;
  padding: 0 10px;
  color: var(--brand-dark);
  background: #fff3ef;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.article-cover-upload small[data-tone="error"] {
  color: var(--brand-dark);
}

.article-cover-upload small[data-tone="ok"] {
  color: #1a8f5a;
}

.content-rich-editor {
  display: grid;
  gap: 8px;
  color: #536071;
  font-size: 13px;
}

.rich-toolbar {
  display: grid;
  gap: 0;
  padding: 6px 10px;
  background: #f6f8fb;
  border: 1px solid #d9e1ec;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

.rich-toolbar-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 36px;
}

.rich-select {
  height: 31px;
  min-width: 84px;
  padding: 0 8px;
  color: #243044;
  background: #fff;
  border: 1px solid #cfd8e6;
  border-radius: 3px;
  font-size: 12px;
  outline: none;
}

.rich-size-select {
  min-width: 86px;
}

.rich-line-select {
  min-width: 66px;
}

.rich-tool,
.rich-color {
  width: 31px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2f3b4c;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 15px;
  line-height: 1;
}

.rich-tool:hover,
.rich-tool.active,
.rich-color:hover {
  background: #fff;
  border-color: #d8e0eb;
}

.rich-tool:disabled,
.rich-select:disabled {
  cursor: wait;
  opacity: 0.62;
}

.rich-tool-upload {
  width: auto;
  min-width: 98px;
  padding: 0 11px;
  gap: 6px;
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.rich-tool-upload:hover {
  color: #fff;
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.rich-tool-upload .rich-tool-icon {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 3px;
  line-height: 1;
}

.rich-tool-library {
  width: auto;
  min-width: 68px;
  padding: 0 10px;
  color: #354154;
  background: #fff;
  border-color: #d8e0eb;
  font-size: 13px;
  font-weight: 700;
}

.rich-tool-library:hover {
  color: var(--brand-dark);
  background: #fff8f5;
  border-color: #f2c4b5;
}

.rich-color {
  position: relative;
  cursor: pointer;
}

.rich-color input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.rich-color span {
  pointer-events: none;
  font-weight: 700;
}

.rich-separator {
  width: 1px;
  height: 22px;
  margin: 0 4px;
  background: #d7deea;
}

.rich-image-input {
  display: none;
}

.rich-upload-status {
  min-height: 30px;
  display: flex;
  align-items: center;
  padding: 6px 10px;
  color: #667386;
  background: #fbfcff;
  border: 1px solid #dfe5ee;
  border-bottom: 0;
  font-size: 12px;
  line-height: 1.45;
}

.rich-upload-status[data-tone="ok"] {
  color: #13784f;
  background: #f2fbf6;
}

.rich-upload-status[data-tone="warning"] {
  color: #8a5a00;
  background: #fff8e6;
}

.rich-upload-status[data-tone="error"] {
  color: var(--brand-dark);
  background: #fff7f4;
}

.rich-editor-surface {
  min-height: 260px;
  max-height: 420px;
  padding: 14px;
  color: #263142;
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 0 0 4px 4px;
  outline: none;
  overflow-y: auto;
  line-height: 1.8;
}

.article-editor-modal .rich-editor-surface {
  min-height: 430px;
  max-height: none;
}

.article-editor-workbench .rich-editor-surface {
  min-height: 520px;
  max-height: none;
}

.fixed-page-editor-workspace {
  padding: 14px 18px 18px;
}

.fixed-page-editor-page {
  height: calc(100vh - 102px);
  max-width: none;
}

.fixed-page-content-editor {
  min-height: 0;
  height: 100%;
}

.fixed-page-editor-form {
  grid-template-columns: minmax(0, 1fr) 420px;
  grid-auto-rows: min-content;
  align-content: start;
  gap: 12px 24px;
  padding: 16px 20px 18px;
}

.fixed-page-editor-form .fixed-page-rich-editor {
  grid-column: 1;
  grid-row: 1;
}

.fixed-page-editor-form .fixed-page-rich-editor {
  min-width: 0;
}

.fixed-page-editor-form .fixed-page-side-panel {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: grid;
  gap: 12px;
  align-self: start;
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 210px);
  overflow: auto;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e5ebf2;
  border-radius: 6px;
}

.fixed-page-rich-editor .fixed-page-rich-toolbar {
  padding: 8px 10px;
  gap: 6px;
}

.fixed-page-rich-toolbar .rich-toolbar-row {
  min-height: 34px;
  row-gap: 6px;
}

.fixed-page-rich-toolbar .rich-tool {
  width: auto;
  min-width: 36px;
  padding: 0 10px;
  white-space: nowrap;
}

.fixed-page-rich-toolbar .rich-tool.danger {
  color: #b42318;
  border-color: #f1c7c3;
}

.fixed-page-rich-toolbar .rich-tool.danger:hover {
  color: #fff;
  background: #b42318;
  border-color: #b42318;
}

.fixed-page-rich-toolbar .rich-color {
  flex: 0 0 31px;
}

.fixed-page-rich-editor .rich-editor-surface {
  min-height: 430px;
  max-height: none;
}

.fixed-page-content-editor > footer {
  position: sticky;
  bottom: 0;
  z-index: 5;
  min-height: 64px;
  background: #fff;
  box-shadow: 0 -8px 18px rgba(17, 24, 39, .06);
}

.fixed-page-content-editor > footer .secondary-btn,
.fixed-page-content-editor > footer .ghost-btn {
  min-width: 96px;
}

.fixed-page-side-panel h3 {
  margin: 0;
  color: #253040;
  font-size: 15px;
}

.fixed-page-settings-group {
  display: grid;
  gap: 12px;
}

.fixed-page-settings-group summary {
  cursor: pointer;
  color: #253040;
  font-size: 15px;
  font-weight: 700;
  list-style: none;
}

.fixed-page-settings-group summary::-webkit-details-marker {
  display: none;
}

.fixed-page-settings-group summary::after {
  content: "+";
  float: right;
  color: #7a8494;
  font-weight: 700;
}

.fixed-page-settings-group[open] summary::after {
  content: "-";
}

.fixed-page-settings-group[open] {
  padding-bottom: 12px;
  border-bottom: 1px solid #e5ebf2;
}

.fixed-page-side-panel label,
.fixed-page-map-config {
  display: grid;
  gap: 8px;
}

.fixed-page-map-config {
  margin-top: 6px;
  padding-top: 0;
}

.fixed-page-module-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 10px;
  background: #f7f9fc;
  border: 1px solid #dfe5ee;
  border-top: 0;
}

.fixed-page-module-toolbar .ghost-btn {
  height: 32px;
  padding: 0 12px;
}

.rich-editor-surface .fixed-map-module {
  margin: 18px 0;
  padding: 20px;
  background: #f7fbfd;
  border: 1px solid #dfe8ee;
  border-radius: 6px;
}

.rich-editor-surface .fixed-map-module::before {
  content: "";
  display: block;
  height: 120px;
  margin-bottom: 14px;
  background: repeating-linear-gradient(0deg, rgba(112, 130, 150, .16) 0 1px, transparent 1px 28px), repeating-linear-gradient(90deg, rgba(112, 130, 150, .16) 0 1px, transparent 1px 28px), #eef5f7;
  border: 1px solid #d9e5ea;
}

.rich-editor-surface .fixed-map-copy h3 {
  margin: 0 0 8px;
  color: #202b36;
  font-size: 18px;
}

.rich-editor-surface .fixed-map-copy p {
  margin: 0 0 10px;
}

.rich-editor-surface .fixed-map-copy a {
  color: var(--brand);
  font-weight: 700;
}

.rich-editor-surface .fixed-video-module {
  margin: 16px 0;
}

.rich-editor-surface .fixed-video-module video {
  width: 100%;
  max-height: 360px;
  display: block;
  background: #111;
}

.rich-editor-surface:empty::before {
  content: "输入正文内容，可使用图片素材库选择或上传图片，设置标题、列表、引用和链接";
  color: #a0a9b8;
}

.rich-editor-surface h2,
.rich-editor-surface h3,
.rich-editor-surface p {
  margin: 0 0 0.8em;
}

.rich-editor-surface blockquote {
  margin: 0 0 1em;
  padding: 10px 12px;
  color: #5e6878;
  background: #f8fafc;
  border-left: 3px solid var(--brand);
}

.rich-editor-surface img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 8px 0;
  border-radius: 4px;
}

.rich-editor-surface .fixed-editor-selected {
  outline: 2px solid #f75b2b;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(247, 91, 43, .12);
}

.asset-picker-modal {
  width: min(1080px, 96vw);
  max-height: min(820px, 92vh);
}

.asset-picker-body {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.asset-picker-filter {
  align-items: flex-end;
  border-bottom: 1px solid #eef1f5;
}

.asset-picker-filter .plain-input {
  margin-bottom: 0;
}

.asset-picker-upload-input {
  display: none;
}

.asset-picker-upload-btn {
  height: 42px;
  min-width: 96px;
}

.asset-picker-upload-msg {
  min-height: 42px;
  min-width: 180px;
  display: flex;
  align-items: center;
  color: #667386;
  font-size: 13px;
}

.asset-picker-upload-msg[data-tone="ok"] {
  color: #13784f;
}

.asset-picker-upload-msg[data-tone="error"] {
  color: var(--brand-dark);
}

.picker-grid {
  overflow-y: auto;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.picker-grid .asset-library-card {
  grid-template-rows: 116px minmax(88px, auto) auto;
}

/* Core module workspace */
.module-workspace {
  padding: 22px;
  background: #f4f6fa;
  min-height: calc(100vh - 76px);
}

.module-page {
  display: grid;
  gap: 18px;
}

.module-header {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #eef1f5;
}

.module-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-bottom: 6px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

.module-header h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.module-header p {
  max-width: 760px;
  margin: 7px 0 0;
  color: #667386;
  line-height: 1.7;
}

.module-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
}

.module-subnav {
  display: grid;
  gap: 6px;
  padding: 10px;
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 6px;
}

.module-subnav button {
  min-height: 42px;
  padding: 0 14px;
  color: #5f6b7b;
  background: transparent;
  border-radius: 4px;
  text-align: left;
}

.module-subnav button.active,
.module-subnav button:hover:not(:disabled) {
  color: var(--brand-dark);
  background: #fff3ef;
}

.module-subnav button:disabled {
  color: #aab2bf;
  cursor: default;
}

.module-panel {
  padding: 0;
  overflow: hidden;
  border: 1px solid #eef1f5;
}

.table-toolbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #eef1f5;
}

.toolbar-title {
  display: grid;
  gap: 4px;
}

.toolbar-title strong {
  font-size: 16px;
}

.toolbar-title span {
  color: #8490a1;
  font-size: 13px;
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toolbar-input {
  width: 260px;
  margin-bottom: 0;
}

.data-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #fff;
}

.data-table th,
.data-table td {
  height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid #eef1f5;
  color: #3f4856;
  font-size: 13px;
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  height: 48px;
  color: #667386;
  font-weight: 800;
  background: #f8f9fc;
}

.data-table code {
  padding: 3px 7px;
  color: #445065;
  background: #f3f5f9;
  border-radius: 4px;
}

.seo-admin-table {
  min-width: 980px;
}

.seo-admin-table th,
.seo-admin-table td {
  width: auto;
}

.seo-admin-table th:nth-child(1),
.seo-admin-table td:nth-child(1) {
  width: 16%;
}

.seo-admin-table th:nth-child(2),
.seo-admin-table td:nth-child(2) {
  width: 22%;
}

.seo-admin-table th:nth-child(3),
.seo-admin-table td:nth-child(3) {
  width: auto;
}

.seo-admin-table th:nth-child(4),
.seo-admin-table td:nth-child(4) {
  width: 140px;
}

.seo-admin-table th:nth-child(n+2),
.seo-admin-table td:nth-child(n+2) {
  text-align: center;
}

.seo-admin-table .row-actions {
  min-width: 0;
  justify-content: center;
}

.seo-issues-panel {
  margin-bottom: 18px;
}

.seo-issues-table {
  min-width: 1120px;
}

.seo-issues-table th:nth-child(1),
.seo-issues-table td:nth-child(1) {
  width: 110px;
}

.seo-issues-table th:nth-child(2),
.seo-issues-table td:nth-child(2) {
  width: 150px;
}

.seo-issues-table th:nth-child(3),
.seo-issues-table td:nth-child(3) {
  width: 32%;
}

.seo-issues-table th:nth-child(5),
.seo-issues-table td:nth-child(5),
.seo-issues-table th:nth-child(6),
.seo-issues-table td:nth-child(6) {
  width: 110px;
  text-align: center;
}

.seo-diagnostics-panel {
  margin-bottom: 18px;
}

.seo-diagnostics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 18px 16px;
}

.seo-diagnostics-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 0 18px 18px;
}

.seo-diagnostics-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-diagnostics-list li,
.seo-tech-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.seo-tech-status {
  flex-direction: column;
  align-items: flex-start;
  min-width: 180px;
}

@media (max-width: 1100px) {
  .seo-diagnostics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-diagnostics-body {
    grid-template-columns: 1fr;
  }
}

.table-empty {
  height: 168px !important;
  color: #8792a4 !important;
  text-align: center !important;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-badge.published {
  color: #0f8f61;
  background: #e8f7ef;
}

.status-badge.draft {
  color: #a66a00;
  background: #fff4dc;
}

.status-badge.offline {
  color: #b42318;
  background: #fff1ef;
}

.product-info-table {
  min-width: 1180px;
}

.product-info-thumb {
  width: 112px;
  height: 68px;
  display: block;
  object-fit: cover;
  background: #f5f7fa;
  border: 1px solid #eef1f5;
  border-radius: 4px;
}

.product-info-noimg {
  color: #8a93a2;
}

.product-image-editor-section {
  align-content: start;
}

.product-image-preview {
  min-height: 150px;
  display: grid;
  place-items: center;
  background: #fbfcff;
  border: 1px solid #e8edf5;
  border-radius: 4px;
  overflow: hidden;
}

.product-image-preview img {
  max-width: 100%;
  max-height: 260px;
  display: block;
  object-fit: contain;
}

.product-image-preview span {
  color: #8a93a2;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 258px;
}

.row-actions button,
.row-actions .table-action-link {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  color: #3d4858;
  background: #eef1f6;
  border-radius: 4px;
  font-size: 12px;
  text-decoration: none;
}

.row-actions button:hover,
.row-actions .table-action-link:hover {
  color: #fff;
  background: var(--brand);
}

.toolbar-select {
  width: 132px;
  margin-bottom: 0;
}

.editor-msg {
  min-height: 20px;
  margin: 0;
  color: #667386;
  font-size: 13px;
  line-height: 1.6;
}

.editor-msg[data-tone="ok"] {
  color: #0f8f61;
}

.editor-msg[data-tone="error"] {
  color: var(--brand-dark);
}

.seo-editor-modal {
  width: min(980px, 96vw);
  max-height: min(860px, 92vh);
}

.seo-editor-form {
  min-height: 0;
  display: grid;
  gap: 16px;
  padding: 18px;
  overflow: auto;
  background: #f7f9fc;
}

.seo-editor-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 6px;
}

.seo-editor-section h3,
.seo-editor-section .span-2 {
  grid-column: 1 / -1;
}

.seo-editor-section h3 {
  margin: 0;
  font-size: 15px;
}

.seo-editor-section label {
  display: grid;
  gap: 7px;
}

.seo-editor-section label span {
  color: #5d6878;
  font-size: 13px;
  font-weight: 700;
}

.seo-editor-section textarea.plain-input {
  min-height: 92px;
  resize: vertical;
}

.seo-editor-form footer {
  position: sticky;
  bottom: -18px;
  min-height: 64px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 12px 0 0;
  background: linear-gradient(180deg, rgba(247, 249, 252, 0), #f7f9fc 28%);
}

.integration-editor-panel {
  padding: 24px;
}

.storage-editor-panel {
  padding: 30px 34px 36px;
}

.integration-security-panel {
  max-width: 720px;
  padding: 28px;
}

.integration-verify-form {
  display: grid;
  gap: 18px;
}

.integration-verify-form h3,
.integration-verify-form p {
  margin: 0;
}

.integration-verify-form p {
  color: #667386;
  line-height: 1.7;
}

.integration-verify-form label {
  display: grid;
  gap: 8px;
}

.integration-settings-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.storage-settings-form {
  grid-template-columns: minmax(680px, 1fr) minmax(320px, 0.36fr);
  gap: 28px;
}

.standalone-api-column {
  padding-left: 0;
  border-left: 0;
}

.tgc-editor-main {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tgc-form-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eef1f5;
}

.tgc-form-heading h3,
.tgc-form-heading p {
  margin: 0;
}

.tgc-form-heading p {
  margin-top: 6px;
  color: #667386;
  font-size: 13px;
  line-height: 1.65;
}

.tgc-form-section {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 18px;
  padding: 16px;
  background: #fbfcff;
  border: 1px solid #e8ebf1;
  border-radius: 6px;
}

.tgc-section-title {
  grid-column: 1 / -1;
  color: #202a36;
  font-size: 13px;
  font-weight: 800;
}

.tgc-form-section label,
.tgc-editor-main label {
  min-width: 0;
  display: grid;
  gap: 8px;
  color: #536071;
  font-size: 13px;
}

.tgc-form-section .span-2 {
  grid-column: span 2;
}

.inline-action-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.tgc-editor-main .plain-input {
  width: 100%;
  margin-bottom: 0;
}

.storage-settings-card {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
}

.storage-form-heading {
  grid-column: 1 / -1;
  min-height: 52px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef1f5;
}

.storage-form-heading h3 {
  margin: 0;
}

.storage-form-heading p {
  margin: 6px 0 0;
  color: #748094;
  font-size: 13px;
  line-height: 1.6;
}

.storage-form-heading .editor-msg {
  max-width: 420px;
  text-align: right;
}

.storage-form-section-title {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 4px;
  color: #202a36;
  font-size: 13px;
  font-weight: 800;
}

.storage-settings-card label {
  min-width: 0;
  gap: 8px;
}

.storage-settings-card .plain-input {
  width: 100%;
}

.storage-check-result {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #667386;
  font-size: 13px;
  line-height: 1.6;
}

.storage-check-result[data-tone="ok"] {
  color: #0f8f61;
}

.storage-check-result[data-tone="error"] {
  color: var(--brand-dark);
}

.storage-check-result a {
  color: var(--brand-dark);
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.storage-side-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  color: #4f5b6b;
  background: #fbfcff;
  border: 1px solid #e8ebf1;
  border-radius: 6px;
}

.storage-side-block {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef1f5;
}

.storage-side-block span,
.storage-side-actions > span {
  color: #748094;
  font-size: 13px;
  line-height: 1.6;
}

.storage-side-block strong {
  min-width: 0;
  color: #202a36;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.storage-side-actions {
  display: grid;
  gap: 12px;
}

.storage-side-actions .ghost-btn {
  width: max-content;
}

.integration-editor-aside {
  display: grid;
  gap: 12px;
  padding: 18px;
  color: #4f5b6b;
  background: #fbfcff;
  border: 1px solid #e8ebf1;
  border-radius: 6px;
}

.integration-editor-aside h3,
.integration-editor-aside p {
  margin: 0;
}

.integration-editor-aside p {
  line-height: 1.7;
}

.standard-list {
  display: grid;
  gap: 12px;
  padding: 4px 0;
  color: #4d5868;
}

.standard-list p {
  margin: 0;
  line-height: 1.7;
}

.standard-list.compact {
  padding: 0 20px 18px;
}

.dashboard-actions {
  grid-template-columns: minmax(320px, 1.5fr) minmax(300px, 1.2fr) repeat(3, minmax(150px, 0.7fr));
}

.wide-quick .quick-grid {
  gap: 16px;
}

.text-value {
  font-size: 28px;
}

.publish-btn {
  background: #19a36b;
}

/* Topic page editor styles moved to content-topic-editor.css. */

.article-import-modal {
  width: min(920px, 96vw);
}

.article-import-body {
  display: grid;
  gap: 16px;
  padding: 18px;
  overflow: auto;
}

.article-import-fetch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 12px;
  align-items: end;
}

.article-import-fetch label,
.article-import-fields label {
  display: grid;
  gap: 8px;
  color: #536071;
  font-size: 13px;
}

.article-import-fetch .plain-input,
.article-import-fields .plain-input {
  margin-bottom: 0;
}

.article-import-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.article-import-fields[hidden] {
  display: none;
}

.article-import-fields .wide {
  grid-column: 1 / -1;
}

.article-import-preview {
  display: grid;
  gap: 8px;
  color: #536071;
  font-size: 13px;
}

.article-import-preview > div {
  max-height: 260px;
  overflow: auto;
  padding: 16px;
  color: #303948;
  background: #fbfcff;
  border: 1px solid #e8ebf1;
  line-height: 1.8;
}

.article-import-preview img {
  max-width: 100%;
  height: auto;
}

.article-import-msg {
  min-height: 22px;
  margin: 0;
}

.muted-note {
  color: var(--muted);
  margin: 0;
}

@media (max-width: 1180px) {
  .fixed-page-editor-form {
    grid-template-columns: 1fr;
  }

  .fixed-page-editor-form .fixed-page-side-panel {
    grid-column: 1;
    grid-row: auto;
  }
}
