:root {
    --modern-blue: #2499f4;
    --modern-ink: #29364a;
    --modern-muted: #718096;
    --modern-line: rgba(119, 143, 177, .16);
    --modern-glass: rgba(255, 255, 255, .21);
}

html,
body.modern-appui {
    min-height: 100%;
}

body.modern-appui {
    color: var(--modern-ink);
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: transparent;
}

body.modern-appui::before,
body.modern-appui::after {
    position: fixed;
    inset: 0;
    content: "";
    pointer-events: none;
}

body.modern-appui::before {
    z-index: -2;
    background:
        linear-gradient(160deg, #f4f6fa 0%, #eef1f6 42%, #e9edf4 100%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feComponentTransfer><feFuncA type='linear' slope='.04'/></feComponentTransfer></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: auto, 160px 160px;
}

body.modern-appui::after {
    z-index: -1;
    background:
        radial-gradient(50% 45% at 18% 20%, rgba(70, 162, 255, .52) 0%, rgba(70, 162, 255, .25) 43%, rgba(70, 162, 255, 0) 74%),
        radial-gradient(48% 46% at 86% 82%, rgba(60, 215, 220, .42) 0%, rgba(60, 215, 220, .17) 44%, rgba(60, 215, 220, 0) 74%),
        radial-gradient(38% 40% at 78% 12%, rgba(170, 145, 255, .28) 0%, rgba(170, 145, 255, .10) 46%, rgba(170, 145, 255, 0) 72%),
        radial-gradient(40% 44% at 8% 90%, rgba(135, 188, 255, .25) 0%, rgba(135, 188, 255, 0) 70%),
        radial-gradient(22% 24% at 55% 55%, rgba(255, 190, 150, .10) 0%, rgba(255, 190, 150, 0) 70%);
}

.modern-appui #page-container,
.modern-appui #main-container {
    min-height: 100vh;
    background: transparent;
}

.modern-appui #sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    background: rgba(248, 249, 252, .55);
    border-right: 1px solid rgba(133, 164, 199, .2);
    box-shadow: none;
    backdrop-filter: saturate(1.9) blur(22px);
    -webkit-backdrop-filter: saturate(1.9) blur(22px);
}

.modern-appui #sidebar-brand {
    height: 50px;
    background: linear-gradient(135deg, #68d3df 0%, #55c8d6 100%);
    box-shadow: 0 8px 24px rgba(64, 190, 205, .2);
}

.modern-appui #sidebar-brand .sidebar-title {
    height: 50px;
    padding: 0 14px;
    color: #203343;
    font-size: 18px;
    font-weight: 700;
    line-height: 50px;
    text-shadow: none;
}

.modern-appui #sidebar-brand .sidebar-title i {
    width: 22px;
    color: rgba(27, 54, 66, .86);
    text-align: center;
}

.modern-appui #sidebar-scroll {
    position: relative;
    height: calc(100vh - 50px);
}

.modern-appui .sidebar-content {
    padding: 9px 0 72px;
}

.modern-appui .sidebar-nav li {
    padding: 0 10px;
}

.modern-appui .sidebar-nav a {
    min-height: 54px;
    margin: 3px 0;
    padding: 16px 15px;
    color: #718296;
    border: 1px solid transparent;
    border-radius: 15px;
    font-size: 14px;
    transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.modern-appui .sidebar-nav a:hover {
    color: #228bd8;
    background: rgba(217, 241, 255, .62);
    transform: translateX(2px);
}

.modern-appui .sidebar-nav a.active {
    color: #168ce6;
    background: linear-gradient(110deg, rgba(208, 240, 255, .82), rgba(224, 240, 255, .54));
    border-color: rgba(255, 255, 255, .92);
    box-shadow: 0 9px 24px rgba(60, 155, 220, .16), inset 0 0 18px rgba(255, 255, 255, .52);
}

.modern-appui .sidebar-nav .sidebar-nav-icon {
    margin-right: 10px;
    color: #afc2d4;
}

.modern-appui .sidebar-nav a.active .sidebar-nav-icon,
.modern-appui .sidebar-nav a:hover .sidebar-nav-icon {
    color: #50bfe9;
}

.modern-sidebar-footer {
    position: absolute;
    right: 0;
    bottom: 14px;
    left: 0;
    padding: 12px;
    color: #9aadc0;
    font-size: 12px;
    text-align: center;
}

.modern-sidebar-footer .fa-heart {
    color: #ff8b9c;
}

.modern-appui header.navbar.navbar-fixed-top {
    min-height: 50px;
    background: rgba(255, 255, 255, .45);
    border: 0;
    box-shadow: 0 6px 20px -10px rgba(31, 55, 96, .22);
    backdrop-filter: saturate(1.8) blur(16px);
    -webkit-backdrop-filter: saturate(1.8) blur(16px);
}

.modern-appui header.navbar .navbar-nav-custom > li > a {
    min-height: 50px;
    padding: 15px 14px;
    color: #354052;
    line-height: 20px;
}

.modern-appui header.navbar .navbar-nav-custom > li > a:hover,
.modern-appui header.navbar .navbar-nav-custom > li > a:focus {
    color: #168ce6;
    background: rgba(227, 243, 255, .62);
}

.modern-appui #page-content {
    min-height: 100vh;
    padding: 20px 18px 30px;
    background: transparent;
}

