:root {
  color-scheme: light;
  --bg: #f3f5f4;
  --panel: #ffffff;
  --line: #dfe5e2;
  --text: #17211f;
  --muted: #68736f;
  --accent: #0f766e;
  --accent-soft: #e5f4f1;
  --danger: #b42318;
  --warning: #a15c00;
  --shadow: 0 10px 30px rgba(23, 33, 31, 0.08);
}

* { box-sizing: border-box; }
html, body, #app { min-height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 14px/1.5 "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 15%, rgba(15, 118, 110, 0.13), transparent 34%),
    radial-gradient(circle at 88% 80%, rgba(230, 160, 56, 0.12), transparent 30%),
    var(--bg);
}
.login-card {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}
.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--accent);
  font-size: 18px;
  font-weight: 800;
}
.login-card h1 { margin: 16px 0 4px; font-size: 24px; }
.login-card > p { margin: 0 0 22px; color: var(--muted); }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field span { color: #34423e; font-size: 12px; font-weight: 700; }
.field input, .field select {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid #cdd7d3;
  border-radius: 7px;
  color: var(--text);
  background: #fff;
  outline: none;
}
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1); }
.btn {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #cbd5d1;
  border-radius: 7px;
  color: #26332f;
  background: #fff;
}
.btn:hover { border-color: #98aaa4; }
.btn.primary { color: #fff; border-color: var(--accent); background: var(--accent); }
.btn.primary:hover { background: #0d665f; }
.btn:disabled { cursor: not-allowed; opacity: .5; }
.login-error, .notice.error {
  margin-bottom: 14px;
  padding: 10px 12px;
  color: var(--danger);
  border: 1px solid #f3c5c1;
  border-radius: 7px;
  background: #fff3f2;
}
.notice.success {
  margin-bottom: 14px;
  padding: 10px 12px;
  color: #067647;
  border: 1px solid #abefc6;
  border-radius: 7px;
  background: #ecfdf3;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  padding: 10px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}
.site-title { display: flex; align-items: center; gap: 11px; min-width: 0; }
.site-title .brand-mark { width: 38px; height: 38px; font-size: 14px; }
.site-title h1 { margin: 0; font-size: 17px; line-height: 1.25; }
.site-title p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.header-actions { display: flex; align-items: center; gap: 8px; }

.page {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 48px;
}
.summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.summary div {
  min-height: 70px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.summary span { display: block; color: var(--muted); font-size: 11px; }
.summary strong { display: block; margin-top: 5px; font-size: 20px; }

.filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(5, minmax(120px, 170px));
  gap: 8px;
  margin-bottom: 12px;
}
.filters .search-wrap { position: relative; }
.filters input, .filters select {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid #cdd7d3;
  border-radius: 7px;
  color: var(--text);
  background: #fff;
}
.filters input:focus, .filters select:focus { border-color: var(--accent); outline: none; }
.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.ip-list { display: grid; gap: 9px; }
.ip-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 130px;
  min-height: 138px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 1px 3px rgba(23, 33, 31, 0.03);
}
.ip-card:hover { border-color: #a7c9c3; box-shadow: 0 5px 18px rgba(23, 33, 31, 0.07); }
.cover {
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #8a9692;
  background: #edf1ef;
  font-size: 18px;
  font-weight: 800;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.card-body { min-width: 0; padding: 13px 16px; }
.card-title { display: flex; align-items: flex-start; gap: 8px; }
.card-title h2 {
  min-width: 0;
  flex: 1;
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.score { flex: none; color: #a15c00; font-weight: 800; }
.card-author { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.meta, .metrics, .tags { display: flex; flex-wrap: wrap; gap: 5px 9px; }
.meta { margin-top: 9px; color: #41504b; font-size: 12px; }
.metrics { margin-top: 7px; color: var(--muted); font-size: 11px; }
.tags { margin-top: 9px; }
.tags i {
  padding: 3px 7px;
  border-radius: 5px;
  color: #51615c;
  background: #edf1ef;
  font-size: 10px;
  font-style: normal;
}
.tags i.audience { color: var(--accent); background: var(--accent-soft); }
.card-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 13px;
  border-left: 1px solid #edf0ef;
}
.card-actions .btn { width: 100%; padding: 0 8px; font-size: 12px; }
.empty, .loading {
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: 32px;
  color: var(--muted);
  border: 1px dashed #cbd6d2;
  border-radius: 8px;
  background: rgba(255, 255, 255, .65);
  text-align: center;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.pagination span { min-width: 120px; text-align: center; color: var(--muted); font-size: 12px; }

.drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: flex-end;
  background: rgba(17, 25, 23, 0.38);
}
.drawer {
  width: min(580px, 94vw);
  height: 100%;
  overflow: auto;
  padding: 22px;
  background: #fff;
  box-shadow: -20px 0 60px rgba(0, 0, 0, .18);
}
.drawer-head { display: flex; justify-content: space-between; gap: 12px; }
.drawer-head h2 { margin: 4px 0 0; font-size: 22px; }
.drawer-head p { margin: 5px 0 0; color: var(--muted); }
.drawer-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.drawer-hero { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; margin-top: 18px; }
.drawer-cover { min-height: 198px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: #edf1ef; }
.drawer-cover img { width: 100%; height: 100%; object-fit: cover; }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.fact-grid div { padding: 10px; border: 1px solid var(--line); border-radius: 7px; }
.fact-grid b { display: block; font-size: 17px; }
.fact-grid span { color: var(--muted); font-size: 11px; }
.drawer-section { margin-top: 22px; }
.drawer-section h3 { margin: 0 0 9px; font-size: 15px; }
.drawer-section p { margin: 0; color: #41504b; white-space: pre-wrap; }
.settings-form { display: grid; gap: 12px; margin-top: 20px; }
.settings-form label { display: grid; gap: 6px; color: #34423e; font-size: 12px; font-weight: 700; }
.settings-form input {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid #cdd7d3;
  border-radius: 7px;
  background: #fff;
  font-weight: 400;
}
.settings-form select, .settings-form textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #cdd7d3;
  border-radius: 7px;
  color: var(--text);
  background: #fff;
  font-weight: 400;
  outline: none;
}
.settings-form select { min-height: 40px; padding: 0 11px; }
.settings-form select:focus, .settings-form textarea:focus, .settings-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(22, 119, 255, .09); }
.settings-form textarea { resize: vertical; }
.settings-form input[type="checkbox"] { width: auto; min-height: auto; }
.settings-form label.check { display: flex; align-items: center; gap: 8px; }
.settings-actions { display: flex; gap: 8px; margin-top: 4px; }
.settings-actions .btn { flex: 1; }
.chapter-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chapter-list span { padding: 5px 8px; border-radius: 5px; background: #edf1ef; color: #4d5d58; font-size: 11px; }

@media (max-width: 920px) {
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .search-wrap { grid-column: 1 / -1; }
  .ip-card { grid-template-columns: 96px minmax(0, 1fr); }
  .card-actions { grid-column: 1 / -1; flex-direction: row; border-top: 1px solid #edf0ef; border-left: 0; }
}

@media (max-width: 600px) {
  .site-header { align-items: flex-start; padding: 10px 14px; }
  .site-title p { display: none; }
  .header-actions .user-label { display: none; }
  .page { width: min(100% - 20px, 1240px); }
  .summary { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: 1fr; }
  .filters .search-wrap { grid-column: auto; }
  .ip-card { grid-template-columns: 82px minmax(0, 1fr); }
  .card-body { padding: 11px; }
  .drawer-hero { grid-template-columns: 110px minmax(0, 1fr); }
  .fact-grid { grid-template-columns: 1fr; }
}

/* 元界漫剧发行平台 */
:root {
  --accent: #1677ff;
  --accent-soft: #e8f2ff;
  --sidebar: #ffffff;
  --workspace: #f4f6f8;
}

body { background: var(--workspace); }
.btn.primary { border-color: var(--accent); background: var(--accent); }
.btn.primary:hover { background: #0958d9; }
.brand-mark { background: var(--accent); }
.brand-mark::after { content: ""; }

.platform { min-height: 100vh; display: flex; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 236px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #eceff3;
  background: var(--sidebar);
}
.platform-logo { min-height: 68px; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid #f0f2f5; }
.platform-logo > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--accent); font-size: 16px; font-weight: 800; }
.platform-logo b { display: block; font-size: 16px; }
.platform-logo small { color: #8a94a6; font-size: 11px; }
.nav-groups { flex: 1; overflow: auto; padding: 10px 10px 22px; }
.nav-groups section { margin-top: 12px; }
.nav-groups h3 { margin: 0 8px 6px; color: #9aa3b2; font-size: 11px; font-weight: 700; }
.nav-groups button {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 2px 0;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  color: #4e5969;
  background: transparent;
  text-align: left;
}
.nav-groups button:hover { color: #1f2d3d; background: #f5f7fa; }
.nav-groups button.on { color: var(--accent); background: #e8f2ff; font-weight: 700; }
.nav-groups button i { width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: 4px; opacity: .72; }
.nav-groups button.on i { background: currentColor; box-shadow: inset 0 0 0 4px #e8f2ff; }
.nav-groups button em { margin-left: auto; padding: 1px 5px; border-radius: 4px; color: #fff; background: var(--accent); font-size: 9px; font-style: normal; }
.sidebar-user { min-height: 64px; display: flex; align-items: center; gap: 9px; padding: 10px 15px; border-top: 1px solid #f0f2f5; }
.sidebar-user > div { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #334155; font-weight: 700; }
.sidebar-user b, .sidebar-user small { display: block; }
.sidebar-user b { font-size: 12px; }
.sidebar-user small { color: #98a2b3; font-size: 10px; }

.workspace { flex: 1; min-width: 0; margin-left: 236px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  border-bottom: 1px solid #eceff3;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
}
.topbar h1 { margin: 0; font-size: 18px; }
.topbar p { margin: 3px 0 0; color: #98a2b3; font-size: 11px; }
.top-actions { display: flex; gap: 8px; }
.content { min-height: calc(100vh - 68px); padding: 20px 24px 48px; }
.page-stack { display: grid; gap: 16px; }

.panel { padding: 18px; border: 1px solid #e6eaf0; border-radius: 8px; background: #fff; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.panel-title h2, .panel-title h3 { margin: 0; font-size: 17px; }
.panel-title p { margin: 4px 0 0; color: #8a94a6; font-size: 12px; }
.panel-actions { display: flex; align-items: center; gap: 8px; }
.panel-actions select { min-height: 38px; padding: 0 11px; border: 1px solid #d9dee7; border-radius: 7px; color: #34423e; background: #fff; }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.text-btn { border: 0; color: var(--accent); background: transparent; }
.wide { width: 100%; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat-grid article { padding: 16px; border: 1px solid #e6eaf0; border-radius: 8px; background: #fff; }
.stat-grid span, .stat-grid small { display: block; color: #8a94a6; font-size: 11px; }
.stat-grid strong { display: block; margin: 5px 0; color: #1f2d3d; font-size: 24px; }

.welcome-panel { min-height: 200px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; overflow: hidden; padding: 28px; background: linear-gradient(120deg, #ffffff 0%, #edf6ff 100%); }
.welcome-panel h2 { margin: 8px 0; font-size: 28px; }
.welcome-panel p { max-width: 620px; color: #667085; }
.hero-actions { display: flex; gap: 10px; margin-top: 22px; }
.welcome-art { position: relative; display: grid; place-items: center; }
.welcome-art > span { position: relative; z-index: 2; width: 100px; height: 100px; display: grid; place-items: center; border-radius: 18px; color: #fff; background: var(--accent); box-shadow: 0 18px 50px rgba(22,119,255,.25); font-size: 42px; font-weight: 800; }
.welcome-art i { position: absolute; width: 160px; height: 160px; border: 1px solid rgba(22,119,255,.16); border-radius: 50%; }
.welcome-art i:last-child { width: 220px; height: 220px; }
.two-columns { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); gap: 16px; }
.todo-list { display: grid; }
.todo-list div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f0f2f5; }
.todo-list span { color: #98a2b3; font-size: 12px; }

.drama-list { display: grid; }
.drama-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 80px; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid #f0f2f5; }
.drama-cover { width: 76px; aspect-ratio: 3/4; display: grid; place-items: center; overflow: hidden; border-radius: 6px; background: #edf1f5; color: #98a2b3; font-size: 12px; }
.drama-cover img { width: 100%; height: 100%; object-fit: cover; }
.drama-row h3 { margin: 0; font-size: 15px; }
.drama-row p { display: -webkit-box; overflow: hidden; margin: 4px 0; color: #667085; font-size: 12px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.drama-row small { color: #98a2b3; }
.drama-row em { justify-self: end; padding: 4px 8px; border-radius: 5px; color: #1677ff; background: #e8f2ff; font-size: 11px; font-style: normal; }
.drama-row em.pending { color: #a15c00; background: #fff7e6; }

.ip-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) repeat(5, minmax(120px, 150px)); gap: 8px; }
.ip-toolbar input, .ip-toolbar select { min-height: 40px; padding: 0 11px; border: 1px solid #d9dee7; border-radius: 7px; background: #fff; }
.result-line { display: flex; justify-content: space-between; color: #8a94a6; font-size: 12px; }
.tags i.tier { color: #a15c00; background: #fff6df; font-weight: 700; }
.card-actions .btn { width: 100%; padding: 0 8px; font-size: 12px; }

.chart-placeholder { min-height: 260px; display: grid; place-items: center; margin-top: 16px; border: 1px dashed #d9dee7; border-radius: 8px; background: #fbfcfe; }
.chart-bars { width: min(700px, 85%); height: 150px; display: flex; align-items: flex-end; gap: 10px; }
.chart-bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #69a9ff, #dcecff); }
.chart-bars .chart-empty { width: 100%; align-self: center; color: #98a2b3; text-align: center; }
.chart-placeholder p { margin: -50px 0 0; color: #98a2b3; font-size: 12px; }
.data-table-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 22px 0 8px; }
.data-table-title h3 { margin: 0; font-size: 15px; }
.data-table-title p { margin: 3px 0 0; color: #98a2b3; font-size: 11px; }
.data-table-title > span { color: #0958d9; font-size: 12px; font-weight: 700; }

.formula-card { display: grid; gap: 8px; padding: 20px; border-radius: 8px; background: #f7faff; }
.formula-card code { color: #0958d9; font-size: 16px; }
.formula-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.formula-grid article { padding: 14px; border: 1px solid #e6eaf0; border-radius: 8px; }
.formula-grid b, .formula-grid span { display: block; }
.formula-grid span { margin-top: 5px; color: #8a94a6; font-size: 12px; }
.formula-note { margin: 14px 0 0; color: #8a94a6; font-size: 12px; }

.settings-form.compact { max-width: 620px; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.account-grid label { display: grid; gap: 6px; color: #667085; font-size: 12px; }
.account-grid input { min-height: 40px; padding: 0 10px; border: 1px solid #d9dee7; border-radius: 7px; }
.invite-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.invite-code { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.invite-code code { padding: 10px 14px; border-radius: 7px; color: #0958d9; background: #e8f2ff; font-size: 18px; font-weight: 800; }
.invite-stats .stat-grid { grid-template-columns: repeat(3, 1fr); }
.status-badge { padding: 4px 8px; border-radius: 5px; font-size: 11px; }
.status-badge.success { color: #067647; background: #ecfdf3; }
.status-badge.warning { color: #a15c00; background: #fff7e6; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 12px; border-bottom: 1px solid #eef1f5; text-align: left; font-size: 12px; }
th { color: #667085; background: #fafbfc; }
.empty-cell { padding: 44px; color: #98a2b3; text-align: center; }

.modal-mask { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(15,23,42,.45); backdrop-filter: blur(2px); }
.compact-modal { width: min(560px, 94vw); max-height: 90vh; overflow: auto; border-radius: 10px; background: #fff; box-shadow: 0 28px 80px rgba(0,0,0,.24); }
.compact-modal > header { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 20px; border-bottom: 1px solid #eef1f5; }
.compact-modal > header h2 { margin: 0; font-size: 17px; }
.compact-modal > header p { margin: 4px 0 0; color: #98a2b3; font-size: 11px; }
.compact-modal > .settings-form { margin: 0; padding: 20px; }
.data-import-modal { width: min(720px, 94vw); }
.upload-modal { width: min(1040px, 96vw); max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 28px 80px rgba(0,0,0,.24); }
.upload-modal > header { min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid #eef1f5; }
.upload-modal > header h2 { margin: 0; font-size: 17px; }
.icon-btn { width: 34px; height: 34px; border: 0; border-radius: 7px; color: #667085; background: #f5f7fa; font-size: 20px; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; padding: 20px 36px; border-bottom: 1px solid #eef1f5; }
.steps div { position: relative; display: flex; align-items: center; gap: 8px; color: #98a2b3; font-size: 12px; }
.steps div:not(:last-child)::after { content: ""; position: absolute; left: calc(100% + 8px); width: 40px; height: 1px; background: #d9dee7; }
.steps b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #c5cad3; font-size: 11px; }
.steps div.on, .steps div.done { color: #1f2d3d; font-weight: 700; }
.steps div.on b, .steps div.done b { background: #1677ff; }
.upload-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 120px; }
.upload-body { overflow: auto; padding: 20px 28px 30px; }
.upload-anchors { padding: 22px 12px; border-left: 1px solid #eef1f5; }
.upload-anchors button { width: 100%; padding: 7px 0; border: 0; color: #667085; background: transparent; text-align: left; font-size: 12px; }
.form-section { display: grid; gap: 16px; }
.form-section h3 { margin: 0; font-size: 16px; }
.form-section > label, .netdisk-box label { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 14px; }
.form-section > label { align-items: start; }
.form-section label > span, .netdisk-box label > span, .radio-row > span { color: #667085; font-size: 12px; }
.form-section input, .form-section textarea, .form-section select, .netdisk-box input { width: 100%; min-height: 40px; padding: 0 11px; border: 1px solid #d9dee7; border-radius: 6px; background: #fff; }
.form-section textarea { padding: 10px 11px; resize: vertical; }
.radio-row { display: flex; align-items: center; gap: 18px; }
.radio-row label { display: flex; align-items: center; gap: 6px; }
.radio-row input { width: auto; min-height: auto; }
.check-line { display: flex !important; grid-template-columns: none !important; align-items: center !important; gap: 8px !important; }
.check-line input { width: auto; min-height: auto; }
.form-note { margin: -4px 0 0 164px; color: #98a2b3; font-size: 11px; }
.field-note { color: #98a2b3; font-size: 11px; font-weight: 400; }
.tag-select { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: start; }
.tag-select > span { color: #667085; font-size: 12px; padding-top: 9px; }
.tag-select > div { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-select label { display: flex; align-items: center; gap: 5px; padding: 7px 10px; border: 1px solid #d9dee7; border-radius: 7px; color: #4e5969; background: #fff; }
.tag-select input { width: auto; min-height: auto; }
.cover-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cover-grid > label { display: grid; gap: 8px; color: #667085; font-size: 12px; }
.upload-preview { min-height: 150px; display: grid; place-items: center; overflow: hidden; padding: 10px; border: 1px dashed #d9dee7; border-radius: 8px; color: #98a2b3; background: #fafcff; text-align: center; }
.upload-preview img { width: 100%; max-height: 210px; object-fit: contain; }
.upload-preview span, .upload-preview small { display: block; }
.upload-preview small { margin-top: 5px; color: #98a2b3; }
.roles-section { display: grid; gap: 10px; }
.role-card { padding: 14px; border: 1px solid #e6eaf0; border-radius: 8px; background: #fbfcfe; }
.role-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.role-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.role-grid label { display: grid; gap: 6px; color: #667085; font-size: 12px; }
.role-grid input, .role-grid select, .role-grid textarea { width: 100%; min-height: 38px; padding: 0 10px; border: 1px solid #d9dee7; border-radius: 6px; background: #fff; }
.role-grid textarea { padding: 9px 10px; }
.role-intro { grid-column: 1 / -1; }
.generated-file { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 14px; align-items: start; }
.section-divider { margin-top: 10px; padding-top: 16px; border-top: 1px solid #eef1f5; }
.two-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.two-field-row label { display: grid; gap: 6px; }
.inline-empty { padding: 28px; border: 1px dashed #d9dee7; border-radius: 8px; color: #98a2b3; text-align: center; }
.netdisk-box { padding: 22px; border: 1px solid #e6eaf0; border-radius: 8px; background: #fafcff; }
.netdisk-box > div { font-size: 16px; font-weight: 700; }
.netdisk-box > p { margin: 6px 0 20px; color: #667085; }
.upload-modal > footer { min-height: 64px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 0 20px; border-top: 1px solid #eef1f5; }
.upload-modal > footer > div { display: flex; gap: 8px; }
.complete { place-items: center; padding: 36px; text-align: center; }
.complete-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #16a34a; font-size: 26px; }
.complete dl { width: min(520px, 100%); display: grid; grid-template-columns: 100px 1fr; gap: 10px; margin: 20px 0; text-align: left; }
.complete dt { color: #98a2b3; }
.complete dd { margin: 0; }
.agreement-modal { width: min(620px, 92vw); padding: 26px; border-radius: 10px; background: #fff; }
.agreement-modal h3 { margin: 0 0 12px; font-size: 18px; }
.agreement-modal p { color: #4e5969; line-height: 1.8; }
.agreement-modal > div { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.drawer { max-width: 600px; }
.detail-hero { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; margin: 18px 0 22px; }
.detail-cover { min-height: 190px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: #edf1f5; color: #98a2b3; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.detail-facts span { padding: 10px; border: 1px solid #e6eaf0; border-radius: 7px; color: #667085; font-size: 11px; }
.detail-facts b { display: block; color: #1f2d3d; font-size: 16px; }
.drawer-section { margin-top: 20px; }
.drawer-section h3 { margin: 0 0 9px; font-size: 14px; }
.drawer-section p { color: #4e5969; white-space: pre-wrap; }
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fact-grid span { color: #667085; font-size: 12px; }
.drawer-actions { display: flex; gap: 8px; }
.drawer-actions .btn { flex: 1; }

@media (max-width: 1080px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .ip-toolbar { grid-template-columns: 1fr 1fr 1fr; }
  .two-columns, .invite-panel { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .sidebar { position: static; width: 100%; height: auto; }
  .platform { display: block; }
  .workspace { margin-left: 0; }
  .nav-groups { display: flex; gap: 16px; overflow-x: auto; }
  .nav-groups section { min-width: 180px; }
  .topbar { padding: 10px 14px; }
  .top-actions { flex-wrap: wrap; justify-content: flex-end; }
  .content { padding: 14px 10px 40px; }
  .stat-grid, .formula-grid, .account-grid, .fact-grid, .detail-facts { grid-template-columns: 1fr; }
  .welcome-panel { grid-template-columns: 1fr; padding: 20px; }
  .welcome-art { display: none; }
  .ip-toolbar { grid-template-columns: 1fr; }
  .steps { gap: 8px; padding: 14px 10px; }
  .steps span { display: none; }
  .upload-layout { grid-template-columns: 1fr; }
  .upload-anchors { display: none; }
  .form-section > label, .netdisk-box label { grid-template-columns: 1fr; }
  .tag-select, .cover-grid, .role-grid, .generated-file, .two-field-row { grid-template-columns: 1fr; }
  .tag-select > span { padding-top: 0; }
  .role-intro { grid-column: auto; }
  .form-note { margin-left: 0; }
  .drama-row { grid-template-columns: 62px minmax(0,1fr); }
  .drama-row em { grid-column: 2; justify-self: start; }
  .table-wrap table, .table-wrap thead, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; }
  .table-wrap thead { display: none; }
  .table-wrap tr { margin-bottom: 10px; border: 1px solid #e6eaf0; border-radius: 8px; overflow: hidden; }
  .table-wrap td { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #eef1f5; }
  .table-wrap tr td:last-child { border-bottom: 0; }
  .table-wrap td::before { content: attr(data-label); flex: 0 0 92px; color: #98a2b3; font-size: 11px; }
  .table-wrap .empty-cell { display: block; border: 0; }
  .table-wrap .empty-cell::before { display: none; }
}
