body, ul, li {
    margin: 0;
    padding: 0;
}

a { text-decoration: none;}

#container {
    left: 0; right: 0; top: 0;  bottom: 0;
    position: absolute;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}
#container.testing {
    position: fixed;
    overflow: hidden;
}
#control .panel {
    position: absolute;
    width: 100%;
    background-color: rgba(64, 64, 64, 0.5);
    z-index: 2;
    overflow: hidden;
    transition: all 1s ease-out;
}

.control_hide .top { top: -40px; }
.control_show .top { top: 0;}
#control .top { height: 40px; color: #FFF; }
#control .top  .title {
    font-family: simhei;
    font-size: 24px;
    line-height: 40px;
    margin: 0 20px;
}
#control .top  .description { font-size: 12px; }
#control .top  .quanping { font-size: 12px; }

.control_show .bottom { bottom: 0;}
.control_hide .bottom { bottom: -80px; }
#control .bottom { height: 80px; }
#control .bottom .wrapper {
    width: 10000px;
    position: relative;
    transition: all 1s ease-out;
}
#control .bottom .wrapper a {
    border: 1px solid #FFF;
    float: left;
    margin: 10px 0 0 5px;
    display: block;
    width: 150px;
    color: #FFF;
    height: 60px;
    cursor: pointer;
    text-align: center;
    vertical-align: bottom;
    border-radius: 3px;
    background-color: rgba(0,0,0,0.5);
    line-height: 60px;
}
#control .bottom .triangle {
    position: absolute;
    border-color: transparent transparent #FFF;
    border-style: solid;
    border-width: 0 50px 10px;
    height: 0;
    width: 0;
    left: 50%;
    margin: 0 0 0 -50px
}


.slide {
    width: 100%;
    height: 100%;
    position: relative;
    list-style:none;
    display: none;
    z-index: 0;
}
.slide:target {
    display: block;
}
.hide { display: none; }

#main { width: 100%; height: 100%; position: relative; }    

#preloader {
    background:
        url("img/horizontal-line-1px.gif"),
        url("img/horizontal-line-2px.gif"),
        url("img/vertical-line-1px.gif"),
        url("img/vertical-line-2px.gif"),
        url("img/dots-1px.gif"),
        url("img/dots-2px.gif"),
        url("img/cross-1px.gif"),
        url("img/cross-2px.gif"),
        url("img/boxes-5px.png"),
        url("img/white-grid-45px.png"),
        url("img/convergence-45px.png"),
        url("img/breathing-block.gif");
    width: 0;
    height: 0;
    display: inline-block;
}

#test-solid-red { background-color: #F00; }
#test-solid-green { background-color: #0F0; }
#test-solid-blue { background-color: #00F; }
#test-solid-yellow { background-color: #FF0; }
#test-solid-cyan{ background-color: #0FF; }
#test-solid-magenta { background-color: #F0F; }
#test-solid-white{ background-color: #FFF; }
#test-solid-black { background-color: #000; }

#test-horizontal-line-1px { background: #000 url("../images/horizontal-line-1px.gif") repeat center center; }
#test-horizontal-line-2px { background: #000 url("../images/horizontal-line-2px.gif") repeat center center; }
#test-vertical-line-1px { background: #000 url("../images/vertical-line-1px.gif") repeat center center; }
#test-vertical-line-2px { background: #000 url("../images/vertical-line-2px.gif") repeat center center; }
#test-dots-1px { background: #000 url("../images/dots-1px.gif") repeat center center; }
#test-dots-2px { background: #000 url("../images/dots-2px.gif") repeat center center; }
#test-cross-1px { background: #000 url("../images/cross-1px.gif") repeat center center; }
#test-cross-2px { background: #000 url("../images/cross-2px.gif") repeat center center; }

#test-pattern {
    background-color: #000;
    background: url("../images/boxes-5px.png") no-repeat top left,
    url("../images/boxes-5px.png") no-repeat top right,
    url("../images/boxes-5px.png") no-repeat bottom left,
    url("../images/boxes-5px.png") no-repeat bottom right,
    url("../images/boxes-5px.png") no-repeat center center #000;
}

