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

a { text-decoration: none;}

/* 隐藏加载失败的图片占位符 */
img {
    text-indent: -10000px;
    overflow: hidden;
}

img[src=""] {
    display: none;
}

#container {
    left: 0; right: 0; top: 0;  bottom: 0;
    position: fixed;
    overflow: hidden;
    min-width: 500px;
}
#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 .close {
    width: 20px;
    height: 20px;
    right: 20px;
    top: 10px;
    position: absolute;
    cursor: pointer;
    background-color: transparent;
}

#control .top .close::before,
#control .top .close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #FFF;
    top: 50%;
    left: 50%;
    transform-origin: center;
}

#control .top .close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

#control .top .close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.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;
    z-index: 0;
}
.hide { display: none; }

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

/* 预加载器 - 用于提前加载资源 */
#preloader {
    width: 0;
    height: 0;
    display: inline-block;
    overflow: hidden;
}

#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; }

/* 水平线1 - 使用CSS渐变 */
#test-horizontal-line-1px {
    background-color: #000;
    background-image: repeating-linear-gradient(to bottom, #FFF 0px, #FFF 1px, #000 1px, #000 2px);
}

/* 水平线2 - 使用CSS渐变 */
#test-horizontal-line-2px {
    background-color: #000;
    background-image: repeating-linear-gradient(to bottom, #FFF 0px, #FFF 2px, #000 2px, #000 4px);
}

/* 垂直线1 - 使用CSS渐变 */
#test-vertical-line-1px {
    background-color: #000;
    background-image: repeating-linear-gradient(to right, #FFF 0px, #FFF 1px, #000 1px, #000 2px);
}

/* 垂直线2 - 使用CSS渐变 */
#test-vertical-line-2px {
    background-color: #000;
    background-image: repeating-linear-gradient(to right, #FFF 0px, #FFF 2px, #000 2px, #000 4px);
}

/* 点阵1 - 使用CSS径向渐变 */
#test-dots-1px {
    background-color: #000;
    background-image: radial-gradient(circle, #FFF 1px, transparent 1px);
    background-size: 4px 4px;
}

/* 点阵2 - 使用CSS径向渐变 */
#test-dots-2px {
    background-color: #000;
    background-image: radial-gradient(circle, #FFF 2px, transparent 2px);
    background-size: 8px 8px;
}

/* 正斜线1 - 使用CSS线性渐变 */
#test-cross-1px {
    background-color: #000;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 10px, #FFF 10px, #FFF 11px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, #FFF 10px, #FFF 11px);
}

/* 正斜线2 - 使用CSS线性渐变 */
#test-cross-2px {
    background-color: #000;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 10px, #FFF 10px, #FFF 12px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, #FFF 10px, #FFF 12px);
}

/* 微型图案 - 使用CSS创建测试图案 */
#test-pattern {
    background-color: #000;
    background-image:
        /* 左上角 */
        conic-gradient(from 0deg at 20% 20%, #FFF 0deg 90deg, transparent 90deg),
        /* 右上角 */
        conic-gradient(from 90deg at 80% 20%, #FFF 0deg 90deg, transparent 90deg),
        /* 左下角 */
        conic-gradient(from 270deg at 20% 80%, #FFF 0deg 90deg, transparent 90deg),
        /* 右下角 */
        conic-gradient(from 180deg at 80% 80%, #FFF 0deg 90deg, transparent 90deg),
        /* 中心 */
        radial-gradient(circle at 50% 50%, #FFF 0px, #FFF 20px, transparent 20px);
    background-size: 100% 100%;
}

/* 方形网格 - 使用CSS渐变 */
#test-white-grid {
    background-color: #000;
    background-image:
        repeating-linear-gradient(to right, #FFF 0px, #FFF 1px, transparent 1px, transparent 45px),
        repeating-linear-gradient(to bottom, #FFF 0px, #FFF 1px, transparent 1px, transparent 45px);
}

/* 彩色网格 - 使用CSS渐变 */
#test-convergence {
    background-color: #000;
    background-image:
        repeating-linear-gradient(to right, #F00 0px, #F00 1px, transparent 1px, transparent 45px),
        repeating-linear-gradient(to bottom, #0F0 0px, #0F0 1px, transparent 1px, transparent 45px);
}

#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: 10%;
    top: 10%;
    height: 80%;
    width: 80%;
    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;
}

/* 闪烁方块 - 使用CSS动画 */
#test-stability table td {
    border: 6px solid #000;
    background-color: #000;
    animation: breathing 1s infinite alternate;
}

@keyframes breathing {
    0% { background-color: #000; }
    100% { background-color: #FFF; }
}

.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; }

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

#welcome  { margin: 0; height: 100%; width: 100%; position: fixed; background-color: white; }
#welcome  .wrapper { margin: 0 auto; width: 780px; margin: 0 auto; position: relative; }
#welcome .top { position: absolute; top:48px; height: 480px; }
#welcome .left { width: 360px; border-right: 2px dashed black; left:0; }
#welcome .left table { margin: 0 auto; border-spacing: 0; border: 3px solid #000; position: relative; top: 12px; }
#welcome .left table td { font-family: SimHei, Arial, Helvetica, sans-serif; text-align: center; width: 300px; word-wrap: break-word; }
#welcome .left table thead { font-size: 60px; background-color: #FFF; color: #000; }
#welcome .left table tbody { font-size: 40px; background-color: #000; color: #FFF; }
#welcome .left table .online {
    position: absolute;
    right: -8px; top: -5px;
    display: block;
    font-size: 14px;
    background-color: #3D7;
    width: 40px;
    height:18px;
    line-height: 18px;
    border-radius: 5px;
    color: #FFF;
}

#welcome .left table .version {
    position: absolute;
    right: 0px; bottom: 0px;
    display: block;
    font-size: 10px;
    text-align: right;
    padding: 3px;
    width: 40px;
    color: #FFF;
}

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

#welcome .left .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;
}

#welcome .right { width: 360px; right:0; padding: 12px; }
#welcome .right .disclaimer, #welcome .right .seo { font-size: 9px; color: #DDD; }

#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;
}
