.main-content {
    padding-top: 0;
}

.main-content .container {
    max-width: 1470px;
}

.content {
    max-width: 1030px;
    margin: 0 auto;
}

.car-intro {
    position: relative;
}

.car-intro .title {
    float: right;
    width: 35.2%;
    color: #333;
    font-size: 32px;
    font-weight: bold;
    line-height: 1.3;
}
.car-intro .download{
    width:35.2%;
    float: right;
    margin:20px 0 0 0px;
    display:flex;
    flex-direction: column;
    align-content: center;
    align-items: flex-start;
}
.car-intro .download a{
    min-width:185px;
    display:block;
    padding:5px 15px;
    color:#FFF;
    background:#E40011;
   /* white-space: nowrap; */
}
.car-intro .download a:hover{
    color:#FFF;
    background:#a5a5a5;
}
.car-intro .download a + a{
    margin: 10px 0 0 0;
}

.gallery {
    position: relative;
    margin-bottom: 50px;
}

.gallery .stage {
    float: left;
    width: 63.1%;
}

.gallery .thumbnails {
    width: 35.2%;
    position: absolute;
    right: 0;
    bottom: 0;
}

.gallery .thumbnails ul {
    margin: 0 -8px;
}

.gallery .thumbnails li {
    width: 33.33%;
    padding: 0 8px;
}

.gallery .thumbnails li a {
    max-width: 110px;
    margin: 16px auto 0;
    position: relative;
}

.gallery .thumbnails li a:hover:before,
.gallery .thumbnails li.active a:before {
    content: "";
    display: block;
    background: rgba(0, 0, 0, 0.75) url(../images/car_introduction/small_hover.png) no-repeat 50% 50%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.gallery-control {
    display: none;
}

.tab-nav {
    border-bottom: 1px solid #ccc;
    margin-bottom: 25px;
}

.tab-nav li+li {
    margin-left: 8px;
}

.tab-nav li a {
    border: 1px solid #ccc;
    background: #F2F2F2;
    color: #8D8D8D;
    font-size: 15px;
    padding: 4px 20px;
    margin: 0 0 -1px;
    letter-spacing: 1px;
}

.tab-nav li.active a {
    background: #fff;
    color: #666;
    border-bottom-color: #fff;
}

.p_title {
    font-size: 20px;
    font-weight: bold;
    padding: 5px 12px;
    border: 1px solid #CECECE;
    margin: 10px 0;
    display: block;
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    border-radius: 7px;
    background: #ffffff;
    /* Old browsers */
    background: -moz-linear-gradient(top, #ffffff 0%, #e8e8e8 102%);
    /* FF3.6-15 */
    background: -webkit-linear-gradient(top, #ffffff 0%, #e8e8e8 102%);
    /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom, #ffffff 0%, #e8e8e8 102%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e8e8e8', GradientType=0);
    /* IE6-9 */
}

.tab-box {
    position: relative;
    padding-top: 60px;
}

.tab-menu {
    position: relative;
    margin: 0 auto;
    text-align: center;
}

.tab-menu li {
    display: inline-block;
    float: none;
    margin: 0 -3px;
    width: 16.85%;
}
/*
.tab-menu li a {
    border: 1px solid #ccc;
    color: #FFFFFF;
    font-size: 20px;
    padding: 3px 10px;
    margin: 0 0 -1px;
    margin: 0 auto;
    letter-spacing: 1px;
    text-align: center;
background: rgb(255,38,38);
background: -moz-linear-gradient(top, rgba(255,38,38,1) 0%, rgba(150,0,0,1) 100%);
background: -webkit-linear-gradient(top, rgba(255,38,38,1) 0%,rgba(150,0,0,1) 100%);
background: linear-gradient(to bottom, rgba(255,38,38,1) 0%,rgba(150,0,0,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff2626', endColorstr='#960000',GradientType=0 );
}
.tab-menu li.active a {
background: rgb(150,0,0);
background: -moz-linear-gradient(top, rgba(150,0,0,1) 0%, rgba(255,38,38,1) 100%);
background: -webkit-linear-gradient(top, rgba(150,0,0,1) 0%,rgba(255,38,38,1) 100%);
background: linear-gradient(to bottom, rgba(150,0,0,1) 0%,rgba(255,38,38,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#960000', endColorstr='#ff2626',GradientType=0 );
}*/
.tab-menu li a {
     border: 1px solid #ccc;
    color: #FFFFFF;
    font-size: 20px;
    padding: 3px 10px;
    margin: 0 0 -1px;
    margin: 0 auto;
    letter-spacing: 1px;
    text-align: center;
    background: #FF2626;
    font-weight:bold;
}
.tab-menu li.active a {
     background: #555;
}

.tab-content {
    position: relative
}

.taba {
    position: absolute;
    top: -160px;
}

.topu {
    color: #8D8D8D;
    text-align: center;
}

/*
#tab-menu-2 {
    position: absolute;
    z-index: 900;
    top: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 1030px;
background: rgb(255,38,38);
background: -moz-linear-gradient(top, rgba(255,38,38,1) 0%, rgba(150,0,0,1) 100%);
background: -webkit-linear-gradient(top, rgba(255,38,38,1) 0%,rgba(150,0,0,1) 100%);
background: linear-gradient(to bottom, rgba(255,38,38,1) 0%,rgba(150,0,0,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff2626', endColorstr='#960000',GradientType=0 );
}*/

#tab-menu-2 {
    position: absolute;
    z-index: 900;
    top: 0;
    margin: 0 auto;
    /*width:700px;*/
    width: 100%;
    max-width: 1030px;
    background: #FF2626;
}
#tab-menu-2.header-fixed {
    position: fixed;
    top: 121px;
}

/* 分類 */

.car-list-title{
    color: #2A2A2A;
    font-size: 30px;
}

.category-box{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.category-box a{
    border: 1px solid #E40011;
    display: inline-block;
    padding: 3px 15px 2px;
    transition: all .3s ease;
    color: #E40011;
    border-radius: 25px;
    margin-left: 5px;
    margin-right: 5px;
    margin-bottom: 8px;
}
.category-box a:hover,
.category-box a.active{
    color: #FFF;
    background: #E40011;
}

@media screen and (max-width: 1260px) {
    #tab-menu-2.header-fixed {
        top: 151px;
    }
}

@media screen and (max-width: 767px) {
    .tab-box {
        padding-top: 0;
    }
    #tab-menu-2,
    #tab-menu-2.header-fixed {
        position: static;
    }
    .tab-menu li {
        width: 33.33%;
    }
    .taba {
        top: 0;
    }
}