.modern-dashboard {
    display: flex;
    margin: 0 -14px;
    align-items: flex-start;
}

.modern-dashboard > [class*="col-"] {
    padding-right: 14px;
    padding-left: 14px;
}

.modern-glass-card {
    overflow: hidden;
    margin-bottom: 24px;
    padding: 20px;
    background:
        var(--modern-glass)
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feComponentTransfer><feFuncA type='linear' slope='.04'/></feComponentTransfer></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 160px 160px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 18px;
    box-shadow:
        0 10px 34px -12px rgba(31, 55, 96, .28),
        0 2px 8px -4px rgba(31, 55, 96, .18),
        inset 0 1px 0 rgba(255, 255, 255, .85),
        inset 1px 0 0 rgba(255, 255, 255, .35),
        inset -1px 0 0 rgba(255, 255, 255, .14),
        inset 0 -1px 0 rgba(31, 55, 96, .10),
        inset 0 0 0 1px rgba(255, 255, 255, .12);
    backdrop-filter: saturate(1.85) blur(20px);
    -webkit-backdrop-filter: saturate(1.85) blur(20px);
}

.modern-glass-card .block-title {
    min-height: 58px;
    margin: -8px 0 14px;
    padding: 0 4px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--modern-line);
}

.modern-glass-card .block-title h4 {
    padding: 18px 5px 16px;
    color: #26384c;
    font-size: 18px;
    font-weight: 700;
}

.modern-announcement-card .block-title h4 {
    font-size: 0;
}

.modern-announcement-card .block-title h4 i {
    font-size: 18px;
}

.modern-announcement-card .block-title h4::after {
    margin-left: 5px;
    content: "站点公告";
    font-size: 18px;
}

.modern-announcement-card .list-group,
.modern-announcement-card ul {
    margin-bottom: 0;
}

.modern-announcement-card .list-group-item {
    min-height: 64px;
    padding: 17px 12px;
    color: #334155;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--modern-line);
    line-height: 28px;
}

.modern-announcement-card .list-group-item:last-child {
    border-bottom: 0;
}

.modern-announcement-card .btn-xs,
.modern-announcement-card .label {
    min-width: 28px;
    height: 28px;
    margin-right: 4px;
    padding: 4px 8px;
    border: 0;
    border-radius: 50%;
    line-height: 20px;
    box-shadow: 0 5px 12px rgba(73, 127, 170, .16);
}

