html,
body {
    margin: 0;
    padding: 0;
    font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

a,
a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none;
    outline: none;
    color: inherit;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
    -moz-user-focus: none;
}

#page-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 997;
    height: auto;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#page-header .header__wrapper {
    position: relative;
    width: 100%;
    height: 56px;
    padding: 0 12px;
}

#page-header .header__wrapper .logo>img {
    height: 46px;
    margin-right: 16px;
    object-fit: contain;
}

#page-header .header__wrapper .nav-item {
    all: initial;
    padding: 0 8px;
    font-size: 16px;
    color: #222222;
    cursor: pointer;
}

#page-header .header__wrapper .nav-item.active,
#page-header .header__wrapper .nav-item:hover {
    color: #009c4c;
    --arrow-down-color: #009c4c;
    --dropdown-display: block;
}

#page-header .header__wrapper .nav-item.dropdown {
    position: relative;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

#page-header .header__wrapper .nav-item.dropdown::after {
    content: "";
    display: inline-block;
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: var(--arrow-down-color, #222) transparent;
}

#page-header .header__wrapper .dropdown-menu {
    display: var(--dropdown-display, none);
    position: absolute;
    top: 100%;
    max-height: 60vh;
    padding: 6px;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
    overflow: auto;
}

#page-header .header__wrapper .dropdown-item {
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 15px;
    color: #222;
    line-height: 1.5;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

#page-header .header__wrapper .dropdown-item:hover {
    background-color: #edf2fa;
}

#page-header .header__wrapper .nav-toggle {
    display: none;
    padding: 4px;
    cursor: pointer;
}

#page-header .fixed-mask {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
}

#page-header .fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 260px;
    background: #fff;
}

#page-header .fixed-nav .logo {
    height: 56px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#page-header .fixed-nav .logo>img {
    height: 46px;
    object-fit: contain;
}

#page-header .fixed-nav .navbar {
    height: calc(100% - 56px);
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: initial;
    justify-content: initial;
    gap: 0 !important;
    overflow: auto;
}

#page-header .fixed-nav .navbar-left,
#page-header .fixed-nav .navbar-right,
#page-header .fixed-nav .nav-item.dropdown {
    flex: 0 1 0%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

#page-header .fixed-nav .nav-item,
#page-header .fixed-nav .nav-item.dropdown>span {
    width: 100%;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    cursor: pointer;
}

#page-header .fixed-nav .nav-item:not(.dropdown):hover,
#page-header .fixed-nav .nav-item.dropdown>span:hover {
    background-color: #edf2fa;
}

#page-header .fixed-nav .nav-item.dropdown>span::after {
    content: "";
    float: right;
    margin: 8px;
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #666 transparent;
    transform: rotate(0deg);
    transition: transform 0.3s ease-in-out;
}

#page-header .fixed-nav .nav-item.dropdown>span.active::after {
    transform: rotate(180deg);
}

#page-header .fixed-nav .dropdown-menu {
    display: none;
    width: 100%;
    padding: 4px 12px;
}

#page-header .fixed-nav .dropdown-item {
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 15px;
    color: #666;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

#page-header .fixed-nav .dropdown-item:hover {
    background-color: #edf2fa;
}

#page-header .fixed-nav .nav-toggle {
    display: none;
}

@media screen and (max-width: 768px) {
    #page-header .header__wrapper .navbar {
        display: none;
    }

    #page-header .header__wrapper .nav-toggle {
        display: block;
    }
}

input {
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 2px 12px;
    outline: none;
}

