:root {
  --bg: #f9fafb;
  --card: #ffffff;
  --line: #eceff3;
  --line-strong: #dbe1ea;
  --text: #1e293b;
  --sub: #6b7280;
  --brand: #2563eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.operation-bar {
  height: 52px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  gap: 12px;
}

.operation-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.operation-menu-btn {
  border: 0;
  background: transparent;
  color: #4b5563;
  font-size: 16px;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.operation-menu-btn:hover {
  background: #f3f4f6;
}

.operation-logo-dot {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.operation-title {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
}

.operation-center {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 220px;
}

.operation-search-wrap {
  width: min(640px, 100%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.operation-search-input {
  flex: 1;
  min-width: 120px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  padding: 8px 12px;
  font-size: 14px;
}

.operation-search-input:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 2px rgba(147, 197, 253, 0.2);
}

.app {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 52px);
  transition: grid-template-columns 0.2s ease;
}

.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 20;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logo {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-head {
  margin: 0 12px 22px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.sidebar-pin-btn {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #94a3b8;
  border-radius: 8px;
  font-size: 13px;
  width: 32px;
  height: 28px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-pin-btn.pinned {
  color: #1d4ed8;
  border-color: #93c5fd;
  background: #eff6ff;
}

.sidebar-pin-btn.unpinned {
  color: #9ca3af;
  border-color: #d1d5db;
  background: #f8fafc;
}

#menu {
  padding: 0 10px;
}

.menu-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: #4b5563;
  padding: 14px 14px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.menu-caret {
  margin-left: auto;
  font-size: 13px;
  color: #94a3b8;
}

.menu-item.active {
  background: #eff6ff;
  color: var(--brand);
}

.menu-item:hover {
  background: #f3f6fb;
}

.menu-subgroup {
  margin-top: 4px;
  padding-left: 10px;
  border-left: 2px solid #edf1f6;
}

.menu-subitem {
  font-size: 15px;
  opacity: 0.95;
}

.menu-subitem .menu-icon {
  font-size: 17px;
}

.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 14px 16px 10px;
  font-size: 12px;
  color: var(--sub);
}

.sidebar-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

button.sidebar-status {
  width: 100%;
  justify-content: flex-start;
  padding: 8px 10px;
}

.sidebar-status-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #eef2f7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 14px;
}

.sidebar-status-name {
  font-size: 14px;
  color: #4b5563;
  font-weight: 600;
}

.sidebar-status-sub {
  font-size: 12px;
  color: #9ca3af;
}

.sidebar-hover-zone {
  position: fixed;
  left: 0;
  top: 52px;
  width: 72px;
  height: calc(100vh - 52px);
  z-index: 18;
}

.menu-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.menu-text {
  white-space: nowrap;
}

.app.sidebar-expanded {
  grid-template-columns: 240px 1fr;
}

.app.sidebar-collapsed {
  grid-template-columns: 72px 1fr;
}

.app.sidebar-collapsed .logo {
  display: none;
}

.app.sidebar-collapsed .sidebar-head {
  justify-content: center;
}

.app.sidebar-collapsed .menu-item {
  justify-content: center;
  padding: 12px 0;
}

.app.sidebar-collapsed .menu-text {
  display: none;
}

.app.sidebar-collapsed .sidebar-status {
  justify-content: center;
  padding: 6px 0;
}

.app.sidebar-collapsed .sidebar-status-text {
  display: none;
}

.main {
  padding: 20px 24px 28px;
}

.topbar {
  display: none !important;
}

.page-title {
  font-size: 26px;
  font-weight: 700;
}

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

.search-box {
  width: 260px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f9fafb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  padding: 9px 14px;
  cursor: pointer;
}

.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn.danger {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fff1f2;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 5px 10px;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.muted {
  color: var(--sub);
  font-size: 13px;
}

.card-desc-3line {
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  height: calc(3 * 1.5em);
}

.dashboard-head {
  margin-bottom: 14px;
}

.dashboard-head .sub {
  color: var(--sub);
  font-size: 14px;
  margin-top: 4px;
}

.search-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.search-tab {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
}

.search-tab.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.search-result-list {
  display: grid;
  gap: 10px;
}

.search-history-wrap {
  margin-bottom: 10px;
}

.search-history-inline {
  border-bottom: 1px dashed var(--line);
  padding-bottom: 10px;
}

.search-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 13px;
}

.search-history-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.search-history-chip {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 12px;
}

.search-history-chip:hover {
  border-color: #93c5fd;
  color: #1d4ed8;
}

.search-history-delete {
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 4px;
}

.search-history-delete:hover {
  color: #ef4444;
}

.search-result-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.search-result-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.search-result-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.search-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 12px;
}

.search-empty {
  text-align: center;
  padding: 36px 12px;
  color: #94a3b8;
}

.search-highlight {
  background: #fff3b0;
  color: #1f2937;
  border-radius: 3px;
  padding: 0 2px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hero-card {
  min-height: 252px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.1);
}

.hero-cover {
  width: 100%;
  height: 126px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}

.hero-foot {
  margin-top: 20px;
  font-size: 14px;
  color: var(--brand);
}

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

.section-title {
  font-size: 18px;
  font-weight: 700;
}

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

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

.panel-title {
  font-size: 16px;
  font-weight: 700;
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--sub);
  font-size: 13px;
  cursor: pointer;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list-row {
  border: 1px solid #eef2f6;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.list-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.list-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef4ff;
}

.list-title {
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.list-sub {
  font-size: 12px;
  color: var(--sub);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 9px 10px;
  background: #fff;
}

.dialog {
  border: 0;
  border-radius: 14px;
  padding: 0;
  width: min(640px, 92vw);
}

#loginDialog.dialog {
  width: min(860px, 94vw);
}

.dialog::backdrop {
  background: rgba(10, 16, 32, 0.35);
}

.dialog-body {
  padding: 16px;
}

.login-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 460px;
}

