:root {
    --primary-color: #e48c39;
    --header-height: 60px;
    --z-header: 99;
    --z-model: 999;
}

*,
*:before,
*:after {
  box-sizing: inherit;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 100%;
}

body {
    margin: 0;
    padding: 0;
	box-sizing: border-box;
	background-color: #fbfcfd;
	font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
	font-size: 1rem;
	color: #333;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.layout__header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    padding: 0 0.75rem;
    background-color: #fff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    z-index: var(--z-header);
}

.layout__header .logo img {
    all: initial;
    display: block;
    width: auto;
    height: 3rem;
    object-fit: contain;
}

.layout__header .nav-wrapper {
    flex: 1;
    font-family: auto;
    font-size: 1rem;
    color: #222222;
    line-height: 1.5rem;
}

.layout__header .navbar-toggle {
    display: none;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0.25rem;
    box-sizing: content-box;
    cursor: pointer;
}

.layout__header .navbar[desktop] {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.layout__header .navbar[mobile] {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.layout__header .navbar[mobile] .mobile-nav__mask {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.layout__header .navbar[mobile] .mobile-nav__content {
    position: absolute;
    max-width: 20rem;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.layout__header .navbar[mobile] .header {
    flex-shrink: 0;
    width: 100%;
    height: var(--header-height);
    padding: 0 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.layout__header .navbar[mobile] nav {
    flex: 1;
    padding: 0.75rem;
    box-sizing: border-box;
    color: #666;
    scrollbar-width: thin;
    overflow: auto;
}

.layout__header .navbar .nav-item,
.layout__header .navbar .dropdown-menu__item {
    position: relative;
    padding: 0.375rem 0.625rem;
    border-radius: 0.25rem;
    font-size: 1rem;
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
}

.layout__header .navbar[desktop] .nav-item:hover,
.layout__header .navbar[desktop] .dropdown-menu__item:hover {
    color: var(--primary-color);
    --arrow-down-color: var(--primary-color);
}

.layout__header .navbar[mobile] .nav-item:hover,
.layout__header .navbar[mobile] .dropdown-menu__item:hover,
.layout__header .navbar[desktop] .dropdown-menu__item:hover {
    background-color: #edf2fa;
}

.layout__header .navbar[desktop] .nav-item.active {
    color: var(--primary-color);
    --arrow-down-color: var(--primary-color);
}

.layout__header .navbar[mobile] .nav-item.arrow-down::after {
    content: "";
    position: absolute;
    right: 0.75rem;
    display: inline-block;
    border-width: 0.3125rem 0.3125rem 0;
    border-style: solid;
    border-color: #666 transparent;
    border-radius: 0.375rem;
    transform: rotate(0deg);
    transition: transform 0.3s ease-in-out;
}

.layout__header .navbar[desktop] .nav-item.arrow-down::after {
    content: "";
    display: inline-block;
    margin: 0 0.375rem;
    border-width: 0.3125rem 0.3125rem 0;
    border-style: solid;
    border-color: var(--arrow-down-color, #222) transparent;
    border-radius: 0.375rem;
}

.layout__header .navbar .nav-item[hot]::after {
    content: "Hot";
    display: inline-block;
    margin-left: -0.25rem;
    padding: 0.125rem 0.25rem;
    font-size: 0.75rem;
    color: #fff;
    line-height: 1;
    background-color: #ff0000;
    border-radius: 0.25rem;
    align-self: flex-start;
}

.layout__header .navbar .dropdown-menu__item {
    font-size: 0.9375rem;
}

.layout__header .navbar .dropdown-menu__item img {
    all: initial;
    width: 1.5rem; 
    margin: 0 0.375rem 0 0; 
    object-fit: contain;
}

.layout__header .navbar .dropdown {
    position: relative;
}

.layout__header .navbar[mobile] .dropdown-menu {
    display: none;
    width: 100%;
    padding: 0.25rem 0.75rem;
    box-sizing: border-box;
}

.layout__header .navbar[desktop] .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    max-height: 60vh;
    padding: 0.375rem;
    border-radius: 0.25rem;
    background-color: #fff;
    box-shadow: 
        0 0.375rem 1rem 0 rgba(0, 0, 0, 0.08), 
        0 0.1875rem 0.375rem -0.25rem rgba(0, 0, 0, 0.12), 
        0 0.5625rem 1.75rem 0.5rem rgba(0, 0, 0, 0.05);
    overflow: hidden auto;
    white-space: nowrap;
}

.layout__header .navbar[desktop] .dropdown:hover .dropdown-menu,
.layout__header .navbar[mobile] .dropdown.colapsed .dropdown-menu {
    display: block;
}

.layout__header .navbar[mobile] .dropdown.colapsed .nav-item.arrow-down::after {
    transform: rotate(180deg);
}

.layout__header .navbar[mobile] .dropdown[user] .nav-item {
    display: none;
}

.layout__header .navbar[mobile] .dropdown[user] .dropdown-menu {
    display: block;
    padding: 0;
}

.layout__header .navbar[mobile] .dropdown[user] .dropdown-menu__item {
    font-size: 1rem;
}

@media screen and (max-width: 64rem) {
    .layout__header .navbar[desktop] {
        display: none;
    }

    .layout__header .navbar-toggle {
        display: block;
    }
}

.layout__content {
    position: relative;
    width: 100%;
    min-height: calc(100vh - var(--header-height) - 7.5rem);
    margin: 0 auto;
    padding: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

.layout__content.without-footer {
    min-height: calc(100vh - var(--header-height));
}

.layout__content.size-2xs {
    max-width: 30rem;
}

.layout__content.size-xs {
    max-width: 40rem;
}

.layout__content.size-md {
    max-width: 48rem;
}

.layout__content.size-lg {
    max-width: 64rem;
}

.layout__content.size-xl {
    max-width: 80rem;
}

.layout__content.size-2xl {
    max-width: 96rem;
}

@media screen and (min-width: 48rem) {
    .layout__content {
        padding: 1.5rem;
    }
}

@media screen and (min-width: 64rem) {
    .layout__content {
        padding: 2rem;
    }
}

.layout__footer {
    position: relative;
    background-color: #303846;
    font-size: 1rem;
    color: #ebedf0;
    line-height: 1.25;
    overflow: hidden;
}

.layout__footer .container {
    all: initial;
    max-width: 100rem;
    margin: 0 auto;
    padding: 1rem;
    box-sizing: border-box;
    font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
    font-size: 1rem;
    color: #ebedf0;
    line-height: 1.25;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.layout__footer a,
.layout__footer a:link,
.layout__footer a:visited,
.layout__footer a:hover,
.layout__footer a:active {
    color: inherit;
    outline: none;
    text-decoration: none;
}

.layout__footer a:hover {
    color: #2e8555;
    text-decoration: underline;
}

.layout__footer .site-info .logo {
    width: auto;
    height: 2.5rem;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.layout__footer .site-info .desc {
    margin-top: 0.25rem;
}

.layout__footer .site-info .copyright {
    margin-top: 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.layout__footer .content {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.layout__footer .content > * {
    flex: 1;
    min-width: 10rem;
}

.layout__footer .content .title {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
}

.layout__footer .content ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 1rem;
    line-height: 1.75rem;
}

.layout__footer .contact-info {
    width: auto;
    margin: 0 auto;
}

.layout__footer .contact-info__qrcode {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.layout__footer .contact-info__qrcode-item img {
    display: block;
    max-width: 100%;
    min-width: 4.5rem;
    height: auto;
    object-fit: contain;
}

.layout__footer .contact-info__qrcode-item span {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #fff;
    line-height: 1.5;
    text-align: center;
    white-space: normal;
}

.layout__footer .contact-info__links {
    padding: 1rem 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.layout__footer .contact-info__links a {
    display: block;
    margin: 0 0.375rem;
}

@media screen and (min-width: 48rem) {
    .layout__footer .container {
        padding: 1.5rem;
    }

    .layout__footer .contact-info__qrcode {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 0.75rem;
    }
}

@media screen and (min-width: 64rem) {
    .layout__footer .container {
        padding: 2rem;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
    }

    .layout__footer .site-info {
        flex: 2;
    }

    .layout__footer .content {
        flex: 3;
    }

    .layout__footer .contact-info {
        flex: 2;
    }

    .layout__footer .site-info .copyright {
        margin-top: 3.75rem;
        font-size: 1rem;
    }
}

.layout__faq {
    position: relative;
    width: 100%;
    max-width: 75rem;
    margin: 2.5rem auto;
    padding: 0 0.75rem;
}

.layout__faq h2 {
    font-size: 1rem;
    color: #262626;
    font-weight: 600;
    text-align: center;
    margin-block-start: 0.8rem;
    margin-block-end: 1.4rem;
}

.layout__faq-item {
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    background: transparent;
    outline: 1px solid #cecece;
    transition: transform 0.3s ease;
}

.layout__faq-item:has(summary:focus-visible) {
  outline: 1px solid var(--primary-color, #3b82f6);
}

.layout__faq-item:hover {
    box-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.05);
    transform: translateY(-0.125rem);
}

.layout__faq-item summary {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: #f9fafb;
    font-size: 0.9375rem;
    color: #262626;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    outline: none;
    list-style: none;
    cursor: pointer;
}

.layout__faq-item summary::-webkit-details-marker {
  display: none;
}

.layout__faq-item > p {
    margin: 0;
    padding: 0 1rem 0.75rem;
    font-size: 0.9375rem;
    color: #636363;
    line-height: 1.5;
}

.layout__faq-item ol,
.layout__faq-item ul {
    margin: 0.375rem 0;
}

@media screen and (min-width: 48rem) {
    .layout__faq h2 {
        font-size: 1.25rem;
    }

    .layout__faq-item summary {
        font-size: 0.9375rem;
        font-weight: 600;
    }
}

@media screen and (min-width: 64rem) {
    .layout__faq h2 {
        font-size: 1.5rem;
    }

    .layout__faq-item {
        margin-bottom: 0.75rem;
    }
}