.mx-aurora-footer {
    --mx-scbkw-blue: #3b82f6;
    --mx-scbkw-max-width: 1200px;
    position: relative;
    clear: both;
    width: 100%;
    margin: 0;
    padding: 0;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    overflow: visible;
}

.mx-aurora-footer,
.mx-aurora-footer * {
    box-sizing: border-box;
}

.mx-aurora-footer h2,
.mx-aurora-footer h3,
.mx-aurora-footer h4,
.mx-aurora-footer p,
.mx-aurora-footer ul,
.mx-aurora-footer figure {
    margin: 0;
    padding: 0;
}

.mx-aurora-footer a {
    text-decoration: none;
}

.mx-scbkw-wrapper {
    width: 100%;
    max-width: var(--mx-scbkw-max-width);
    margin: 0 auto;
    padding-right: 20px;
    padding-left: 20px;
}

/* 顶部渐变收藏区 */
.mx-scbkw-favorite-zone {
    position: relative;
    display: flex;
    width: 100%;
    overflow: visible;
    background-image: linear-gradient(to top, #9ae8ff, transparent);
}

.mx-scbkw-favorite-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 162px;
    padding-top: 36px;
    padding-bottom: 36px;
    overflow: visible;
}

.mx-scbkw-site-info {
    width: min(44%, 500px);
    color: #333;
}

.mx-scbkw-site-info h2 {
    margin-bottom: 10px;
    color: #333;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.4;
    text-transform: uppercase;
    white-space: nowrap;
}

.mx-scbkw-site-description {
    max-width: 500px;
}

.mx-scbkw-site-description p {
    color: #797979;
    font-size: 14px;
    line-height: 1.8;
    white-space: normal;
    overflow-wrap: anywhere;
}

.dark-theme .mx-scbkw-site-info h2,
.dark-theme .mx-scbkw-site-description p,
.dark-theme .mx-scbkw-girl-info h4,
.dark-theme .mx-scbkw-girl-info p,
body.dark-theme .mx-scbkw-site-info h2,
body.dark-theme .mx-scbkw-site-description p,
body.dark-theme .mx-scbkw-girl-info h4,
body.dark-theme .mx-scbkw-girl-info p {
    color: #fff;
}

.mx-scbkw-girl-zone {
    position: absolute;
    bottom: 0;
    left: 50%;
    z-index: 2;
}

.mx-scbkw-girl {
    position: absolute;
    bottom: 0;
    left: -50px;
    width: 180px;
    transition: left .3s ease;
}

.mx-scbkw-girl::after {
    position: absolute;
    top: 40%;
    left: 100%;
    display: block;
    visibility: hidden;
    color: #a7a7a7;
    content: "Hi~";
    font-size: 20px;
    opacity: 0;
    transition: opacity .3s ease, visibility .3s ease;
}

.dark-theme .mx-scbkw-girl::after,
body.dark-theme .mx-scbkw-girl::after {
    color: #fff;
}

.mx-scbkw-girl-image {
    position: relative;
    display: block;
    width: 100%;
    height: 0;
    padding-top: 120%;
    overflow: hidden;
    background-color: transparent;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}

.mx-scbkw-girl-info {
    width: 220px;
    margin-right: 0;
    margin-bottom: 35px;
    margin-left: 150px;
}

.mx-scbkw-girl-info h4,
.mx-scbkw-girl-info p {
    color: #797979;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
}

.mx-scbkw-girl-info h4 {
    margin-bottom: 7px;
}

.mx-scbkw-favorite-zone:hover .mx-scbkw-girl {
    left: -80px;
}

.mx-scbkw-favorite-zone:hover .mx-scbkw-girl::after {
    visibility: visible;
    opacity: 1;
}

.mx-scbkw-favorite-action {
    position: absolute;
    top: 50%;
    right: 20px;
    z-index: 3;
    padding-top: 0;
    transform: translateY(-50%);
}

.mx-scbkw-favorite-button {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 150px;
    height: 49px;
    padding: 0 2em;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    outline: 0;
    background: var(--mx-scbkw-blue);
    box-shadow: none;
    color: #fff;
    font: inherit;
    font-size: 14px;
    line-height: 3.5;
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease;
}

.mx-scbkw-favorite-button::before,
.mx-scbkw-favorite-button::after {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .24);
    content: "";
    opacity: 0;
    transform: translate(-50%, -50%);
    animation: mxScbkwRipple 3s infinite;
}

.mx-scbkw-favorite-button::after {
    animation-delay: 1s;
}

