/* DS0 下载面板定稿：方案五（磨砂玻璃描边）配色 + 排版三（双行堆叠，说明去括号）
   通过 html:root body 前缀 + !important 覆盖 ds0-theme-preset / light 主题 / reference-workbench 中的旧按钮色。
   只改外观，不改任何 id / class / 事件。
   solid-first：不使用 color-mix()，格式色用 --a-rgb（R,G,B 三元组）+ rgba() 生成，Edge 100 可直接解析。 */
html:root body .download-options {
  --dlp-cream: #f6ecd2;
  --dlp-mute: rgba(246, 236, 210, 0.68);
  --dlp-lab1: #d4b87a;
  --dlp-lab2: #9db0d8;
  background: #070b16 !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
}
html:root body .download-options .download-group-label {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 2px;
  color: var(--dlp-lab1) !important;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.2em !important;
  text-align: center;
}
html:root body .download-options .download-group[data-download-group="images"] .download-group-label {
  color: var(--dlp-lab2) !important;
}
html:root body .download-options .download-group-label::before,
html:root body .download-options .download-group-label::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}
html:root body .download-options .download-group + .download-group {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

html:root body .download-options .download-group-options .download-option {
  --a: #9aa5b1;
  --a-rgb: 154, 165, 177;
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  height: 56px;
  min-height: 56px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  color: #f6ecd2 !important;
  color: var(--dlp-cream) !important;
  text-shadow: none !important;
  background: #121722 !important;
  background: linear-gradient(90deg, rgba(var(--a-rgb), 0.22), rgba(var(--a-rgb), 0.06)) !important;
  border: 1px solid rgba(154, 165, 177, 0.5) !important;
  border: 1px solid rgba(var(--a-rgb), 0.5) !important;
  box-shadow: none !important;
  transition: background 0.18s ease, border-color 0.18s ease;
}
html:root body .download-options .download-group-options .download-option::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 4px;
  border-radius: 4px;
  background: #9aa5b1;
  background: var(--a);
}
html:root body .download-options .download-group-options .download-option:hover,
html:root body .download-options .download-group-options .download-option.is-active,
html:root body .download-options .download-group-options .download-option:focus-visible {
  color: #f6ecd2 !important;
  color: var(--dlp-cream) !important;
  transform: none !important;
  background: linear-gradient(90deg, rgba(var(--a-rgb), 0.38), rgba(var(--a-rgb), 0.12)) !important;
  border-color: rgba(var(--a-rgb), 0.7) !important;
  box-shadow: none !important;
}
html:root body .download-options .download-group-options .download-option:focus-visible {
  outline: 2px solid rgba(var(--a-rgb), 0.8);
  outline-offset: 2px;
}
html:root body .download-options .download-option .dl-f,
html:root body .download-options .download-option .dl-d {
  display: block;
  flex: none;
  white-space: nowrap;
  line-height: 1;
}
html:root body .download-options .download-option .dl-f {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding-left: 0.12em;
}
html:root body .download-options .download-option .dl-d {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(246, 236, 210, 0.68);
  color: var(--dlp-mute);
}
html:root body .download-options .download-option.btn-stl { --a: #e2b866; --a-rgb: 226, 184, 102; }
html:root body .download-options .download-option.btn-obj { --a: #7fb8c9; --a-rgb: 127, 184, 201; }
html:root body .download-options .download-option.btn-glb { --a: #6fcfa8; --a-rgb: 111, 207, 168; }
html:root body .download-options .download-option.btn-exr { --a: #9fb1d6; --a-rgb: 159, 177, 214; }
html:root body .download-options .download-option.btn-tif { --a: #6e9cf0; --a-rgb: 110, 156, 240; }
html:root body .download-options .download-option.btn-psd { --a: #b48be0; --a-rgb: 180, 139, 224; }
html:root body .download-options .download-option.btn-bmp { --a: #9aa5b1; --a-rgb: 154, 165, 177; }
html:root body .download-options .download-option.btn-png { --a: #62d1a0; --a-rgb: 98, 209, 160; }

/* 浅色主题：面板换成暖白底，文字与强调色加深以保证对比度 */
html[data-theme="light"]:root body .download-options {
  --dlp-cream: #2b2412;
  --dlp-mute: rgba(43, 36, 18, 0.70);
  --dlp-lab1: #8a6a2a;
  --dlp-lab2: #3f5a8f;
  background: #fbf8f1 !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16) !important;
}
html[data-theme="light"]:root body .download-options .download-group + .download-group {
  border-top-color: rgba(0, 0, 0, 0.10) !important;
}
html[data-theme="light"]:root body .download-options .download-group-options .download-option {
  color: #2b2412 !important;
  color: var(--dlp-cream) !important;
  background: linear-gradient(90deg, rgba(var(--a-rgb), 0.30), rgba(var(--a-rgb), 0.10)) !important;
  border-color: rgba(var(--a-rgb), 0.85) !important;
}
html[data-theme="light"]:root body .download-options .download-group-options .download-option:hover,
html[data-theme="light"]:root body .download-options .download-group-options .download-option.is-active {
  color: #2b2412 !important;
  color: var(--dlp-cream) !important;
  background: linear-gradient(90deg, rgba(var(--a-rgb), 0.46), rgba(var(--a-rgb), 0.18)) !important;
}
html[data-theme="light"]:root body .download-options .download-option .dl-d {
  color: rgba(43, 36, 18, 0.70);
  color: var(--dlp-mute);
}
