/* Ant Design Pro 风格后台 */
* { box-sizing: border-box; }

html {
  height: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Helvetica Neue', sans-serif;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.88);
  background: #f0f2f5;
}

body:not(.login-page) {
  height: 100%;
  overflow: hidden;
}

.admin-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* 左侧导航：固定不滚动 */
.admin-sider {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 220px;
  height: 100vh;
  flex-shrink: 0;
  background: #001529;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 100;
}

.sider-logo {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #1677ff;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.sider-menu {
  padding: 12px 0 24px;
  flex: 1;
  overflow: hidden;
}

.menu-group-title {
  padding: 12px 20px 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 20px 10px 24px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.menu-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.menu-item.active {
  color: #fff;
  background: #1677ff;
}

/* 主内容区：顶栏固定，下方数据区独立滚动 */
.admin-main {
  flex: 1;
  margin-left: 220px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.admin-topbar {
  height: 64px;
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.04);
}

.page-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.admin-content {
  padding: 24px;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.panel { display: none; }
.panel.active { display: block; }

.content-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.card-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.panel-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.panel-tab {
  margin: 0;
  padding: 12px 20px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: rgba(0, 0, 0, 0.65);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.panel-tab:hover {
  color: #1677ff;
}

.panel-tab.is-active {
  color: #1677ff;
  border-bottom-color: #1677ff;
  font-weight: 600;
}

.credits-tab-pane,
.users-tab-pane,
.settings-tab-pane {
  display: none;
}

.credits-tab-pane.is-active,
.users-tab-pane.is-active,
.settings-tab-pane.is-active {
  display: block;
}

.users-hub-card .stat-grid {
  margin-top: 8px;
}

.chart-card--inset {
  margin-top: 16px;
  padding-top: 8px;
}

.card-head--inset {
  margin: 8px 0 16px;
  padding-top: 4px;
}

.tab-pane-actions {
  margin-top: 16px;
}

.form-hint--compact {
  margin-top: 0;
  margin-bottom: 12px;
}

.ai-profiles-editor {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0 16px;
}

.ai-profile-card {
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 16px 18px;
  background: #fafafa;
}

.ai-profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ai-prompt-textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
}

.ai-test-result-wrap {
  margin-top: 16px;
}

.ai-test-result {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  background: #fafafa;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
  line-height: 1.6;
  max-height: 320px;
  overflow: auto;
}

.hint-ok {
  color: #52c41a;
}

.hint-error {
  color: #ff4d4f;
}

.btn-text-danger {
  color: #ff4d4f;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  min-height: 36px;
}

.card-head-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.card-subtitle {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
}

#panel-ai .card-subtitle {
  margin-top: 28px;
  font-size: 16px;
}

/* 统计卡片 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  border-left: 4px solid #d9d9d9;
}

.stat-card--blue { border-left-color: #1677ff; }
.stat-card--green { border-left-color: #52c41a; }
.stat-card--purple { border-left-color: #722ed1; }
.stat-card--orange { border-left-color: #fa8c16; }

.stat-label {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  color: rgba(0, 0, 0, 0.88);
}

.stat-sub {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
  line-height: 1.4;
}

#tokenStatGrid .stat-value {
  font-size: 24px;
}

/* 趋势图 */
.chart-card { margin-bottom: 16px; overflow: hidden; }

.trend-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 160px;
  padding: 8px 0 24px;
  border-bottom: 1px solid #f0f0f0;
}

.trend-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.trend-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 120px;
  width: 100%;
  justify-content: center;
}

.trend-bar {
  width: 14px;
  border-radius: 4px 4px 0 0;
  min-height: 2px;
  transition: height 0.3s;
}

.trend-bar--new { background: #1677ff; }
.trend-bar--active { background: #52c41a; }
.trend-bar--token { background: #722ed1; }
.trend-bar--polish { background: #fa8c16; }

.trend-date {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.trend-legend {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.65);
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.dot-new { background: #1677ff; }
.dot-active { background: #52c41a; }
.dot-token { background: #722ed1; }
.dot-polish { background: #fa8c16; }

.chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.chart-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.chart-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-range {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.65);
  white-space: nowrap;
  min-width: 180px;
  text-align: center;
}

.segmented {
  display: inline-flex;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  overflow: hidden;
}

.segmented-btn {
  border: none;
  background: #fff;
  padding: 6px 14px;
  font-size: 14px;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.65);
}

.segmented-btn.is-active {
  background: #1677ff;
  color: #fff;
}

.period-summary {
  margin-bottom: 8px;
  padding: 10px 14px;
  background: #f6f9ff;
  border: 1px solid #e6f0ff;
  border-radius: 8px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.75);
  line-height: 1.5;
}

.trend-chart--labeled {
  height: 200px;
  padding-bottom: 8px;
}

.trend-chart-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 4px;
}

.trend-chart-scroll .trend-chart {
  min-width: 100%;
}

.trend-chart-scroll .trend-chart--dense {
  min-width: 960px;
}

.trend-chart--dense {
  gap: 8px;
}

.trend-chart--dense .trend-col {
  flex: 0 0 30px;
  min-width: 30px;
}

.trend-chart--hover .trend-col {
  cursor: pointer;
}

.trend-chart--hover .trend-col:hover .trend-bar {
  opacity: 0.85;
}

.chart-tooltip {
  position: fixed;
  z-index: 9999;
  min-width: 200px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  font-size: 13px;
}

.chart-tooltip-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.88);
}

.chart-tooltip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 3px 0;
}

.chart-tooltip-row--sub {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.55);
}

.chart-tooltip-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-tooltip-row strong {
  font-weight: 600;
  color: rgba(0, 0, 0, 0.88);
}

.trend-table-wrap {
  margin-top: 16px;
  overflow: visible;
}

.trend-table-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}

