/*

eflux Template

https://templatemo.com/tm-531-reflux

*/

@import url(fontawesome.css);
@import url("https://fonts.googleapis.com/css?family=Lato:100,300,400,700,900");
body {
    font-family: 'Lato', sans-serif;
}

#page-wraper {
    background: url(../images/page-bg.jpg) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    width: 100%;
}


/* =======================Basic =========================*/

body {
    overflow-x: hidden;
}

input,
select,
textarea {
    outline: none;
}

a,
a:hover {
    text-decoration: none;
}

p {
    font-size: 16px;
    line-height: 24px;
    color: #fff;
}

h4 {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.25px;
}

img {
    width: 100%;
    overflow: hidden;
}

ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

ul li {
    display: inline-block;
}

html {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

*,
*:before,
*:after {
    -webkit-box-sizing: inherit;
    -moz-box-sizing: inherit;
    box-sizing: inherit;
}

.clearfix {
    zoom: 1;
}

.clearfix:before,
.clearfix:after {
    content: "";
    display: table;
}

.clearfix:after {
    clear: both;
}

.container {
    margin: 0 auto;
}

.main-nav {
    text-align: center;
}

.main-nav li:last-child a {
    border-bottom: 2px solid #fff;
}

.main-nav li {
    display: block;
}

.main-nav li a {
    height: 70px;
    line-height: 70px;
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    width: 100%;
    transition: all 0.5s;
    border-top: 2px solid #fff;
}

.main-nav li:hover a,
.main-nav li.active a {
    background: #fff;
    color: #8c363e;
}

/*==========Sidebar Menu ===========*/

.menu .image {
    margin-top: 60px;
}

.menu .image img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    text-align: center;
}

.menu .author-content {
    margin: 40px 0px 60px 0px;
}

.menu .author-content h4 {
    margin-bottom: 0px;
}

.menu .author-content span {
    font-size: 13px;
    font-style: italic;
    color: #fff;
    white-space: pre-line;
    text-align: center;
}

.menu .copyright-text {
    position: relative;
    margin-top: 60px;
}

.menu .copyright-text p {
    border-top: 1px solid rgba(250, 250, 250, 0.1);
    display: inline-block;
    width: 100%;
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 30px;
    font-size: 13px;
}

.menu:before,
.menu:after {
    content: "";
    display: table;
}

.menu:after {
    clear: both;
}

.menu a {
    text-decoration: none;
    color: inherit;
}

.menu {
    text-align: center;
}

.menu::-webkit-scrollbar {
    display: none;
}

.menu {
    left: 10%;
  -webkit-transition: -webkit-transform 233ms cubic-bezier(0, 0, 0.21, 1);
  -webkit-overflow-scrolling: touch;
  background-color: #a43f49;
  box-sizing: border-box;
  height: 100vh;  
  max-height: 100vh !important;
  max-width: 80vw !important;
  min-width: 45px !important;
  outline: none;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 0;
  position: fixed !important;
  top: calc(0px);  
  width: 20%;
  will-change: transform;
  z-index: 9999 !important;
}

.menu-toggle {
  color: #fff;
  cursor: pointer;
  font-size: 25px;
  position: fixed;
  right: 25px;
  top: 25px;
}

#menu-toggle {
    z-index: 999;
    cursor: pointer;
    position: fixed;
    top: 0;
    left: 0;
    color: #a43f49;
    background-color: #fff;
    width: 60px;
    height: 60px;
    text-align: center;
    display: inline-block;
    line-height: 60px;
}

.menu-close {
  cursor: pointer;
}

#menu-close {
    cursor: pointer;
    text-align: right;
    color: #a43f49;
    background-color: #fff;
    width: 100%;
    height: 60px;
    text-align: center;
    display: inline-block;
    line-height: 60px;
}


/*==========Section ===========*/

.section {
    color: #fff;
    width: 55%;
    right: 10%;
    left: 35%;
    position: relative;
    padding-bottom: 30px;
    border-bottom: 3px solid rgba(250, 250, 250, 0.25);
}

.section-heading {
    text-align: center;
    padding: 80px 45px;
}

.section-heading h2 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
}

.section-heading h3 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.section-heading .line-dec {
    width: 60px;
    height: 3px;
    background-color: #a43f49;
    margin: 10px auto;
}

.section-heading span {
    margin-top: 5px;
    font-size: 16px;
    color: #fff;
    letter-spacing: 0.5px;
}


/* ==========Buttons ===========*/ 
.white-button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
}
.white-button-container.two-buttons {
    justify-content: space-evenly;
    gap: 5px;
}

.white-button a {
    display: inline-block;
    padding: 12px 20px;
    background-color: #fff;
    color: #a43f49;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.5s;
}

.white-button a:hover {
    background-color: #a43f49;
    color: #fff;
}

button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #fff;
    color: #a43f49;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.5s;
    border: none;
    outline: none;
    cursor: pointer;
}

    button:hover {
        outline: none;
        background-color: #a43f49;
        color: #fff;
    }

/* ==========Left & Right Post ===========*/ 

