/* ==========================================================================
   Lonshin Fasteners - adjustments on top of the original BS3 theme
   ========================================================================== */

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Muli", Arial, "Helvetica Neue", Helvetica, sans-serif;
    color: #666;
    background: #fff;
}

img {
    max-width: 100%;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header-top .login a {
    color: #fff;
}

.header-top-right .login {
    margin-left: 16px;
}

.header-main .logo img {
    max-width: 210px;
    height: auto;
}

.logo-text {
    display: inline-block;
    font-family: "Anton", Arial, sans-serif;
    font-size: 22px;
    letter-spacing: .5px;
    color: #2f2f2f;
    text-transform: uppercase;
}

.nav-main {
    float: right;
}

/* The 2014 theme enables flexnav through jQuery; this build keeps the same
   look but drives the mobile menu with a plain toggle in site.js. */
.nav-main .flexnav {
    max-height: none;
    overflow: visible;
    background: transparent;
    margin: 0;
    padding: 0;
}

.nav-main .flexnav.opacity {
    opacity: 1;
    filter: none;
}

.nav-main .flexnav > li {
    border-top: none !important;
}

/* 旧模板没处理焦点态，浏览器默认会在整条导航（行高 114px）外面画一圈黑框，
   鼠标按下非常突兀。这里去掉默认描边，只给键盘操作保留一条主题色细边。 */
.nav-main .flexnav > li > a,
.header-top .login a,
.footer a {
    outline: none;
}

.nav-main .flexnav > li > a:focus {
    outline: none;
}

.nav-main .flexnav > li > a:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: -3px;
}

.header-main .navbar-toggle {
    display: none;
    float: right;
    margin: 18px 0;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: transparent;
}

.header-main .navbar-toggle i {
    font-size: 20px;
    color: #2f2f2f;
}

@media (max-width: 991px) {
    .header-main .navbar-toggle {
        display: inline-block;
    }

    .nav-main {
        display: none;
        float: none;
        width: 100%;
        clear: both;
        min-height: 0;
    }

    .nav-main.open {
        display: block;
    }

    .nav-main .flexnav {
        margin: 0 -15px;
        padding: 0;
        background: #2f2f2f;
    }

    .nav-main .flexnav > li {
        display: block;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .nav-main .flexnav > li > a {
        display: block;
        color: #fff;
        padding: 12px 15px;
        line-height: 1.4;
        text-transform: uppercase;
    }

    .nav-main .flexnav > li.active > a,
    .nav-main .flexnav > li > a:hover {
        color: #fff;
        background: #3498db;
    }
}

/* --------------------------------------------------------------------------
   Home
   -------------------------------------------------------------------------- */
.hero-banner {
    overflow: hidden;
    line-height: 0;
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.page-content .call-to-action {
    margin-top: 0;
}

.section-dark .project-desc {
    text-align: center;
}

.product-grid .project-img {
    background: #fff;
}

.product-grid .project-img img {
    width: 100%;
    height: auto;
    display: block;
}

.section-more {
    margin-top: 10px;
}

.home-bottom {
    margin-top: 60px;
}

.testimonial p {
    font-style: italic;
    margin: 0;
}

.bq-author h6 {
    margin: 0 0 2px;
    font-family: "Anton", Arial, sans-serif;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.bq-author-info {
    color: #999;
    font-size: 13px;
}

#accordion .panel-title a {
    display: block;
    text-decoration: none;
}

#accordion .panel-title a.collapsed:after {
    content: "\f067";
    font-family: FontAwesome;
    float: right;
    font-size: 12px;
    color: #999;
}

#accordion .panel-title a:after {
    content: "\f068";
    font-family: FontAwesome;
    float: right;
    font-size: 12px;
    color: #999;
}

/* --------------------------------------------------------------------------
   Inner pages
   -------------------------------------------------------------------------- */
.category-intro {
    margin-bottom: 40px;
    color: #666;
}

.page-heading .breadcrumb {
    margin-bottom: 0;
}

.single-page-img img {
    width: 100%;
    height: auto;
}

.single-page-body {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
}

.single-page-body h2:first-child,
.single-page-body h3:first-child {
    margin-top: 0;
}

.factory-gallery .gallery-item {
    margin-bottom: 30px;
}

.factory-gallery .gallery-item img {
    width: 100%;
    height: auto;
    border: 1px solid #e8e8e8;
}

.product-detail-img {
    margin: 0 0 30px;
    text-align: center;
}

.product-detail-img img {
    width: 100%;
    height: auto;
    max-width: 800px;
    background: #fff;
    border: 1px solid #eee;
}

.product-detail-title {
    margin-top: 0;
}

.product-detail-lead {
    color: #999;
    margin-bottom: 24px;
}

.product-detail-actions {
    margin-top: 24px;
}

.product-detail-actions .btn {
    margin: 0 8px 8px 0;
}

.richtext img {
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   Contacts
   -------------------------------------------------------------------------- */
.contact-info {
    padding: 0 10px 20px;
}

.contact-info i {
    font-size: 34px;
    color: #3498db;
    margin-bottom: 14px;
}

.contact-info h4 {
    margin-top: 0;
}

.contact-map-wrapper {
    margin-bottom: 20px;
}

.contact-map img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #e5e5e5;
}

/* 地图与留言表左右各半栏 */
.contact-map-form > div > .title-accent:first-child {
    margin-top: 0;
}

.contact-map-form .form-group {
    margin-bottom: 18px;
}

@media (max-width: 991px) {
    .contact-map-form > .col-md-6 + .col-md-6 {
        margin-top: 40px;
    }
}

/* --------------------------------------------------------------------------
   Search / 404
   -------------------------------------------------------------------------- */
.search-result {
    border-bottom: 1px solid #eee;
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.search-result h3 {
    margin-top: 0;
}

.not-found-code {
    font-size: 96px;
    line-height: 1;
    color: #3498db;
    margin: 0 0 10px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer .footer-copyright {
    padding: 22px 0;
}

.footer .footer-phone {
    margin-left: 12px;
}

.footer-top-link {
    text-align: right;
}

.footer-top-link a {
    color: #fff;
    font-size: 13px;
}

@media (max-width: 767px) {
    .footer-top-link {
        text-align: left;
        margin-top: 8px;
    }

    .hero-banner img {
        min-height: 150px;
        object-fit: cover;
    }
}
