/* ============================================================
   bio.noyu.moe · 二次元日系极简
   樱花粉 × 和纸白 · 霞鹜文楷 · 极少量飘樱
   ============================================================ */

:root {
    --bg-top: #FEF8F3;
    --bg-bottom: #F3F2F8;
    --accent: #E08FA6;
    --accent-deep: #C97F97;
    --accent-soft: #FBEAF0;
    --text-main: #453E4E;
    --text-light: #857C8D;
    --line: rgba(160, 150, 165, .25);
    --font-kawaii: "LXGW WenKai Lite", "Noto Sans SC", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: linear-gradient(135deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
    font-family: var(--font-kawaii);
    color: var(--text-main);
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-soft); }

/* ---------- 飘落樱花（极简） ---------- */
#petals {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.petal {
    position: absolute;
    top: -26px;
    background: linear-gradient(135deg, #FBD3DE, #FDEAF0);
    border-radius: 150% 0 150% 150%;
    box-shadow: inset 0 0 3px rgba(224, 143, 166, .14);
    animation: fall linear infinite;
}

@keyframes fall {
    0%   { transform: translateY(0) rotate(0deg) translateX(0); }
    100% { transform: translateY(108vh) rotate(540deg) translateX(90px); }
}

/* ---------- 双栏 ---------- */
.wrapper {
    position: relative;
    z-index: 10;
    width: 92%;
    max-width: 980px;
    display: flex;
    align-items: center;
    gap: 52px;
    padding: 52px 10px;
}

/* --- 左：资料 --- */
.card-left {
    width: 29%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px dashed var(--line);
    padding-right: 38px;
}

.avatar-box {
    width: 118px;
    height: 118px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .8);
    box-shadow: 0 10px 26px rgba(190, 165, 175, .22);
    overflow: hidden;
    margin-bottom: 20px;
}

.avatar-box img { width: 100%; height: 100%; object-fit: cover; }

.name {
    font-size: 1.95rem;
    font-weight: bold;
    color: #453E4E;
    letter-spacing: .35em;
    text-indent: .35em;
    margin-bottom: 24px;
}

.personal-info {
    display: flex;
    flex-direction: column;
    gap: 11px;
    align-items: center;
}

.info-tag {
    font-size: .92rem;
    color: var(--text-light);
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(224, 143, 166, .28);
    padding: 5px 15px;
    border-radius: 999px;
    letter-spacing: 1px;
    transition: all .3s ease;
}

.info-tag i { margin-right: 6px; color: var(--accent-deep); opacity: .85; }

.info-tag:hover {
    background: #fff;
    color: var(--accent-deep);
    transform: translateY(-1px);
    border-color: rgba(224, 143, 166, .45);
}

.copyright {
    margin-top: 42px;
    font-size: .82rem;
    color: var(--text-light);
    letter-spacing: 2px;
    opacity: .72;
}

/* --- 右：正文 --- */
.card-right {
    width: 71%;
    padding: 0 6px;
    line-height: 2.05;
    font-size: 1.03rem;
}

.card-right p { margin-bottom: 13px; text-align: justify; }

strong { color: var(--accent-deep); font-weight: bold; }

code {
    background: rgba(255, 255, 255, .55);
    padding: 2px 8px;
    border-radius: 6px;
    font-family: Consolas, monospace;
    font-size: .88em;
    color: #B56C86;
    border: 1px solid rgba(224, 143, 166, .28);
}

.focus-box {
    border-left: 3px solid var(--accent);
    padding: 6px 0 6px 18px;
    margin: 16px 0;
    background: linear-gradient(90deg, rgba(224, 143, 166, .06), transparent 70%);
    border-radius: 0 10px 10px 0;
}

.focus-box p { margin-bottom: 6px; }

.sub-text { font-size: .95rem; color: var(--text-light); }

.likes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    list-style: none;
    margin: 16px 0;
    padding: 0;
}

.likes-grid li {
    font-size: .95rem;
    padding-bottom: 5px;
    border-bottom: 1px dashed rgba(200, 175, 185, .38);
    transition: color .3s ease;
}

.likes-grid li:hover { color: var(--accent-deep); }

.ending {
    margin-top: 26px;
    color: var(--text-light);
    text-align: center !important;
    letter-spacing: 1px;
}

/* --- 悬浮主页按钮 --- */
.floating-btn {
    position: fixed;
    bottom: 34px;
    right: 34px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #F6AFC0 0%, #E08FA6 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.02rem;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(224, 143, 166, .35);
    z-index: 100;
    transition: all .3s cubic-bezier(.25, .8, .25, 1);
    animation: float-breath 3.2s ease-in-out infinite;
}

.floating-btn:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 8px 22px rgba(224, 143, 166, .5);
    animation-play-state: paused;
}

@keyframes float-breath {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ---------- 手机端 ---------- */
@media (max-width: 768px) {
    .wrapper {
        flex-direction: column;
        gap: 34px;
        padding: 44px 18px 70px;
    }
    .card-left {
        width: 100%;
        border-right: none;
        padding-right: 0;
    }
    .card-right { width: 100%; padding: 0; }
    .likes-grid { grid-template-columns: 1fr; }
    /* 手机端版权放在整体底部（滚动到文档末尾才可见） */
    .copyright {
        position: absolute;
        bottom: 24px;
        left: 0;
        right: 0;
        margin-top: 0;
        text-align: center;
    }
    .floating-btn {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: .92rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .petal { display: none; }
    .floating-btn { animation: none; }
    * { transition: none !important; }
}
