/*@name         SimpleWhite For Firefox 57+
  @author         RunningCheese
  @homepage    https://www.runningcheese.com
  @reference     Inspired by Simplewhite Theme and QQ Browser 
  @version         v2018-04-08       
*/




/*START=================================================（01.Navbar）=========================================================*/
/*==================================================导航栏调整 Navbar Adjustment==============================================*/

/*导航栏图标距离调整 Navbar Position*/
#navigator-toolbox> #nav-bar {
	padding-right: 3px !important;
	padding-left: 4px !important;
}

#navigator-toolbox #nav-bar:not([tabsontop="false"]) .toolbarbutton-1 > .toolbarbutton-menubutton-button,
#navigator-toolbox #nav-bar:not([tabsontop="false"]) .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker,
#navigator-toolbox #nav-bar:not([tabsontop="false"]) .toolbarbutton-1 {
	padding: 0px 0px !important;
	margin: 0px 2px 0px 0px !important;
}


/*导航栏图标大小及样式*/
#nav-bar toolbarbutton .toolbarbutton-icon {
	margin: 0px 1px 0px 1px !important;
}

#nav-bar .toolbarbutton-1:not([disabled=true]):not([checked]):not([open]):not(:active):hover > .toolbarbutton-badge-stack {
	border-radius: 0px !important;
}

/*移除后退按钮的圆圈 Remove Backbutton circle*/
:root:not([uidensity="compact"]) #back-button > .toolbarbutton-icon {
	background-color: unset !important;
	border: unset !important;
	padding: var(--toolbarbutton-inner-padding) !important;
	border-radius: var(--toolbarbutton-border-radius) !important;
	width: calc(2 * var(--toolbarbutton-inner-padding) + 16px) !important;
}

:root:not([uidensity="compact"]) #back-button:hover:not([disabled]) > .toolbarbutton-icon {
	background-color: var(--toolbarbutton-hover-background) !important;
}

:root:not([uidensity="compact"]) #back-button:active:not([disabled]) > .toolbarbutton-icon {
	background-color: var(--toolbarbutton-active-background) !important;
}

:root:not([uidensity="compact"]) #back-button {
	padding-inline-start: 3px !important;
}


/* 标签拖拽空间距离 Drag Space Height*/
:root[extradragspace][tabsintitlebar]:not([inFullscreen]) {
	--space-above-tabbar: 10px !important;
}


/* 更改导航栏最下边的横线颜色 Change Toolbar Border Color */
:root:-moz-lwtheme {
	--toolbox-border-bottom-color: #e3e3e3 !important;
}

/* 地址栏图标大小，默认28px Urlbar icons size change, deafult size 28px*/
.urlbar-icon {
	width: 24px !important;
	height: 24px !important;
	padding: 4px !important;
	margin-left: 0px !important;
	background-color: transparent !important;
}

/*地址栏文字大小 Urlbar font size*/
#nav-bar {
	-moz-appearance: none !important;
	font-size: 90% !important;
	font-family: Tahoma,Microsoft Yahei, Arial, Helvetica, sans-serif !important;
}

/* 地址栏边框 Urlbar Image Border*/
#urlbar-container {
	-moz-border-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAcAQMAAABic7x4AAAABlBMVEUAAADf398zft1XAAAAAXRSTlMAQObYZgAAABBJREFUCNdjQAYNDuQjJAAAePIPAZbp5voAAAAASUVORK5CYII=") 0 3 0 / 5px 3px 5px repeat stretch;
}

/* 搜索栏边框 Searchbar Image Border*/
#searchbar {
	-moz-border-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAcAQMAAABic7x4AAAABlBMVEUAAADf398zft1XAAAAAXRSTlMAQObYZgAAAA9JREFUCNdjQAAHShEMAADklAWBKZY+YQAAAABJRU5ErkJggg==") 0 3 0 / 5px 3px 5px repeat stretch;
}


/*导航栏背景颜色 Navbar Background Color */
#nav-bar {
	background-color: #ffffff !important;
}

/*浏览器去边框改颜色 Browse Border Color Change*/
#main-window[sizemode="normal"] {
	border: #c1c1c1 1px solid !important;
}

/* 导航栏高度 Navbar Height*/
#nav-bar > * {
	margin: -3px 0px -3px 2px !important;
}


/* 地址栏和搜索栏无边框 Remove Urlbar and searchbar border */
#urlbar, .searchbar-textbox {
	border: none !important;
	box-shadow: none !important;
}

/* 刷新按钮样式 Url refresh button Style */
#stop_reload_button .toolbarbutton-icon {
	background-color: transparent !important;
}
#stop_reload_button {
	--toolbarbutton-inner-padding: 0px!important;
}

/*关闭面板动画 Remove Panel Open Animation*/
panel[type="arrow"][animate],#BMB_bookmarksPopup {transition-duration: 0.01s !important;}
#PanelUI-popup * {transition: none !important;}
#main-window * #ctraddon_BMB_bookmarksPopup {transition-duration: 0.01s !important;}


/* 地址栏图标排序 Urlbar icons order */
#pageAction-urlbar-_97d566da-42c5-4ef4-a03b-5a2e5f7cbcb2_ {	-moz-box-ordinal-group: 2 !important;}
#pageAction-urlbar-_cd7e22de-2e34-40f0-aeff-cec824cbccac_ {	-moz-box-ordinal-group: 3 !important;}
#star-button-box {	-moz-box-ordinal-group: 4 !important;}
#stop_reload_button {	-moz-box-ordinal-group: 5 !important;}



/*---------------------------------- 导航栏兼容 Navbar Compatible with Windows7,WindowsXP,Windows Vista ----------------------*/
@media -moz-os-version: windows-xp), (-moz-os-version: windows-vista),
(-moz-os-version: windows-win7) {
   

/* 新建标签页位置调整 */
	#main-window[tabsintitlebar] #TabsToolbar {
		padding-right: 30px !important;
	}


/*--标签栏背景&系统控制按钮--*/ 
  
	#main-window {
-moz-appearance: none !important;
background-color: #eeeeee !important;

}
	
	#titlebar-buttonbox .titlebar-button {
		-moz-appearance: none !important;;
		padding: 0px!important;
		margin-right: -3px !important;
		display: inline-block !important;
	}

	#main-window:not([inFullscreen]) #titlebar-min, 
#main-window:not([inFullscreen]) #titlebar-max, 
#main-window:not([inFullscreen]) #titlebar-close {
		list-style-image: none !important;
	}



	
	
	
/*----win10下修复大小和背景-----*/
	#titlebar-buttonbox .toolbarbutton-icon {
		width: auto !important;
		height: auto !important;
	}

  
/*Min*/
	#main-window[tabsintitlebar="true"][sizemode="normal"] #titlebar-min,
#main-window[tabsintitlebar="true"][sizemode="normal"] #titlebar-min:hover,
#main-window[tabsintitlebar="true"][sizemode="normal"] #titlebar-min:active {
		list-style-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHIAAAAoCAYAAAAiyK7sAAAA0klEQVR4nO3TwQnAMBDEwPTflVtwQ04FAT9E5BAJ9n8w3HUd2hhjtf3ZXo/NOdeJs8GCDNLJBgsSygYLEsoGCxLKBgsSygYLEsoGCxLKBgsSygYLEsoGCxLKBgsSygYLEsoGCxLKBgsSygYLEsoGCxLKBgsSygb7E+Ta3KuQu3e9Dbl7Vx/ZR56ZDRYklA0WJJQNFiSUDRYklA0WJJQNFiSUDRYklA0WJJQNFiSUDRYklA0WJJQNFiSUDRYklA0WJJQNFiSUDRYklA0WJJQN9jXIGwY3tASVWk/hAAAAAElFTkSuQmCC")!important;
		margin-top: -2px !important;
	}

	#main-window[tabsintitlebar="true"][sizemode="normal"] #titlebar-min {
		-moz-image-region: rect(0,38px,40px,0px) !important;
	}

	#main-window[tabsintitlebar="true"][sizemode="normal"] #titlebar-min:hover {
		-moz-image-region: rect(0,76px,40px,38px) !important;
	}

	#main-window[tabsintitlebar="true"][sizemode="normal"] #titlebar-min:active {
		-moz-image-region: rect(0,114px,40px,76px) !important;
	}


/*Min_Fullscreen*/
	#main-window[tabsintitlebar="true"][sizemode="maximized"] #titlebar-min,
#main-window[tabsintitlebar="true"][sizemode="maximized"] #titlebar-min:hover,
#main-window[tabsintitlebar="true"][sizemode="maximized"] #titlebar-min:active {
		list-style-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHIAAAAcCAYAAAC9I+tXAAAArklEQVRoge3TwQnDMBAFUfdfldyC2snBaSABBQaPTGZg7x8eexybdp7nteONMV72hk+bbK+vzTmvHS/IH7PBgoSywYKEssGChLLBgoSywYKEssGChLLBgoSywYKEssGChLLBgoSywYKEssH+CfJavFshV3fdDbm6q4/sI/fMBgsSygYLEsoGCxLKBgsSygYLEsoGCxLKBgsSygYLEsoGCxLKBgsSygYLEsoGexrkG7Luu9BknvF+AAAAAElFTkSuQmCC") !important;
		margin-top: -2px !important;
	}

	#main-window[tabsintitlebar="true"][sizemode="maximized"] #titlebar-min {
		-moz-image-region: rect(0,38px,28px,0px) !important;
	}

	#main-window[tabsintitlebar="true"][sizemode="maximized"] #titlebar-min:hover {
		-moz-image-region: rect(0,76px,28px,38px) !important;
	}

	#main-window[tabsintitlebar="true"][sizemode="maximized"] #titlebar-min:active {
		-moz-image-region: rect(0,114px,28px,76px) !important;
	}





/*Max*/
	#main-window:not([inFullscreen]) #titlebar-max, 