#test-white-grid { background: #000 url("../images/white-grid-45px.png") repeat center center; }
#test-convergence { background: #000 url("../images/convergence-45px.png") repeat center center; }

#test-contrast-white { background-color: #FFF; color: #000; }
#test-contrast-black { background-color: #000; color: #FFF; }

.test-contrast table {
    border-collapse:collapse;
    position: relative;
    left: 2%;
    top: 10%;
    height: 80%;
    width: 96%;
    text-align: center;
    border-spacing: 0;
}
.test-contrast table td { width: 10%; padding: 0; }
.test-contrast table .color td { height:22%; }
.test-contrast table .ruler td { height:2.2%; border: 1px #808080; border-style: none solid; }
.test-contrast i { font-size: 10px; font-style:normal; }

#test-saturation  img{ width: 100%; height: 100%; }

#test-stability  table {
    border: 2px solid #FFF;
    height: 100%; width: 100%;
    border-spacing: 0;
}

#test-stability  table td {
    border: 6px solid #000;
    background: #000 url("../images/breathing-block.gif") repeat center center;
}

.test-gradient  img{ width: 100%; height: 100%; }
#test-gradient-red { background-color: #F00; }
#test-gradient-green { background-color: #0F0; }
#test-gradient-blue { background-color: #00F; }
#test-gradient-white { background-color: #FFF; }

/* 渐变测试 - 使用CSS生成 */
#test-gradient-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, #000000 0%, #ffffff 100%);
}
#test-gradient-red::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, #000000 0%, #ff0000 100%);
}
#test-gradient-green::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, #000000 0%, #00ff00 100%);
}
#test-gradient-blue::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, #000000 0%, #0000ff 100%);
}

/* 饱和度测试 - 使用CSS生成 */
#test-saturation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, 
        #ff0000 0%, 
        #ffff00 17%, 
        #00ff00 33%, 
        #00ffff 50%, 
        #0000ff 67%, 
        #ff00ff 83%, 
        #ff0000 100%
    );
}

#test-last { background-color: #000; text-align: center; color: #FFF; }
#test-center { padding: 50px; }

#welcome  { margin: 0; height: auto; min-height: 100%; width: 100%; position: relative; background-color: white; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#welcome  .wrapper { margin: 0 auto; width: 92%; position: relative; padding-top: 20px; padding-bottom: 60px; }
#welcome  .wrapper .juzhong {
    text-align: center;
}



#welcome  .wrapper p {
    font-size: 14px;
    line-height: 18px;
}
#welcome .start {
    color: #FFF;
    height: 40px;
    line-height: 40px;
    width: 200px;
    background-color: #3D7;
    margin: 40px auto;
    display: block;
    box-shadow: 0 0 20px rgba(79, 209, 143, 0.6);
    transition: all 0.5s;
}

#welcome .start:hover {
    background-color: #2C6;
    box-shadow: 0 0 20px rgba(79, 209, 143, 0.9);
}

#welcome .button {
    text-align: center;
    font-family: SimHei, Arial, Helvetica, sans-serif;
    font-size: 18px;
    cursor: pointer;
}


#resolution_tips {
    background-color: rgba(0, 0, 0, 0.75);
    border-radius: 20px 20px 20px 20px;
    color: #FFFFFF;
    font-family: arial;
    font-size: 48px;
    height: 120px;
    left: 50%;
    line-height: 120px;
    margin: -60px -150px;
    position: absolute;
    text-align: center;
    top: 50%;
    width: 300px;
    z-index: 1;
}
.quanping a {
    color: #FFF;
    display: block;
    float: right;
    border: 1px solid #CCC;
    line-height: 24px;
    height: 24px;
    padding-right: 5px;
    padding-left: 5px;
    margin-top: 6px;
    margin-right: 14px;
}

.nry_bt {
    clear: both;
    width: 98%;
    height: 70px;
    display: block;
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

.nry_bt h1 {
    margin-left: 10px;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    font-weight: normal;
    font-family: "\u9ed1\u4f53";
    color: #333;
    font-size: 44px;
    display: inline-block;
    text-overflow: ellipsis;
    overflow: hidden;
}
