/* 辅助按钮样式 */
.ada-button {
  position: fixed;
  bottom: 40px;
  right: 9px;
  background-color: #60B243;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.ada-button:hover {
  background-color: #4a9a36;
}

/* 弹窗遮罩 */
.ada-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

/* 弹窗容器 */
.ada-modal {
  background: #fff;
  width: 300px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* 弹窗头部 */
.ada-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f5f5f5;
  padding: 10px;
}

.ada-modal-title {
  font-size: 16px;
  font-weight: bold;
}

.ada-modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* 弹窗内容 */
.ada-modal-body {
  padding: 15px;
  font-size: 14px;
}

.ada-modal-body label {
  display: block;
  margin-bottom: 10px;
  cursor: pointer;
}

.ada-modal-apply {
  margin-top: 10px;
  width: 100%;
  padding: 8px;
  background-color: #60B243;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.ada-modal-apply:hover {
  background-color: #4a9a36;
}

/* 示例辅助效果样式 */
.ada-large-font {
  font-size: 1.2em;
}

.ada-high-contrast {
  filter: contrast(1.2);
}

.ada-high-contrast body {
  background-color: #ffffff !important;
  color: #000000 !important;
}

.ada-high-contrast button,
.ada-high-contrast .btn,
.ada-high-contrast a {
  color: #000000 !important;
  background-color: #ffffff !important;
  border: 2px solid #000000 !important;
}

.ada-high-contrast input,
.ada-high-contrast select,
.ada-high-contrast textarea {
  border: 2px solid #000000 !important;
  background-color: #ffffff !important;
  color: #000000 !important;
}

.ada-high-contrast a {
  text-decoration: underline !important;
}

.ada-high-contrast img,
.ada-high-contrast .material-symbols-outlined {
  filter: contrast(1.4) !important;
}

.ada-high-contrast table,
.ada-high-contrast th,
.ada-high-contrast td {
  border: 2px solid #000000 !important;
}

.ada-high-contrast .error,
.ada-high-contrast .warning {
  background-color: #ffffff !important;
  color: #ff0000 !important;
  border: 2px solid #ff0000 !important;
}

.ada-high-contrast button:disabled,
.ada-high-contrast .btn:disabled,
.ada-high-contrast input:disabled {
  background-color: #cccccc !important;
  color: #666666 !important;
  border: 2px solid #666666 !important;
}

.ada-high-contrast *:focus {
  outline: 3px solid #000000 !important;
  outline-offset: 2px !important;
}

.ada-high-contrast .modal,
.ada-high-contrast .popup {
  border: 3px solid #000000 !important;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #000000 !important;
}

.ada-high-contrast li {
  border-bottom: 1px solid #000000 !important;
}

.ada-high-contrast h1,
.ada-high-contrast h2,
.ada-high-contrast h3,
.ada-high-contrast h4,
.ada-high-contrast h5,
.ada-high-contrast h6 {
  color: #000000 !important;
  border-bottom: 2px solid #000000 !important;
}

.ada-high-contrast ::placeholder {
  color: #666666 !important;
  opacity: 1 !important;
}

.ada-high-contrast ::selection {
  background-color: #000000 !important;
  color: #ffffff !important;
}

.ada-high-contrast ::-webkit-scrollbar {
  width: 15px !important;
  height: 15px !important;
}

.ada-high-contrast ::-webkit-scrollbar-track {
  background: #ffffff !important;
  border: 1px solid #000000 !important;
}

.ada-high-contrast ::-webkit-scrollbar-thumb {
  background: #000000 !important;
  border: 2px solid #ffffff !important;
}

.ada-high-contrast nav,
.ada-high-contrast .navigation {
  border: 2px solid #000000 !important;
  background-color: #ffffff !important;
}

.ada-high-contrast .card,
.ada-high-contrast .panel {
  border: 2px solid #000000 !important;
  box-shadow: none !important;
}

.ada-simple-nav {
  /* 可根据需要实现简易导航样式 */
}

/* 键盘导航焦点增强样式 */
.ada-focus-highlight a:focus,
.ada-focus-highlight button:focus,
.ada-focus-highlight input:focus,
.ada-focus-highlight select:focus,
.ada-focus-highlight textarea:focus,
.ada-focus-highlight [tabindex]:focus {
    outline: 3px solid #2196F3 !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.4) !important;
    border-radius: 2px !important;
    transition: outline-offset 0.1s ease !important;
    text-decoration: underline !important;
}