#main-window:not([inFullscreen]) #titlebar-max:hover, 
#main-window:not([inFullscreen]) #titlebar-max:active {
		list-style-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHIAAAAoCAYAAAAiyK7sAAAA5ElEQVR4nO3YwQ2DMADF0O6/FSuwEF2gqAEcTFVb+rccorxbXq+HtizL1sZne+22ruv2xNlgQQbpZIMFCWWDBQllgwUJZYMFCWWDBQllgwUJZYMFCWWDBQllgwUJZYMFCWWDBQllgwUJZYP9E+Q2uFshR+91N+TovSxI4szHrkASZ2ZAEmeCDPISUpBBBhlkkIcKMsjvBRlkkAfrQ+Ag5MgMyKmdfejZO/vQs2d77WaDBQllgwUJZYMFCWWDBQllgwUJZYMFCWWDBQllgwUJZYMFCWWDBQllgwUJZYMFCWWD/RrkGx8DUyC2ut0rAAAAAElFTkSuQmCC")!important;
		margin-top: -2px !important;
	}

	#main-window:not([inFullscreen]) #titlebar-max {
		-moz-image-region: rect(0,38px,40px,0px) !important;
	}

	#main-window:not([inFullscreen]) #titlebar-max:hover {
		-moz-image-region: rect(0,76px,40px,38px) !important;
	}

	#main-window:not([inFullscreen]) #titlebar-max:active {
		-moz-image-region: rect(0,114px,40px,76px) !important;
	}



/*Close*/
	#main-window:not([inFullscreen]) #titlebar-close, 
#main-window:not([inFullscreen]) #titlebar-close:hover, 
#main-window:not([inFullscreen]) #titlebar-close:active {
		list-style-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAAoCAYAAAA16j4lAAABlklEQVR4nO3YPW7CQBDF8Wm5B0dxt8sV9oJIUPoOTpkDuEwk5IKaYlOEKA6sjcXOyzPS+0tbDZV/YvxhtvLet9u85tNuNqs+bL+HsQEFDI4NKGBwbEABg2MDChgcG1DA4NiAAgbHBhQwODaggMGxAQUMjg0oYHBsQAGDYwMKGBwbUMDg2IACBscGFLDZ3syamXlz/c1T1QKc2zb3KU3O+5TyuW1pwJ/HY+5CmJx3IeSPw4EK3JjZycrIc7NF1QL3KeXLMBSR52b/Bfy22+XLMBSRuxC+ZzHSV3QJshrXzGdFlyA9cL1WdBfjHbIHriew2V9QF1wzv3vwGNQL1wv4FtkL1xvY7BfWBdfM9yHrB9YL1xN4jOyFK+C1AV//uVP3ZDawVrQDbhdj8Z7MBtZDlhPu7bquRa659ksg9Zq0FLf0muSA/Ox1H6cPHRXnFT50QPNY0cjjsaKRh+33MDaggMGxAQUMjg0oYHBsQAGDYwMKGBwbUMDg2IACBscGFDA4NqCAwbEBBQyODShgcGxAAYNjA7468BcX3MogF86v8gAAAABJRU5ErkJggg==")!important;
		margin-top: -2px !important;
	}

	#main-window:not([inFullscreen]) #titlebar-close {
		-moz-image-region: rect(0,40px,40px,0px) !important;
	}

	#main-window:not([inFullscreen]) #titlebar-close:hover {
		-moz-image-region: rect(0,80px,40px,40px) !important;
	}

	#main-window:not([inFullscreen]) #titlebar-close:active {
		-moz-image-region: rect(0,120px,40px,80px) !important;
	}



/*Close_FullScreen*/
	#main-window[tabsintitlebar="true"][sizemode="maximized"] #titlebar-close,
#main-window[tabsintitlebar="true"][sizemode="maximized"] #titlebar-close:hover,
#main-window[tabsintitlebar="true"][sizemode="maximized"] #titlebar-close:active {
		list-style-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAAcCAYAAACqAXueAAABYUlEQVRoge3YPW7CQBDF8ddyD67iapcz7AGRoPQdnDIHcJlIyAU1xaYIURxYG4t9k2ek+UtbDZV/YvwBrLz37Tav+bSbzaqP2u9hakAHNk4N6MDGqQEd2Dg1oAMbpwZ0YOPUgA5snBrQgY1TAzqwcWpABwb2AJqZeXP9zVPVApzbNvcpTc77lPK5bWXAn8dj7kKYnHch5I/DQQrcADihjDw3W1QtcJ9SvgxDEXlu9l/Ab7tdvgxDEbkL4XsWo3xFlyCrcQHOii5BMnBZK7qL8Q6ZgcsEBv6CUnAB3j14DMrCZQHfIrNw2cDALywFF+A+ZP3AsnCZwGNkFq4Drw34+s+duiergX1FE3C7GIv3ZDWwP2SRcG/XdS1yzbVfAumvSUtxS69JBORnr/s4/9BRcV7hQ4dpjBVteRgr2vKo/R6mBnRg49SADmycGtCBjVMDOrBxakAHNk4N6MDGqQFfHfgLTemCVxTcSVUAAAAASUVORK5CYII=") !important;
		margin-top: -2px !important;
	}

	#main-window[tabsintitlebar="true"][sizemode="maximized"] #titlebar-close {
		-moz-image-region: rect(0,40px,28px,0px) !important;
	}

	#main-window[tabsintitlebar="true"][sizemode="maximized"] #titlebar-close:hover {
		-moz-image-region: rect(0,80px,28px,40px) !important;
	}

	#main-window[tabsintitlebar="true"][sizemode="maximized"] #titlebar-close:active {
		-moz-image-region: rect(0,120px,28px,80px) !important;
	}


/*Restore*/
	#main-window[sizemode="maximized"]:not([inFullscreen]) #titlebar-max, 
#main-window[sizemode="maximized"]:not([inFullscreen]) #titlebar-max:hover, 
#main-window[sizemode="maximized"]:not([inFullscreen]) #titlebar-max:active {
		list-style-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHIAAAAcCAYAAAC9I+tXAAAA5ElEQVRoge3YMQ7EIAxEUe5/K66QC7EVZXCEx/lEO19y5RSIJ4rd1g6t9z48z4f2uu26rnHi0GCGNCQTDWZIUTSYIUXRYIYURYMZUhQNZkhRNJghRdFg/wg5gkEgo3NRkNG5aMid3TIF5M7uDcidXSXkk5f4OmR0LgoyOhcNGe0QyGi3+qYSMtqtvjGkIcMMacg4Q54Difz8aAHknNMg55wImaryRWam8kVmJnPXJX8EzDKQqyEhV0NClpa98KrJXnjV0F630WCGFEWDGVIUDWZIUTSYIUXRYIYURYMZUhQN9jXIH39gOuo1KOzCAAAAAElFTkSuQmCC")!important;
		margin-top: -2px !important;
	}

	#main-window[sizemode="maximized"]:not([inFullscreen]) #titlebar-max {
		-moz-image-region: rect(0,38px,28px,0px) !important;
	}

	#main-window[sizemode="maximized"]:not([inFullscreen]) #titlebar-max:hover {
		-moz-image-region: rect(0,76px,28px,38px) !important;
	}

	#main-window[sizemode="maximized"]:not([inFullscreen]) #titlebar-max:active {
		-moz-image-region: rect(0,114px,28px,76px) !important;
	}
}







/*START==================================================（02.Button）===========================================================*/
/*=============================================02. 按钮图标修改 Button Icon Adjustment============================================*/ 

/*----------------------------------火狐自带图标替换 Firefox Built-in Button Change----------------------------------*/
:-moz-any(#back-button, #forward-button, #home-button,#stop-button,#reload-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #feed-button, #tabview-button, #social-share-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #web-apps-button, #webide-button, #loop-button, #pocket-button, #containers-panelmenu, #library-button) {
	list-style-image: url("../images/toolbar.png") !important;
}


#back-button {
	-moz-image-region: rect(0, 36px, 18px, 18px);
}

#forward-button {
	-moz-image-region: rect(0, 72px, 18px, 54px);
}

#reload-button {
	-moz-image-region: rect(0, 90px, 18px, 72px);
}

#stop-button {
	-moz-image-region: rect(0, 108px, 18px, 90px);
}

#home-button {
	-moz-image-region: rect(0, 126px, 18px, 108px);
}

#bookmarks-menu-button {
	-moz-image-region: rect(0, 144px, 18px, 126px);
}

#bookmarks-menu-button[starred] {
	-moz-image-region: rect(0, 162px, 18px, 144px);
}

#bookmarks-menu-button > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
	-moz-image-region: rect(0, 630px, 18px, 612px);
}

#history-panelmenu {
	-moz-image-region: rect(0, 180px, 18px, 162px);
}

#downloads-button {
	-moz-image-region: rect(0, 198px, 18px, 180px);
}

#add-ons-button {
	-moz-image-region: rect(0, 216px, 18px, 198px);
}

#open-file-button {
	-moz-image-region: rect(0, 234px, 18px, 216px);
}

#save-page-button {
	-moz-image-region: rect(0, 252px, 18px, 234px);
}

#sync-button {
	-moz-image-region: rect(0, 270px, 18px, 252px);
}

#feed-button {
	-moz-image-region: rect(0, 288px, 18px, 270px);
}

#social-share-button {
	-moz-image-region: rect(0px, 306px, 18px, 288px);
}

#characterencoding-button {
	-moz-image-region: rect(0, 324px, 18px, 306px);
}

#new-window-button {
	-moz-image-region: rect(0, 342px, 18px, 324px);
}

#e10s-button {
	-moz-image-region: rect(0, 342px, 18px, 324px);
}

#e10s-button > .toolbarbutton-icon {
	transform: scaleY(-1);
}

#new-tab-button {
	-moz-image-region: rect(0, 360px, 18px, 342px);
}

#privatebrowsing-button {
	-moz-image-region: rect(0, 378px, 18px, 360px);
}

#find-button {
	-moz-image-region: rect(0, 396px, 18px, 378px);
}

#print-button {
	-moz-image-region: rect(0, 414px, 18px, 396px);
}

#fullscreen-button {
	-moz-image-region: rect(0, 432px, 18px, 414px);
}

#developer-button {
	-moz-image-region: rect(0, 450px, 18px, 432px);
}

#preferences-button,#ctraddon_preferences-button {
	-moz-image-region: rect(0, 468px, 18px, 450px);
}