.mx-scbkw-favorite-button:hover {
    box-shadow: 0 6px 15px rgba(59, 130, 246, .4);
    color: #fff;
    transform: scale(1.08);
}

.mx-scbkw-favorite-button:active {
    transform: scale(.95);
}

.mx-scbkw-favorite-icon {
    font-size: 18px;
    line-height: 1;
}

@keyframes mxScbkwRipple {
    0% {
        width: 0;
        height: 0;
        opacity: .8;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* 深色五栏页脚 */
.mx-scbkw-footer-main {
    position: relative;
    clear: both;
    width: 100%;
    padding: 0;
    background-color: #333;
    background-image: var(--mx-scbkw-texture);
    background-position: center top;
    background-repeat: repeat;
    color: #fff;
}

.mx-scbkw-widgets > .mx-scbkw-wrapper {
    border-bottom: 1px solid rgba(158, 158, 158, .23);
}

.mx-scbkw-widget-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.7fr) repeat(3, minmax(120px, .85fr)) minmax(190px, 1.1fr);
    gap: 10px;
    padding-bottom: 16px;
}

.mx-scbkw-widget {
    min-width: 0;
    padding: 0 15px;
}

.mx-scbkw-widget h3 {
    position: relative;
    margin-top: 25px;
    margin-bottom: 14px;
    margin-left: 5px;
    border: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
}

.mx-scbkw-widget h3::before {
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--mx-scbkw-blue);
    content: "";
    transition: width .3s ease;
}

.mx-scbkw-widget:hover h3::before {
    width: 80px;
}

.mx-scbkw-widget-about p {
    padding: 10px 0;
    color: #fff;
    font-size: 13px;
    line-height: 26px;
}

.mx-scbkw-widget ul {
    list-style: none;
}

.mx-scbkw-widget li {
    position: relative;
    margin: 0;
    padding: 7px 0 8px 15px;
    list-style: none;
}

.mx-scbkw-widget li::before {
    position: absolute;
    top: 9px;
    left: 1px;
    color: var(--mx-scbkw-blue);
    content: "•";
    font-size: 16px;
    line-height: 1;
}

.mx-scbkw-widget a {
    color: #fff;
    font-size: 13px;
    transition: color .3s ease, margin-left .3s ease;
}

.mx-scbkw-widget a:hover {
    margin-left: 3px;
    color: var(--mx-scbkw-blue);
}

.mx-scbkw-qr-list {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    padding-top: 5px;
}

.mx-scbkw-qr-item {
    display: block;
    margin: 0;
    padding: 0 3px;
    color: #fff;
    text-align: center;
}

.mx-scbkw-qr-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    margin: 0 auto;
    padding: 5px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
}

.mx-scbkw-qr-frame img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    border-radius: 8px;
    object-fit: contain;
    transition: transform .3s ease;
}

.mx-scbkw-qr-item:hover .mx-scbkw-qr-frame img {
    transform: scale(1.05);
}

.mx-scbkw-qr-label {
    display: block;
    max-width: 90px;
    margin-top: 8px;
    margin-bottom: 0;
    color: #fff;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
}

/* 友情链接条 */
.mx-scbkw-friends-wrap > .mx-scbkw-wrapper {
    padding-top: 0;
    padding-bottom: 0;
}

.mx-scbkw-friends {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 10px auto;
    padding: 8px 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(154, 232, 255, .3) 0, rgba(154, 232, 255, .1) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.mx-scbkw-friends strong {
    flex: 0 0 auto;
    padding: 5px 0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.mx-scbkw-friend-links {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 15px;
    min-width: 0;
}

.mx-scbkw-friend-links a,
.mx-scbkw-apply-link {
    color: #f0f0f0;
    font-size: 12px;
    white-space: nowrap;
    transition: color .3s ease;
}

.mx-scbkw-friend-links a:hover,
.mx-scbkw-apply-link:hover {
    color: var(--mx-scbkw-blue);
}

.mx-scbkw-apply-link {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 4px;
    background-color: rgba(59, 130, 246, .2);
    font-weight: 500;
}

/* 最底部版权条 */
.mx-scbkw-bottom {
    position: relative;
    clear: both;
    width: 100%;
    margin: 0;
    padding: 15px 20px;
    background-color: #000;
    color: #fff;
    font-size: 12px;
    line-height: 24px;
}

.mx-scbkw-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-right: 0;
    padding-left: 0;
}

.mx-scbkw-copyright {
    text-align: left;
}

.mx-scbkw-bottom-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: right;
}