.left-image-post,
.right-image-post {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 2px solid rgba(250, 250, 250, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.row{
    display: flex;
    align-items: center;
    width: 100%;
}

.left-image,
.right-image {
    border-radius: 5px;
}

.left-image {
    margin-right: 30px;
}

.right-image {
    margin-left: 30px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    padding-top: 56.25%;
    margin: 0 auto;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}



.right-image-post h4,
.left-image-post h4 {
    margin-top: 30px;
}

.right-image-post p,
.left-image-post p {
    margin-top: 20px;
    word-wrap: break-word;
    word-break: normal;
}

.right-image-post .white-button,
.left-image-post .white-button {
    margin-top: 30px;
}

/* ==========Services  ===========*/

.my-services .col-md-6 {
    padding-left: 5px;
    padding-right: 5px;
}

.service-item {
    margin-bottom: 10px;
    padding: 50px;
    background-color: rgba(250, 250, 250, 0.1);
    transition: all 0.5s;
}

.service-item h4 {
    transition: all 0.5s;
}

.service-item p {
    transition: all 0.5s;
}

.service-item:hover {
    background-color: rgba(250, 250, 250, 1);
}

.service-item:hover h4 {
    color: #1e1e1e;
}

.service-item:hover p {
    color: #4a4a4a;
}

.service-item .service-icon {
    width: 70px;
    height: 70px;
    display: inline-block;
    margin-bottom: 30px;
    background-size: cover;
    background-repeat: no-repeat;
    transition: all 0.5s;
}

.service-item .first-service-icon {
    background-image: url(../images/first-white-icon.png);
}

.service-item:hover .first-service-icon {
    background-image: url(../images/first-main-icon.png);
}

.service-item .second-service-icon {
    background-image: url(../images/second-white-icon.png);
}

.service-item:hover .second-service-icon {
    background-image: url(../images/second-main-icon.png);
}

.service-item .third-service-icon {
    background-image: url(../images/third-white-icon.png);
}

.service-item:hover .third-service-icon {
    background-image: url(../images/third-main-icon.png);
}

.service-item .fourth-service-icon {
    background-image: url(../images/fourth-white-icon.png);
}

.service-item:hover .fourth-service-icon {
    background-image: url(../images/fourth-main-icon.png);
}


/* ==========My Work ===========*/ 

section.my-work .section-heading {
    text-align: center;
    padding: 80px 45px 50px 45px;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    background-color:rgba(250, 250, 250, 0.1);
    gap: 15px;
}

.image-gallery img {
    display: block;
    width: 100%;
    max-width:100%;
    height:auto;
    margin:2px;
}


/* ========== Contact Me ===========*/  
section.contact-me {
    border-bottom: none;
}

#contact input {
    background-color: rgba(250,250,250,0.1);
    border: 1px solid rgba(250,250,250,1);
    border-radius: 0px;
    margin-bottom: 30px;
    color: #fff;
    font-size: 14px;
    height: 40px;
    line-height: 40px;
    width: 100%;
    padding-left: 15px;
}

#contact input:focus {
    outline: none;
    box-shadow: none;
}

#contact textarea {
    background-color: rgba(250,250,250,0.1);
    border: 1px solid rgba(250,250,250,1);
    border-radius: 0px;
    margin-bottom: 30px;
    color: #fff;
    font-size: 14px;
    height: 180px;
    max-height: 220px;
    line-height: 40px;
    width: 100%;
    padding-left: 15px;
}

#contact textarea:focus {
    outline: none;
    box-shadow: none;
}

#contact {
    text-align: center;
}

/*========Detail Page============*/


/* 基础样式 */
.nav-link {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 30px;
}

/* 下拉容器 */
.dropdown {
    position: relative;
}

/* 下拉菜单 */
.dropdown-menu {
    display: none; /* 默认隐藏 */
    list-style: none;
    margin: 0;
    padding: 10px 0;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #a43f49;
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000; /* 确保在最上层 */
}

/* 鼠标悬浮显示菜单 */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* 下拉项 */
.dropdown-item {
    display: block;
    padding: 8px 20px;
    color: #FFFFFF;
    text-decoration: none;
}
    /* 下拉项悬浮效果 */
    .dropdown-item:hover {
        background-color: #8f3540;
    }



/* Main 1 */
.main.style1 {
    background: #fff;
}

    .main.style1 a {
        border-bottom-color: rgba(0, 0, 0, 0);
    }

        .main.style1 a:hover {
            color: #ffffff;
        }

    .main.style1 p {
        color: #000000;
        font-weight: 300;
    }



/* Main 2 */
.main.style2 {
    background-attachment: fixed, fixed;
    background-image: url("images/overlay1.png"), url("../../images/header.jpg");
    background-size: auto, cover;
}

    .main.style2 a {
        border-bottom-color: rgba(255, 255, 255, 0);
    }

        .main.style2 a:hover {
            color: #ffffff;
        }

    .main.style2 h1,
    .main.style2 h2,
    .main.style2 h3,
    .main.style2 h4,
    .main.style2 h5,
    .main.style2 h6,
    .main.style2 strong,
    .main.style2 b {
        color: #ffffff;
    }

    .main.style2 p {
        color: #e0e0e0;
        font-weight: 300;
    }

    .main.style2 header.major:after {
        background: #ffffff;
    }

    .main.style2 ul.major-icons li .icon {
        border-color: #ffffff;
    }

    .main.style2 .icon.major {
        color: #ffffff;
    }