@media screen and (max-width: 560px) {
    .tab-menu li {
        width: 50%;
    }
}
@media screen and (max-width: 400px) {
    .tab-menu li {
        width: 100%;
    }
}

@media screen and (max-width: 900px) {
    .car-intro .title {
        float: none;
        width: auto;
        margin: 0 auto 20px;
    }
    .gallery .stage {
        width: 70%;
    }
    .gallery .thumbnails {
        width: 28%;
    }
    .gallery .thumbnails li {
        width: 50%;
    }
    .car-intro .download{
        float: unset;
    }
}

@media screen and (max-width: 767px) {
    .gallery .thumbnails {
        margin: 0 -5px;
    }
    .gallery .thumbnails li {
        padding: 0 5px;
    }
    .gallery .thumbnails li a {
        margin-top: 10px;
    }
}

@media screen and (max-width: 600px) {
    .car-intro .title {
        font-size: 22px;
    }
    .gallery .stage {
        float: none;
        width: auto;
    }
    .gallery .thumbnails {
        display: none;
    }
    .gallery-control {
        display: block;
        font-size: 18px;
        line-height: 40px;
        text-align: right;
        padding-top: 10px;
    }
    .gallery-control .btn {
        color: #333;
        width: 40px;
        height: 40px;
        font-size: 30px;
        text-align: center;
    }
    .gallery-control .page-control {
        float: left;
        padding: 0 5px;
        color: #aaa;
    }
    .gallery-control .page-control .current {
        font-size: 30px;
        color: #333;
    }
}

@media screen and (max-width: 400px) {
    .tab-nav li+li {
        margin-left: 3px;
    }
    .tab-nav li a {
        padding: 4px 12px;
    }
}