html,
body {
    height: 100%;
    width: 100%;
    background-color: #fff;
}

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: "Roboto", "SF Pro SC", "SF Pro Display", "SF Pro Icons", "PingFang SC", BlinkMacSystemFont, -apple-system, "Segoe UI", "Microsoft Yahei", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    margin: 0;
    background-color: #fff;
}

a {
    -webkit-transition: all 0.35s;
    -moz-transition: all 0.35s;
    transition: all 0.35s;
    color: #474157;
}

a:hover,
a:focus {
    color: #474157;
}

hr {
    max-width: 100px;
    margin: 25px auto 0;
    border-width: 1px;
    border-color: rgba(34, 34, 34, 0.1);
}

hr.light {
    border-color: white;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 200;
    letter-spacing: 1px;
}

p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}


#mainbody {
    position: relative;
    width: 100%;
    min-height: auto;
    overflow-y: hidden;
    background: #fff;
    color: #474157;
}

#mainbody>.container>.text-center {
    text-align: center;
    padding: 350px 0 50px;
    position: relative;
    height: 100vh;
}

#mainbody>.container>.text-center h1 {
    font-size: 50px;
    font-weight: bold;
    color: #171347
}

#mainbody>.container>.text-center>a {
    background: #fdcc52;
    background: -webkit-linear-gradient(#fdcc52, #fdc539);
    background: linear-gradient(#fdcc52, #fdc539);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 300px;
    margin-top: 20px;
    padding: 10px 45px;
    font-size: 14px;
    text-decoration: none;
}

@media (max-height: 500px) {
    #mainbody {
        height: inherit;
    }
}

@media (min-width: 768px) {
    .navbar-default {
        background-color: transparent;
        border-color: transparent;
    }

    #mainbody .index-text {
        text-align: left;
    }
}

@media (max-width: 767px) {

    #mainbody>.container>.text-center {


        padding: 130px 0 0 0;
        height: calc(100vh - 261px);
    }

    #mainbody>.container>.text-center>h1 {


        font-size: 50px;
        margin-bottom: 20px;
    }
}

.footer {
    background-color: #222222;
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
}

.footer p {
    font-size: 14px;
    margin: 0;
}

::-webkit-scrollbar {
    width: 2px;
    height: 2px;
    /**/
}

::-webkit-scrollbar-track {
    background: rgb(239, 239, 239);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb {
    background: #bfbfbf;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #333;
}

::-webkit-scrollbar-corner {
    background: #179a16;
}

/* Top广告 */

/* Head-导航 */
.haed-box {
    width: 96%;
    height: 80px;
    background: #f7f9fd;
    margin: 10px auto;
    border-radius: 20px;
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: flex-start;
    align-items: center;

}

.haed-logo img {
    height: 40px;
    margin-left: 80px;
}

.haed-menu {
    margin-left: 20px;
    width: auto;
}

.haed-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.haed-menu ul li {
    margin: 0 15px;
}

.haed-menu ul li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
}

.haed-menu ul li a .nav-icons,
.haed-menu ul li a iconify-icon.nav-icons {
    font-size: 20px;
    color: #89371F;
    vertical-align: middle;
    display: inline-block;
}

.haed-menu ul li a span,
.haed-menu ul li a iconify-icon {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.haed-menu ul li a:hover {
    background: #e8f0fe;
    color: #1976d2;
}

.haed-menu ul li a i {
    margin-right: 8px;
    font-size: 18px;
}

.haed-user {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    margin-right: 80px;
    margin-left: auto;
}

.haed-language select {
    width: 120px;
    height: 40px;
    border-radius: 100px;
    padding: 0 30px 0 15px;
    background: #89371F;
    color: wheat;
    border: 1px solid #89371F;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='wheat' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
}

.haed-language select:hover {
    background: #a64a2f;
    border-color: #a64a2f;
}

.haed-login {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.haed-login img {
    width: auto;
    height: 30px;
}

.haed-login div {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: color 0.3s;
}

.haed-login div:hover {
    color: #1976d2;
}

/* top-add-box 样式 */
.top-add-box {
    position: relative;
    background: url("../img/topadd.png") no-repeat center center;
    background-size: cover;
    color: #fff;
    text-align: center;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    width: 100%;
    height: 100px;

    .add-word {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
        position: relative;
        left: 36.5%;
        top: 50%;
        transform: translateY(-50%);
        gap: 10px;

        .add-serve {
            font-size: 20px;
            font-weight: bold;
            letter-spacing: 2px;

            .add-number {
                font-size: 36px;
                font-style: italic;
                font-weight: bold;
                margin-left: -20px;
            }
        }
    }
}

.top-add-box.hiding {
    opacity: 0;
    transform: translateY(-100%);
}

.top-add-box.hidden {
    display: none;
}

.close-add {
    position: absolute;
    right: 15px;
    top: 20px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 24px;
    opacity: 0.8;
    transition: opacity 0.3s;
    z-index: 10;
}

.close-add:hover {
    opacity: 1;
}

/* Iconify 图标样式 */
iconify-icon {
    display: inline-block;
    vertical-align: middle;
}

.iconify {
    display: inline-block;
    vertical-align: middle;
}

.count-down {
    position: absolute;
    width: 120px;
    height: 24px;
    line-height: 20px;
    font-size: 14px;
    text-align: center;
    background: rgb(255 255 255 / 12%);
    border-radius: 6px;
    right: 10px;
    bottom: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.count-down::before {
    content: '';
    position: absolute;
    opacity: 0.5;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3, #ff0000);
    background-size: 500% 500%;
    border-radius: 8px;
    z-index: -1;
    animation: marquee 3s linear infinite;
}

@keyframes marquee {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

/* haed-box 动画样式 */
.haed-box {
    transition: transform 0.5s ease-out;
}

.haed-box.top-closed {
    /* top-add-box 已关闭，haed-box 自然回到文档流顶部位置 */
}