.trend-page-info {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.55);
  min-width: 88px;
  text-align: center;
}

.trend-chart--dense .trend-bar {
  width: 10px;
}

.trend-data-table td,
.trend-data-table th {
  text-align: right;
  white-space: nowrap;
}

.trend-data-table td:first-child,
.trend-data-table th:first-child {
  text-align: left;
}

.trend-data-table tr.is-empty td {
  color: rgba(0, 0, 0, 0.25);
}

.trend-total-row td {
  background: #fafafa;
  border-top: 2px solid #f0f0f0;
}

/* 表格 */
.table-wrap { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.data-table th {
  background: #fafafa;
  color: rgba(0, 0, 0, 0.65);
  font-weight: 500;
  white-space: nowrap;
}

.data-table tbody tr:hover {
  background: #fafafa;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 20px;
}

.tag-member {
  background: #fff7e6;
  color: #d46b08;
  border: 1px solid #ffd591;
}

.tag-normal {
  background: #f5f5f5;
  color: rgba(0, 0, 0, 0.65);
  border: 1px solid #d9d9d9;
}

.btn-blacklist {
  padding: 10px 20px;
  border: 1px solid #ff4d4f;
  border-radius: 8px;
  background: #fff;
  color: #ff4d4f;
  font-size: 15px;
  font-weight: 600;
  min-height: 42px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-blacklist:hover:not(:disabled) {
  background: #ff4d4f;
  color: #fff;
}

.btn-blacklist:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.modal-danger {
  max-width: 520px;
  border-top: 4px solid #ff4d4f;
}

.danger-title {
  color: #cf1322;
  margin: 0 0 12px;
  font-size: 18px;
}

.danger-user {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #fafafa;
  border-radius: 6px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.65);
}

.danger-box {
  background: #fff2f0;
  border: 1px solid #ffccc7;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.75);
}

.danger-box p { margin: 0 0 10px; }

.danger-list {
  margin: 0;
  padding-left: 20px;
}

.danger-list li { margin-bottom: 6px; }

.danger-check {
  color: #cf1322;
  font-size: 13px;
  margin-bottom: 16px;
}

#btnBlacklistConfirm:not(:disabled) {
  background: #ff4d4f;
  color: #fff;
  border-color: #ff4d4f;
}