/* 确保焦点样式在高对比度模式下也清晰可见 */
.ada-high-contrast.ada-focus-highlight a:focus,
.ada-high-contrast.ada-focus-highlight button:focus,
.ada-high-contrast.ada-focus-highlight input:focus,
.ada-high-contrast.ada-focus-highlight select:focus,
.ada-high-contrast.ada-focus-highlight textarea:focus,
.ada-high-contrast.ada-focus-highlight [tabindex]:focus {
    outline: 3px solid #000000 !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.4) !important;
}

/* 快速导航按钮样式 */
.ada-quick-nav {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ada-quick-nav-enabled .ada-quick-nav:focus-within,
.ada-quick-nav-enabled .ada-quick-nav:hover {
    opacity: 1;
}

.ada-skip-link {
    padding: 8px 16px;
    background: #60B243;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ada-skip-link:hover {
    background: #4a9a36;
}

/* 高对比度模式下的样式 */
.ada-high-contrast .ada-quick-nav {
    background: #ffffff;
    border: 2px solid #000000;
}

.ada-high-contrast .ada-skip-link {
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
}

.ada-high-contrast .ada-skip-link:hover {
    background: #000000;
    color: #ffffff;
}

/* 色彩辅助模式样式 */
.ada-mono-mode {
    filter: grayscale(100%) !important;
}

.ada-mono-mode img,
.ada-mono-mode video,
.ada-mono-mode canvas,
.ada-mono-mode [style*="background-image"] {
    filter: grayscale(100%) !important;
}

/* 确保在高对比度模式下的色彩辅助效果 */
.ada-high-contrast.ada-mono-mode {
    filter: grayscale(100%) contrast(1.2) !important;
}

.ada-high-contrast.ada-mono-mode img,
.ada-high-contrast.ada-mono-mode video,
.ada-high-contrast.ada-mono-mode canvas,
.ada-high-contrast.ada-mono-mode [style*="background-image"] {
    filter: grayscale(100%) contrast(1.4) !important;
}

/* 确保按钮和交互元素在色彩辅助模式下仍然清晰可辨 */
.ada-mono-mode button,
.ada-mono-mode .btn,
.ada-mono-mode a,
.ada-mono-mode input,
.ada-mono-mode select {
    border-color: #000000 !important;
}

/* 确保错误和警告信息在色彩辅助模式下仍然醒目 */
.ada-mono-mode .error,
.ada-mono-mode .warning {
    border-width: 2px !important;
    font-weight: bold !important;
}

/* 语言选择器样式 */
.ada-language-selector {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ada-language-selector label {
    display: block;
    margin-bottom: 5px;
}

.ada-select {
     
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
}

/* 高对比度模式下的语言选择器样式 */
.ada-high-contrast .ada-select {
    border: 2px solid #000000 !important;
    background-color: #ffffff !important;
    color: #000000 !important;
}

.ada-high-contrast .ada-select:focus {
    outline: 3px solid #000000 !important;
    outline-offset: 2px !important;
}

.ada-slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.ada-slider-container label {
    position: relative;
    top: 2px;

}

.ada-hide-button {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-items: center;
    gap: 8px;
    padding: 6px 12px;
    margin: 15px 0;
    background-color: #fff;
    color: #777;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 13px;
}

.ada-hide-button:hover {
    background-color: #fff;
}

.ada-high-contrast .ada-hide-button {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
}

.ada-button-group {
 
    margin: 15px 0;
}

.ada-reset-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    background-color: #fff;
    color: #777;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    flex: 1;
    font-size: 13px;
}

.ada-hide-button {
    flex: 1;
}

.ada-high-contrast .ada-reset-button {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
}

.ada-high-contrast .ada-reset-button:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* 声明弹窗样式 */
.ada-statement-modal {
    max-width: 500px;
}

.ada-statement-content {
    margin-bottom: 20px;
    line-height: 1.6;
}

.ada-statement-modal .ada-modal-apply {
    width: 100%;
    padding: 8px;
    background-color: #60B243;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
}

.ada-statement-modal .ada-modal-apply:hover {
    background-color: #4a9a36;
}

.ada-high-contrast .ada-statement-modal .ada-modal-apply {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
}

.ada-high-contrast .ada-statement-modal .ada-modal-apply:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.ada-statement-modal .ada-modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* 声明链接样式 */
.ada-statement-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 3px;
    color: #60B243;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.ada-statement-link:hover {
    color: #4a9a36;
    text-decoration: underline;
}

/* 高对比度模式下的链接样式 */
.ada-high-contrast .ada-statement-link {
    color: #000000 !important;
    text-decoration: underline !important;
    border-bottom: 1px solid #000000 !important;
}

.ada-high-contrast .ada-statement-link:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
}


