@import url('open-sans.css');

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}


ul {
    list-style: none;
}

/* 公共样式 */
.m {
    max-width: 1245px;
    margin: 0 auto;
    width: 92%;
}

body {
    font-family: 'Open Sans', sans-serif;
}

.flex {
    display: flex;
}

:root {
    --black: #000;
    --white: #fff;
    --color: #b19150;
    --color-line: #bca16a;
    --colorbg: #173d32;
    --colorbg2: #8a9d8b;
    --n-white: #f8f6f0;
    --j-color: #c7a66a;
}

.h4 {
    font-size: 18px;
    font-weight: 400;
    line-height: 32px;
}

h1 {
    font-size: 54px;
    font-weight: 600;
    line-height: 62px;
}

h3 {
    font-size: 22px;
    font-weight: 600;
    line-height: 34px;
}

.btn {
    align-self: flex-start;
    background-color: var(--color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn:hover {
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.16);
    transform: translateY(-3px);
}


/* 导航 */
header {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

header .logo {
    height: 118px;
    line-height: 118px;
    display: flex;
    justify-content: center;
    align-items: center;
}

header .logo a {
    display: flex;
    align-items: center;
}

header .logo img {
    margin: 0 auto;
    max-height: 80px;
    width: auto;
    /*filter: brightness(0);*/
}

ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 2.5vw, 24px);
    margin-bottom: 20px;
}

header a {
    text-decoration: none;
    color: var(--black);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

header .nav li:last-child {
    /* color: #fff; */
    background-color: var(--color);
    padding: 6px 20px;
    border-radius: 5px;
}

header .nav li:last-child a {
    /* color: #fff; */
    color: var(--white);
}

.nav li {
    position: relative;
}

.nav li::after {
    content: '';
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    width: 0%;
    height: 2px;
    background-color: var(--color);
    opacity: 0;
    transition: all 0.3s ease;
}

.nav li:hover::after {
    width: 100%;
    opacity: 1;
}

.nav li.active::after {
    width: 100%;
    opacity: 1;
}

.nav li:last-child.active::after,
.nav li:last-child:hover::after {
    width: 100%;
    opacity: 0;
}

/* 分页 */
#page_1 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    margin-top: 50px;
}

#page_1 a {
    display: block;
    width: 32px;
    height: 32px;
    /* background-color: var(--color); */
    line-height: 32px;
    text-align: center;
    color: var(--color);
    border-radius: 4px;
    border: 1px solid var(--color);
    transition: all 0.3s ease;
}

#page_1 a:hover {
    background-color: var(--color);
    color: var(--white);
}


#page_1 a.on {
    background-color: var(--color);
    line-height: 32px;
    text-align: center;
    color: var(--white);
    border-radius: 4px;
}

footer {
    padding: 60px 0 30px;
    background-color: var(--n-white);
}

.footer {
    display: flex;
    gap: 20px;
}

.footer>div {
    flex: 1;
}

.footer .left p {
    font-size: 25px;
    color: var(--colorbg);
    font-weight: 600;
    line-height: 32px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.footer .left img {
    max-height: 80px;
}

.footer .left span {
    display: block;
    font-size: 22px;
    font-weight: 600;
    line-height: 32px;
    margin-bottom: 15px;
    color: var(--j-color);
}

.footer .left h5 {
    font-size: 17px;
    font-weight: 600;
    line-height: 22px;
    margin-bottom: 20px;
    color: var(--colorbg);
}

.footer .left .icon {
    display: flex;
    gap: 10px;
}

.footer .left .iconfont {
    font-size: 24px;
    color: var(--colorbg);
    transition: all 0.3s ease;
}

.footer .left .iconfont:hover {
    color: var(--j-color);
}

.footer .right p {
    font-size: 25px;
    color: var(--colorbg);
    font-weight: 600;
    line-height: 32px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.footer .right ul {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    gap: 10px;
}

.footer .right ul li {
    width: 48%;
    /* flex-shrink: 0; */
    text-align: left;
}

.footer .right ul li a {
    font-size: 15px;
    color: var(--colorbg);
    transition: all 0.3s ease;
}

.footer .right ul li a:hover {
    color: var(--j-color);
}

footer .copy {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    padding-top: 30px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

footer .copy p {
    text-align: center;
    color: var(--colorbg);
    font-size: 17px;
    font-weight: 600;
    line-height: 22px;
}

footer .copy a {
    text-align: center;
    color: var(--colorbg);
    font-size: 17px;
    font-weight: 600;
    line-height: 22px;
    transition: all 0.3s ease;
}

footer .copy a:hover {
    color: var(--j-color);
}

.menu-toggle {
    display: none;
    position: absolute;
    right: 15px;
    top: 18px;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--colorbg);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 10px;
}

.menu-toggle span:nth-child(3) {
    top: 20px;
}

.menu-toggle.active span:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .m {
        width: 94%;
    }

    header .logo {
        height: 70px;
        line-height: 70px;
    }

    header .logo img {
        max-height: 50px;
    }

    .menu-toggle {
        display: block;
    }

    header {
        background-color: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    header .m {
        position: relative;
        width: 100%;
        padding: 0 15px;
    }

    header .logo {
        justify-content: flex-start;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background-color: #fff;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.35s ease;
        z-index: 1000;
        padding-top: 80px;
        overflow-y: auto;
    }

    .nav.open {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        margin-bottom: 0;
    }

    .nav ul li {
        border-bottom: 1px solid #eee;
    }

    .nav ul li a {
        display: block;
        padding: 15px 20px;
        font-size: 15px;
    }

    .nav li::after,
    .nav li.active::after {
        display: none;
    }

    .nav li:last-child {
        background-color: transparent;
        padding: 0;
        border-radius: 0;
    }

    .nav li:last-child a {
        color: var(--black);
    }

    .nav li:last-child.active::after,
    .nav li:last-child:hover::after {
        display: none;
    }

    header h1 {
        font-size: 32px;
        line-height: 40px;
    }

    footer {
        padding: 40px 0 20px;
    }

    .footer {
        flex-direction: column;
        gap: 30px;
    }

    .footer .right {
        display: none;
    }

    .footer .left img {
        max-height: 50px;
    }

    .footer .left p,
    .footer .right p {
        font-size: 20px;
    }

    .footer .right ul {
        gap: 8px;
    }

    .footer .right ul li {
        width: 50%;
    }

    footer .copy {
        /* flex-direction: column; */
        gap: 5px;
        text-align: center;
    }

    footer .copy p,
    footer .copy a {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 28px;
        line-height: 36px;
    }

    h3 {
        font-size: 18px;
        line-height: 28px;
    }
}