input:disabled {
    color: rgba(0, 0, 0, 0.5);
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.main-container {
    position: relative;
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: row;
}

/* .page-footer */
.page-footer {
    width: 100%;
    padding: 32px 8%;
    box-sizing: border-box;
    background-color: #303846;
    font-size: 16px;
    color: #ebedf0;
    line-height: 2;
    display: flex;
}

.footer-col {
    flex: 1.5 0;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
}

.footer-col:first-child,
.footer-col:last-child {
    flex: 1.5;
}

.footer-title {
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-items ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-items a {
    display: inline-block;
    height: 100%;
}

.footer-items a:hover {
    color: #2e8555;
    text-decoration: underline;
}

.footer-info__title img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-info__copyright {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
}

.footer-qrcode-box {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 16px;
}

.footer-qrcode {
    width: 100%;
    text-align: center;
}

.footer-qrcode img {
    width: 100px;
    height: 100px;
}

.footer-qrcode span {
    display: block;
    font-size: 14px;
    color: #fff;
    line-height: 1;
}

.footer-links-box {
    padding: 32px 0 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.footer-links-box .icon {
    width: 36px;
    height: 36px;
}

@media screen and (max-width: 1280px) {
    .page-footer {
        padding: 32px;
    }
}

@media screen and (max-width: 768px) {
    .page-footer {
        padding: 32px 24px;
        flex-direction: column;
    }

    .footer-col {
        margin-bottom: 40px;
    }

    .footer-info__copyright {
        margin-top: 10px;
    }
}

/* .sidebar */
.sidebar {
    flex-shrink: 0;
    width: 200px;
    box-sizing: border-box;
    border-right: 1px solid #e5e7eb;
}

.sidebarMask {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-color: rgba(0, 0, 0, 0.45);
    display: none;
}

.sidebarWrap {
    height: 100%;
    background-color: #fff;
    overflow: auto;
}

.sidebarWrap ul,
.sidebarWrap li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebarWrap>a {
    display: none;
}

.sidebar-menu {
    min-height: calc(100% - 50px);
    margin: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #666666;
    background: #fff;
}

.menu-group-title {
    height: 50px;
    line-height: 50px;
    background-color: #009c4c;
    font-size: 14px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-group-title[class*="prefix-"]::before {
    content: '';
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.menu-group-title[class*="suffix-"]::after {
    content: '';
    position: relative;
    display: inline-block;
    width: 12px;
    height: 8px;
    margin-left: 4px;
}

.menu-group-title.suffix-arrow-down::after {
    background-image: url(/themes/image/arrow-down.png);
    background-size: contain;
    background-repeat: no-repeat;
}

.menu-group-title.prefix-tickets::before {
    background-image: url(/themes/image/tickets.png);
    background-size: contain;
    background-repeat: no-repeat;
}

.menu-group-title.prefix-pay::before {
    background-image: url(/themes/image/pay.png);
    background-size: contain;
    background-repeat: no-repeat;
}

.menu-group-content {
    padding: 10px 0 !important;
}

.menu-item {
    height: 50px;
    line-height: 50px;
    text-align: center;
}

.menu-item[selected],
.menu-item:hover {
    color: #009c4c;
}

@media screen and (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        bottom: 0;
        z-index: 999;
        transition: left .3s;
    }

    .sidebar.expanded {
        left: 0;
    }

    .sidebar.expanded .sidebarMask {
        display: block;
    }

    .sidebar.expanded .sidebarWrap>a {
        display: flex;
        width: 100%;
        height: 36px;
        margin-bottom: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        color: #666666;
    }
}

/* .app-main */
.app-main {
    position: relative;
    flex: 1;
    width: 0;
    padding: 20px;
    box-sizing: border-box;
    background-color: #fff;
    overflow: auto;
}

.header {
    height: 70px;
    padding-bottom: 10px;
    box-sizing: border-box;
    border-bottom: 1px solid #d5d5d5;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* baseDialog */
.baseDialogDiv {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    font: 14px/100% "Microsoft YaHei", arial;
}

.baseDialogPopDiv {
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.6;
}

.baseDialogContentDiv {
    width: 90%;
    max-width: 400px;
    max-height: 100%;
    border-radius: 4px;
    background-color: #ffffff;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    overflow: auto;
    word-break: break-word;
}

.baseDialogTitleDiv {
    padding: 16px 20px;
    border-bottom: solid 1px #eeeeee;
    font-size: 18px;
    color: #383a4b;
    line-height: 1.5;
}

.baseDialogCloseDiv {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 24px;
    height: 24px;
    background-image: url("/themes/image/close.png");
    background-repeat: no-repeat;
    background-size: cover;
    cursor: pointer;
}

.baseDialogMessageDiv {
    margin: 30px 20px;
    padding: 0;
    line-height: 20px;
    color: #444444;
    text-align: center;
    font-size: 16px;
}

.baseDialogButtonDiv {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0 30px;
}

.baseDialogButtonDiv button {
    width: 130px;
    height: 40px;
    border: none;
    border-radius: 5px;
    background-color: rgb(24, 156, 251);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.baseDialogButtonDiv button+button {
    margin-left: 10px;
}

.baseDialogButtonDiv .confirmButton {
    background-color: #1abc9c;
}

.baseDialogButtonDiv .confirmButton:hover {
    background-color: #16b495;
}

.baseDialogButtonDiv .cancelButton {
    background-color: #52b4fb;
}

.baseDialogButtonDiv .cancelButton:hover {
    background-color: #189cfb;
}