#PanelUI-menu-button {
	-moz-image-region: rect(0, 486px, 18px, 468px);
}

#edit-controls > #cut-button {
	-moz-image-region: rect(0, 504px, 18px, 486px);
}

#edit-controls > #copy-button {
	-moz-image-region: rect(0, 522px, 18px, 504px);
}

#edit-controls > #paste-button {
	-moz-image-region: rect(0, 540px, 18px, 522px);
}

#zoom-controls > #zoom-out-button {
	-moz-image-region: rect(0, 558px, 18px, 540px);
}

#zoom-controls > #zoom-in-button {
	-moz-image-region: rect(0, 576px, 18px, 558px);
}

#nav-bar-overflow-button {
	-moz-image-region: rect(0, 612px, 18px, 594px);
}

#library-button {
	-moz-image-region: rect(0, 630px, 18px, 612px);
}

#tabview-button {
	-moz-image-region: rect(0, 648px, 18px, 630px);
}

#email-link-button {
	-moz-image-region: rect(0, 666px, 18px, 648px);
}

#sidebar-button {
	-moz-image-region: rect(0, 684px, 18px, 666px);
}

#panic-button {
	-moz-image-region: rect(0, 702px, 18px, 684px);
}

#panic-button[open] {
	-moz-image-region: rect(18px, 702px, 36px, 684px);
}

#web-apps-button {
	-moz-image-region: rect(0, 720px, 18px, 702px);
}

#webide-button {
	-moz-image-region: rect(0, 720px, 18px, 702px);
}

#pocket-button {
	-moz-image-region: rect(0, 774px, 18px, 756px);
}

#pocket-button[open] {
	-moz-image-region: rect(18px, 774px, 36px, 756px);
}

#containers-panelmenu {
	-moz-image-region: rect(0, 405px, 18px, 792px);
}



/* ----------------------------------三道杠和更多工具图标替换 Panelmenu Icons Change----------------------------------*/
#customization-palette #downloads-button .toolbarbutton-badge-stack,
#customization-palette :-moz-any(#back-button, #forward-button, #home-button, #stop-button, #reload-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #feed-button, #tabview-button, #social-share-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #web-apps-button, #webide-button, #loop-button, #pocket-button, #containers-panelmenu, #library-button,#zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button) .toolbarbutton-icon {
	width: 18px !important;
	height: 18px !important;
	padding: 0px !important;
	margin: 0px !important;
}

/*更多工具图标大小调*/
#widget-overflow-fixed-list #QuickTranslate .toolbarbutton-icon,
#widget-overflow-fixed-list #QuickSnapshot .toolbarbutton-icon,
#widget-overflow-fixed-list #QuickOpen .toolbarbutton-icon,
#widget-overflow-fixed-list #Sidebar-button .toolbarbutton-icon,
#widget-overflow-fixed-list #UserAgentChanger .toolbarbutton-icon,
#widget-overflow-fixed-list #undoclosetab-button .toolbarbutton-icon {
	width: 16px !important;
}

:-moz-any(#appMenu-fxa-label,#appMenu-fxa-icon, #appMenu-private-window-button, #appMenu-fullscreen-button, #appMenu-new-window-button, #appMenuRestoreLastSession,#appMenu-zoomEnlarge-button,#appMenu-zoomEnlarge-button,#appMenu-zoomReduce-button,#appMenu-cut-button,#appMenu-copy-button,#appMenu-paste-button,#appMenu-library-button, #appMenu-addons-button,#appMenu-preferences-button,#appMenu-print-button,#appMenu-find-button,#panelMenu_searchBookmarks,#appMenu-quit-button,#appMenu-developer-button,#restart-button
) .toolbarbutton-icon {
	list-style-image: url("../images/toolbar.png") !important;
	width: 18px !important;
	height: 18px !important;
}


#appMenu-fxa-avatar {	border-radius: 100% !important;
}

#appMenu-fxa-label .toolbarbutton-icon {
	-moz-image-region: rect(0, 270px, 18px, 252px);
}

#appMenu-fxa-icon .toolbarbutton-icon {
	-moz-image-region: rect(0, 270px, 18px, 252px);
}

#appMenu-new-window-button .toolbarbutton-icon {
	-moz-image-region: rect(0, 342px, 18px, 324px);
}

#appMenu-private-window-button .toolbarbutton-icon {
	-moz-image-region: rect(0, 378px, 18px, 360px);
}

#appMenuRestoreLastSession .toolbarbutton-icon {
	-moz-image-region: rect(0, 702px, 18px, 684px);
}

#appMenu-fullscreen-button .toolbarbutton-icon {
	-moz-image-region: rect(0, 432px, 18px, 414px) !important;
}

#appMenu-zoomEnlarge-button .toolbarbutton-icon {
	-moz-image-region: rect(0, 576px, 18px, 558px);
	opacity: 1!important;
}

#appMenu-zoomReduce-button .toolbarbutton-icon {
	-moz-image-region: rect(0, 558px, 18px, 540px);
}

#appMenu-cut-button .toolbarbutton-icon {
	-moz-image-region: rect(0, 504px, 18px, 486px);
}

#appMenu-copy-button .toolbarbutton-icon {
	-moz-image-region: rect(0, 522px, 18px, 504px);
}

#appMenu-paste-button .toolbarbutton-icon {
	-moz-image-region: rect(0, 540px, 18px, 522px);
}

#appMenu-library-button .toolbarbutton-icon {
	-moz-image-region: rect(0, 630px, 18px, 612px);
}

#appMenu-addons-button .toolbarbutton-icon {
	-moz-image-region: rect(0, 216px, 18px, 198px);
}

#appMenu-preferences-button .toolbarbutton-icon {
	-moz-image-region: rect(0, 468px, 18px, 450px);
}

#appMenu-print-button .toolbarbutton-icon {
	-moz-image-region: rect(0, 414px, 18px, 396px);
}

#appMenu-find-button .toolbarbutton-icon,
#panelMenu_searchBookmarks .toolbarbutton-icon {
	-moz-image-region: rect(0, 396px, 18px, 378px);
}

#appMenu-developer-button .toolbarbutton-icon {
	-moz-image-region: rect(0, 450px, 18px, 432px);
}

#appMenu-developer-button .toolbarbutton-text {
	margin-left: -18px !important;
}

#appMenu-customize-button .toolbarbutton-icon {
	list-style-image: url("../images/icons/edit.png")!important;
	margin-top: 1px !important;
	margin-bottom: 1px !important;
	margin-left: 2px !important;
}

#appMenu-help-button  .toolbarbutton-icon {
	list-style-image: url("../images/icons/info.png")!important;
}

#restart-button .toolbarbutton-icon {
	-moz-image-region: rect(0, 90px, 18px, 72px);
}

#appMenu-quit-button .toolbarbutton-icon {
	-moz-image-region: rect(0, 108px, 18px, 90px);
	margin-top: 1px !important;
}


/*下载按钮调整 Download Button Adjustment*/
#downloads-button:not(:-moz-any([progress],[counter],[paused],[attention])) #downloads-indicator-progress-outer,
#downloads-button:not([counter]) > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter {
	background: -moz-image-rect(url("../images/toolbar.png"), 0, 198, 18, 180) !important;}

#downloads-button[attention] #downloads-indicator-progress-outer {	background: -moz-image-rect(url("../images/toolbar.png"), 18, 198, 36, 180) !important;
}

#downloads-button[progress] > #downloads-indicator-anchor {	background: -moz-image-rect(url("../images/toolbar.png"), 0, 198, 18, 180 ) center no-repeat !important;
	background-size: 12px !important;}

toolbar:not(#nav-bar) toolbaritem[cui-areatype="toolbar"] > :-moz-any(#zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button) > .toolbarbutton-icon,
toolbar:not(#nav-bar)  :-moz-any(#back-button, #forward-button, #home-button, #stop-button, #reload-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #feed-button, #tabview-button, #social-share-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #web-apps-button, #webide-button, #loop-button, #pocket-button, #containers-panelmenu, #library-button):-moz-any([cui-areatype="toolbar"],:not([cui-areatype])):not(:-moz-any(#zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button)) > .toolbarbutton-icon,
toolbar:not(#nav-bar)  :-moz-any(#back-button, #forward-button, #home-button, #stop-button, #reload-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #feed-button, #tabview-button, #social-share-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #web-apps-button, #webide-button, #loop-button, #pocket-button, #containers-panelmenu, #library-button):-moz-any([cui-areatype="toolbar"],:not([cui-areatype])) > :-moz-any(.toolbarbutton-badge-container,.toolbarbutton-badge-stack,.toolbarbutton-menubutton-button) > .toolbarbutton-icon {
	padding: 0px 0px !important;
	margin: 0px 2px !important;
	width: 18px !important;
	height: 18px!important;
}

#downloads-button:not([attention]) > #downloads-indicator-anchor > #downloads-indicator-icon,
#downloads-button #downloads-indicator-icon,
#downloads-button[attention] > #downloads-indicator-anchor > #downloads-indicator-icon,
#downloads-button #downloads-indicator-progress-inner {
	visibility: hidden !important;
}

toolbar:not(#nav-bar) #downloads-button #downloads-indicator-progress-outer,
toolbar:not(#nav-bar) #downloads-button #downloads-indicator-icon {
	width: 18px !important;
	height: 18px !important;
	background-size: 18px !important;
}

#downloads-button:not(:-moz-any([progress],[counter],[paused],[attention])) #downloads-indicator-progress-outer,
#downloads-button:not([counter]) > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter,
#downloads-button:not([attention]) > #downloads-indicator-anchor > #downloads-indicator-icon,
#downloads-button #downloads-indicator-icon,
#downloads-button[attention] #downloads-indicator-progress-outer,
#downloads-button[attention] > #downloads-indicator-anchor > #downloads-indicator-icon {
	background-repeat: no-repeat !important;
	background-position: center !important;
}



/* ----------------------------------图标按钮样式 Button Style----------------------------------*/
toolbar .scrollbutton-up,
toolbar .scrollbutton-down,
toolbar #alltabs-button .toolbarbutton-icon,
#nav-bar :-moz-any(#back-button, #forward-button, #home-button, #stop-button, #reload-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #feed-button, #tabview-button, #social-share-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #web-apps-button, #webide-button, #loop-button, #pocket-button, #containers-panelmenu, #library-button) > .toolbarbutton-icon {
	-moz-appearance: none !important;
	background-image: none !important;
	border-color: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	transition-property: none !important;
	transition-duration: 0ms !important;
}

