/* .caret-icon {
    transition: transform 0.3s ease;
    transform: rotate(0deg);
}

.caret-icon.right {
    transform: rotate(0deg);
}

.caret-icon.rotate {
    transform: rotate(90deg);
} */


.imagebox{
    background-color: white;
    aspect-ratio: 1 / 1;
    border: 2px dashed gray;
    border-radius: 10px;
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); */
}
.tip{
    flex-grow: 1;
    min-width:50px;
    background-color: #f0f0f0;
    border-radius: 5px;
    margin-left: 10px;
}
.tip:first-child{
    margin-left: 0px;
}

.btns{
    flex-grow: 1;
    margin-left:30px;
    margin-right: 30px;
}
.btns .btn{
    flex-grow: 1;
    height: 100%;
}
.btncolorchange{
    flex-grow: 5;height: 100%;border-radius: 5px;background-color: #1a73e8;border: none;color:white;font-size: 15px;box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.btnsave{
    flex-grow: 1;
    height: 100%;
    margin-left: 15px;
    border-radius: 5px;
    background-color: white;
    /* border: 1px solid #1a73e8; */
    border:none;
    color:#1a73e8;font-size: 15px;box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.content{
    background-color: #f0f0f0;
    border-radius: 0 0 5px 5px;
}

/* 基础样式 */
.format-buttons {
    display: inline-flex;
    gap: 4px; /* 按钮间距 */
    background: #f8f8f8;
    padding: 4px;
    border-radius: 6px;
  }

  /* 按钮样式 */
  .format-button {
    /* padding: 8px 16px;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #ddd; */
    flex-grow: 1;height:100%;border: 1px solid #dadde1;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
  }
  .format-button:first-child{
    border-radius: 5px 0 0 5px;
}
.format-button:last-child{
    border-radius: 0 5px 5px 0;
}
  /* 选中状态 */
  .format-button.active,
  .format-button:has(input:checked) {
    background: #F6F8FA;
    color: #1a73e8;
    /* border-color: #F6F8FA; */
  }

  /* 隐藏原生 radio 输入框 */
  .format-button input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }

  

.hue-bar{
    height:20px;
    width: 100%;
}
.hue-point{
    position:absolute;
    top:0px;
    height: 20px; 
    width: 20px;
    border-radius: 50%;
    /* background-color: white; */
    border: 3px solid white;
    box-sizing: border-box;
    pointer-events: none;
}
/* 防止触摸高亮 */
.hue-bar, .hue-point, .title {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation; /* 优化触摸响应 */
  }
  
  /* 色调条区域特别处理 */
  .hue-bar {
    touch-action: none; /* 完全自定义触摸处理 */
  }
  /* 为所有可点击元素添加基础样式 */
button, .collapsible-menu, .submenu-item, .imagebox {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px; /* 满足Apple人机界面指南的最小点击区域 */
    min-width: 44px;
  }
  
  /* 防止移动端长按菜单 */
  * {
    -webkit-touch-callout: none; /* iOS禁用长按菜单 */
    user-select: none; /* 可选：防止文本选择 */
  }
  
  /* 侧边栏特别处理 */
  .sidebar-overlay {
    touch-action: pan-y; /* 允许垂直滚动 */
  }