/* 底部提示语通用样式 */
.footer-tip {
    max-width: 800px;
    margin: 16px auto 100px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(255,182,217,0.1), rgba(255,240,245,0.1));
    border-left: 3px solid rgba(255,107,157,0.5);
    border-radius: 8px;
    font-size: 13px;
    color: #888;
    text-align: center;
    line-height: 1.6;
    font-family: 'Comic Sans MS', 'KaiTi', cursive;
}

.footer-tip.random {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.site-record-footer {
    width: min(92vw, 760px);
    margin: max(0px, calc(18vh - 200px)) auto 0;
    padding: 8px 14px 0;
    border-top: 1px solid rgba(255, 182, 193, 0.28);
    color: rgba(105, 72, 86, 0.72);
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
    background: transparent;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-record-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
}

.site-record-footer a {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.site-record-footer a:hover {
    text-decoration: none;
}

@media (max-width: 520px) {
    .site-record-footer {
        width: calc(100vw - 16px);
        margin-top: max(0px, calc(22vh - 200px));
        padding: 6px 8px 0;
        font-size: 10px;
        line-height: 1.35;
    }

    .site-record-line {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px 10px;
    }

    .site-record-line a[href^="mailto:"] {
        flex-basis: 100%;
        text-align: center;
    }

    body:focus-within .site-record-footer {
        opacity: 0;
        transform: translateY(20px);
        pointer-events: none;
    }
}
.legal-page {
    min-height: 100vh;
    margin: 0;
    padding: 24px 16px 28px;
    background: linear-gradient(135deg, #fff5f9 0%, #ffeef7 50%, #fffafc 100%);
    color: #6b4858;
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    overflow-x: hidden;
}

.legal-page *,
.legal-page *::before,
.legal-page *::after {
    box-sizing: border-box;
}

.legal-card {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 22px;
    border: 1px solid rgba(255, 182, 193, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 28px rgba(120, 72, 92, 0.1);
    line-height: 1.8;
    overflow-wrap: break-word;
    word-break: break-word;
}

.legal-card h1 {
    margin: 10px 0 18px;
    font-size: 24px;
}

.legal-card p {
    margin: 12px 0;
}

.legal-card a {
    color: rgba(180, 82, 118, 0.9);
    text-decoration: none;
}

.legal-card a:hover {
    text-decoration: underline;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(255, 107, 157, 0.22);
}

.legal-back:hover {
    text-decoration: none;
}

@media (max-width: 520px) {
    .legal-page {
        padding: 18px 14px 24px;
    }

    .legal-card {
        padding: 20px 18px;
        font-size: 15px;
    }

    .legal-card h1 {
        font-size: 22px;
    }
}