toolbar :-moz-any(#back-button, #forward-button, #home-button, #stop-button, #reload-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #feed-button, #tabview-button, #social-share-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #web-apps-button, #webide-button, #loop-button, #pocket-button, #containers-panelmenu, #library-button),
toolbar :-moz-any(#back-button, #forward-button, #home-button, #stop-button, #reload-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #feed-button, #tabview-button, #social-share-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #web-apps-button, #webide-button, #loop-button, #pocket-button, #containers-panelmenu, #library-button) :-moz-any(.toolbarbutton-badge-container,.toolbarbutton-badge-stack),
toolbar :-moz-any(#back-button, #forward-button, #home-button, #stop-button, #reload-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #feed-button, #tabview-button, #social-share-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #web-apps-button, #webide-button, #loop-button, #pocket-button, #containers-panelmenu, #library-button) :-moz-any(.toolbarbutton-badge-container,.toolbarbutton-badge-stack) .toolbarbutton-icon {
	-moz-appearance: none !important;
	border: 0 !important;
	box-shadow: none !important;
}

#TabsToolbar toolbaritem[cui-areatype="toolbar"] > :-moz-any(#zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button) > .toolbarbutton-icon,
#TabsToolbar :-moz-any(#back-button, #forward-button, #home-button, #stop-button, #reload-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #feed-button, #tabview-button, #social-share-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #web-apps-button, #webide-button, #loop-button, #pocket-button, #containers-panelmenu, #library-button):-moz-any([cui-areatype="toolbar"],:not([cui-areatype])):not(:-moz-any(#zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button)) > .toolbarbutton-icon,
#TabsToolbar :-moz-any(#back-button, #forward-button, #home-button, #stop-button, #reload-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #feed-button, #tabview-button, #social-share-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #web-apps-button, #webide-button, #loop-button, #pocket-button, #containers-panelmenu, #library-button):-moz-any([cui-areatype="toolbar"],:not([cui-areatype])) > :-moz-any(.toolbarbutton-badge-container,.toolbarbutton-badge-stack,.toolbarbutton-menubutton-button) > .toolbarbutton-icon {
	-moz-appearance: none !important;
	padding: unset !important;
	margin: unset !important;
	background: none !important;
	box-shadow: none !important;
}


/* 图标间距离 Button distance */
#nav-bar :-moz-any(#home-button, #stop-button, #reload-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #feed-button, #tabview-button, #social-share-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #web-apps-button, #webide-button, #loop-button, #pocket-button, #containers-panelmenu, #library-button):-moz-any([cui-areatype="toolbar"],:not([cui-areatype])):not(:-moz-any(#zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button)) > .toolbarbutton-icon {
	padding: 5px !important;
	margin: 0px 3px  !important;
	border-radius: 0px !important;
}

#widget-overflow-fixed-list .toolbarbutton-1 > .toolbarbutton-icon,
#nav-bar :-moz-any(#back-button, #forward-button, #home-button, #stop-button, #reload-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #feed-button, #tabview-button, #social-share-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #web-apps-button, #webide-button, #loop-button, #pocket-button, #containers-panelmenu, #library-button):-moz-any([cui-areatype="toolbar"],:not([cui-areatype])):not(:-moz-any(#zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button)) > .toolbarbutton-badge-stack > .toolbarbutton-icon {
	width: 18px !important;
}

#nav-bar .toolbarbutton-1:not([checked]):not([open]):not(:active) > .toolbarbutton-icon {
	border-radius: 0px !important;
}



/*----------------------------------自定义拓展图标替换 Addon Icons Change----------------------------------*/

/*maximizevideo*/
#maximizevideo_ettoolong-browser-action .toolbarbutton-icon {
	list-style-image: url("../images/icons/fullscreen.png");
}

/*popupwindow*/
#popupwindow_ettoolong-browser-action .toolbarbutton-icon {
	list-style-image: url("../images/icons/nimimode.png");
}

/*uBlock Origin*/
#ublock0_raymondhill_net-browser-action [label="uBlock Origin (0)"] {
	list-style-image: url("../images/icons/adblockplus.png");
	-moz-image-region: rect(16px, 16px, 32px, 0px);
}

#ublock0_raymondhill_net-browser-action [label="uBlock Origin (off)"] {
	list-style-image: url("../images/icons/adblockplus.png");
	-moz-image-region: rect(0px, 16px, 16px, 0px);
}

/*xstyle*/
#xstyle-amo_addon_firefoxcn_net-browser-action {
	list-style-image: url("../images/icons/stylish.png")!important;
}

/*VoilentMonkey*/
#_aecec67f-0d10-4fa7-b7c7-609a2db280cf_-browser-action .toolbarbutton-icon {
	list-style-image: url("../images/icons/userscripts.png")!important;
}

/*urlbar-stop-button*/
#urlbar-stop-button {
	list-style-image: url("../images/icons/urlbar-stop-button.png") !important;
}

/*SwitchyOmega*/
#switchyomega_feliscatus_addons_mozilla_org-browser-action,
#switchyomega_feliscatus_addons_mozilla_org-browser-action [label*="SwitchyOmega:: [直接连接]"],
#switchyomega_feliscatus_addons_mozilla_org-browser-action [label*="SwitchyOmega:: [系统代理]"] {
	list-style-image: url("../images/icons/autoproxy.png") !important;
	-moz-image-region: rect(16px, 16px, 32px, 0px)!important;
}

#switchyomega_feliscatus_addons_mozilla_org-browser-action [label*="SwitchyOmega:: auto switch"] {
	list-style-image: url("../images/icons/autoproxy.png") !important;
	-moz-image-region: rect(0px, 16px, 16px, 0px)!important;
}

#switchyomega_feliscatus_addons_mozilla_org-browser-action [label*="SwitchyOmega:: Socks5"] {
	list-style-image: url("../images/icons/autoproxy.png") !important;
	-moz-image-region: rect(32px, 16px, 48px, 0px)!important;
}


/* 额外图标替换 addtional icons change*/
#undoclosetab-button .toolbarbutton-icon, 
#_cd7e22de-2e34-40f0-aeff-cec824cbccac_-browser-action,
#pageAction-urlbar-_cd7e22de-2e34-40f0-aeff-cec824cbccac_[aria-label="Add to pocket"],
#pageAction-urlbar-_cd7e22de-2e34-40f0-aeff-cec824cbccac_[aria-label="Mark as read"],
#back-button>.toolbarbutton-icon,
#forward-button>.toolbarbutton-icon,
.bookmark-item[type="menu"] > .toolbarbutton-icon,
#PersonalToolbar toolbarbutton[class="bookmark-item"][type="menu"],menu[container="true"][class="menu-iconic bookmark-item"] {
	list-style-image: url("../images/custom_toolbar_16.png")!important;
}

/*Back Button*/
#back-button>.toolbarbutton-icon {
	-moz-image-region: rect(16px,80px,32px,64px);
	opacity: 1 !important;
}

/*Forward Button*/
#forward-button>.toolbarbutton-icon {
	-moz-image-region: rect(16px,96px,32px,80px);
	opacity: 1 !important;
}

/*In My Pocket*/
#_cd7e22de-2e34-40f0-aeff-cec824cbccac_-browser-action {
	-moz-image-region: rect(16px, 64px, 32px, 48px)!important;
}

#pageAction-urlbar-_cd7e22de-2e34-40f0-aeff-cec824cbccac_[aria-label="Add to pocket"] {
	-moz-image-region: rect(0px, 80px, 16px, 64px)!important;
	opacity: 0.6;
}

#pageAction-urlbar-_cd7e22de-2e34-40f0-aeff-cec824cbccac_[aria-label="Mark as read"] {
	-moz-image-region: rect(0px, 96px, 16px, 80px)!important;
}

/*Lastpass*/
#support_lastpass_com-browser-action {
	list-style-image: url("../images/icons/19x19_Red.png")!important;
}

#_b9db16a4-6edc-47ec-a1f4-b86292ed211d_-browser-action {
	list-style-image: url("../images/icons/netvideohunter.png")!important;
}

/*Feed Button*/
#pageAction-urlbar-_97d566da-42c5-4ef4-a03b-5a2e5f7cbcb2_ {
	list-style-image: url("../images/icons/feed_button.png")!important;
	-moz-image-region: rect(0px,16px,16px,0px)!important;
	opacity: .4!important;
}

/*IdentityBox*/
#identity-box {
	padding: 0 7px 0 9px !important;
	margin-left: -8px!important;
	margin-right: -2px !important;
	background: transparent !important;
}

#identity-box > #connection-icon,#identity-box > #identity-icon-labels {
	display: none !important;
}

#identity-box {
	border: none !important;
}

/*identity-icon 图标替换 Identity icon Change*/
#urlbar #identity-icon,
#urlbar[pageproxystate="valid"] > #identity-icon:not(.chromeUI):not(.extensionPage) {
	visibility: visible;
	list-style-image: url(../images/icons/clearly.png)!important;
	margin-left: 2px !important;
}

#urlbar[pageproxystate="valid"] > #identity-box.weakCipher > #identity-icon,
#urlbar[pageproxystate="valid"] > #identity-box.mixedDisplayContent > #identity-icon,
#urlbar[pageproxystate="valid"] > #identity-box.mixedDisplayContentLoadedActiveBlocked > #identity-icon,
#urlbar[pageproxystate="valid"] > #identity-box.mixedActiveContent > #identity-icon,
#urlbar[pageproxystate="valid"] > #identity-box.insecureLoginForms > #identity-icon,
#urlbar[pageproxystate="valid"] > #identity-box.unknownIdentity > #identity-icon {
	list-style-image: url(../images/icons/clearly_warning.png)!important;
	margin-left: 2px !important;
}

#urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity > #identity-icon,
#urlbar[pageproxystate="valid"] > #identity-box.verifiedDomain > #identity-icon {
	list-style-image: url(../images/icons/clearly_safe.png)!important;
	margin-left: 2px !important;
}

#urlbar[pageproxystate="valid"] > #identity-box.chromeUI > #connection-icon,
#urlbar[pageproxystate="valid"] > #identity-box.extensionPage > #connection-icon {
	list-style-image: url(chrome://branding/content/identity-icons-brand.svg)!important;
	visibility: visible;
	margin-left: 2px !important;
}



/*------------------------------Favicon菜单图标修改 Favico Menu Change----------------------------*/

[label="地址根目录"] {
	list-style-image: url("../images/icons/up.png") !important;
}
[label="地址上一层"] {
	list-style-image: url("../images/icons/back.png") !important;
}
[label="生成短网址"] {
	list-style-image: url("../images/icons/shorten.png") !important;
}
[label="http转https"] {
	list-style-image: url("../images/icons/lock.png") !important;
}
[label="生成二维码"] {
	list-style-image: url("../images/icons/qrcode.png") !important;
}
[label="进入阅读模式"] {
	list-style-image: url("../images/icons/clearly.png") !important;
}
[label="查看页面信息"] {
	list-style-image: url("../images/icons/viewinfo.png") !important;
}
[label="谷歌缓存查询"] {
	list-style-image: url("../images/icons/server.png") !important;
}
[label="搜索共享帐号"] {
	list-style-image: url("../images/icons/lastpass.png") !important;
}
[label="网站综合信息"] {
	list-style-image: url("../images/icons/info.png") !important;
}



/*----------------------------------书签图标修改 Bookmark Button Change----------------------------------*/

/*书签工具栏居中 PersonalToolbar Align Center */
#PersonalToolbar #PlacesToolbarItems {
	-moz-box-pack: center !important;
}

/*隐藏分割线*/
:root:not([uidensity=compact]):not([chromehidden~="toolbar"]) #PanelUI-button {
  border-image-slice: 0 !important;
}

/*地址栏书签按钮 Urlbar Bookmark Button*/
#star-button {
	list-style-image: url("../images/urlbarbookmark.png")!important;
	-moz-image-region: rect(0px 16px 16px 0px);
}

#star-button[starred] {
	list-style-image: url("../images/urlbarbookmark.png")!important;
	-moz-image-region: rect(0px 48px 16px 32px);
}

#star-button-box {
	background: transparent !important;
}

/*书签文件夹图标 Bookmark Folder Icon*/
.bookmark-item[type="menu"] > .toolbarbutton-icon {
	-moz-image-region: rect(16px, 32px, 32px, 16px)!important;
}
	
/*书签栏工具栏图标 PersonalToolbar Bookmark Folder Icon*/
#PersonalToolbar toolbarbutton[class="bookmark-item"][type="menu"],menu[container="true"][class="menu-iconic bookmark-item"] {
	-moz-image-region: rect(16px, 32px, 32px, 16px)!important;
}

/*书签栏图标经过样式*/
toolbarbutton.bookmark-item {
	border-radius: 0px !important;
	padding: 2px 4px 2px 4px !important;
}

toolbarbutton.bookmark-item:hover {
	background-color: #e5e5e5!important;
		padding: 0px 4px 2px 4px !important;
}

#PlacesToolbarItems{
	  min-height:26px !important;
}

#PersonalToolbar {
	border-left: none!important;
	border-right: none!important;
	border-top: 1px solid #e3e3e3 !important;
	padding-top:1px !important;
	padding-bottom:1px !important;
}


/*在添加到书签对话框中加入关键词选项 Show Tag Option on Edit Bookmark Panel*/
#editBMPanel_locationRow,#editBMPanel_descriptionRow {
	visibility: visible !important;
}

#editBMPanel_tagsSelector[collapsed="true"] {
	display: none !important;
}


/*----------------------------------图标隐藏 Hide Icons--------------------------------*/

/*隐藏导航栏上的图标 Hide Navbar Icons*/
#identity-icon-label,#extension-icon,/*隐藏拓展页面标识*/
#weibopic_ac-browser-action,/*隐藏微博图床*/
#reader-mode-button,/*隐藏阅读模式图标*/
#pageActionSeparator,
#historydropmarker,
#pageActionButton,/*PageAction*/
#notification-popup-box,/*隐藏插件使用权限图标*/
.search-go-button/*点击搜索按钮隐藏*/
{
	display: none !important;
}

/*隐藏定制面板里的非线性图标*/
#wrapper-juraj_masiar_gmail_com_scrollanywhere-browser-action,
#wrapper-headereditor-amo_addon_firefoxcn_net-browser-action,
#wrapper-_7be2ba16-0f1e-4d93-9ebc-5164397477a9_-browser-action,
#wrapper-glitterdrag_harytfw-browser-action,
#wrapper-_0ad88674-2b41-4cfb-99e3-e206c74a0076_-browser-action,
#wrapper-michal_simonfy_gmail_com-browser-action
{
	display: none !important;
}








/*START===============================================（03.Tabs）======================================================*/
/*===========================================03. 标签页调整 Tabs Adjustment ============================================*/

/* 标签栏背景颜色 Tabs Background Color*/
#main-window #TabsToolbar {
	background-color: #eeeeee !important;
}


/* 标签长宽位置 Tabs height */
:root {
	--tabs-border-color: transparent !important;
	--tabs-border-top: 1px solid red!important;
	--tabs-border: transparent!important;
	--tab-min-height: 28px!important;
}

/*去除标签页蓝条 Remove Tab line*/
.tab-line {
	display: none !important;
}

/*去除标签页蓝条 Remove Tab line*/
.tab-line {
	display: none !important;
}


/*移除标签边框 Remove borders from tabs */
.tabbrowser-tab::after, .tabbrowser-tab::before {
	border-left: none !important;
}

:root {
	--tabs-border: transparent !important;
}

/*除移标签组前的分隔线 Remove Pre-tabs*/
.titlebar-placeholder[type="pre-tabs"], .titlebar-placeholder[type="post-tabs"] {
	display: none !important;
}

/*标签栏左边空格 Add Left Space to Pre-tabs */
#main-window[sizemode="normal"] #TabsToolbar {
	padding-left: 11px !important;
}


/*为空白标签加上图标 Add icon for blank tabs */
#TabsToolbar .tabbrowser-tab .tab-icon-image:not([src]):not([busy])[selected] {
	display: inline !important;
	list-style-image: url("../images/icons/newtabicon_inverted.png") !important;
}

#TabsToolbar .tabbrowser-tab .tab-icon-image:not([src]):not([busy]):not([selected]) {
	display: inline !important;
	list-style-image: url("../images/icons/newtabicon.png") !important;
}

#TabsToolbar .tab-throbber[selected][progress], .tab-throbber[selected][busy] {
	filter: invert(1);
}

/* 标签载入动画 Loading Animation */
.tab-throbber[busy]::before,
.tab-throbber[progress]::before {
	width: 16px !important;
	height: 16px !important;
	animation: unset !important;
	-moz-context-properties: unset !important;
	fill: unset !important;
	animation: unset !important;
	opacity: unset !important;
	animation: unset !important;
}

.tab-throbber[busy]::before {
	background-image: url("../images/icons/connecting.png") !important;
}

.tab-throbber[progress]::before {
	background-image: url("../images/icons/loading.png") !important;
}


/*标签关闭按钮 Close Button Icon Change*/
.tabbrowser-tab:not([selected]) .tab-close-button {
	list-style-image: url("../images/tabbottom_close.png")!important;
}

.tabbrowser-tab .close-icon[selected] {
	list-style-image: url("../images/tabbottom_close_inverted.png")!important;
}

.tabbrowser-tab .close-icon {
	-moz-image-region: rect(0, 16px, 16px, 0) !important;
}

.tabbrowser-tab .close-icon:hover {
	-moz-image-region: rect(0, 32px, 16px, 16px) !important;
}

.tabbrowser-tab .close-icon:hover:active {
	-moz-image-region: rect(0, 48px, 16px, 32px) !important;
}


/* 标签经过样式 Tabs Hover Style */
#TabsToolbar .tabbrowser-tab:hover:not([selected]) {
	-moz-border-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAcAQMAAABic7x4AAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAAAtJREFUCNdjoAEAAABUAAEeQayUAAAAAElFTkSuQmCC") 0 3 0 / 0px 3px 0px repeat stretch!important;
	background-color: #ffffff !important;
	-moz-appearance: none !important;
	margin-top: -1px !important
}

/*正常窗口时的标签页 When is noarmal size*/
#TabsToolbar .tabbrowser-tab {
	-moz-border-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAcBAMAAACqkzMIAAAAJ1BMVEUAAADJycnJycnJycnJycnJycnJycnJycnJycnJycnJycnJycnJyclJU3tYAAAADHRSTlMA8uHLtJp/ZUw0Hw0/ZVM9AAAAJklEQVQI17XERw0AMBAAoO7tX28TPBwPElwfby9PD3c3Vxdnv7g/RnoBA1u3BVAAAAAASUVORK5CYII=") 0 3 0 / 0px 3px 0px repeat stretch!important;
}
/*最大化窗口时的标签页 When is maximized size*/
#main-window[tabsintitlebar][sizemode="maximized"]:not([tabsontop="false"]) #toolbar-menubar[autohide="true"][inactive] ~ #TabsToolbar .tabbrowser-tab {
	-moz-border-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAcAQMAAABic7x4AAAABlBMVEUAAADJycnDmQITAAAAAXRSTlMAQObYZgAAAA1JREFUCNdjYHCgOgIAIuMHAartZe4AAAAASUVORK5CYII=") 0 3 0 / 0px 3px 0px repeat stretch!important;
}


/*------- 新建标签图标 Newtab Button Change -------*/
#TabsToolbar .tabs-newtab-button {
	list-style-image: url("../images/icons/newtabplus2.png") !important;
	-moz-image-region: rect(0, 16px, 16px, 0) !important;
}

