/* 设置界面样式 - 合并版本 */

/* 自定义字体定义 */
@font-face {
  font-family: 'AlimamaFangYuan';
  src: url('../lib/AlimamaFangYuanTiVF-Thin-2.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* 基本布局 */
.settings-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1400px;
  max-width: 95vw;
  height: 88vh;
  max-height: 88vh;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  padding: 24px 28px;
  border-radius: 32px;
  color: black;
  z-index: 1999;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: 'AlimamaFangYuan', 'Microsoft YaHei', Arial, sans-serif;
}

/* 标签页导航 */
.tab-navigation {
  display: flex;
  gap: 3px;
  margin-top: 8px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 20px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tab-button {
  flex: 1;
  background: transparent;
  border: none;
  color: rgba(0, 0, 0, 0.7);
  padding: 12px 8px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 13px;
  font-weight: 500;
  font-family: 'AlimamaFangYuan', 'Microsoft YaHei', Arial, sans-serif;
  text-align: center;
  line-height: 1.2;
  position: relative;
  overflow: hidden;
}

.tab-button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(0, 0, 0, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tab-button.active {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: black;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 4px 16px rgba(72, 151, 223, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.tab-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.tab-content .english-text {
  font-size: 10px;
  opacity: 0.8;
}

/* 标签页容器 */
.tab-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tab-page {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05);
}

.tab-page.active {
  display: flex;
  flex-direction: column;
  gap: 3px;
}



/* 标题和副标题 */
.settings-title {
  margin: 0;
  text-align: left;
  font-size: 24px;
  padding: 0 0 2px 0;
  margin-bottom: 2px;
  margin-right: 20px; /* 为关闭按钮留出空间 */
  font-weight: bold;
  background: linear-gradient(135deg, #000000 0%, #1a1a2e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.settings-subtitle {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.65);
  margin-bottom: 8px;
  font-style: italic;
}

.section-header {
  font-size: 17px;
  color: black;
  padding: 8px 12px 6px 12px;
  margin: 6px -12px 6px -12px;
  background: transparent;
  border-radius: 8px;
  border-left: 3px solid rgba(72, 151, 223, 0.6);
  font-weight: 600;
}

/* 英文解释样式 */
.english-text {
  font-size: 13px;
  opacity: 0.6;
  font-weight: normal;
  display: inline;
  color: rgba(0, 0, 0, 0.75);
  line-height: 1;
  margin-left: 2px;
}

/* 开关控件中的英文 */
.switch-english {
  display: inline-block;
  margin-left: 3px;
  opacity: 0.6;
  font-size: 13px;
  white-space: nowrap;
}

/* 标题中的英文 */
.section-header .english-text {
  font-size: 15px;
  opacity: 0.6;
  vertical-align: middle;
  margin-left: 2px;
}

/* 按钮中的英文 */
.action-button .english-text {
  font-size: 12px;
  display: block;
  margin-top: 2px;
  opacity: 0.7;
  text-align: center;
}

/* 滑块控件 */
.slider-control {
  margin-bottom: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.control-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
  font-size: 15px;
  flex-wrap: wrap;
  line-height: 1.2;
  word-break: break-word;
  font-weight: 500;
}

.value-display {
  color: rgba(72, 151, 223, 1);
  font-weight: bold;
  text-align: right;
  min-width: 36px;
  font-size: 15px;
  background: transparent;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(72, 151, 223, 0.2);
}

.range-slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border-radius: 6px;
  outline: none;
  margin: 6px 0 6px 0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgb(72, 151, 223) 0%, rgb(100, 170, 240) 100%);
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.range-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgb(72, 151, 223) 0%, rgb(100, 170, 240) 100%);
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* 开关控件 */
.switch-control {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* 当标签换行时保持开关在顶部对齐 */
  margin-bottom: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.switch-control .control-label {
  padding-right: 12px;
  line-height: 1.2;
  word-break: normal;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  max-width: calc(100% - 70px); /* 给开关留出空间 */
  font-size: 15px;
  font-weight: 500;
}

.switch-wrapper {
  position: relative;
  flex-shrink: 0; /* 防止开关被挤压 */
}

.toggle-switch {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-label {
  position: relative;
  display: block;
  width: 54px;
  height: 28px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.switch-label:before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  top: 3px;
  left: 3px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-switch:checked + .switch-label {
  background: rgba(72, 151, 223, 0.8);
  backdrop-filter: blur(6px) saturate(130%);
  -webkit-backdrop-filter: blur(6px) saturate(130%);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    0 0 12px rgba(72, 151, 223, 0.5),
    0 2px 8px rgba(72, 151, 223, 0.3);
  border: 1px solid rgba(72, 151, 223, 0.6);
}

.toggle-switch:checked + .switch-label:before {
  transform: translateX(26px);
  background: linear-gradient(135deg, #ffffff 0%, #e8f4ff 100%);
}

/* 分辨率控件 */
.resolution-control {
  margin-bottom: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.resolution-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
}

.resolution-button {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: black;
  padding: 10px 0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  font-weight: 500;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.resolution-button:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.resolution-button.active {
  background: rgba(72, 151, 223, 0.6);
  backdrop-filter: blur(6px) saturate(130%);
  -webkit-backdrop-filter: blur(6px) saturate(130%);
  border-color: rgba(72, 151, 223, 0.8);
  box-shadow:
    0 4px 16px rgba(72, 151, 223, 0.4),
    0 0 16px rgba(72, 151, 223, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.resolution-hint {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.7);
  text-align: center;
  margin-top: 2px;
}

.resolution-hint .english-text {
  font-size: 10px;
  opacity: 0.6;
  display: inline;
}

/* 操作按钮 */
.action-buttons {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.action-button {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: black;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.action-button:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* 关闭按钮 */
.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(0, 0, 0, 0.8);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.close-button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: black;
  transform: scale(1.1);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* 设置图标按钮 */
#settings-button {
  position: fixed;
  top: 0;
  right: 0;
  width: 160px;
  height: 100px;
  border-radius: 0 0 0 24px;
  background: rgba(0, 0, 0, 0);
  color: rgba(0, 0, 0, 0);
  font-size: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2000;
  box-shadow: none;
  backdrop-filter: none;
  border: none;
  opacity: 0;
}

#settings-button:hover {
  background: transparent;
  color: rgba(0, 0, 0, 1);
  box-shadow: none;
  backdrop-filter: none;
  border: none;
  transform: scale(1.05);
  opacity: 1;
}

/* 模型选择器控件 */
.model-selector-control {
  margin-bottom: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.model-selector-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
}

.model-selector-button {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: black;
  padding: 10px 0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 15px;
  font-weight: 500;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.model-selector-button:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.model-selector-button.active {
  background: rgba(72, 151, 223, 0.6);
  backdrop-filter: blur(6px) saturate(130%);
  -webkit-backdrop-filter: blur(6px) saturate(130%);
  border-color: rgba(72, 151, 223, 0.8);
  box-shadow:
    0 4px 16px rgba(72, 151, 223, 0.4),
    0 0 16px rgba(72, 151, 223, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.model-selector {
  width: 100%;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: black;
  font-size: 15px;
  font-weight: 500;
  font-family: 'AlimamaFangYuan', 'Microsoft YaHei', Arial, sans-serif;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  outline: none;
}

.model-selector:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(72, 151, 223, 0.5);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.model-selector:focus {
  border-color: rgba(72, 151, 223, 0.8);
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.2),
    0 0 0 2px rgba(72, 151, 223, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.model-selector option {
  background: rgba(42, 42, 42, 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: black;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  border: none;
}

.model-selector option:hover {
  background: #3a3a3a;
}

.model-selector option:checked {
  background: linear-gradient(135deg, rgb(72, 151, 223) 0%, rgb(100, 170, 240) 100%);
  color: black;
}

/* 设置按钮状态样式 */
#settings-button.hidden {
  background: rgba(0, 0, 0, 0) !important;
  color: rgba(0, 0, 0, 0) !important;
  opacity: 0 !important;
  transform: scale(1) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  border: none !important;
}

#settings-button.visible {
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(8px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(8px) saturate(120%) !important;
  color: rgba(0, 0, 0, 1) !important;
  opacity: 1 !important;
  transform: scale(1) !important;
  box-shadow:
    0 8px 32px rgba(64, 128, 255, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.3) !important;
  border: 2px solid rgba(255, 255, 255, 0.15) !important;
  border-top: none !important;
  border-right: none !important;
}

/* 设置面板显示状态 */
.settings-panel.hidden {
  display: none !important;
}

.settings-panel.visible {
  display: block !important;
}

/* UI缩放变换 */
.settings-panel.scaled {
  transform-origin: center center;
}

/* 控件通用样式 */
.control-reduced-margin {
  margin-bottom: 4px;
}

.control-extra-margin {
  margin-bottom: 8px;
}

.control-top-margin {
  margin-top: 8px;
}

/* 标签容器样式 */
.control-label.flexible {
  flex-wrap: wrap;
  margin-bottom: 0px;
}

.control-label.flex-layout {
  flex: 1;
  padding-right: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  max-width: calc(100% - 50px);
  line-height: 1.1;
}

.control-label.margin-bottom {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

/* 文本样式 */
.text-spacing {
  margin-left: 3px;
}

.text-spacing-large {
  margin-left: 5px;
}

.label-flex {
  flex: 1;
}

/* 数值显示样式 */
.value-display.enhanced {
  min-width: 30px;
  text-align: right;
  margin-left: 5px;
}

/* 自定义滑块容器 */
.custom-slider-container {
  position: relative;
  height: 20px;
  margin: 2px 0;
  cursor: pointer;
}

/* 自定义滑块轨道 */
.custom-slider-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 5px;
  background: transparent;
  border-radius: 4px;
  transform: translateY(-50%);
}

/* 自定义滑块填充 */
.custom-slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgb(72, 151, 223);
  border-radius: 4px;
  transition: width 0.1s ease;
}

/* 自定义滑块手柄 */
.custom-slider-thumb {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  background: rgb(72, 151, 223);
  border: 2px solid white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: grab;
  transition: transform 0.1s ease;
}

.custom-slider-thumb.grabbing {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.1);
}

.custom-slider-thumb.normal {
  cursor: grab;
  transform: translate(-50%, -50%) scale(1);
}

/* 开关包装器 */
.switch-wrapper.no-shrink {
  flex-shrink: 0;
}

/* 按钮容器样式 */
.button-container {
  margin-bottom: 4px;
  margin-top: 8px;
}

.button-container .action-button {
  width: 100%;
  font-size: 11px;
  padding: 6px 8px;
}

/* 分辨率按钮样式 */
.resolution-buttons.reduced-margin {
  margin-bottom: 2px;
}

.resolution-button.compact {
  padding: 4px 0;
}

/* 分辨率提示样式 */
.resolution-hint {
  margin-top: 1px;
  font-size: 9px;
}

/* 帧率控制样式 */
.framerate-control {
  margin-bottom: 8px;
}

/* 帧率按钮网格 */
.framerate-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.framerate-button {
  padding: 6px 4px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: black;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 13px;
  font-weight: 500;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.framerate-button:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.framerate-button.active {
  background: rgba(72, 151, 223, 0.6);
  backdrop-filter: blur(6px) saturate(130%);
  -webkit-backdrop-filter: blur(6px) saturate(130%);
  border-color: rgba(72, 151, 223, 0.8);
  box-shadow:
    0 4px 16px rgba(72, 151, 223, 0.4),
    0 0 16px rgba(72, 151, 223, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 纹理过滤器控制 */
.texture-filter-control {
  margin-bottom: 10px;
  padding: 10px;
  background: transparent;
  border-radius: 10px;
  border: none;
}

.texture-filter-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
}

.texture-filter-button {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: black;
  padding: 10px 0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 15px;
  font-weight: 500;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.texture-filter-button:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.texture-filter-button.active {
  background: rgba(72, 151, 223, 0.6);
  backdrop-filter: blur(6px) saturate(130%);
  -webkit-backdrop-filter: blur(6px) saturate(130%);
  border-color: rgba(72, 151, 223, 0.8);
  box-shadow:
    0 4px 16px rgba(72, 151, 223, 0.4),
    0 0 16px rgba(72, 151, 223, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 垂直布局容器 */
.vertical-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

/* 信息显示样式 */
.info-display {
  padding: 20px;
  text-align: center;
  color: rgba(0, 0, 0, 0.7);
  background: transparent;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 用户选择禁用 */
.no-user-select {
  user-select: none;
}



/* 处理长文本标签 */
.control-label span {
  display: inline-block;
  max-width: 100%;
}



/* 刷新通知样式 */
.reload-notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: transparent;
  color: black;
  padding: 15px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 300px;
  max-width: 90%;
  z-index: 2100;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: notification-slide-up 0.5s ease;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.notification-message {
  margin-right: 15px;
}

.notification-button {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: black;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  font-weight: 500;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.notification-button:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

@keyframes notification-slide-up {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.reload-notification.fade-out {
  opacity: 0;
  transform: translate(-50%, 20px);
}

/* 帧率描述样式 */
.framerate-description {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.7);
  margin-top: 4px;
  text-align: center;
}

