:root {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #f3f5f8;
  background: #08090b;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --blue: #007fff;
  --blue-hover: #2688ff;
  --blue-soft: rgba(0, 104, 255, .14);
  --ink: #f3f5f8;
  --muted: #a2a9b2;
  --line: rgba(235, 240, 248, .1);
  --line-strong: rgba(235, 240, 248, .16);
  --surface: #101113;
  --page: #08090b;
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: var(--page); }
button { font: inherit; }
[hidden] { display: none !important; }

.topbar {
  height: 56px;
  padding: 0 max(24px, calc((100vw - 1160px) / 2));
  display: flex;
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.brand b { color: var(--blue); font-weight: 600; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--blue-soft); }
.brand-mark svg { width: 20px; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.privacy { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: #5f6870; font-size: 12px; }
.privacy-dot { width: 7px; height: 7px; border-radius: 50%; background: #20b26b; }

main { max-width: 1160px; margin: auto; padding: 34px 24px 0; }
.intro { margin: 0 0 20px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
h1 { margin: 10px 0 5px; color: var(--ink); font-size: 24px; line-height: 32px; font-weight: 600; }
.lede { margin: 0; color: #626a72; font-size: 14px; line-height: 22px; }

.workspace { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 1px 4px rgba(24, 37, 51, .04); }
.workspace-head { min-height: 68px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.workspace-head h2 { margin: 0 0 4px; font-size: 14px; line-height: 20px; font-weight: 600; }
.workspace-head p { margin: 0; color: var(--muted); font-size: 12px; line-height: 18px; }
.limit { display: flex; align-items: center; gap: 7px; padding: 6px 9px; color: #667078; background: #f7f8fa; border-radius: 4px; font-size: 12px; }
.limit strong { color: var(--ink); font-weight: 600; }
.limit-led { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

.dropzone { min-height: 142px; margin: 18px 20px 20px; padding: 20px 24px; display: flex; align-items: center; gap: 18px; border: 1px dashed #c5cdd5; border-radius: 6px; background: #fbfcfe; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.dragover { border-color: var(--blue); background: #f7fbff; }
.upload-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 8px; color: var(--blue); background: var(--blue-soft); }
.upload-icon svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.drop-copy { display: flex; flex-direction: column; gap: 6px; }
.drop-copy strong { color: #303840; font-size: 14px; font-weight: 500; }
.drop-copy span { color: var(--muted); font-size: 12px; }
.choice-divider { display: inline-block; padding: 0 7px; color: #b0b7bd !important; }
.text-button { padding: 0; border: 0; color: var(--blue); background: none; font-size: 12px; cursor: pointer; }
.text-button:hover { color: var(--blue-hover); }
.drop-separator { width: 1px; height: 40px; margin: 0 4px 0 auto; background: var(--line); }
.drop-meta { display: flex; flex-direction: row; align-items: center; gap: 14px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.file-type { padding: 2px 6px; border-radius: 4px; color: #56616a; background: #f2f4f6; font-size: 10px; font-weight: 600; }

.queue-section { border-top: 1px solid var(--line); }
.queue-toolbar { min-height: 62px; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; }
.queue-summary { display: flex; align-items: center; gap: 10px; }
.queue-summary strong { font-size: 13px; font-weight: 600; }
.queue-summary span { color: var(--muted); font-size: 12px; }
.queue-actions { display: flex; gap: 8px; }
.button { height: 32px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 4px; font-size: 12px; font-weight: 500; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button-quiet { color: #616b73; background: transparent; }
.button-quiet:not(:disabled):hover { color: #cf4c4c; background: #fff6f6; }
.button-secondary { border-color: #cdd9e5; color: #3c5d7c; background: #fff; }
.button-secondary:not(:disabled):hover { border-color: #9ec7ee; color: var(--blue); background: #f7fbff; }
.button-primary { border-color: var(--blue); color: #fff; background: var(--blue); }
.button-primary:not(:disabled):hover { border-color: var(--blue-hover); background: var(--blue-hover); }
.progress-track { height: 3px; background: #edf2f7; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--blue); transition: width .2s; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
thead { color: #656f78; background: #f7f8fa; }
th { height: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; font-weight: 500; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 20px; }
th:not(:first-child), td:not(:first-child) { padding-left: 12px; }
.col-file { width: 45%; }
.col-state { width: 115px; }
.col-action { width: 64px; }
td { height: 54px; border-bottom: 1px solid var(--line); color: #505b64; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.file-cell { min-width: 220px; display: flex; align-items: center; gap: 10px; }
.thumb { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 4px; object-fit: cover; background-color: #f6f7f8; background-image: linear-gradient(45deg,#e7eaed 25%,transparent 25%),linear-gradient(-45deg,#e7eaed 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e7eaed 75%),linear-gradient(-45deg,transparent 75%,#e7eaed 75%); background-size: 10px 10px; background-position: 0 0,0 5px,5px -5px,-5px 0; }
.file-name { max-width: 320px; overflow: hidden; color: #303941; font-weight: 500; text-overflow: ellipsis; }
.file-dims { margin-top: 3px; color: #929aa1; font-size: 11px; }
.saving { color: #15885a; font-weight: 600; }
.saving.none { color: #7e868e; font-weight: 400; }
.status { display: inline-flex; align-items: center; gap: 6px; color: #7e868e; font-size: 11px; }
.status::before { width: 6px; height: 6px; border-radius: 50%; background: #b6bdc3; content: ""; }
.status.done { color: #168657; }
.status.done::before { background: #20b26b; }
.status.error { color: #cf4c4c; }
.status.error::before { background: #d75a5a; }
.status.busy::before { background: #e2a22e; animation: pulse 1s infinite; }
.row-download { padding: 6px 8px; border: 0; color: var(--blue); background: transparent; font-size: 12px; cursor: pointer; }
.row-download:hover { color: var(--blue-hover); }
.empty-state { min-height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); }
.empty-icon { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 1px; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-size: 21px; line-height: 1; }
.empty-state strong { color: #59636b; font-size: 12px; font-weight: 500; }
.empty-state span:last-child { font-size: 11px; }
.queue-foot { height: 38px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
footer { height: 56px; margin-top: 22px; display: flex; align-items: center; gap: 18px; border-top: 1px solid var(--line); color: #8a939b; font-size: 11px; }
footer span:first-child { color: #68727a; font-weight: 500; }
footer span + span::before { width: 3px; height: 3px; margin-right: 18px; display: inline-block; border-radius: 50%; background: #b3bbc1; vertical-align: middle; content: ""; }
.toast { position: fixed; z-index: 3; bottom: 24px; left: 50%; padding: 10px 16px; transform: translate(-50%, 20px); border-radius: 6px; color: #fff; background: #303840; font-size: 12px; opacity: 0; pointer-events: none; transition: .2s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes pulse { 50% { opacity: .35; } }

@media (max-width: 700px) {
  .topbar { height: 52px; padding: 0 16px; }
  main { padding: 26px 12px 0; }
  .intro { margin-bottom: 16px; }
  h1 { font-size: 21px; line-height: 29px; }
  .lede { max-width: 440px; font-size: 12px; line-height: 19px; }
  .workspace-head { min-height: 64px; padding: 0 14px; }
  .workspace-head p { font-size: 11px; }
  .limit { gap: 5px; padding: 6px; font-size: 10px; }
  .dropzone { min-height: 176px; margin: 12px; padding: 16px; flex-direction: column; justify-content: center; gap: 10px; }
  .upload-icon { width: 42px; height: 42px; }
  .upload-icon svg { width: 24px; }
  .drop-copy { align-items: center; }
  .drop-separator { display: none; }
  .drop-meta { max-width: 100%; justify-content: flex-start; overflow-x: auto; gap: 10px; padding: 2px 0; }
  .drop-copy strong { text-align: center; }
  .queue-toolbar { padding: 12px 14px; align-items: flex-start; flex-direction: column; gap: 10px; }
  .queue-summary { width: 100%; justify-content: space-between; }
  .queue-actions { width: 100%; gap: 6px; }
  .queue-actions .button { flex: 1; padding: 0 7px; }
  .queue-actions .button-quiet { flex: 0 0 auto; }
  table { min-width: 680px; }
  th:first-child, td:first-child { padding-left: 14px; }
  th:not(:first-child), td:not(:first-child) { padding-left: 9px; }
  .file-name { max-width: 170px; }
  .queue-foot { padding: 0 14px; }
  footer { height: 50px; gap: 8px; font-size: 10px; }
  footer span + span::before { margin-right: 8px; }
}

/* Dark developer-platform palette inspired by the supplied DingTalk reference. */
body { background: #08090b; }
.topbar { height: 64px; border-bottom-color: #1d2024; background: #08090b; }
.brand { color: #f4f6f8; font-size: 18px; }
.brand-mark { background: rgba(0, 104, 255, .16); }
.privacy { color: #a4abb4; font-size: 13px; }
main { max-width: 1440px; padding-top: 46px; }
.eyebrow { color: #9ca5b0; font-size: 13px; }
h1 { margin-top: 14px; margin-bottom: 10px; color: #f7f8fa; font-size: 48px; line-height: 1.2; font-weight: 650; }
h1 span { color: #1677ff; }
.lede { color: #aab0b7; font-size: 15px; line-height: 24px; }
.workspace { border-color: #272a2e; background: #101113; box-shadow: none; }
.workspace-head { border-bottom-color: #24272b; }
.workspace-head p, .queue-summary span { color: #9ca4ad; }
.limit { color: #aeb5bd; background: #1a1c1f; }
.limit strong { color: #f0f2f5; }
.dropzone { border-color: #34383e; background: #131518; }
.dropzone:hover, .dropzone.dragover { border-color: #1677ff; background: #101721; }
.upload-icon { color: #4b9aff; background: rgba(0, 104, 255, .16); }
.drop-copy strong { color: #f1f3f5; }
.drop-copy span { color: #a3aab2; }
.drop-separator { background: #2a2d31; }
.drop-meta { color: #969ea8; }
.file-type { border: 1px solid #343940; color: #bdc5cf; background: #1a1d21; }
.queue-section { border-top-color: #24272b; }
.button-quiet { color: #aeb5bd; }
.button-quiet:not(:disabled):hover { color: #ff7474; background: #241516; }
.button-secondary { border-color: #3c4148; color: #d3d9e0; background: #181a1d; }
.button-secondary:not(:disabled):hover { border-color: #1677ff; color: #70aaff; background: #111a27; }
.progress-track { background: #25282d; }
thead { color: #b4bbc3; background: #17191c; }
th { border-top-color: #26292e; border-bottom-color: #26292e; }
td { color: #c4c9cf; }
.thumb { border-color: #34383d; background-color: #1a1d20; background-image: linear-gradient(45deg,#25292d 25%,transparent 25%),linear-gradient(-45deg,#25292d 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#25292d 75%),linear-gradient(-45deg,transparent 75%,#25292d 75%); }
.file-name { color: #e7eaee; }
.file-dims { color: #929aa4; }
.saving { color: #43c98a; }
.saving.none, .status { color: #9ba3ad; }
.status.done { color: #63d59e; }
.status.error { color: #ff7777; }
.empty-state { color: #9ba3ad; }
.empty-state strong { color: #d4d8dd; }
.queue-foot { border-top-color: #26292e; color: #929aa4; }
footer { border-top-color: #24272b; color: #8f98a2; }
footer span:first-child { color: #ccd1d7; }
footer span + span::before { background: #454a51; }
.toast { color: #f4f6f8; background: #24272b; }

@media (max-width: 700px) {
  .topbar { height: 56px; }
  main { padding-top: 32px; }
  h1 { font-size: 32px; line-height: 1.25; }
  .lede { font-size: 13px; }
}
