/* 星云文件格式转换 · 桌面端界面 */
html, body.desktop-body { height: 100%; }
body.desktop-body {
  overflow: hidden;
  background: #eef0f8;
  font-size: 14px;
}
.dt-app {
  height: 100vh; display: flex; flex-direction: column;
  background:
    radial-gradient(700px 420px at 82% -10%, rgba(124, 87, 255, .06), transparent 70%),
    linear-gradient(180deg, #f5f6fc, #eef0f8);
}
.dt-titlebar {
  height: 46px; flex: none; display: flex; align-items: center; gap: 16px;
  padding: 0 8px 0 14px;
  background: rgba(252, 252, 255, .86);
  border-bottom: 1px solid #e4e6f2;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  -webkit-app-region: drag; user-select: none;
}
.dt-title-left { display: flex; align-items: center; gap: 9px; min-width: 240px; }
.dt-title-left strong { font-size: 11.5px; color: var(--ink); font-weight: 700; letter-spacing: .01em; }
.dt-version {
  font-family: var(--mono); font-size: 8.5px; color: var(--ink-4);
  border: 1px solid var(--line); border-radius: 4px; padding: 1px 4px;
}
.dt-title-center { flex: 1; text-align: center; font-size: 10px; color: var(--ink-4); letter-spacing: .08em; }
.dt-window-actions { display: flex; align-items: center; gap: 2px; -webkit-app-region: no-drag; }
.dt-title-offline {
  display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; color: var(--ok);
  background: rgba(231, 247, 241, .8); border: 1px solid rgba(13, 155, 116, .14);
  padding: 3px 8px; border-radius: 99px; margin-right: 8px;
}
.dt-title-offline .live-dot { width: 5px; height: 5px; box-shadow: none; }
.dt-winbtn {
  width: 38px; height: 30px; display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--ink-3); border-radius: 6px;
}
.dt-winbtn .icon { width: 13px; height: 13px; }
.dt-winbtn:hover { background: #eef0f8; color: var(--ink); }
.dt-winbtn.close:hover { background: #e34a5f; color: #fff; }

.dt-shell { flex: 1; display: flex; min-height: 0; }

.dt-sidebar {
  width: 228px; flex: none; display: flex; flex-direction: column;
  padding: 16px 12px 12px;
  background: linear-gradient(180deg, rgba(249, 248, 255, .9), rgba(243, 242, 251, .9));
  border-right: 1px solid #e4e6f2;
  overflow-y: auto;
}
.dt-sidebar::-webkit-scrollbar { width: 4px; }
.dt-nav-group { margin-bottom: 18px; }
.dt-nav-label {
  display: block; padding: 0 10px 7px; font-size: 8.5px; font-weight: 700;
  letter-spacing: .14em; color: var(--ink-4); text-transform: uppercase;
}
.dt-nav { display: flex; flex-direction: column; gap: 2px; }
.dt-nav-item {
  position: relative; display: flex; align-items: center; gap: 9px;
  height: 37px; padding: 0 10px; border: 1px solid transparent; border-radius: 9px;
  background: transparent; color: var(--ink-3); font-size: 12px; text-align: left;
  transition: background .18s, color .18s, border-color .18s;
}
.dt-nav-item .icon { width: 14px; height: 14px; color: var(--ink-4); }
.dt-nav-item span { flex: 1; }
.dt-nav-item em {
  font-style: normal; font-family: var(--mono); font-size: 8px; color: var(--ink-4);
  background: #ecebf7; padding: 1px 5px; border-radius: 99px;
}
.dt-nav-item:hover { background: rgba(255, 255, 255, .7); color: var(--ink-2); }
.dt-nav-item.is-active {
  background: #fff; color: var(--brand-ink); border-color: rgba(91, 87, 232, .1);
  box-shadow: 0 6px 16px -12px rgba(40, 35, 110, .55);
  font-weight: 650;
}
.dt-nav-item.is-active::before {
  content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 2.5px;
  border-radius: 99px; background: linear-gradient(180deg, var(--brand), var(--brand-3));
}
.dt-nav-item.is-active .icon { color: var(--brand); }
.dt-nav-item.is-active em { background: var(--brand-soft); color: var(--brand-ink); }
.dt-engine-card {
  margin-top: auto; padding: 12px 13px; border-radius: 12px;
  background: linear-gradient(155deg, #1b1c34, #232444);
  color: rgba(255, 255, 255, .66);
  box-shadow: 0 18px 34px -26px rgba(10, 10, 40, .8);
}
.dt-engine-head { display: flex; align-items: center; gap: 6px; color: #fff; }
.dt-engine-head strong { font-size: 10px; font-weight: 650; }
.dt-engine-card p { font-size: 8.5px; line-height: 1.6; margin: 4px 0 10px; }
.dt-engine-card > span { font-size: 7.5px; color: rgba(255, 255, 255, .34); }
.dt-engine-meter { height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .1); margin-bottom: 8px; overflow: hidden; }
.dt-engine-meter i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, #5b57e8, #22d3c5); }
.dt-engine-card .live-dot { width: 5px; height: 5px; background: #3fe0b0; box-shadow: 0 0 0 3px rgba(63, 224, 176, .12); }
.dt-sidebar-foot {
  display: flex; flex-direction: column; gap: 3px; padding: 12px 9px 2px;
  font-size: 8px; color: var(--ink-4);
}
.dt-sidebar-foot span { display: flex; align-items: center; gap: 4px; }
.dt-sidebar-foot .icon { width: 10px; height: 10px; }

.dt-main {
  flex: 1; min-width: 0; overflow-y: auto; padding: 22px 26px 36px;
  scroll-behavior: smooth;
}
.dt-main::-webkit-scrollbar { width: 8px; }
.dt-main::-webkit-scrollbar-thumb { background: #d5d8e9; border-radius: 99px; border: 2px solid #eef0f8; }
.dt-view { max-width: 1220px; margin: 0 auto; }
.dt-pagehead {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 16px;
}
.dt-kicker { font-size: 8.5px; font-weight: 700; letter-spacing: .14em; color: var(--brand-ink); text-transform: uppercase; }
.dt-pagehead h1 { font-size: 20px; line-height: 1.3; letter-spacing: -.02em; color: var(--ink); font-weight: 750; margin-top: 4px; }
.dt-pagehead p { font-size: 10px; color: var(--ink-4); margin-top: 3px; }
.dt-head-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dt-pill {
  display: inline-flex; align-items: center; gap: 5px; font-size: 9px; color: var(--ink-3);
  background: rgba(255, 255, 255, .72); border: 1px solid var(--line); border-radius: 99px;
  padding: 4px 9px;
}
.dt-pill.plain { font-family: var(--mono); color: var(--ink-3); }
.dt-pill .live-dot { width: 5px; height: 5px; box-shadow: none; }

.dt-main .converter { border-radius: 18px; box-shadow: 0 24px 60px -48px rgba(37, 31, 110, .5), 0 1px 2px rgba(30, 28, 80, .03); }
.dt-main .converter-head { padding: 11px 18px; }
.dt-main .converter-body { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.dt-main .drop-panel { padding: 18px; }
.dt-main .dropzone { min-height: 300px; }
.dt-main .format-panel { padding: 18px 20px 16px; }
.dt-main .format-head h3 { font-size: 13.5px; }
.dt-main .options { max-height: none; }
.dt-main .convert-btn { height: 44px; }
.dt-main .task-area, .dt-main .result-area { padding: 14px 18px 16px; }
.dt-main .result-list { max-height: 190px; overflow-y: auto; }
.dt-tip {
  display: flex; align-items: flex-start; gap: 6px; font-size: 9.5px; color: var(--ink-4);
  line-height: 1.7; margin: 12px 2px 0;
}
.dt-tip .icon { width: 11px; height: 11px; margin-top: 2px; color: var(--brand); }
.dt-quick { margin-top: 18px; }
.dt-quick-head { display: flex; align-items: baseline; gap: 8px; margin: 0 2px 8px; }
.dt-quick-head h2 { font-size: 11.5px; color: var(--ink); font-weight: 700; }
.dt-quick-head span { font-size: 9px; color: var(--ink-4); }
.dt-pairs { display: flex; flex-wrap: wrap; gap: 6px; }
.dt-pairs .pair-card { height: 34px; background: rgba(255, 255, 255, .78); }
.dt-pairs .pair-card b { font-size: 9.5px; }
.dt-pairs .pair-card span { font-size: 8.5px; }

.dt-library { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.dt-lib-group { margin-bottom: 20px; }
.dt-lib-head { display: flex; align-items: baseline; gap: 8px; margin: 0 2px 8px; }
.dt-lib-head h3 { font-size: 11.5px; color: var(--ink); font-weight: 700; }
.dt-lib-head span { font-size: 8.5px; color: var(--ink-4); }
.dt-lib-reason { font-size: 9px; color: var(--ink-4); margin-top: 6px; line-height: 1.55; }
.dt-library .fmt-card { padding: 12px 13px; }
.dt-library .fmt-name { font-size: 11.5px; }
.dt-library .fmt-desc { font-size: 10px; }

.dt-history {
  background: rgba(255, 255, 255, .82); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
}
.dt-history-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 14px;
  border-bottom: 1px solid rgba(232, 233, 244, .75);
}
.dt-history-item:last-child { border-bottom: 0; }
.dt-h-icon {
  width: 32px; height: 32px; border-radius: 9px; background: var(--brand-soft);
  color: var(--brand); display: flex; align-items: center; justify-content: center; flex: none;
}
.dt-h-icon .icon { width: 15px; height: 15px; }
.dt-h-main { flex: 1; min-width: 0; }
.dt-h-main strong { display: block; font-size: 11.5px; color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-h-main span { display: block; font-size: 9px; color: var(--ink-4); margin-top: 1px; }
.dt-h-time { font-size: 8.5px; color: var(--ink-4); font-family: var(--mono); flex: none; }
.dt-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 60px 24px; background: rgba(255, 255, 255, .6);
  border: 1px dashed var(--line-2); border-radius: 14px;
}
.dt-empty > span {
  width: 46px; height: 46px; border-radius: 14px; background: var(--surface-3);
  color: var(--ink-4); display: flex; align-items: center; justify-content: center;
}
.dt-empty .icon { width: 20px; height: 20px; }
.dt-empty strong { font-size: 12.5px; color: var(--ink-2); margin-top: 12px; font-weight: 650; }
.dt-empty p { font-size: 10px; color: var(--ink-4); margin-top: 4px; max-width: 340px; line-height: 1.7; }

.dt-settings { display: grid; gap: 11px; max-width: 880px; }
.dt-panel {
  background: rgba(255, 255, 255, .85); border: 1px solid var(--line);
  border-radius: 14px; padding: 15px 18px 6px;
}
.dt-panel-head { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.dt-panel-head h2 { font-size: 12.5px; color: var(--ink); font-weight: 700; }
.dt-panel-head p { font-size: 9px; color: var(--ink-4); margin-top: 2px; }
.dt-setting-row {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px 0; border-bottom: 1px dashed rgba(232, 233, 244, .8);
}
.dt-setting-row:last-child { border-bottom: 0; }
.dt-setting-row > div > strong { display: block; font-size: 11.5px; color: var(--ink-2); font-weight: 600; }
.dt-setting-row > div > span { display: block; font-size: 9px; color: var(--ink-4); margin-top: 2px; line-height: 1.6; }
.dt-panel .select { max-width: 130px; }
.dt-panel .btn { flex: none; }

.dt-about { max-width: 880px; display: grid; gap: 11px; }
.dt-about-hero {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(248, 246, 255, .96));
  border: 1px solid var(--line); border-radius: 16px; padding: 20px;
}
.dt-about-hero .brand-mark { width: 46px; height: 46px; border-radius: 14px; }
.dt-about-hero h2 { font-size: 17px; color: var(--ink); font-weight: 750; letter-spacing: -.02em; }
.dt-about-hero p { font-size: 10px; color: var(--ink-4); margin-top: 3px; }
.dt-about-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.dt-about-grid div { background: #fff; padding: 13px 16px; }
.dt-about-grid strong { display: block; font-size: 9.5px; color: var(--ink-4); font-weight: 600; letter-spacing: .06em; }
.dt-about-grid span { display: block; font-size: 11px; color: var(--ink-2); margin-top: 4px; }
.dt-shortcuts {
  background: rgba(255, 255, 255, .85); border: 1px solid var(--line);
  border-radius: 14px; padding: 15px 18px;
}
.dt-shortcuts h3 { font-size: 11.5px; color: var(--ink); font-weight: 700; margin-bottom: 7px; }
.dt-shortcuts div {
  display: flex; align-items: center; gap: 4px; padding: 7px 0;
  border-top: 1px dashed var(--line);
}
.dt-shortcuts span { flex: 1; font-size: 10px; color: var(--ink-3); }
kbd {
  font-family: var(--mono); font-size: 8.5px; color: var(--ink-2);
  background: var(--surface-3); border: 1px solid var(--line-2);
  border-bottom-width: 2px; border-radius: 4px; padding: 1px 5px; min-width: 20px; text-align: center;
}
.dt-about-note { font-size: 9px; color: var(--ink-4); line-height: 1.7; padding: 0 2px; }

.dt-statusbar {
  height: 30px; flex: none; display: flex; align-items: center; gap: 16px;
  padding: 0 14px; background: rgba(252, 252, 255, .92);
  border-top: 1px solid #e4e6f2; font-size: 9px; color: var(--ink-4);
}
.dt-statusbar span { display: inline-flex; align-items: center; gap: 4px; }
.dt-statusbar .live-dot { width: 4px; height: 4px; box-shadow: none; }
.dt-status-spacer { flex: 1; }
.dt-statusbar [data-dt-clock] { font-family: var(--mono); }

@media (max-width: 1180px) {
  .dt-library { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dt-main .converter-body { grid-template-columns: 1fr; }
  .dt-main .format-panel { border-left: 0; border-top: 1px solid var(--line); }
  .dt-main .dropzone { min-height: 230px; }
}

@media (max-width: 860px) {
  body.desktop-body { overflow: auto; }
  .dt-app { height: auto; min-height: 100vh; }
  .dt-titlebar { position: sticky; top: 0; z-index: 20; }
  .dt-title-center, .dt-title-offline, .dt-version { display: none; }
  .dt-title-left { min-width: 0; flex: 1; }
  .dt-shell { flex-direction: column; }
  .dt-sidebar {
    width: 100%; flex: none; flex-direction: row; align-items: center; gap: 8px;
    padding: 7px 10px; border-right: 0; border-bottom: 1px solid #e4e6f2;
    overflow-x: auto; overflow-y: hidden;
    position: sticky; top: 46px; z-index: 15;
    background: rgba(249, 248, 255, .94);
    backdrop-filter: blur(12px);
  }
  .dt-nav-group { margin: 0; flex: none; }
  .dt-nav-label, .dt-engine-card, .dt-sidebar-foot { display: none; }
  .dt-nav { flex-direction: row; gap: 2px; }
  .dt-nav-item { height: 32px; padding: 0 9px; font-size: 10px; white-space: nowrap; }
  .dt-nav-item em { display: none; }
  .dt-nav-item.is-active::before { display: none; }
  .dt-main { overflow: visible; padding: 16px 14px 28px; }
  .dt-pagehead { align-items: flex-start; }
  .dt-pagehead h1 { font-size: 18px; }
  .dt-head-actions { display: none; }
  .dt-library { grid-template-columns: 1fr; }
  .dt-about-grid { grid-template-columns: 1fr; }
  .dt-statusbar { position: sticky; bottom: 0; z-index: 20; }
  .dt-statusbar span:nth-child(3), .dt-statusbar span:nth-child(5) { display: none; }
  .dt-setting-row { gap: 12px; }
  .dt-settings .dt-panel { padding: 13px 14px 4px; }
}

@media (max-width: 480px) {
  .dt-main { padding: 14px 10px 24px; }
  .dt-main .converter { border-radius: 14px; }
  .dt-main .drop-panel { padding: 12px; }
  .dt-main .format-panel { padding: 14px 13px; }
  .dt-pagehead p { display: none; }
  .dt-nav-item span { display: none; }
  .dt-nav-item { width: 34px; justify-content: center; padding: 0; }
  .dt-nav-item .icon { width: 15px; height: 15px; }
  .dt-about-hero { padding: 14px; }
}