.modern-announcement-card .btn-danger { background: #ff8e9b; }
.modern-announcement-card .btn-success { background: #76d9ad; }
.modern-announcement-card .btn-info { background: #61bdf0; }
.modern-announcement-card .btn-warning { background: #efbd69; }

.modern-order-card .block-title {
    margin-bottom: 17px;
}

.modern-order-card .nav-tabs {
    display: flex;
    border: 0;
}

.modern-order-card .nav-tabs > li {
    flex: 1;
    width: auto !important;
    float: none;
}

.modern-order-card .nav-tabs > li > a {
    position: relative;
    margin: 0;
    padding: 20px 10px 18px;
    color: #66768b;
    background: transparent;
    border: 0 !important;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

.modern-order-card .nav-tabs > li > a::after {
    position: absolute;
    right: 18%;
    bottom: -1px;
    left: 18%;
    height: 2px;
    background: transparent;
    border-radius: 2px;
    content: "";
    transition: .2s ease;
}

.modern-order-card .nav-tabs > li:not(.active) > a:hover,
.modern-order-card .nav-tabs > li:not(.active) > a:focus {
    color: #168ce6;
    background: rgba(217, 241, 255, .62);
    border-radius: 15px;
    box-shadow: inset 0 0 18px rgba(255, 255, 255, .52);
}

.modern-order-card .nav-tabs > li.active > a,
.modern-order-card .nav-tabs > li.active > a:hover,
.modern-order-card .nav-tabs > li.active > a:focus {
    color: #168ce6;
    background: transparent;
}

.modern-order-card .nav-tabs > li.active > a::after {
    background: #1595f5;
}

.modern-order-card .tab-content {
    padding: 0;
}

.modern-order-card .form-group {
    margin-bottom: 14px;
}

.modern-order-card .input-group {
    width: 100%;
    background: rgba(255, 255, 255, .68);
    border: 1px solid rgba(194, 208, 224, .5);
    border-radius: 13px;
    box-shadow: inset 0 1px 2px rgba(64, 91, 122, .03);
}

.modern-order-card .input-group-addon {
    min-width: 82px;
    padding: 10px 12px;
    color: #68788b;
    background: rgba(255, 255, 255, .36);
    border: 0;
    border-right: 1px solid rgba(194, 208, 224, .42);
    border-radius: 13px 0 0 13px;
    font-size: 13px;
}

.modern-order-card .input-group-addon:last-child {
    min-width: 44px;
    color: #718196;
    border-right: 0;
    border-left: 1px solid rgba(194, 208, 224, .42);
    border-radius: 0 13px 13px 0;
    cursor: pointer;
}

.modern-order-card .form-control {
    height: 42px;
    color: #344256;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.modern-order-card .form-control:focus {
    box-shadow: 0 0 0 3px rgba(36, 153, 244, .1);
}

.modern-order-card select.form-control {
    cursor: pointer;
}

.modern-order-card .btn,
.modern-order-card #submit_buy {
    min-height: 38px;
    border: 0;
    border-radius: 22px !important;
    font-size: 14px;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.modern-order-card .btn:hover,
.modern-order-card #submit_buy:hover {
    transform: translateY(-1px);
}

.modern-order-card #submit_buy,
.modern-order-card .btn-primary {
    color: #fff;
    background: linear-gradient(180deg, #42aefa 0%, #178cf0 100%);
    box-shadow: 0 8px 18px rgba(24, 140, 240, .23);
}

.modern-order-card #submit_cart_shop,
.modern-order-card .btn-success {
    color: #536276;
    background: rgba(255, 255, 255, .74);
    box-shadow: 0 7px 16px rgba(72, 98, 126, .08);
}

.modern-order-card .alert {
    border: 0;
    border-radius: 13px;
}

.modern-appui .modal-content {
    overflow: hidden;
    background: rgba(250, 252, 255, .94);
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(28, 54, 83, .24);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

@media (min-width: 768px) {
    .modern-appui #sidebar { width: 220px; }
    .modern-appui #page-container.sidebar-visible-lg-full #main-container { margin-left: 220px; }
    .modern-appui #page-container.sidebar-visible-lg-full header.navbar-fixed-top { left: 220px; }
}

@media (max-width: 991px) {
    .modern-dashboard { display: block; }
    .modern-announcement-column,
    .modern-order-column { width: 100%; float: none; }
}

@media (max-width: 767px) {
    .modern-appui #page-content { padding: 14px 10px 22px; }
    .modern-dashboard { margin: 0 -5px; }
    .modern-dashboard > [class*="col-"] { padding-right: 5px; padding-left: 5px; }
    .modern-glass-card { margin-bottom: 14px; padding: 14px; border-radius: 15px; }
    .modern-appui #sidebar { box-shadow: 12px 0 32px rgba(32, 70, 105, .2); }
    .modern-order-card .input-group-addon { min-width: 76px; padding-right: 9px; padding-left: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .modern-appui *,
    .modern-appui *::before,
    .modern-appui *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
