/* 通用样式 */
body {
    background: #fff;
    font-family: 'Raleway', sans-serif;
}

body a {
    transition: 0.5s all;
    -webkit-transition: 0.5s all;
    -o-transition: 0.5s all;
    -moz-transition: 0.5s all;
    -ms-transition: 0.5s all;
}

ul {
    padding: 0;
    margin: 0;
}

h1, h2, h3, h4, h5, h6, label, p {
    margin: 0;
}

/* 头部样式 */
.header {
    background: url(../images/banner2.jpg) no-repeat left;
    width: 100%;
    background-size: cover;
    min-height: 750px;
    display: block;
}

.head-top {
    min-height: 450px;
}

.logo {
    margin: 8em 0 0;
    text-align: center;
}

.logo img {
    max-width: 100%;
    height: auto;
}

/* 导航栏样式 */
.navbar-default {
    background: none;
    border: none;
    margin: 0;
    text-align: center;
    padding-top: 3em;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    color: #FFF;
    background: none;
}

.navbar-default .navbar-nav > li > a {
    color: #FFF;
    font-size: 1.5em;
    padding: 0.8em 1.2em;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    color: #FFFFFF;
    background: none;
    outline: none;
}

.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
    color: #FFF;
    background: none;
}

.navbar-nav {
    float: right;
    margin: 0;
    text-align: center;
}

.nav > li {
    position: relative;
    display: inline-block;
}

.nav li a {
    margin: 0 0.3em;
    font-family: 'Lora', serif;
}

.navbar-nav > li {
    float: none;
}

/* 搜索表单样式 */
input.form-cont {
    background: none;
    outline: none;
    border: none;
    border-bottom: 2px solid #fff;
    box-shadow: none;
    border-radius: 0px;
    width: 100% !important;
    color: #fff;
    padding: 6px 35px 6px 12px !important;
    font-size: 1.5em;
}

input.form-cont:focus {
    border: none;
    border-bottom: 2px solid #fff;
    outline: none;
    box-shadow: none;
}

form.navbar-form.navbar-left {
    padding: 0;
    float: left;
    position: relative;
}

.form-group {
    width: 100%;
}

.btn-search {
    background: url(../images/se.png) no-repeat;
    border: none;
    width: 20px;
    height: 22px;
    position: absolute;
    top: 10px;
    right: 2.5%;
    outline: none;
}

/* 导航效果 */
.cl-effect-8 a {
    padding: 10px 20px;
}

.cl-effect-8 a::before,
.cl-effect-8 a::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    content: '';
    -webkit-transition: -webkit-transform 0.3s, opacity 0.3s;
    -moz-transition: -moz-transform 0.3s, opacity 0.3s;
    transition: transform 0.3s, opacity 0.3s;
}

.cl-effect-8 a::after {
    border-color: #fff;
    opacity: 0;
    -webkit-transform: translateY(-7px) translateX(6px);
    -moz-transform: translateY(-7px) translateX(6px);
    transform: translateY(-7px) translateX(6px);
}

.cl-effect-8 a:hover::before,
.cl-effect-8 a:focus::before {
    opacity: 0;
    -webkit-transform: translateY(5px) translateX(-5px);
    -moz-transform: translateY(5px) translateX(-5px);
    transform: translateY(5px) translateX(-5px);
}

.cl-effect-8 a:hover::after,
.cl-effect-8 a:focus::after {
    opacity: 1;
    -webkit-transform: translateY(0px) translateX(0px);
    -moz-transform: translateY(0px) translateX(0px);
    transform: translateY(0px) translateX(0px);
}

.cl-effect-8 a.active:before,
.cl-effect-8 a.active:active {
    border: 2px solid #fff;
    transition: 0.5s all;
    -webkit-transition: 0.5s all;
    -o-transition: 0.5s all;
    -moz-transition: 0.5s all;
    -ms-transition: 0.5s all;
}

/* 关于部分样式 */
.about {
    padding: 4em 0;
}

.top-about {
    text-align: center;
}

.top-about h1 {
    font-size: 2.5em;
    margin-bottom: 1em;
}

.top-about p {
    font-size: 1.2em;
    color: #555;
}

.about-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 2em 0 7em;
}

.abou-img {
    flex: 1 1 50%;
    text-align: center;
}