.login-shell.single {
  grid-template-columns: 1fr;
  min-height: 500px;
  background: #f8fafc;
}

.login-visual {
  padding: 26px 24px;
  border-right: 1px solid var(--line);
  background: linear-gradient(160deg, #f7faff 0%, #eef4ff 60%, #f9fafb 100%);
}

.login-brand {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
}

.login-visual h2 {
  margin: 16px 0 8px;
  font-size: 30px;
}

.login-visual p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
  font-size: 14px;
}

.login-main {
  padding: 24px;
}

.login-main-center {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.login-center-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 10px;
}

.login-center-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 14px;
}

.login-card {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.login-help {
  margin-top: 12px;
  font-size: 12px;
}

.password-input-wrap {
  position: relative;
}

.password-input-wrap input {
  padding-right: 44px;
}

.password-toggle-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.password-toggle-btn:hover {
  background: #f1f5f9;
}

.login-main-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.login-main-head h3 {
  margin: 0;
  font-size: 22px;
}

.login-methods {
  display: flex;
  gap: 8px;
  margin: 16px 0 14px;
}

.login-method-btn.active {
  border-color: #93c5fd;
  color: #1d4ed8;
  background: #eff6ff;
}

.dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.pill {
  background: #eef3ff;
  border-radius: 999px;
  color: #1a3ea0;
  font-size: 12px;
  padding: 2px 10px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  font-size: 13px;
}

.scene-filter-wrap {
  margin-bottom: 14px;
}

.scene-filter-wrap .toolbar {
  align-items: center;
  flex-wrap: nowrap;
}

.scene-filter-wrap .toolbar input {
  flex: 1;
  min-width: 0;
}

#goSceneManageEntry {
  flex: 0 0 auto;
  min-width: 102px;
  white-space: nowrap;
  padding: 9px 16px;
}

.scene-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.scene-filter-chip {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #4b5563;
  border-radius: 999px;
  font-size: 13px;
  padding: 7px 14px;
  cursor: pointer;
}

.scene-filter-chip.active {
  border-color: #93c5fd;
  color: #1d4ed8;
  background: #eff6ff;
}

.scene-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.scene-card {
  padding: 0;
  overflow: hidden;
  position: relative;
}

.scene-cover {
  height: 192px;
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 45%, #f8fafc 100%);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 1200px) {
  .scene-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.scene-manage-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.scene-manage-tabs {
  margin-top: 10px;
  display: inline-flex;
  gap: 8px;
}

.scene-manage-tab-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  color: #475569;
  cursor: pointer;
}