.pagination {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* 按钮：全局加大，避免 btn-sm 过小 */
.admin-layout button,
.login-page button {
  font-family: inherit;
  line-height: 1.4;
}

.btn-primary {
  padding: 11px 24px;
  border: none;
  border-radius: 8px;
  background: #1677ff;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  min-height: 42px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 0 rgba(5, 145, 255, 0.12);
}

.btn-primary:hover { background: #4096ff; }

.btn-default {
  padding: 11px 24px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fff;
  color: rgba(0, 0, 0, 0.88);
  font-size: 15px;
  font-weight: 500;
  min-height: 42px;
  cursor: pointer;
}

.btn-default:hover {
  color: #1677ff;
  border-color: #1677ff;
}

.btn-danger {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: #fff1f0;
  color: #cf1322;
  font-size: 15px;
  font-weight: 500;
  min-height: 40px;
  cursor: pointer;
}

.btn-ghost {
  padding: 10px 20px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fff;
  color: rgba(0, 0, 0, 0.88);
  font-size: 15px;
  font-weight: 500;
  min-height: 40px;
  cursor: pointer;
}

.btn-text {
  border: none;
  background: transparent;
  color: rgba(0, 0, 0, 0.65);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  padding: 10px 16px;
  min-height: 40px;
  border-radius: 8px;
}

.btn-text:hover {
  color: #1677ff;
  background: rgba(22, 119, 255, 0.06);
}

/* 保留 btn-sm 类名，尺寸与默认接近，不再缩小 */
.btn-sm {
  padding: 10px 22px;
  font-size: 15px;
  min-height: 40px;
}

/* 表单 */
.form-label {
  display: block;
  margin-bottom: 6px;
  color: rgba(0, 0, 0, 0.88);
  font-size: 14px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.form-control,
.select-inline {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.select-inline {
  width: auto;
  min-width: 160px;
  margin-bottom: 0;
}

.form-control:focus,
.select-inline:focus {
  border-color: #1677ff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
}

textarea.form-control { resize: vertical; min-height: 80px; }

.settings-body-textarea {
  min-height: 280px;
  line-height: 1.65;
  font-size: 14px;
}

.settings-body-textarea--tall {
  min-height: 420px;
}

.form-hint {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.45);
  margin: -8px 0 16px;
}

.form-hint code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.form-msg {
  min-height: 22px;
  font-size: 13px;
  margin-top: 8px;
}

.form-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.form-actions-inline {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  cursor: pointer;
  font-size: 14px;
}

.inline-check input { width: auto; margin: 0; }

.hint {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.45);
}

.err-msg { color: #cf1322; }

.settings-block {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.settings-block:last-of-type { border-bottom: none; }

.settings-page-hint {
  margin: 0 0 16px;
  padding: 0 4px;
}

.block-title {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: #1677ff;
}

.qr-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.qr-preview {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  background: #fafafa;
}

.settings-advanced {
  margin: 16px 0;
  font-size: 13px;
}

.settings-advanced summary {
  cursor: pointer;
  margin-bottom: 8px;
  color: rgba(0, 0, 0, 0.65);
}

/* Banner 编辑 */
.banner-editor {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0;
}

.banner-row {
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 16px;
  background: #fafafa;
}

.banner-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.banner-row-title {
  font-weight: 600;
  color: rgba(0, 0, 0, 0.88);
}

.banner-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 768px) {
  .banner-body { grid-template-columns: 1fr; }
}

.banner-fields .form-control { margin-bottom: 10px; }

.banner-preview-box {
  background: #fff;
  border: 1px dashed #d9d9d9;
  border-radius: 8px;
  padding: 12px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.banner-preview-box img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 6px;
  object-fit: contain;
}

.banner-preview-empty {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.35);
  text-align: center;
}

.banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

.banner-link-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #e5e7eb;
}

.banner-link-block .form-label {
  margin-top: 10px;
}

.banner-link-block .form-label:first-child {
  margin-top: 0;
}

.banner-actions input[type="file"] {
  max-width: 200px;
  font-size: 12px;
}

/* 弹窗 */
.modal-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-mask.show { display: flex; }

.modal {
  background: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow: auto;
  padding: 24px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.modal h2 {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 600;
}

#wordModal .modal {
  max-width: 800px;
}

#answersEditor {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.answer-block {
  display: flex;
  align-items: stretch;
  gap: 16px;
  border: 1px dashed #d9d9d9;
  border-radius: 8px;
  padding: 16px;
  background: #fafafa;
}

.answer-block-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.answer-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.answer-field-label {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.65);
  line-height: 1.4;
}

.answer-field-body {
  flex: 1;
  min-height: 80px;
}

.answer-field-body .ans-body {
  flex: 1;
  min-height: 80px;
  resize: vertical;
  line-height: 1.6;
}

.answer-block-actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  flex-shrink: 0;
  padding-top: 28px;
}

.answer-block-actions .btn-sm {
  min-width: 72px;
}

/* 登录页 */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #001529 0%, #003a8c 100%);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  padding: 40px 36px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
}

.login-hint {
  margin: 0 0 24px;
  color: rgba(0, 0, 0, 0.45);
  font-size: 14px;
}

.login-page label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.login-page input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}

.login-page .btn-primary {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  min-height: 48px;
}

@media (max-width: 900px) {
  .admin-sider {
    position: relative;
    width: 100%;
    height: auto;
    flex-shrink: 0;
  }
  .admin-main {
    margin-left: 0;
    height: auto;
    flex: 1;
    min-height: 0;
  }
  .admin-layout {
    flex-direction: column;
    height: 100vh;
  }
  .sider-menu {
    display: flex;
    flex-wrap: wrap;
    padding: 8px;
    overflow: hidden;
  }
  .menu-group-title { display: none; }
  .menu-item {
    width: auto;
    padding: 8px 14px;
    border-radius: 6px;
  }
}

.share-ops-notice {
  margin: 0 0 20px;
  padding: 14px 16px;
  background: #f6f8ff;
  border: 1px solid #d6e4ff;
  border-radius: 8px;
}

.share-ops-list {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.75);
}

.share-scene-card {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  background: #fafafa;
}

.share-scene-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
}

.share-scene-note {
  margin-top: 8px;
  color: #1677ff;
}

.share-img-preview {
  display: block;
  width: 200px;
  max-height: 160px;
  object-fit: contain;
  margin: 8px 0 12px;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fff;
}