#TabsToolbar .tabs-newtab-button,
#TabsToolbar .tabbrowser-tab {
	background: transparent !important;
	background-clip: padding-box !important;
	border-top: none !important;
}

/*最大化时的新建标签按钮 When is maximized size*/
#main-window[tabsintitlebar][sizemode="maximized"]:not([tabsontop="false"]) #toolbar-menubar[autohide="true"][inactive] ~ #TabsToolbar .tabs-newtab-button {
	border-width: 0px 1px 0px 0px !important;
	border-style: solid !important;
	border-color: #c9c9c9 !important;
}

#TabsToolbar .tabs-newtab-button {
	border-radius: 0px !important;
	background: transparent !important;
}

#TabsToolbar .tabs-newtab-button:hover {
	background: transparent !important;
}

#TabsToolbar .tabs-newtab-button:active {
	background: transparent !important;
}

 

/* 标签边框 Tabs border*/
#TabsToolbar .tabbrowser-tab[first-tab][last-tab],
#TabsToolbar .tabbrowser-tab[last-visible-tab] {
	border-right-width: 1px !important;
	-moz-appearance: none !important;
}

/* 未选中标签 */
#TabsToolbar .tabbrowser-tab[afterselected] {
	border-left-color: rgba(0,0,0,.25) !important;
	-moz-appearance: none !important;
	border: none !important;
}

/* 固定标签 Pinned Tabs*/
#TabsToolbar .tabbrowser-tab[pinned="true"]:not([selected]) {
	border-right: 1px solid #c9c9c9 !important;
}

/* 标签页字体 Tabs Font family */
.tabbrowser-tab .tab-text.tab-label {
	font-family: "Segoe ui","Microsoft Yahei","tahoma"!important;
}

/*鼠标移上去才显示关闭按钮 Show Close Button when mouse hover*/
.tabbrowser-tab:not([selected]):not([pinned]) .tab-close-button {
	display: none !important;
}

.tabbrowser-tab:not([selected]):not([pinned]):hover .tab-close-button {
	display: -moz-box !important;
}



/*-------------------选中标签变色 Colorful Selected Tab -----------------*/
/* 选中标签颜色 */ /*魅力蓝 Blue*/
#TabsToolbar .tabbrowser-tab[selected] {
	background: -moz-linear-gradient(left, #00c0f1, #0080e2) !important;
	--lwt-header-image: !important;
	color: #fff !important;
}

/*森林绿 Green*/
#TabsToolbar .tabbrowser-tab[selected]:-moz-any([image*="feedly"],[image*="evernote"],[image*="360"],[image*="douban"],[image*="guokr"]) {
	background: -moz-linear-gradient(left, #68d045, #22ae02) !important;
}

/*活力橙 Orange*/
#TabsToolbar .tabbrowser-tab[selected]:-moz-any([image*="weibo"],[image*="sogou"],[image*="hunantv"],[image*="taobao"]) {
	background: -moz-linear-gradient(left, #ffba00, #f58401) !important;
}

/*热情红 Red*/
#TabsToolbar .tabbrowser-tab[selected]:-moz-any([image*="youtube"],[image*="163"],[image*="126"],[image*="jd"],[image*="tmall"],[image*="quora"],[image*="pinterest"],[image*="path"]) {
	background: -moz-linear-gradient(left, #fb7e62, #dc1500) !important;
}

/*可爱粉 Pink*/
#TabsToolbar .tabbrowser-tab[selected]:-moz-any([image*="dribbble"],[image*="vip"],[image*="hdslb"],[image*="acfun"],[image*="meilishuo"]) {
	background: -moz-linear-gradient(left, #e842c5, #e951b6) !important;
}

/*高端黑 Black*/
#TabsToolbar .tabbrowser-tab[selected]:-moz-any([image*="steampowered"],[image*="lofter"],[image*="github"]) {
	background: -moz-linear-gradient(left, #777777, #333333) !important;
}

/*商务蓝 Facebook Blue*/
#TabsToolbar .tabbrowser-tab[selected]:-moz-any([image*="facebook"]) {
	background: -moz-linear-gradient(left,#4761A2, #465F9F) !important;
}

/*宝石蓝 Jewel Blue*/
#TabsToolbar .tabbrowser-tab[selected]:-moz-any([image*="bdstatic"],[image*="baidu"]) {
	background: -moz-linear-gradient(left, #398fed, #2256e2) !important;
}

/*基佬紫 pruple*/
/* background: -moz-linear-gradient(left, #b55ef1, #7b40e3) !important;}*/

/*香槟金 Champagne*/
#TabsToolbar .tabbrowser-tab[selected]:-moz-any([image*="apple"],[image*="huawei"]) {
	background: -moz-linear-gradient(left, #e8d7a2, #ceaa4e) !important;
}











/*START=================================================（04.Menu）=========================================================*/
/*==============================================04.菜单修改调整 Menu Adjustment==============================================*/ 

/*屏蔽Alt切换菜单 Block Alt Key to Show Menubar*/
#toolbar-menubar[autohide="true"] {display: none !important;}


/*粘贴并转到置顶 Paste and Go Stick on Top*/
.urlbar-textbox-container menuitem[anonid="paste-and-go"]:not([disabled="true"]) {
	-moz-box-ordinal-group: 0 !important;}

.searchbar-textbox menuitem[anonid="paste-and-search"]:not([disabled="true"]) {
	-moz-box-ordinal-group: 0 !important;}

#context-pasteandgo-forms:not([disabled="true"]) {
	-moz-box-ordinal-group: 0 !important;}


/*隐藏三道杠菜单选项 Hide Panel menu option*/
#appMenu-find-button,
#appMenu-more-button,
#appMenu-print-button, 
#appMenu-print-button + toolbarseparator,
#appMenu-save-file-button,
#appMenu-open-file-button {
	display: none !important;
}


/*隐藏标签右键菜单 Hide tabs menu option*/
#context_reloadTab,
#context_undoCloseTab,
#context_closeTab,
#context_openTabInWindow,
#context_reloadAllTabs,
#context_closeOtherTabs,
#context_closeTabsToTheEnd,
#context_toggleMuteTab,
#context_openTabInWindow + menuseparator,
#context_closeOtherTabs + menuseparator,
#context_sendTabToDevice + menuseparator,
#context_duplicateTab + menuseparator,
#context_toggleMuteTab + menuseparator {
	display: none;
}


/*标签页右键菜单排序 Tabs Option Order*/
#context_CopyTab {-moz-box-ordinal-group: 1 !important;}
#context_pinTab, #context_unpinTab {-moz-box-ordinal-group: 2 !important;}
#context_SidebarOpen {-moz-box-ordinal-group: 3 !important;}
#context_CloseTab {-moz-box-ordinal-group: 4 !important;}
#context_StickOnTop {-moz-box-ordinal-group: 5 !important;}
#context_sendTabToDevice {-moz-box-ordinal-group: 6 !important;}
#context_bookmarkAllTabs {-moz-box-ordinal-group: 13 !important;}
#context_TabInfoCopy {-moz-box-ordinal-group: 15 !important;}  	



/*隐藏页面右键菜单 Hide Page menu option*/
#context-pocket,
#context-savepage,
#context-selectall,
#inspect-separator,
#context-sep-viewbgimage,
#fill-login,
#contentAreaContextMenu menuseparator,
[id*="support_lastpass_com_"],
[id*="_cd7e22de-2e34-40f0-aeff-cec824cbccac__"] {
	display: none !important;
}


/* 隐藏“发送到设备” Hide sent to device option*/
#context-sendpagetodevice,
#context-sep-sendpagetodevice,
#context-sendlinktodevice, 
#context-sep-sendlinktodevice {
	display: none !important;
}


/* 隐藏链接右键菜单 Hidn link menu option*/
#context-copylink,
#context-savelink,
#context-openlinkincurrent,
#context-savelinktopocket,
#context-openlinkinusercontext-menu,
#context-openlinkprivate,
#context-openlink,
#context-sep-open,
#context-bookmarklink,
#context-navigation,
#screenshots_mozilla_org_create-screenshot,
#context-viewbgimage,
#context-sep-viewsource,
#context-sep-navigation {
	display: none;
}


/*隐藏选中文字右键 Hide selected text option*/
#spell-check-enabled,
#context-viewpartialsource-selection {
	display: none;
}


/*隐藏输入框右键 Hide Text area option*/
#spell-separator,
#spell-add-dictionaries-main,
#context-sep-paste,
#spell-dictionaries,
#context-keywordfield {
	display: none;
}


/*隐藏图像右键菜单 Hide Image menu option*/
#context-sep-copyimage,
#context-sendimage,
#context-setDesktopBackground, 
#context-copyimage {
	display: none;
}


/*隐藏HTML5视频右键菜单 Hide video menu option*/
#context-media-pause,
#context-media-mute,
#context-media-unmute,
#context-media-hidecontrols,
#context-sendvideo,
#context-media-loop{
	display: none;
}


/*隐藏书签右键菜单 Hide Bookmark Menu Option*/
#placesContext_open,
#placesContext_ExportHTMLFolderSep,
[id="placesContext_open:newwindow"],
[id="placesContext_openContainer:tabs"],
[id="placesContext_open:newprivatewindow"],
.bookmarks-actions-menuseparator,
.openintabs-menuitem{
	display: none;
}



