/* ===== 全局重置 & 基础 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background: #0a0e1a;
    color: #e8e8e8;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: default;
}

/* 星空 canvas */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* 鼠标光晕 */
.glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 192, 64, 0.06) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: opacity 0.4s ease;
    will-change: transform;
}

/* 主容器 */
.container {
    position: relative;
    z-index: 1;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
}

/* ===== 头部 ===== */
header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 0.5rem 0;
}

.avatar {
    font-size: 3.6rem;
    display: inline-block;
    margin-bottom: 0.2rem;
    filter: drop-shadow(0 0 20px rgba(240, 192, 64, 0.2));
    animation: float 6s ease-in-out infinite;
}

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

#typing-title {
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: #f0c040;
    text-shadow: 0 0 30px rgba(240, 192, 64, 0.1);
    min-height: 3.2rem;
    margin-bottom: 0.2rem;
    font-family: "Georgia", "KaiTi", serif;
}

#typing-title::after {
    content: "|";
    display: inline-block;
    animation: blink 0.9s step-end infinite;
    color: #f0c040;
    font-weight: 300;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.name {
    font-size: 1.8rem;
    font-weight: 600;
    color: #e8e0d0;
    letter-spacing: 6px;
    margin-top: 0.2rem;
}

.sub {
    font-size: 0.95rem;
    color: #8899bb;
    letter-spacing: 1px;
    margin-top: 0.1rem;
}

.bio {
    margin-top: 0.6rem;
    font-size: 0.95rem;
    color: #99aac0;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ===== 平铺区块 ===== */
.section-list {
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.section {
    padding: 1.6rem 0.2rem 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section:last-child {
    border-bottom: none;
}

.section h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #f0e8d0;
    margin-bottom: 0.7rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.section-icon {
    font-size: 1.25rem;
}

.section p {
    color: #c8d0e0;
    font-size: 0.92rem;
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.section p strong {
    color: #f0e8d0;
    font-weight: 600;
}

/* 技术区块 */
.tech-block {
    margin-bottom: 0.9rem;
}
.tech-block p {
    margin-bottom: 0.15rem;
}

/* 小字备注 */
.section .note {
    font-size: 0.82rem;
    opacity: 0.6;
}

/* 诙谐收尾 */
.section .joke {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #8a97b0;
    font-style: italic;
    letter-spacing: 1px;
}

/* ===== 底部 ===== */
footer {
    text-align: center;
    padding: 1.8rem 0 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 0.5rem;
}

footer p {
    color: #667799;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

footer .footer-small {
    font-size: 0.75rem;
    color: #445577;
    margin-top: 0.2rem;
    letter-spacing: 2px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    body {
        padding: 1.2rem 1rem;
    }
    #typing-title {
        font-size: 1.6rem;
        min-height: 2.8rem;
    }
    .name {
        font-size: 1.5rem;
        letter-spacing: 4px;
    }
    .avatar {
        font-size: 2.8rem;
    }
    .section {
        padding: 1.3rem 0.1rem 1.5rem;
    }
    .glow {
        width: 300px;
        height: 300px;
        opacity: 0.5;
    }
}

@media (max-width: 480px) {
    #typing-title {
        font-size: 1.2rem;
        min-height: 2rem;
    }
    .name {
        font-size: 1.2rem;
    }
    .section h2 {
        font-size: 1.05rem;
    }
    .section p {
        font-size: 0.85rem;
    }
}
