/* ============================================================
   LiteLog · PC 聚合底部
   作用域与原 LightSNS 模块完全一致：.YXYH-pc-footer-test
   ============================================================ */

#yxyh-pc-footer-mount[hidden] { display: none !important; }

.YXYH-pc-footer-test {
    --YXYH-footer-bg: var(--ls-bg-white, #ffffff);
    --YXYH-footer-text: var(--ls-text-primary, #202124);
    --YXYH-footer-muted: var(--ls-text-muted, #7f7f7f);
    --YXYH-footer-line: var(--ls-border, rgba(0, 0, 0, .08));
    --YXYH-footer-soft: var(--ls-bg-light, #f6f8fb);
    --YXYH-footer-blue: var(--ls-primary, #3385ff);
    --YXYH-footer-pink: #ff3e86;
    --YXYH-footer-orange: #ffaa00;
    --YXYH-footer-green: #24b47e;
    color: var(--YXYH-footer-muted);
    font-size: 13px;
    
    /* 修复遮挡：去掉负 margin 和顶部 padding，正常流排布 */
    margin-top: 0;
    padding-top: 0;
    position: relative;
    z-index: 10;
}

.YXYH-pc-footer-test a { text-decoration: none; }

/* ---------- 波浪 ---------- */
.YXYH-pc-footer-test .YXYH-footer-wave-box {
    height: 60px; margin-bottom: -5px; overflow: hidden;
    pointer-events: none; position: relative; z-index: 0;
}
.YXYH-pc-footer-test .YXYH-footer-wave-svg {
    display: block; height: 15vh; margin-bottom: -5px;
    max-height: 60px; min-height: 40px; position: relative; width: 100%;
}
.YXYH-pc-footer-test .YXYH-footer-wave-stack use {
    animation: YXYH-footer-wave-drift 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.YXYH-pc-footer-test .YXYH-footer-wave-stack use:nth-child(1) { animation-delay:-2s; animation-duration:7s;  fill: rgba(51,133,255,.16); }
.YXYH-pc-footer-test .YXYH-footer-wave-stack use:nth-child(2) { animation-delay:-3s; animation-duration:10s; fill: rgba(36,180,126,.12); }
.YXYH-pc-footer-test .YXYH-footer-wave-stack use:nth-child(3) { animation-delay:-4s; animation-duration:13s; fill: rgba(255,62,134,.10); }
.YXYH-pc-footer-test .YXYH-footer-wave-stack use:nth-child(4) { animation-delay:-5s; animation-duration:16s; fill: var(--YXYH-footer-bg); }

@keyframes YXYH-footer-wave-drift {
    0%   { transform: translate3d(-90px, 0, 0); }
    100% { transform: translate3d(85px, 0, 0); }
}

/* ---------- 主舞台 ---------- */
.YXYH-pc-footer-test .YXYH-footer-stage {
    background: var(--YXYH-footer-bg);
    line-height: 1.9; padding-top: 10px; position: relative;
}
.YXYH-pc-footer-test .YXYH-footer-layout {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 10px auto; max-width: var(--ls-width, 1200px);
    padding-inline-start: 24px; padding-inline-end: 24px;
}

/* ---------- 品牌区 ---------- */
.YXYH-pc-footer-test .YXYH-footer-profile {
    min-width: 0; min-height: 190px;
    padding-inline-end: 22px; position: relative;
}
.YXYH-pc-footer-test .YXYH-footer-profile:after {
    background: var(--YXYH-footer-line); content: "";
    height: 88%; position: absolute; inset-inline-end: 0;
    top: 8px; width: 1px;
}
.YXYH-pc-footer-test .YXYH-footer-title-row {
    align-items: center; display: flex; gap: 14px; min-width: 0;
}
.YXYH-pc-footer-test .YXYH-footer-title-logo {
    border-radius: 8px; display: block; flex: 0 0 auto;
    height: 38px; max-width: 168px; object-fit: contain;
    width: auto;
}
.YXYH-pc-footer-test .YXYH-footer-title-logo-icon {
    align-items: center;
    background: var(--YXYH-footer-logo-icon-bg, linear-gradient(135deg, #6366f1, #8b5cf6));
    border-radius: 10px;
    color: var(--YXYH-footer-logo-icon-color, #ffffff);
    display: inline-flex; flex: 0 0 auto;
    height: 36px; justify-content: center; width: 36px;
}
.YXYH-pc-footer-test .YXYH-footer-title-logo-icon i { font-size: var(--YXYH-footer-logo-icon-size, 22px); }
.YXYH-pc-footer-test .YXYH-footer-title-logo-icon svg {
    width: var(--YXYH-footer-logo-icon-size, 22px);
    height: var(--YXYH-footer-logo-icon-size, 22px);
    display: block;
}
.YXYH-pc-footer-test .YXYH-footer-title-row h2 {
    color: var(--YXYH-footer-text); font-size: 20px;
    font-weight: 700; line-height: 1.3; margin: 4px 0 0;
}
.YXYH-pc-footer-test .YXYH-footer-summary {
    color: var(--YXYH-footer-muted); line-height: 1.8;
    margin: 16px 0 0; overflow-wrap: anywhere; word-break: break-word;
}
.YXYH-pc-footer-test .YXYH-footer-meta {
    color: var(--YXYH-footer-muted); display: block;
    line-height: 1.8; margin: 14px 0 0;
    overflow-wrap: anywhere; text-align: start;
}

/* ---------- 导航区 ---------- */
.YXYH-pc-footer-test .YXYH-footer-map {
    display: grid;
    grid-template-columns: repeat(var(--YXYH-footer-nav-cols, 3), minmax(0, 1fr));
    gap: 12px 8px;
    min-width: 0;
    padding-inline-start: 10px;
    padding-inline-end: 10px;
}
.YXYH-pc-footer-test .YXYH-footer-map-group { text-align: center; }
.YXYH-pc-footer-test .YXYH-footer-map-title {
    color: var(--YXYH-footer-text); display: inline-block;
    font-size: 13px; font-weight: 700; margin: 0 0 8px;
}
.YXYH-pc-footer-test .YXYH-footer-map-links {
    display: flex; flex-direction: column; gap: 5px;
}
.YXYH-pc-footer-test .YXYH-footer-map-links a {
    color: var(--YXYH-footer-muted); font-size: 13px;
}
.YXYH-pc-footer-test .YXYH-footer-map-links a:hover { color: var(--YXYH-footer-blue); }

/* ---------- 右侧功能卡 ---------- */
.YXYH-pc-footer-test .YXYH-footer-feature-panel {
    min-width: 0; padding-inline-start: 14px; position: relative;
}
.YXYH-pc-footer-test .YXYH-footer-feature-panel:before {
    background: var(--YXYH-footer-line); content: "";
    height: 88%; inset-inline-start: 0; position: absolute;
    top: 8px; width: 1px;
}
.YXYH-pc-footer-test .YXYH-footer-feature-list {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.YXYH-pc-footer-test .YXYH-footer-feature {
    position: relative; text-align: center;
    display: flex; align-items: center; justify-content: center;
}
.YXYH-pc-footer-test .YXYH-footer-feature-trigger {
    align-items: center; appearance: none; background: transparent;
    border: 0; cursor: pointer; display: flex; flex-direction: column;
    gap: 8px; margin: 0; padding: 0; transition: transform .2s;
}
.YXYH-pc-footer-test .YXYH-footer-feature-image {
    align-items: center;
    background: var(--YXYH-footer-feature-icon-bg, transparent);
    border-radius: 14px;
    color: var(--YXYH-footer-feature-icon-color, var(--YXYH-footer-blue));
    display: inline-flex; height: 55px; justify-content: center; width: 55px;
}
.YXYH-pc-footer-test .YXYH-footer-feature-image i {
    font-size: var(--YXYH-footer-feature-icon-size, 25px);
}
.YXYH-pc-footer-test .YXYH-footer-feature-image svg {
    width: var(--YXYH-footer-feature-icon-size, 25px);
    height: var(--YXYH-footer-feature-icon-size, 25px);
    display: block;
}
.YXYH-pc-footer-test .YXYH-footer-feature-image-photo {
    background-position: center; background-repeat: no-repeat;
    background-size: cover;
}
.YXYH-pc-footer-test .YXYH-footer-feature:hover .YXYH-footer-feature-trigger {
    transform: translateY(-2px);
}
.YXYH-pc-footer-test .YXYH-footer-feature-name {
    color: #999; display: block; font-size: 13px; line-height: 1.25;
    max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.YXYH-pc-footer-test .YXYH-footer-feature-pop {
    -webkit-backdrop-filter: blur(18px);
    align-content: center; aspect-ratio: 1 / 1;
    backdrop-filter: blur(18px);
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(51,133,255,.12);
    border-radius: 18px; bottom: calc(100% + 10px);
    box-sizing: border-box;
    box-shadow: 0 24px 56px rgba(15,23,42,.14);
    display: grid; grid-template-columns: 1fr; height: 156px;
    justify-items: center; opacity: 0; padding: 14px;
    pointer-events: none; position: absolute; left: 50%;
    text-align: center;
    transform: translateX(-50%) translateY(8px) scale(.98);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    visibility: hidden; width: 156px; z-index: 30;
}
.YXYH-pc-footer-test .YXYH-footer-feature-pop:before {
    content: ""; height: 12px; inset-inline-start: 0;
    position: absolute; inset-inline-end: 0; bottom: -12px;
}
.YXYH-pc-footer-test .YXYH-footer-feature-pop:after {
    border-inline-start: 6px solid transparent;
    border-inline-end: 6px solid transparent;
    border-top: 6px solid rgba(255,255,255,.94);
    content: ""; left: 50%; position: absolute; top: 100%;
    transform: translateX(-50%);
}
.YXYH-pc-footer-test .YXYH-footer-feature:hover .YXYH-footer-feature-pop {
    opacity: 1; pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
    visibility: visible;
}
.YXYH-pc-footer-test .YXYH-footer-pop-media {
    display: flex; justify-content: center; width: 100%;
}
.YXYH-pc-footer-test .YXYH-footer-pop-media span {
    background-position: center; background-repeat: no-repeat;
    background-size: cover; border-radius: 16px;
    display: block; height: 124px; width: 124px;
}

/* ---------- 内容统计 ---------- */
.YXYH-pc-footer-test .YXYH-footer-count { margin-top: 20px; text-align: center; }
.YXYH-pc-footer-test .YXYH-footer-count strong {
    background-image: linear-gradient(90deg, #13adff 0, #3385ff 50%, #3385ff);
    font-size: 54px; font-weight: 700; line-height: 1.24;
    position: relative; -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.YXYH-pc-footer-test .YXYH-footer-count strong:after {
    background-image: linear-gradient(90deg, #13adff 0, #3385ff 50%, #3385ff);
    content: "+"; font-size: 28px; position: absolute;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.YXYH-pc-footer-test .YXYH-footer-count span { display: block; font-size: 12px; }

/* ---------- 小脸 ---------- */
.YXYH-pc-footer-test .YXYH-footer-charm {
    align-items: flex-start; display: flex; justify-content: center;
    margin: 2px auto -17px;
    max-width: var(--ls-width, 1200px);
    min-height: 38px; pointer-events: none;
    position: relative; z-index: 4;
}
.YXYH-pc-footer-test .YXYH-footer-charm-face {
    background: linear-gradient(135deg, #ffd166, #ff7a90);
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 18px 18px 10px 10px;
    box-shadow: 0 8px 18px rgba(255,122,144,.20);
    display: block; height: 24px; position: relative; width: 58px; z-index: 5;
}
.YXYH-pc-footer-test .YXYH-footer-charm-eye {
    background: #fff; border-radius: 50%; display: block;
    height: 8px; overflow: hidden; position: absolute; top: 7px; width: 8px;
}
.YXYH-pc-footer-test .YXYH-footer-charm-eye-left  { inset-inline-start: 16px; }
.YXYH-pc-footer-test .YXYH-footer-charm-eye-right { inset-inline-end:   16px; }
.YXYH-pc-footer-test .YXYH-footer-charm-eye span {
    background: #27364f; border-radius: 50%; display: block;
    height: 4px; inset-inline-start: 2px; position: absolute;
    top: 2px;
    transform: translate(var(--YXYH-footer-eye-x, 0), var(--YXYH-footer-eye-y, 0));
    transition: transform .08s linear;
    width: 4px;
}
.YXYH-pc-footer-test .YXYH-footer-charm-mouth {
    border-bottom: 2px solid rgba(39,54,79,.58);
    border-radius: 0 0 10px 10px; display: block;
    height: 5px; inset-inline-start: 24px;
    position: absolute; top: 14px; width: 10px;
}
.YXYH-pc-footer-test .YXYH-footer-charm-hand {
    background: linear-gradient(135deg, #ffd166, #ff7a90);
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 999px;
    box-shadow: 0 5px 10px rgba(255,122,144,.18);
    display: block; height: 14px; position: relative;
    top: 15px; width: 18px; z-index: 6;
}
.YXYH-pc-footer-test .YXYH-footer-charm-hand:after {
    background: rgba(39,54,79,.16); border-radius: 999px;
    content: ""; display: block; height: 2px;
    inset-inline-start: 4px; position: absolute; top: 8px; width: 10px;
}
.YXYH-pc-footer-test .YXYH-footer-charm-hand-left  { transform: rotate(-12deg); }
.YXYH-pc-footer-test .YXYH-footer-charm-hand-right { transform: rotate(12deg); }

/* ---------- 友链 ---------- */
.YXYH-pc-footer-test .YXYH-footer-friends {
    border-top: 1px solid var(--YXYH-footer-line);
    margin: auto; overflow: hidden; padding: 5px;
    position: relative; text-align: center; text-overflow: ellipsis;
}
.YXYH-pc-footer-test .YXYH-footer-friends a { color: var(--YXYH-footer-muted); }
.YXYH-pc-footer-test .YXYH-footer-friends a:hover { color: var(--YXYH-footer-blue); }
.YXYH-pc-footer-test .YXYH-footer-friends b { font-weight: 400; }

/* ---------- 版权 / 备案 ---------- */
.YXYH-pc-footer-test .YXYH-footer-legal {
    color: #7f7f7f; font-size: 12px; line-height: 1.5;
    text-align: center; padding-bottom: 10px;
}
.YXYH-pc-footer-test .YXYH-footer-legal a { color: #7f7f7f; }
.YXYH-pc-footer-test .YXYH-footer-legal a:hover { color: #acacac; }

/* ---------- 响应式 ---------- */
@media screen and (max-width: 1023px) {
    .YXYH-pc-footer-test .YXYH-footer-layout { display: block; }
    .YXYH-pc-footer-test .YXYH-footer-map { display: none; }
    .YXYH-pc-footer-test .YXYH-footer-feature-panel { display: none; }
    .YXYH-pc-footer-test .YXYH-footer-profile {
        min-height: auto; padding-bottom: 12px;
        padding-inline-end: 0; text-align: center;
    }
    .YXYH-pc-footer-test .YXYH-footer-profile:after { content: none; }
    .YXYH-pc-footer-test .YXYH-footer-title-row { justify-content: center; }
}
@media screen and (max-width: 768px) {
    .YXYH-pc-footer-test .YXYH-footer-layout {
        padding-inline-start: 16px; padding-inline-end: 16px;
    }
    .YXYH-pc-footer-test .YXYH-footer-friends {
        padding-inline-start: 16px; padding-inline-end: 16px;
    }
    .YXYH-pc-footer-test .YXYH-footer-legal { padding-bottom: 55px; }
}