.abou-img img {
    max-width: 100%;
    height: auto;
}

.about-top1 {
    flex: 1 1 50%;
    padding-left: 2em;
}

.about-grid,
.about-grid1 {
    margin-bottom: 2em;
}

.content-plan h6 {
    font-size: 1.4em;
    margin-bottom: 0.5em;
}

.content-plan p {
    font-size: 1em;
    color: #666;
}

/* 团队部分样式 */
.team {
    padding: 4em 0;
    background: #f9f9f9;
}

.team-head {
    text-align: center;
    margin-bottom: 2em;
}

.team-head h2 {
    font-size: 2.5em;
    color: #705148;
    font-family: 'Lora', serif;
    margin-bottom: 0.5em;
}

.team .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
}

.ceo-wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    padding-bottom: 2em;
}

.member-team.ceo {
    flex: 0 0 22%;
    max-width: 250px;
    box-sizing: border-box;
}

.member-team.employee {
    flex: 1 1 22%;
    max-width: 250px;
    box-sizing: border-box;
}

.member-team1 {
    text-align: center;
    padding: 1.5em;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.member-team1:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.member-team1 img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #705148;
    margin: 0 auto 1em auto;
}

.member-team1 h4 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 0.3em;
}

.member-team1 span {
    display: block;
    font-size: 1em;
    color: #999;
    margin-bottom: 0.5em;
}

.member-team1 p {
    font-size: 1em;
    color: #555;
    flex-grow: 1;
}

/* 页脚样式 */
.footer {
    background: #f3ece7;
    color: #423e3e;
}

.footer-middle {
    background: #f3ece7;
    padding: 4em 0;
}

.footer-middle-in h6 {
    font-size: 1.8em;
    font-family: 'Lora', serif;
    margin-bottom: 1.5em;
    text-transform: uppercase;
}

.footer-middle-in span {
    font-size: 1.5em;
    color: #000000;
    line-height: 1.8em;
}

.in {
    float: left;
}

.in1 {
    float: right;
}

ul.in li {
    list-style: none;
}

ul.in li a {
    color: #3b3939;
    font-size: 1.5em;
    text-decoration: none;
    padding: 0 0 0.5em;
    display: block;
}

ul.in li a:hover {
    color: #705148;
}

ul.tag-in li {
    display: inline-block;
}

ul.tag-in li a {
    color: #B3B3B3;
    font-size: 0.9em;
    text-decoration: none;
    padding: 0.3em 0.7em;
    border: 1px solid #B3B3B3;
    display: block;
    margin-bottom: 0.6em;
    border-radius: 15px;
}

ul.tag-in li a:hover {
    color: #705148;
    border: 1px solid #705148;
}

.footer-class {
    color: #fff;
    font-size: 1em;
    text-align: center;
}

.footer-class a {
    color: #705148;
    text-decoration: none;
}

.footer-class a:hover {
    color: #fff;
}

.footer-bottom-top {
    text-align: center;
    padding: 6em 0 4em;
}

.footer-bottom-top li {
    display: inline-block;
}

.footer-middle-in input[type="text"],
.footer-middle-in input[type="submit"] {
    width: 100%;
    padding: 0.5em 1em;
    margin: 0.7em 0;
    background: none;
    outline: none;
    border: 1px solid #B3B3B3;
    -webkit-appearance: none;
    font-size: 0.9em;
    color: #000;
}

.footer-middle-in input[type="text"]:focus,
.footer-middle-in input[type="submit"]:focus {
    border: none;
    border-bottom: 2px solid #fff;
    outline: none;
    box-shadow: none;
}

.footer-middle-in input[type="submit"] {
    background: #705148;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: 0.5s all;
}

.footer-middle-in input[type="submit"]:hover {
    color: #705148;
    background: #fff;
}