/*START---------------为没有图标的菜单增加图标 Add Icons for Blank Menu--------------*/
#context-openlinkintab .menu-iconic-text,
#context-viewsource .menu-iconic-text,
#context-viewinfo .menu-iconic-text,
#context-inspect .menu-iconic-text,
#context-viewimage .menu-iconic-text,
#context-viewpartialsource-selection .menu-iconic-text,
[label="✚ Add to Pocket"] .menu-iconic-text,
#context_pinTab .menu-iconic-text,
#context_unpinTab .menu-iconic-text,
#context-media-play .menu-iconic-text,
#context-media-pause .menu-iconic-text,
#context-media-mute .menu-iconic-text,
#context-media-unmute .menu-iconic-text,
#context-media-hidecontrols .menu-iconic-text,
#context-media-showcontrols .menu-iconic-text, 
#context-video-fullscreen .menu-iconic-text,
#context-video-showstats .menu-iconic-text, 
#context-video-hidestats .menu-iconic-text, 
#context-savevideo .menu-iconic-text,
#context-video-saveimage .menu-iconic-text,
#context-copyvideourl .menu-iconic-text,
#context-viewvideo .menu-iconic-text,
#context-leave-dom-fullscreen .menu-iconic-text,
#context-reloadimage .menu-iconic-text,
#context-searchfield .menu-iconic-text,
#context_sendTabToDevice .menu-text,
#context-sendlinktodevice .menu-iconic-text,
#context_bookmarkAllTabs .menu-iconic-text,
#context_toggleMuteTab .menu-iconic-text,
#context_duplicateTab .menu-iconic-text,
#context-saveimage .menu-iconic-text,
#context-searchselect .menu-iconic-text,
#thunder_cross_contextDownloadLink .menu-iconic-text,
#context-undo .menu-iconic-text,
#context-media-playbackrate .menu-iconic-text,
#context-viewimageinfo .menu-iconic-text,
#frame .menu-iconic-text{
	margin-left: 11px !important;
}



/*---------------------文本替换修改 Text Replace------------------*/

[label="✚ Add to Pocket"] .menu-iconic-text {display: none;}
[label="✚ Add to Pocket"]:after {content: "添加到稍后阅读";	position: absolute !important;	margin-left: -9px !important;}

#context_duplicateTab .menu-iconic-text {display: none !important;}
#context_duplicateTab:after {	content: "复制当前标签";	position: absolute !important;}

#context_sendTabToDevice .menu-iconic-text {display: none !important;}
#context_sendTabToDevice:after {content: "发送到移动设备";	position: absolute !important;}

#context_openTabInWindow .menu-iconic-text {display: none;}
#context_openTabInWindow:after {content: "移动到新窗口";	position: absolute !important;}

#context-viewsource .menu-iconic-text,#context-viewsource .menu-right {	display: none;}
#context-viewsource:after {content: "查看页面代码";	position: absolute !important;}

#context-viewinfo .menu-iconic-text {	display: none;}
#context-viewinfo:after {content: "查看页面信息";	position: absolute !important;}

#context-inspect .menu-iconic-text {	display: none;}
#context-inspect:after {content: "查看页面元素";	position: absolute !important;}

#context_bookmarkAllTabs .menu-iconic-text {display: none;}
#context_bookmarkAllTabs:after {content: "全部标签添加到书签";	position: absolute !important;}




/*--------------------------增加图标 Add Icons--------------------------*/

#frame{
  -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	list-style-image: url("../images/icons/newtab.png")!important;
	padding-left: 4px !important;
}

#blocked-permissions-container .blocked-permission-icon{
	list-style-image: url("../images/icons/message_block.png")!important;
}

#context-viewimageinfo{
  -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	list-style-image: url("../images/icons/viewinfo.png")!important;
	padding-left: 4px !important;
}


#context-media-playbackrate {
  -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	list-style-image: url("../images/icons/speed.png")!important;
	padding-left: 4px !important;
}

#context-copyvideourl{
	list-style-image: url("../images/icons/copy.png")!important;
}

#context-savevideo{
	list-style-image: url("../images/icons/save.png")!important;
}

#context-delete  {
	list-style-image: url("../images/icons/delete.png")!important;
}

#context-paste {
	list-style-image: url("../images/icons/paste.png")!important;
}

#context-cut {
	list-style-image: url("../images/icons/cut.png")!important;
}

#context-undo {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	list-style-image: url("../images/icons/pasteandgo.png")!important;
	padding-left: 4px !important;
}

#thunder_cross_contextDownloadLink {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	list-style-image: url("../images/icons/download.png")!important;
	padding-left: 4px !important;
}

#context-searchselect {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	list-style-image: url("../images/icons/search.png")!important;
	padding-left: 4px !important;
}

#context-saveimage {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	list-style-image: url("../images/icons/download.png")!important;
	padding-left: 4px !important;
}

#context_duplicateTab {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	list-style-image: url("../images/icons/tab.png")!important;
	padding-left: 4px !important;
}

#context_bookmarkAllTabs {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	list-style-image: url("../images/icons/bookmark.png")!important;
	padding-left: 4px !important;
}

#context-openlinkintab {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	list-style-image: url("../images/icons/newtab.png")!important;
	padding-left: 4px !important;
}

#context_sendTabToDevice, #context-sendlinktodevice {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	list-style-image: url("../images/icons/ua.png")!important;
	padding-left: 4px !important;
}

#context-searchfield {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	list-style-image: url("../images/icons/search_add.png")!important;
	padding-left: 4px !important;
}

#context-inspect {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	list-style-image: url("../images/icons/inspect.png")!important;
	padding-left: 4px !important;
}

#context-viewsource ,#context-viewpartialsource-selection {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menu-iconic")!important;
	list-style-image: url("../images/icons/viewsource.png")!important;
	padding-left: 4px !important;
}

#context-viewinfo {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	list-style-image: url("../images/icons/viewinfo.png")!important;
	padding-left: 4px !important;
}

#context-viewimage {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	list-style-image: url("../images/icons/viewimage.png")!important;
	padding-left: 4px !important;
}

#context-searcher .menu-iconic-icon {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	list-style-image: url("../images/icons/search.png")!important;
}

#context_openTabInWindow {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	list-style-image: url("../images/icons/newwindow.png");
	padding-left: 4px !important;
}

#context_StickyTab {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	list-style-image: url("../images/icons/stick.png");
	padding-left: 0px !important;
}

#context_pinTab,#context_unpinTab {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	list-style-image: url("../images/icons/pin.png")!important;
	padding-left: 4px !important;
}

#context-reloadimage {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	list-style-image: url("../images/icons/refresh.png");
	padding-left: 4px !important;
} 


/*--------音乐视频-------*/

#context-media-play {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	padding-left: 4px !important;
	list-style-image: url("../images/icons/play.png")!important;
}

#context-media-pause {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	padding-left: 4px !important;
	list-style-image: url("../images/icons/pause.png")!important;
}

#context-media-mute {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	padding-left: 4px !important;
	list-style-image: url("../images/icons/mute.png")!important;
}

#context-media-unmute {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	padding-left: 4px !important;
	list-style-image: url("../images/icons/unmute.png")!important;
}

#context-media-playbackrat {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	padding-left: 4px !important;
	list-style-image: url("../images/icons/speed.png")!important;
}

#context-media-hidecontrols,#context-media-showcontrols {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	padding-left: 4px !important;
	list-style-image: url("../images/icons/control.png")!important;
}

#context-video-fullscreen {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	padding-left: 4px !important;
	list-style-image: url("../images/icons/fullscreen.png")!important;
}

#context-video-showstats, #context-video-hidestats {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	padding-left: 4px !important;
	list-style-image: url("../images/icons/info.png");
}

#context-savevideo {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	padding-left: 4px !important;
	list-style-image: url("../images/icons/save.png");
}

#context-video-saveimage {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	padding-left: 4px !important;
	list-style-image: url("../images/icons/imagesave.png")!important;
}

#context-copyvideourl {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	padding-left: 4px !important;
	list-style-image: url("../images/icons/copy.png");
}

#context-viewvideo {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	list-style-image: url("../images/icons/viewimage.png")!important;
	padding-left: 4px !important;
	padding-top: 1px !important;
	padding-bottom: 1px !important;
}

#context-leave-dom-fullscreen {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic")!important;
	list-style-image: url("../images/icons/restore.png")!important;
	padding-left: 4px !important;
	padding-top: 1px !important;
	padding-bottom: 1px !important;
}






/*START=================================================（05.Flat Menu）=========================================================*/
/*================================================扁平化菜单 Flat SimpleWhite Menu================================================*/ 
popupset menupopup,
#PlacesToolbarItems menupopup,
#toolbar-menubar menupopup,
textbox menupopup,
menupopup:not([placespopup="true"]) {
	-moz-appearance: none !important;
	background-color: #FFF !important;
	padding-top: 2px !important;
	padding-bottom: 2px !important;
	background-clip: padding-box!important;
	margin: -5px !important;
	border: 5px solid transparent !important;
	border-image: url("../images/menushadow.png") 5 stretch !important;
}

popupset menupopup menu[_moz-menuactive="true"],
popupset menupopup menuitem[_moz-menuactive="true"],
#PlacesToolbarItems menupopup menu[_moz-menuactive="true"],
#PlacesToolbarItems menupopup menuitem[_moz-menuactive="true"],
#toolbar-menubar menupopup menu[_moz-menuactive="true"],
#toolbar-menubar menupopup menuitem[_moz-menuactive="true"],
textbox menupopup menu[_moz-menuactive="true"],
textbox menupopup menuitem[_moz-menuactive="true"] {
	border: 1px solid #ededed !important;
	background-color: #ededed !important;
	-moz-appearance: none !important;
}

/*下拉弹出菜单颜色*/
menu[_moz-menuactive="true"]:not(.splitmenu-menu), 
menuitem[_moz-menuactive="true"],splitmenu[active="true"],#dwhelper-button .menu-iconic menuitem:hover {
	-moz-appearance: none!important;
	background: #ededed!important;
	color: #000000 !important;
}

/*下拉弹出菜单距离*/
menu .menu-iconic-text,
menuitem .menu-iconic-text,
splitmenu .menu-iconic-text,
#dwhelper-button .menu-iconic-text {
	margin-right: -9px!important;
}

/*弹出菜单箭头距离*/
menulist .menu-iconic-text,
dialog .menu-iconic-text {
	margin-right: 0px!important;
}


/*细节距离调整*/
popupset menupopup .menu-accel-container,
#PlacesToolbarItems  menupopup .menu-accel-container,
#toolbar-menubar  menupopup .menu-accel-container {
	margin-left: -14px !important;
}

textbox menupopup .menu-accel-container {
	margin-left: -1px !important;
}

/*细节距离调整*/
#context_TabInfoCopy .menu-accel-container {
	margin-left: -27px !important;
}