.mx-scbkw-bottom a {
    color: #fff;
}

.mx-scbkw-bottom a:hover {
    color: #fff;
}

/* 收藏提示弹窗 */
.mx-scbkw-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    visibility: hidden;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    transition: opacity .3s ease, visibility .3s ease;
}

.mx-scbkw-popup.is-visible {
    visibility: visible;
    opacity: 1;
}

.mx-scbkw-popup-panel {
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, .9), rgba(37, 99, 235, .95));
    box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
    color: #fff;
    transform: translateY(20px);
    transition: transform .3s ease;
}

.mx-scbkw-popup.is-visible .mx-scbkw-popup-panel {
    transform: translateY(0);
}

.mx-scbkw-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.mx-scbkw-popup-header h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.mx-scbkw-popup-header button {
    padding: 0 8px;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, .8);
    font-size: 24px;
    cursor: pointer;
}

.mx-scbkw-popup-content {
    padding: 24px;
    color: #fff;
    text-align: center;
}

.mx-scbkw-popup-content p {
    margin-bottom: 20px;
    color: #fff;
    font-size: 15px;
    line-height: 1.6;
}

.mx-scbkw-popup-content button {
    padding: 10px 24px;
    border: 0;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, .2);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.mx-scbkw-popup-content button:hover {
    background-color: rgba(255, 255, 255, .3);
    transform: translateY(-2px);
}

@media (max-width: 980px) and (min-width: 769px) {
    .mx-scbkw-site-info {
        width: 38%;
    }

    .mx-scbkw-site-info h2 {
        font-size: 21px;
    }

    .mx-scbkw-site-description p {
        font-size: 12px;
    }

    .mx-scbkw-girl-info {
        display: none;
    }

    .mx-scbkw-widget-grid {
        grid-template-columns: 1.3fr repeat(3, .75fr) 1fr;
    }

    .mx-scbkw-qr-frame {
        width: 74px;
        height: 74px;
    }
}

@media (max-width: 768px) {
    .mx-scbkw-favorite-zone {
        padding: 0 15px;
        overflow: hidden;
    }

    .mx-scbkw-favorite-inner {
        flex-wrap: wrap;
        min-height: 158px;
        padding: 20px 0 0;
    }

    .mx-scbkw-site-info {
        width: 50%;
        padding-right: 10px;
    }

    .mx-scbkw-site-info h2 {
        margin-bottom: 10px;
        font-size: 20px;
        white-space: normal;
    }

    .mx-scbkw-site-description,
    .mx-scbkw-girl-info,
    .mx-scbkw-favorite-action,
    .mx-scbkw-widget-grid,
    .mx-scbkw-friends-wrap {
        display: none !important;
    }

    .mx-scbkw-girl-zone {
        position: static;
        display: flex;
        align-items: flex-start;
        justify-content: flex-end;
        width: 50%;
        margin-left: auto;
        padding-top: 10px;
    }

    .mx-scbkw-girl {
        position: static;
        width: 100%;
        max-width: 120px;
        height: auto;
    }

    .mx-scbkw-girl::after {
        display: none;
    }

    .mx-scbkw-girl-image {
        padding-top: 133.333%;
    }

    .mx-scbkw-widgets > .mx-scbkw-wrapper {
        border-bottom: 0;
    }

    .mx-scbkw-bottom {
        padding: 15px 20px;
    }

    .mx-scbkw-bottom-inner {
        flex-direction: column;
        align-items: center;
        gap: 5px;
        text-align: center;
    }

    .mx-scbkw-copyright {
        width: 100%;
        font-size: 10px;
        line-height: 1.8;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .mx-scbkw-bottom-meta {
        justify-content: center;
        width: 100%;
        font-size: 10px;
        line-height: 1.8;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .mx-scbkw-site-info h2 {
        font-size: 17px;
    }

    .mx-scbkw-popup-panel {
        border-radius: 12px;
    }

    .mx-scbkw-popup-header,
    .mx-scbkw-popup-content {
        padding: 15px 20px;
    }

    .mx-scbkw-popup-content p {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mx-scbkw-favorite-button::before,
    .mx-scbkw-favorite-button::after {
        animation: none;
    }

    .mx-scbkw-girl,
    .mx-scbkw-girl::after,
    .mx-scbkw-favorite-button,
    .mx-scbkw-widget h3::before,
    .mx-scbkw-qr-frame img {
        transition: none;
    }
}
