:root {
    --bg-color: #fcf8fa;
    --accent-color: #ffb7c5;
    --text-main: #5c5266;
    --text-light: #8a8094;
    --font-kawaii: "LXGW WenKai Lite", "Noto Sans SC", serif;
}

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

body {
    background: linear-gradient(135deg, #fff5f8 0%, #f0f4ff 100%);
    font-family: var(--font-kawaii);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden; 
    position: relative;
}

#canvas-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
}

.petal {
    position: absolute;
    top: -20px;
    background: var(--accent-color);
    border-radius: 150% 0 150% 150%;
    animation: fall linear forwards;
    z-index: 1;
}

@keyframes fall {
    0% { transform: translateY(0) rotate(0deg) translateX(0); }
    100% { transform: translateY(110vh) rotate(720deg) translateX(120px); }
}

.wrapper {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 1050px; 
    height: auto; 
    display: flex;
    align-items: center; 
    gap: 40px;
    margin-top: -6vh; 
}

/* --- 左侧个人信息区 --- */
.card-left {
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px dashed rgba(180, 160, 180, 0.3);
    padding-right: 30px; 
}

.avatar-box {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 25px rgba(210, 180, 190, 0.2);
    overflow: hidden;
    margin-bottom: 20px;
}

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

.name {
    font-size: 2.2rem;
    font-weight: bold;
    color: #4a4254;
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

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

.info-tag {
    font-size: 0.95rem;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.4);
    padding: 6px 16px;
    border-radius: 20px;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.info-tag i {
    margin-right: 6px;
    color: #d1839e;
    opacity: 0.8;
}

.info-tag:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* 电脑端专属版权样式（左下角） */
.copyright {
    margin-top: 45px; 
    font-size: 0.85rem;
    color: var(--text-light);
    letter-spacing: 1px;
    opacity: 0.8;
}

/* --- 右侧文案区 --- */
.card-right {
    width: 70%;
    padding: 0 20px; 
    line-height: 1.75; 
    font-size: 1.05rem;
}

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

strong {
    color: #d1839e;
    font-weight: bold;
}

code {
    background: rgba(255, 255, 255, 0.5);
    padding: 2px 8px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9em;
    color: #b56c86;
    border: 1px solid rgba(255, 183, 197, 0.3);
}

.focus-box {
    border-left: 3px solid #d1839e;
    padding: 5px 0 5px 18px;
    margin: 15px 0; 
}

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

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

.likes-grid li {
    font-size: 0.95rem;
    color: var(--text-main);
    padding-bottom: 4px;
    border-bottom: 1px dashed rgba(210, 180, 190, 0.4);
}

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

/* =========================================
   手机端适配：重点修改了底部的排版逻辑
   ========================================= */
@media (max-width: 768px) {
    body { 
        overflow: auto; 
        justify-content: flex-start; 
    }
    .wrapper { 
        flex-direction: column; 
        height: auto; 
        margin-top: 40px; 
        margin-bottom: 40px; 
        padding-bottom: 60px; /* 给绝对定位的版权留出空间，防止和文字重叠 */
    }
    .card-left { 
        width: 100%; 
        border-right: none; 
        padding-right: 0; 
        margin-bottom: 30px; 
    }
    .card-right { 
        width: 100%; 
        padding: 0 10px; 
    }
    .likes-grid { 
        grid-template-columns: 1fr; 
    }
    
    /* 手机端将版权抽离，强行定位到最底部居中 */
    .copyright { 
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        margin-top: 0;
        text-align: center;
    }
}