/* 响应式设计 */
@media(max-width:767px){
    /* 导航栏样式调整 */
    .navbar-default .navbar-toggle:hover,
    .navbar-default .navbar-toggle:focus {
        background-color: #FFF;
    }
    .navbar-toggle {
        float: none;
        background-color: rgb(255, 255, 255);
        border: none;
        border-radius: 4px;
    }
    .navbar-default .navbar-collapse,
    .navbar-default .navbar-form {
        border: none;
    }
    .navbar-default {
        width: 100%;
        text-align: right;
        padding-top: 1em;
    }
    .navbar-nav {
        background: none;
        text-align: center;
        float: none;
    }
    .nav > li {
        display: block;
    }
    form.navbar-form.navbar-left {
        width: 100%;
        float: none;
        margin: 0 0 1em;
    }
    .container-fluid {
        padding: 0;
    }
    div#bs-example-navbar-collapse-1 {
        padding: 1em;
        width: 100%;
        background-color: #705148;
        margin: 0;
    }
    .navbar-default .navbar-nav > li > a {
        font-size: 1em;
        margin: 0.3em 0;
    }
    input.form-cont {
        font-size: 1em;
    }
    .footer-middle {
        display: flex;
        flex-direction: column; /* 垂直排列 */
        align-items: center; /* 居中对齐 */
    }

    .footer-middle-in {
        width: 100%; /* 每个盒子占满屏幕宽度 */
        text-align: center; /* 让内容居中对齐 */
        margin-bottom: 20px; /* 增加盒子间距 */
    }

    .footer-middle-in:last-child {
        margin-bottom: 0; /* 去掉最后一个盒子的底部间距 */
    }
}

@media(max-width:480px){
    /* 关于部分响应式调整 */
    .about {
        padding: 3em 0;
    }
    .top-about h1 {
        font-size: 2.5em;
        text-align: center;
    }
    .top-about p {
        width: 98%;
        margin: 0 auto;
        text-align: center;
    }
    .about-top {
        flex-direction: column;
        margin: 15em 0 11em;
    }
    .abou-img {
        width: 90%;
        margin-bottom: 1.5em;
        text-align: center;
    }
    .abou-img img {
        width: 100%;
        height: auto;
    }
    .about-top1 {
        width: 100%;
        padding-left: 0;
        text-align: center;
    }
    .about-grid,
    .about-grid1 {
        width: 80%;
        margin-bottom: 1em;
    }
    .about-grid1 {
        padding-top: 7em;
    }
    .member-team {
        width: 90%;
        margin: 0.625em 0;
    }
    .footer-middle {
        padding: 3em 0;
    }
    .footer-bottom-top {
        padding: 2em 0;
    }
    .footer-middle-in input[type="text"],
    .footer-middle-in input[type="submit"] {
        font-size: 0.9em;
        width: 100%;
        margin-bottom: 1em;
    }
    .footer-middle-in h6 {
        font-size: 1.2em;
        text-align: center;
    }
    .content-plan h6 {
        font-size: 1.2em;
        text-align: center;
    }
    .content-plan p {
        font-size: 0.9em;
        text-align: center;
    }
    .team-head h2 {
        font-size: 2em;
        text-align: center;
    }
    .social-ic li a i {
        margin: 0 0.1em;
    }
}

@media(max-width:320px){
    /* 超小设备响应式调整 */
    .logo img {
        width: 50%;
    }
    .top-about {
        margin: 17em 0 16em;
    }
    .member-team {
        width: 100%;
    }
    .footer-bottom-top li {
        margin: 0.5em 0;
    }
}


/* 自定义弹窗样式：居中 */
.custom-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #705148;
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-size: 1.2em;
    text-align: center;
    animation: fadeIn 0.3s ease, fadeOut 0.3s ease 2.7s;
}

/* 弹窗渐入和渐出效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
}

/* 自定义弹窗样式 */
.error-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-size: 1.2em;
    text-align: center;
    display: none; /* 默认隐藏 */
    width: 350px; /* 默认宽度 */
}

/* 显示弹窗 */
.error-popup.show {
    display: block; /* 显示弹窗 */
    animation: fadeIn 0.5s ease; /* 渐进动画 */
}

/* 隐藏弹窗 */
.error-popup.hide {
    animation: fadeOut 0.5s ease; /* 渐出动画 */
    opacity: 0; /* 渐出后完全透明 */
}
/* 响应式设计：手机端 */
@media (max-width: 768px) {
    .error-popup {
        width: 90%; /* 手机端宽度调整为屏幕的90% */
        font-size: 1em; /* 缩小字体大小适配手机屏幕 */
    }
    .custom-popup{
        width: 90%; /* 手机端宽度调整为屏幕的90% */
        font-size: 1em; /* 缩小字体大小适配手机屏幕 */
    }
}
