/********************QLabel************************/
QLabel {
color: #FFFFFF;
font-size: 10px;
}
/********************QPushButton************************/
QPushButton[flat="true"] {
  border: none;
  outline: none;
  color: white;
}

QPushButton#nextBtn {
    width: 320px;
    height: 48px;
    opacity: 1;
    border-radius: 6px;
    font-size: 14px;
    font-family: "Noto Sans CJK SC";
    font-weight: 500;
    line-height: 35px; /* 与高度匹配，确保文字垂直居中 */
    color: #FFFFFF; /* 白色文字，与蓝色背景对比清晰 */
    background: #1D8EFF; /* 主色调：亮蓝色 */
    padding: 0; /* 移除默认内边距，确保宽高精确 */
    /* 状态过渡动画（100ms平滑切换，提升体验） */
    transition: background-color 100ms ease-in-out,
                border-color 100ms ease-in-out;
}
/* 1. 悬停状态（hover）：轻微变浅，提示可交互 */
QPushButton#nextBtn:hover {
    background: #4BA0F5; /* 比正常状态浅一度的蓝色 */
}

/* 2. 按下状态（pressed）：加深颜色，模拟按压反馈 */
QPushButton#nextBtn:pressed {
    background: #0C61D5; /* 比正常状态深一度的蓝色 */
    /* 按下时轻微缩小，增强物理反馈（可选） */
    transform: scale(0.98);
    transition: transform 50ms ease;
}

/* 3. 焦点状态（focus）：显式边框，提升键盘导航体验 */
QPushButton#nextBtn:focus {
    border: 2px solid #FFFFFF; /* 白色边框，与蓝色背景形成高对比 */
    outline: none; /* 移除系统默认虚线框 */
}

/* 补充：禁用状态（disabled）：灰度化，提示不可交互 */
QPushButton#nextBtn:disabled {
    background: #2D6BAA; /* 主色调的低饱和版本 */
    color: rgba(255, 255, 254, 0.3); /* 文字半透明 */
    border-color: transparent;
    cursor: not-allowed; /* 鼠标样式提示不可点击 */
}
/*解决按钮设置enabled时，按钮显示的问题*/
/*QPushButton#nextBtn[enabled="false"]{
    background: #2D6BAA;
    border-radius: 6px;
}
QPushButton#nextBtn[enabled="true"]{
    background:  #0C61D5;
    border-radius: 6px;
}*/

QLabel#mainTitle {
    font-size: 28px;
    font-family: Noto Sans CJK SC;
    font-weight: Medium;
    line-height: 40px;
    color: #FFFFFF;
    opacity: 1;
}
/******************QCheckBox***********************/
QCheckBox {

    font-size: 14px;
    font-family: Noto Sans CJK SC;
    font-weight: 400;
    line-height: 64px;
    color: #FFFFFF;
    background-color:transparent;
}
/*QCheckBox:focus:unchecked {
background-color:transparent;
}
QCheckBox::indicator:unchecked {
background-color:transparent;

}*/
QCheckBox::indicator:enabled:unchecked:focus {
    image: url(:/res/svg/checkboxcheck-hover.svg);
}
QCheckBox::indicator:enabled:checked:focus {
    image: url(:/res/svg/checkboxchecked.svg);
    border-radius: 4px;
    border: 1px solid #FFFFFF; /* 白色边框，与蓝色背景形成高对比 */
    outline: none; /* 移除系统默认虚线框 */
}
QCheckBox::indicator:disabled:unchecked {
    color: rgba(255, 255, 255, 0.4);
    image: url(:/res/svg/discheckboxcheck.svg);
}
QCheckBox::indicator:enabled:unchecked {
    color: rgba(255, 255, 255, 0.4);
    image: url(:/res/svg/checkboxcheck.svg);
}
QCheckBox::indicator:disabled:checked {
    image: url(:/res/svg/discheckboxcheck.svg);
}
QCheckBox::indicator:enabled:checked {
    image: url(:/res/svg/checkboxchecked.svg);
}


/******************QTextBrowser*********************/
QTextBrowser#licensetext {
    font-size: 14px;
    font-family: Noto Sans CJK SC;
    font-weight: 400;
    line-height:40px;
    color: #FFFFFF;
    padding-top: 26px;
    padding-right: 20px;
    padding-bottom: 25px;
    padding-left: 20px;
    width:580px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    margin-right: 10px;
    opacity:0.2;
    border-bottom-left-radius:0px;
    border-top-left-radius:0px;
    border-left: 4px solid transparent;
}
QTextBrowser#licensetext:focus {
    border-bottom-left-radius:0px;
    border-top-left-radius:0px;
    border-left: 4px solid transparent;
}
/******************************************************/

/*垂直滚动条整体*/
QScrollBar:vertical {
/*    border: 0px;*/
    width:8px;
    border-radius:4px;
    background:rgba(255,255,255,1);

    background-color:transparent;
}
QScrollBar:vertical:hover {
    width:8px;
    margin-top:4px;   /*上预留位置*/
    margin-bottom:4px;    /*下预留位置*/
    background:rgba(255,255,255,0.2);
    border-radius:4px;

}
QScrollBar::handle:vertical:selected {
    width:6px;
    min-height:80px;
    border-radius:3px;
    background:rgba(255,255,255,0.4);

}

/*滚动条中滑块的样式*/
QScrollBar::handle:vertical {
    width:6px;
    min-height:80px;
    border-radius:3px;
    background:rgba(255,255,255,0.2);
}

/*鼠标触及滑块样式*/
QScrollBar::handle:vertical:hover {
    width:6px;
    background:rgba(255,255,255,0.2);
    border-radius:3px;
    min-height:80px;
}

/*设置下箭头*/
QScrollBar::add-line:vertical {
    height:2px;
    width:6px;
    border-radius:3px;
    /*border-image:url(:/selectfile/scroll/3.png);*/
    subcontrol-position:bottom;
}

/*设置上箭头*/
QScrollBar::sub-line:vertical {
    height:2px;
    width:6px;
    border-radius:3px;
    /*border-image:url(:/selectfile/scroll/1.png);*/
    subcontrol-position:top;
}

/*设置下箭头:悬浮状态*/
QScrollBar::add-line:vertical:hover {
    height:12px;
    width:6px;
    border-radius:3px;
    /*border-image:url(:/selectfile/scroll/4.png);*/
    subcontrol-position:bottom;
}

/*设置上箭头：悬浮状态*/
QScrollBar::sub-line:vertical:hover {
    height:2px;
    width:6px;
    border-radius:3px;
   /* border-image:url(:/selectfile/scroll/2.png);*/
    subcontrol-position:top;
}

/*当滚动条滚动的时候，上面的部分和下面的部分*/
QScrollBar::add-page:vertical,QScrollBar::sub-page:vertical {
    background:rgba(255,255,255,0);
    border-radius:3px;
}