popupset menupopup menu,
popupset menupopup menuitem,
textbox menupopup menu,
textbox menupopup menuitem,
#PlacesToolbarItems menupopup menu,
#PlacesToolbarItems menupopup menuitem,
#toolbar-menubar menupopup menu,
#toolbar-menubar menupopup menuitem {
	padding-top: 0px;
	padding-bottom: 0px;
	border: 1px solid #FFF !important;
	background-color: #FFF !important;
	-moz-appearance: none !important;
}


/*菜单高度*/
menu, menuitem:not(#BMB_bookmarksShowAll):not(.subviewbutton), splitmenu, .splitmenu-menuitem {
	-moz-appearance: none!important;
	border: 1px solid transparent!important;
	min-height: 24px!important;
	max-height: 24px!important;
    /*padding-right:0px !important;*/
}

menulist menupopup menuitem {
	min-height: 24px!important;
	max-height: 24px!important;
}

popupset menupopup .menu-iconic-text,
textbox menupopup .menu-iconic-text,
#PlacesToolbarItems  menupopup .menu-iconic-text,
#toolbar-menubar  menupopup .menu-iconic-text {
	margin-right: 7px!important;
}

popupset menupopup .menu-text {
	margin-right: 17px!important;
}

popupset menupopup menuseparator,
textbox menupopup menuseparator,
#PlacesToolbarItems menupopup menuseparator,
#toolbar-menubar menupopup menuseparator {
	/*-moz-appearance: none !important;*/
	border-top: 1px solid #e9e9e9 !important;
	padding: 0px;
	margin-top: 2px;
	margin-bottom: 1px;
}

/*Checkbox*/
menuitem[type="checkbox"]>.menu-iconic-left {
	-moz-appearance: none!important;
	min-width: 27px!important;
	max-width: 27px!important;
	min-height: 22px!important;
	max-height: 22px!important;
}

menuitem[type="checkbox"][checked="true"]>.menu-iconic-left {
	background: url("../images/icons/checkbox.png") no-repeat center!important;
}

menuitem[type="checkbox"][checked="true"] .menu-iconic-text,menuitem[type="checkbox"]:not([checked="true"]):active .menu-iconic-text {
	-moz-margin-start: 6px !important;
}

menuitem[type="checkbox"] .menu-iconic-text {
	-moz-margin-start: 6px !important;
}

menuitem[type="checkbox"]:active>.menu-iconic-left {
	background: url("../images/image/icons/checkbox_false.png") no-repeat center!important;
}







/*START=================================================（06.URLBar）=========================================================*/
/*=======================================06.下拉地址栏扁平化 Flat Urlbar Dropdown Style=========================================*/

/* 基于 Based on: https://www.jeffersonscher.com/gm/url-bar-tweaks.html 修改 */

@-moz-document url(chrome://browser/content/browser.xul) {
  /* 地址栏去除"访问"选项Remove " - Visit" or " - Search with" bar in the drop-down */
  #PopupAutoCompleteRichResult richlistitem:first-of-type[type*="heuristic"],
  #PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="searchengine"],
  #PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="visiturl"],
  #PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="keyword"] {
    display:none !important;
    box-shadow: none !important;
  }
	
/* 去除地址栏阴影 Remove Urlbar Dropdwon Shadow */
	#PopupAutoCompleteRichResult {
	border-color:#e3e3e3 !important;
  }
	
  /* Hide line for searching sld.tld below "Visit" Line */
  #PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="visiturl"] +
  richlistitem[actiontype="searchengine"] {
    display:none !important;
  }
  #PopupAutoCompleteRichResult .autocomplete-richlistbox {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  /* EXCEPTION: Show "Search with" for keyworded search engines */
  #PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="searchengine"][displayurl*=',"alias":'], 
  #PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="searchengine"][url*=',"alias":']{
    display:-moz-box !important;
  }

  /* 下拉地址栏最大高度 Set max-height for items visible without scrolling */
  #PopupAutoCompleteRichResult .autocomplete-richlistbox {
    /* height:auto doesn't work in photon */
     max-height: calc(30px * 12) !important;
  }
	
/* 字体 Font-sizes */
  #PopupAutoCompleteRichResult .autocomplete-richlistitem:not([actiontype="searchengine"]) .ac-title {
    font-size: 12px !important;
    font-family: "Segoe ui",sans-serif !important;
  }
	
/* 匹配文字样式 matched text emphasize */
  	span.ac-emphasize-text {
		font-weight: normal !important;
		background: hsla(60,91%,75%,0.8) border-box !important;
		text-decoration: none!important;
		box-shadow: inset hsla(60,100%,35%,.2) 0 0 0 1px,inset hsla(0,0%,100%,.15) 0 0 0 2px !important;
		border-radius: 2.15px !important;
	}
  
  #PopupAutoCompleteRichResult .autocomplete-richlistitem:not([actiontype="searchengine"]) .ac-url,
  #PopupAutoCompleteRichResult .autocomplete-richlistitem:not([actiontype="searchengine"]) .ac-action {
    font-size: 12px !important;
    font-family: "Segoe ui",sans-serif !important;
    color:#000 !important;
    
  }
	
/* 选中颜色 */
  .autocomplete-richlistitem[selected=true] {
    background: #D1E7FF !important;
  }
  .autocomplete-richlistitem[selected=true]:hover {
    background: #D1E7FF !important;
  }
   .autocomplete-richlistitem:hover {
    background: #D1E7FF !important;
  }
 
  .autocomplete-richlistitem[selected=true] .ac-title, 
  .ac-title[selected],
  .autocomplete-richlistitem[selected=true] .ac-url, 
  .ac-url[selected],
  .autocomplete-richlistitem[selected=true] .ac-action,
  .ac-action[selected],
  .autocomplete-richlistitem[selected=true] .ac-separator,
  .ac-separator[selected] {
    color: #000 !important;
  }
	
/*下拉地址栏加星书签替换 Change Urlbar Dropdown bookmarked icon*/
.autocomplete-richlistitem[type=bookmark] .ac-type-icon {
	list-style-image: url("../images/barbookmark_starred.png")!important;
}
	
  /* 地址栏滚动栏 Ability to scroll in Fx57 */
  #PopupAutoCompleteRichResult .autocomplete-richlistbox > scrollbox {
    overflow-y: auto !important; 
    padding-right: 3px !important;
  }
  #PopupAutoCompleteRichResult .autocomplete-richlistbox {
    padding-right: 0 !important;
  }
}
  
/*隐藏地址栏搜索前进按钮*/
.urlbar-go-button {
	display: none !important;
}



/*START=================================================（07.Sidebar）=========================================================*/
/*================================================07.侧边栏调整 Sidebar Adjustment =============================================*/
.sidebar-header, #sidebar-header {
    font-size: 1.0em !important;
    padding: 0px 2px!important;
    border:none !important;
}

#sidebar-switcher-target{
	max-width:150px !important;
}


/*背景颜色 Background Color*/
#sidebar-header,#sidebar{
  background-color: #F8F8F8 !important;
}

/*下拉三角 Switcher Arrow*/
#sidebar-switcher-target {
  padding: 2px !important;
  margin: 0 !important;
}

#sidebar-switcher-arrow {
  display: none !important;
}


/*最大宽度和最小宽度调整 Sidebar min&max Height and Width*/
#sidebar-box,#sidebar{
    max-width:1280px !important;
	  min-width:5px !important;
}





/*START=================================================（08.SearchBar）=========================================================*/
/*===============================================08.搜索栏调整 SearchBar Adjustment===============================================*/
/*搜索栏双列搜索*//* Make the one-off buttons span the full width */
.searchbar-engine-one-off-item[tooltiptext] {
	width: 100% !important;
	height: 24px !important;
	background-image: none !important;
	padding-left: 6px !important;
	box-sizing: content-box !important;
	line-height: 1em !important;
	color:#000 !important;
}

/* Hide the empties */
.searchbar-engine-one-off-item:not([tooltiptext]) {
	display: none !important;
}

/* Fix up borders */
.searchbar-engine-one-off-item[tooltiptext], .addengine-item {
	border-bottom: 1px solid #ccc !important;
}

.search-setting-button.search-panel-header, .addengine-item,
.search-panel-header.search-panel-current-input {
	border-top: none !important;
	max-height: 26px !important;
	min-height: 16px !important;
	padding-top: 1px !important;
}

/* Insert descriptive name for search engine plugin */
.searchbar-engine-one-off-item[tooltiptext]::after {
	content: attr(tooltiptext);
	margin: 5px 6px 0px !important;
	display: block !important;
}

/* Fix icon positioning */
.searchbar-engine-one-off-item[tooltiptext] > .button-box {
	display: inline-flex !important;
	width: 16px !important;
	max-width: 16px !important;
	border: none !important;
	padding: 0 0 !important;
}

.searchbar-engine-one-off-item[tooltiptext] > .button-box > .button-icon {
	display: block !important;
	margin-top: 4px !important;
	margin-left: -1px !important;
}

/* Lock in space for 5 search suggestions with scroll bar */
#PopupSearchAutoComplete .autocomplete-tree.plain.search-panel-tree .tree-bodybox,
#PopupSearchAutoComplete .autocomplete-tree.plain.search-panel-tree .autocomplete-treebody {
	display: flex !important;
	flex: 1 1 auto !important;
}

#PopupSearchAutoComplete .autocomplete-tree.plain.search-panel-tree .autocomplete-treebody {
	max-height: calc(5 * 1.5em) !important;
	min-height: calc(5 * 1.5em) !important;
}

#PopupSearchAutoComplete .autocomplete-tree.plain.search-panel-tree .tree-scrollbar[collapsed="true"] {
	visibility: visible !important;
}

/* Two columns - standard spacing */
#PopupSearchAutoComplete {
	width: calc(21em + 4px) !important;
	min-width: calc(21em + 4px) !important;
}

.searchbar-engine-one-off-item[tooltiptext] {
	width: 10em !important;
	white-space: nowrap;
	overflow: hidden !important;
}

/* Hiding "Search for ..." */
.search-panel-header.search-panel-current-input {
	display: none !important;
}

/*搜索栏引擎图标替换*/
.searchbar-search-icon {
  list-style-image: url("../images/icons/search.png")!important;
}