/* Main 3 */
.main.style3 {
    background: #fff;
}

    .main.style3 a {
        border-bottom-color: rgba(0, 0, 0, 0);
    }

        .main.style3 a:hover {
            color: #ffffff;
            font-weight: bold;
        }

/*Image*/
.image.fit {
    display: block;
    margin: 0 0 2em 0;
    width: 100%;
}

    .image.fit img {
        width: 100%;
    }

/* ==============Footer ===============*/

#footer {
    padding: 2em 0 2em 0;
    background-color: #a43f49;
    color: #ffffff;
    background-attachment: fixed, fixed, fixed;
    background-image: url("images/overlay2.png"), url("images/overlay4.svg"), linear-gradient(#a43f49);
    background-position: top left, center center, center center;
    background-size: auto, cover, cover;
    text-align: center;
}

    #footer a {
        border-bottom-color: #ffffff;
    }

        #footer a:hover {
            color: #ffffff;
            border-bottom-color: rgba(255, 255, 255, 0);
        }

    #footer h1, #footer h2, #footer h3, #footer h4, #footer h5, #footer h6, #footer strong, #footer b {
        color: #ffffff;
    }

    #footer header p {
        color: #ffffff;
    }

    #footer header.major:after {
        background: #ffffff;
    }


    #footer ul.major-icons li .icon {
        border-color: #ffffff;
    }

    #footer .icon.major {
        color: #ffffff;
    }

    #footer .icons {
        margin: 0;
    }

    #footer .copyright {
        font-size: 0.8em;
        list-style: none;
        margin: 2em 0 0 0;
        padding: 0;
    }

        #footer .copyright li {
            border-left: solid 1px;
            display: inline-block;
            line-height: 1em;
            margin-left: 1em;
            padding: 0 0 0 1em;
        }

            #footer .copyright li:first-child {
                border-left: 0;
                margin-left: 0;
                padding: 0;
            }


/* =================== Media Optimization =======================*/  
@media screen and (max-width: 1680px) {
    .menu {
        left: 5%;
    }

    .section {
        color: #fff;
        width: 65%;
        right: 5%;
        left: 30%;
    }
}

@media screen and (max-width: 1680px) and (min-width: 846px) { 
    .menu .social-network ul li a {
        width: 36px;
        height: 36px;
        line-height: 36px;
    }

    .menu .social-network ul li {
        margin: 0;
    }

    .menu .image {
        margin-top: 60px;
    }
}

@media screen and (max-width: 1280px) {
    .menu {
        left: 0%;
    }

    .right-image-post h4,
    .left-image-post h4 {
        margin-top: 0px;
    }

    .right-image-post p,
    .left-image-post p {
        margin-top: 15px;
    }

    .right-image-post .white-button,
    .left-image-post .white-button {
        margin-top: 25px;
    }

}

.menu .container {
    padding-left: 0;
    padding-right: 0;
}

@media screen and (max-width: 1280px) and (min-width: 846px) {
    .menu {
        width: 25%;
    }
}

#menu-toggle,
#menu-close {
    display: none;
}

@media screen and (max-width: 845px) {
    #menu-toggle,
    #menu-close {
        display: inline-block;
    }

    .menu {
        width: 320px;
        -webkit-transform: translateX(-100%) !important;
        transform: translateX(-100%) !important;
        transition: transform 233ms cubic-bezier(0, 0, 0.21, 1);
    }

        .menu .image {
            margin-top: 40px;
        }

            .menu .image img {
                width: 120px;
                height: 120px;
            }

        .menu .author-content {
            margin: 20px 0px 40px 0px;
        }

        .menu .container {
            padding-left: 15px;
            padding-right: 15px;
        }

        .menu.open {
            display: inline-block;
            transform: translateX(0) !important;
        }

    .responsive-nav {
        display: inline-block;
    }

    .section {
        width: 94%;
        right: 3%;
        left: 3%;
    }

    .isotope-item {
        width: 94%;
        margin: 3%;
    }

    .isotope-item {
        border-bottom: none;
        text-align: center;
    }

    .isotope-toolbar {
        margin-bottom: 20px;
    }

    .left-image-post .row {
        display: flex;
        flex-direction: column-reverse; /* 倒序排列 */
        align-items: center;
        text-align: center;
    }
    .right-image-post .row {
        display: flex;
        align-items: center;
        text-align: center;
    }

    .left-image-post .video-wrapper,
    .right-image-post .video-wrapper {
        width: 100%;
        max-width: 500px;
        margin-top: 0 auto 30px auto; /* spare space*/
    }


}


/* ===== Scroll Fade Animation ===== */
.fade-item {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

    .fade-item.show {
        opacity: 1;
        transform: translateY(0);
    }

    .fade-item.hide-up {
        opacity: 0;
        transform: translateY(-60px);
    }

    .fade-item.hide-down {
        opacity: 0;
        transform: translateY(60px);
    }

