//浮动
.fl{float:left;}
.fr{float:right;}
.fl(){ float:left; }
.fr(){ float:right; }

//position定位
.relative(){ position:relative; }
.absolute(){ position:absolute; }
.fixed(){position:fixed;}
.pos(@top:0,@right:0,@bottom:0,@left:0){ top:@top+0px;right:@right+0px;bottom:@bottom+0px;left:@left+0px; }
.posAbs(@top,@right,@bottom,@left){ .absolute;top:@top;right:@right;bottom:@bottom;left:@left; }
.posLT(@left:0,@top:0){ .absolute;left:@left+0px;top:@top+0px; }
.posRT(@right:0,@top:0){ .absolute;right:@right+0px;top:@top+0px; }
.posLB(@left:0,@bottom:0){ .absolute;left:@left+0px;bottom:@bottom+0px; }
.posRB(@right:0,@bottom:0){ .absolute;right:@right+0px;bottom:@bottom+0px; }
.posTop(@top:0){.absolute;left:0;right:0;top:@top+0px;}
.posBottom(@bottom:0){.absolute;left:0;right:0;bottom:@bottom+0px;}
.posLeft(@left:0){.absolute;top:0;bottom:0;left:@left+0px;}
.posRight(@right:0){.absolute;top:0;bottom:0;right:@right+0px;}
.clear{clear: both}

//flex布局
.flexContainer(){
    display: -moz-box;
    display: -webkit-box;
}
.flexContents(){
    -moz-box-flex:1;
    -webkit-box-flex:1;
}
.flexVertical(){
    -moz-box-orient: vertical;
    -webkit-box-orient: vertical;
}

//margin水平居中
.marginCenter(@top:0,@bottom:0){margin:@top+0px auto @bottom+0px auto;}
//css3 绝对居中
.absCenter(){display:-webkit-box;-webkit-box-pack:center;-webkit-box-align:center;}
.verticalCenter(){
    display:-webkit-box;
    -webkit-box-pack:center;
    -webkit-box-align:start;
    -webkit-box-orient:vertical;
}

//矩形大小
.size(@width,@height){ width:@width+0px;height:@height+0px; }
.width(@width){width:@width+0px;}
.height(@height){height:@height+0px;}

//百分比宽高
.sizePer(@per:100%){ width:@per;height:@per; }
.withPer(@per){ width:@per; }
.heightPer(@per){ height:@per; }

//显示隐藏 display
.hide{display : none;}
.show{display : block;}
.none(){display:none !important;}
.hide(){ display:none; }
.dBlock(){ display:block; }
.dInline(){ display:inline; }
.dInlineBlock(){display:inline-block; }

//光标
.cursor(@cursor:pointer){ cursor:@cursor; }
.cursorArrow(){ cursor:default;}

//文本样式
.fontArial(){font-family:Arial;}
.font(@size:12){ font-size:0px+@size}
.font12(){ .font(12); }
.font13(){ .font(13); }
.font14(){ .font(14); }
.font16(){ .font(16); }
.font18(){ .font(18); }
.font20(){ .font(20); }
.font24(){ .font(24); }

.fontBold(){font-weight:bold;}
.fontWhite(){color:#FFFFFF;}

.fontNum(){ font-family:Arial; }

//icon
.icon(@width,@height,@bg:#999999){.size(@width,@height);background:@bg;}
.iconRect(@long,@bg:#999999){.size(@long,@long);.bgColor(@bg);}
.icon12(){.iconRect(12);}
.icon16(){.iconRect(16);}
.icon20(){.iconRect(20);}
.icon24(){.iconRect(24);}

//文本对齐
.textCenter(){ text-align:center; }
.textLeft(){ text-align:left; }
.textRight(){ text-align:right; }
.textTop(){ vertical-align:top; }
.textBottom(){ vertical-align:bottom; }
.textMiddle(){ vertical-align:middle; }
.underline(@line:underline){text-decoration:@line;}
.autoBreak(){word-wrap:break-word;word-break:normal;}
.nowrap(){white-space:nowrap;}
.textMore(){word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

//背景
.background(@color,@img,@x,@y,@repeat){background:@arguments;}
.bgImg(@img,@x:0,@y:0,@repeat:no-repeat){ background: @img 0px+@x 0px+@y @repeat; }
.bgColor(@color:transparent){ background-color: @color;}
.bgPos(@x,@y){ background-position:@x @y;}
.bgWhite(){background:#FFFFFF;}
.bgNone(){background:transparent;}
.bgColorNone(){background-color:transparent;}

//边框
.borderNone(){border:0;}
.border(@color:@color-black,@width:1px,@style:solid){ border:@width+0px @style @color; }
.borderTop(@color:@color-black,@width:1px,@style:solid){ border-top:@width+0px @style @color; }
.borderRight(@color:@color-black,@width:1px,@style:solid){ border-right:@width+0px @style @color; }
.borderBottom(@color:@color-black,@width:1px,@style:solid){ border-bottom:@width+0px @style @color; }
.borderLeft(@color:@color-black,@width:1px,@style:solid){ border-left:@width+0px @style @color; }

//圆角
.radius(@radius:3){
    -moz-border-radius: @radius+0px;
    -webkit-border-radius: @radius+0px;
    border-radius: @radius+0px;
}
.radiusTop(@radius:3){
    -moz-border-radius: @radius+0px @radius+0px 0 0;
    -webkit-border-radius: @radius+0px @radius+0px 0 0;
    border-radius: @radius+0px @radius+0px 0 0;
}
.radiusBottom(@radius:3){
    -moz-border-radius:0 0 @radius+0px @radius+0px;
    -webkit-border-radius:0 0 @radius+0px @radius+0px;
    border-radius:0 0 @radius+0px @radius+0px;
}
//文字显示行高
.textHeight(@height){height: 0px+@height;line-height:0px+@height}

//图片按钮
.imgBtn(@w,@h,@img,@x,@y){ .size(@w,@h);.bgImg(@img,@x,@y);.cursor;}

//透明度
.alpha(@val){
    opacity:@val/100;
    filter:alpha(opacity=@val);
}

//固定的整个视窗大小的定位
.fixFullPage(){
    position:fixed;left:0;right:0;top:0;bottom:0;
}

//@样式
.wk_atLink {
    cursor: default;
    font-weight: bold;
    color: #000;
}