/* SPINSINI 黄白主题 */

.open-side-menu #sideMenu {
    right: unset;
    left: 0;
}

#sideMenu {
    background: rgba(255, 252, 239, 0.97);
    color: #513600;
    display: flex;
    width: 270px;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    transition: left .3s ease;
    top: 0;
    padding-bottom: 41px;
    position: fixed;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
    z-index: 300;
    left: -270px;
    right: unset;
}

/* 黄色关闭按钮 */
#sideMenu .ic-close,
#sideMenu .ic-close-circle {
    position: absolute;
    width: 28px;
    height: 28px;
    opacity: 1;
    left: 8px !important;
    right: auto !important;
    top: 13px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 1px solid #efda83;
    border-radius: 8px;
    background: linear-gradient(
        180deg,
        #fff18a 0%,
        #ffda32 55%,
        #ffbc00 100%
    );
    box-shadow: 0 2px 8px rgba(230, 178, 0, .18);
    cursor: pointer;
}

#sideMenu .ic-close-circle {
    border-radius: 50%;
}

#sideMenu .ic-close::before,
#sideMenu .ic-close::after,
#sideMenu .ic-close-circle::before,
#sideMenu .ic-close-circle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: 16px;
    height: 2px;
    margin: 0;
    border-radius: 2px;
    background: #513600;
}

#sideMenu .ic-close::before,
#sideMenu .ic-close-circle::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

#sideMenu .ic-close::after,
#sideMenu .ic-close-circle::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Logo 外框 */
#sideMenu .sidemenu-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 90px;
    height: 90px;
    min-height: 90px;
    padding: 10px 40px;
    box-sizing: border-box;
    background: transparent;
}

/* Logo 尺寸限制 */
#sideMenu .sidemenu-header img.logo {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 190px !important;
    max-height: 70px !important;
    object-fit: contain;
    padding: 0 !important;
    margin: 0 !important;
}

.welcome-section {
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.welcome-text {
    font-size: 16px;
    font-weight: 700;
    color: #805700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.register-btn {
    display: block !important;
    width: 90%;
    padding: 8px 6px;
    background: linear-gradient(
        180deg,
        #fff18a 0%,
        #ffda32 48%,
        #ffbc00 100%
    );
    color: #513600;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 178, 0, .28);
}

.login-text {
    margin-top: 15px;
    font-size: 11px;
    color: #513600;
}

.login-text a {
    color: #9b7100;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.logout-text {
    margin-top: 5px;
    font-size: 12px;
    color: #513600;
}

.logout-text a {
    color: #513600;
    background: linear-gradient(
        180deg,
        #fff18a 0%,
        #ffda32 48%,
        #ffbc00 100%
    );
    padding: 7px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: -1.6px;
    text-transform: none;
}

#sideMenu .menu-section {
    padding: 10px;
}

#sideMenu .menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

#sideMenu .menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px 0px;
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #fffdf3 52%,
        #fff1b8 100%
    );
    border: 0px solid #efda83;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 70px;
    position: relative;
    cursor: pointer;
}

#sideMenu .menu-item-icon {
    width: 32px;
    height: 24px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9b7100;
}

#sideMenu .menu-item-label {
    font-size: 9px;
    color: #6a4700;
    text-align: center;
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
}

.menu-footer {
    padding: 10px;
    border-top: 1px solid #efda83;
    margin-bottom: 30px;
}

.accordion-wrapper {
    width: 100%;
}

.footer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #fffdf3 52%,
        #fff1b8 100%
    );
    border: 0px solid #efda83;
    border-radius: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.accordion-trigger {
    cursor: pointer;
    user-select: none;
}

.footer-link-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-icon {
    width: 20px;
    height: 20px;
    color: #9b7100;
}

.footer-text {
    font-size: 14px;
    color: #6a4700;
    font-weight: 500;
}

.footer-arrow.rotated {
    transform: rotate(90deg);
}

.footer-arrow {
    color: #9b7100;
    font-size: 18px;
    transition: transform 0.2s;
}

.accordion-content.active {
    max-height: 1000px;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    background: #fffbee;
    border-radius: 0 0 10px 10px;
    margin-top: -10px;
    margin-bottom: 10px;
}

.sub-link {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    text-decoration: none;
    color: #6a4700;
    border-bottom: 1px solid #f7e6a1;
    font-size: 14px;
    font-weight: 500;
}

.sub-link img {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    object-fit: contain;
    flex-shrink: 0;
}

.sub-link.active-language {
    background: linear-gradient(
        180deg,
        #ffe879 0%,
        #ffd21f 48%,
        #ffbd00 100%
    );
    color: #513600;
    font-weight: 600;
    border-left: 3px solid #b48600;
}

/*
   匹配 HTML 原本的内联颜色，
   统一覆盖成 SPINSINI 黄色。
*/
#sideMenu .footer-link.accordion-trigger[style*="#1257cb"],
#sideMenu .footer-link.accordion-trigger[style*="#c90012"] {
    background: linear-gradient(
        135deg,
        #fff18a,
        #ffd21f,
        #ffbc00
    ) !important;
}

#sideMenu .footer-link.accordion-trigger[style*="#1257cb"] .footer-icon,
#sideMenu .footer-link.accordion-trigger[style*="#1257cb"] .footer-text,
#sideMenu .footer-link.accordion-trigger[style*="#1257cb"] .footer-arrow,
#sideMenu .footer-link.accordion-trigger[style*="#c90012"] .footer-icon,
#sideMenu .footer-link.accordion-trigger[style*="#c90012"] .footer-text,
#sideMenu .footer-link.accordion-trigger[style*="#c90012"] .footer-arrow {
    color: #513600 !important;
}

.side-copyright {
    text-align: center;
    padding: 10px;
    font-size: 12px;
    color: #856b36;
    background: #fffbeffc;
    bottom: 0;
    position: fixed;
    margin: 0px 0px 0px 0px;
    width: 270px;
    margin-left: -10px;
}

.side-copyright a {
    color: #9b7100;
}

#header {
    width: 100% !important;
    color: #9b7100;
    background-size: 100% 100% !important;
}