.scene-manage-tab-btn.active {
  border-color: #93c5fd;
  color: #1d4ed8;
  background: #eff6ff;
}

.scene-manage-left {
  position: static;
  max-height: none;
  overflow: visible;
  padding: 12px;
}

.scene-manage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.scene-manage-head-actions {
  display: flex;
  gap: 8px;
}

.scene-manage-list {
  display: grid;
  gap: 8px;
}

.scene-manage-search {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  background: #fff;
}

.scene-manage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.scene-manage-row.active {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.scene-manage-row-main {
  min-width: 0;
  flex: 1;
}

.scene-manage-row-meta {
  font-size: 12px;
  color: #6b7280;
}

.scene-manage-row-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scene-manage-row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.scene-manage-right {
  max-height: none;
  overflow: visible;
}

.scene-tool-config-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 12px;
  align-items: start;
}

.scene-tool-target-list {
  padding: 12px;
}

.scene-tool-target-rows {
  margin-top: 8px;
  display: grid;
  gap: 8px;
  max-height: 560px;
  overflow: auto;
}

.scene-tool-target-row {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  cursor: pointer;
}

.scene-tool-target-row.active {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.scene-tool-config-main {
  min-height: 420px;
}

.scene-manage-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.scene-tool-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.scene-tool-selected-panel,
.scene-tool-available-panel {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.scene-tool-panel-title {
  font-size: 13px;
  color: #475569;
  margin-bottom: 8px;
  font-weight: 600;
}

.scene-tool-selected-list {
  min-height: 360px;
  max-height: 520px;
  overflow: auto;
  display: grid;
  gap: 8px;
}

.scene-selected-item {
  border: 1px solid #dbeafe;
  background: #f8fbff;
  border-radius: 10px;
  padding: 8px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.scene-selected-order {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.scene-selected-main {
  min-width: 0;
}

.scene-selected-title {
  font-weight: 600;
}

.scene-selected-sub {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scene-selected-remove {
  padding: 4px 10px;
}

.scene-selected-actions {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.scene-tool-picker {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px;
  min-height: 360px;
  max-height: 520px;
  overflow: auto;
  display: grid;
  gap: 8px;
  align-content: start;
}

.scene-tool-picker-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff;
}

.scene-tool-picker-item.selected {
  border-color: #93c5fd;
  background: #eff6ff;
}

.scene-tool-picker-name {
  min-width: 0;
  font-size: 14px;
}

.scene-tool-order-badge {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.scene-tool-order-badge.active {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

@media (max-width: 1200px) {
  .scene-tool-config-layout {
    grid-template-columns: 1fr;
  }

  .scene-tool-selector {
    grid-template-columns: 1fr;
  }

  .scene-tool-selected-list,
  .scene-tool-picker {
    min-height: 220px;
    max-height: 360px;
  }
}

.scene-image-library {
  margin-top: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px;
  background: #fbfdff;
}

.scene-image-library-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.scene-image-library-head-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.scene-image-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.scene-image-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}

.scene-image-item.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.scene-image-thumb {
  height: 90px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid #eef2f6;
}

.scene-image-actions {
  display: flex;
  gap: 6px;
  padding: 8px;
}

.scene-form-cover-preview {
  margin-top: 8px;
  height: 96px;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  background: #f8fafc;
  background-size: cover;
  background-position: center;
}

.scene-content {
  padding: 14px 16px 16px;
}

.scene-content h3 {
  margin: 8px 0 6px;
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scene-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.scene-tag {
  font-size: 12px;
  color: #4b5563;
  background: #f3f4f6;
  padding: 3px 9px;
  border-radius: 999px;
}

.scene-tag.hot {
  color: #0369a1;
  background: #e0f2fe;
}

.scene-tag.rec {
  color: #15803d;
  background: #dcfce7;
}

.scene-meta {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
}

.scene-detail-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.scene-detail-tab {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.scene-detail-tab.active {
  color: #1d4ed8;
  background: #eff6ff;
}

.detail-block {
  margin-bottom: 12px;
}

.detail-block h4 {
  margin: 0 0 10px;
}

.detail-block ul,
.detail-block ol {
  margin: 0;
  padding-left: 20px;
  color: #4b5563;
}

.scene-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
}

.scene-detail-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scene-section-card h4,
.scene-side-card h4 {
  margin: 0 0 12px;
}

.scene-work-list,
.scene-flow-list,
.scene-tool-list,
.scene-related-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scene-work-item,
.scene-flow-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.scene-num,
.scene-flow-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: #1d4ed8;
  background: #dbeafe;
}

.scene-flow-title {
  color: #1f2937;
  line-height: 1.55;
}

.scene-output-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.scene-output-item {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: #334155;
}

.scene-detail-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 16px;
  height: fit-content;
}

.scene-tool-item {
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.scene-tool-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.scene-tool-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  background: #fff;
  flex: 0 0 auto;
}

.scene-tool-title {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0;
}

.scene-tool-desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

.scene-related-item {
  font-size: 14px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 9px 10px;
}

.scene-start-btn {
  width: 100%;
}

@media (max-width: 1100px) {
  .scene-detail-layout {
    grid-template-columns: 1fr;
  }
  .scene-detail-aside {
    position: static;
  }
  .scene-manage-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.tool-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tool-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
}

.tool-left-panel {
  align-self: start;
}

.tool-category-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.tool-category-item {
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: 8px;
  padding: 8px 10px;
  color: #475569;
  cursor: pointer;
}

.tool-category-item.active {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
}

.tool-mini-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
}

.tool-top-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.tool-top-bar input {
  flex: 1;
}

.tool-top-bar select {
  width: 140px;
}

.tool-meta {
  margin-bottom: 10px;
}

.tool-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tool-gallery-card {
  text-align: center;
  padding-top: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.tool-cover {
  height: 86px;
  margin: -16px -16px 0;
  background: linear-gradient(120deg, #dbeafe 0%, #eef2ff 100%);
}

.tool-logo {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  object-fit: cover;
  margin-top: -29px;
  border: 3px solid #fff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.tool-gallery-card h3 {
  margin: 8px 0 6px;
}

.tool-gallery-card .card-desc-3line {
  min-height: calc(3 * 1.5em);
  height: calc(3 * 1.5em);
}

.tool-card-type-actions {
  margin-top: auto;
  display: grid;
  gap: 8px;
}

.tool-types {
  justify-content: flex-start;
}

.tool-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: center;
}

.tool-guide-btn,
.tool-visit-btn {
  width: 100%;
  text-decoration: none;
}

.tool-guide-btn {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.tool-guide-btn:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.tool-visit-btn {
  background: #eff6ff;
  border-color: #dbeafe;
  color: #1d4ed8;
  text-decoration: none;
}

.tool-visit-btn:hover {
  text-decoration: none;
}

.admin-tool-logo-preview-wrap {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  margin-top: 8px;
}

.admin-tool-logo-preview {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  object-fit: cover;
  background: linear-gradient(120deg, #dbeafe 0%, #eef2ff 100%);
}

.admin-tool-cover-preview {
  margin-top: 8px;
  width: 100%;
  height: 156px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, #dbeafe 0%, #eef2ff 100%);
  background-size: cover;
  background-position: center;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tool-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tool-card-head h3 {
  margin: 0;
}

.tool-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--sub);
  font-size: 12px;
}

.practice-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.practice-toolbar {
  margin-bottom: 12px;
}

.practice-toolbar-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.practice-toolbar-head input {
  flex: 1;
}

.practice-toolbar-filters {
  margin-top: 10px;
}

.practice-type-tabs {
  margin-top: 6px;
  display: flex;
  gap: 8px;
}

.practice-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.practice-gallery-card {
  padding-top: 0;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.practice-gallery-card h3 {
  margin: 10px 0 8px;
  font-size: 22px;
}

.practice-card-desc {
  color: #64748b;
  font-size: 13px;
  margin-bottom: 8px;
}

.practice-author-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 12px;
}

.practice-author-avatar {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #eff6ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fav-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.96);
  color: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.fav-btn::before {
  content: "☆";
  font-size: 18px;
  color: #9ca3af;
}

.fav-btn.active {
  border-color: #93c5fd;
  background: #eff6ff;
}

.fav-btn.active::before {
  content: "★";
  color: #2563eb;
}

.practice-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.practice-cover {
  height: 140px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 60%, #eef2ff 100%);
}

.practice-card h3 {
  margin: 0;
  font-size: 17px;
}

.practice-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--sub);
  font-size: 12px;
}

.practice-share-shell {
  display: grid;
  gap: 12px;
}

.practice-share-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(180px, 0.9fr) minmax(260px, 1.3fr);
  gap: 12px;
  align-items: stretch;
}

.practice-share-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.practice-share-author {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  height: 100%;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 28%);
  border: 1px solid #e8edf5;
  border-top: 3px solid #94a3b8;
}

.practice-share-author-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.practice-share-type {
  display: grid;
  align-content: flex-start;
  height: 100%;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 28%);
  border: 1px solid #dbeafe;
  border-top: 3px solid #60a5fa;
}

.practice-share-type .practice-type-choice {
  margin-top: 10px;
}

.practice-share-source {
  display: grid;
  align-content: flex-start;
  height: 100%;
  background: linear-gradient(180deg, #f5f7ff 0%, #ffffff 28%);
  border: 1px solid #e0e7ff;
  border-top: 3px solid #818cf8;
}

.practice-share-source .toolbar {
  margin-top: 10px !important;
}

.practice-type-choice {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
}

.practice-share-summary {
  padding-top: 18px;
  padding-bottom: 18px;
}

.practice-share-summary .muted {
  margin-top: 6px;
  margin-bottom: 10px;
}

.practice-share-summary textarea {
  min-height: 200px;
}

.practice-summary-rich {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #f5f7fb;
  padding: 12px 14px;
  min-height: 200px;
  line-height: 1.65;
  overflow: auto;
}

.practice-summary-rich p {
  margin: 0 0 10px;
}

.practice-summary-rich p:last-child {
  margin-bottom: 0;
}

.practice-source-link {
  display: inline-block;
  margin-top: 10px;
  color: #1d4ed8;
  text-decoration: none;
  word-break: break-all;
  line-height: 1.45;
}

.practice-source-link:hover {
  text-decoration: underline;
}

.practice-source-hidden {
  display: none;
}

.practice-type-option {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: #475569;
  background: #fff;
}

.practice-type-option.active {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.practice-type-option input {
  margin: 0;
}

@media (max-width: 960px) {
  .practice-share-meta-row {
    grid-template-columns: 1fr;
  }
}

.practice-upload-inline {
  margin-top: 10px;
}

.practice-upload-grid {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.practice-cover-editor {
  display: grid;
  gap: 8px;
}

.practice-cover-preview {
  width: 100%;
  height: 140px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 60%, #eef2ff 100%);
  background-size: cover;
  background-position: center;
}

.practice-rich-editor {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 9px 10px;
  background: #fff;
  min-height: 108px;
  max-height: 25vh;
  overflow: auto;
  line-height: 1.6;
  transition: min-height 0.2s ease;
}

.practice-rich-editor.expanded {
  min-height: 25vh;
}

.practice-rich-editor:empty::before {
  content: attr(data-placeholder);
  color: #9ca3af;
}

.practice-rich-editor .rich-editor-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 6px 0;
}

.practice-detail-shell {
  display: grid;
  gap: 12px;
}

.practice-detail-head .sub {
  color: var(--sub);
  margin-top: 6px;
}

.practice-detail-cover-block {
  padding: 12px;
}

.practice-detail-cover {
  height: 210px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 60%, #eef2ff 100%);
}

.practice-detail-info h4,
.practice-detail-points h4,
.practice-detail-assets h4 {
  margin: 0 0 12px;
}

.practice-info-list {
  display: grid;
  gap: 10px;
}

.practice-info-item {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}

.practice-info-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
}

.practice-info-label {
  font-size: 12px;
  color: #64748b;
}

.practice-info-value {
  font-size: 15px;
  color: #1f2937;
  font-weight: 600;
}

.practice-detail-points ul {
  margin: 0;
  padding-left: 18px;
  color: #334155;
}
