:root {
    --bg: #f0f0f0;
    --text: #333;
    --accent: #4CAF50;
    --accent-hover: #45a049;
}

* {
    box-sizing: border-box;
}

/* 始终为滚动条预留空间，避免有/无滚动条的页面之间内容横向跳动 */
html {
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    padding: 56px 24px 48px;
    min-height: 100vh;
    min-height: 100svh;
    background-color: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 720px;
    margin: 0 auto;
}

/* ============ Hero / 身份区 ============ */

.hero {
    text-align: center;
    padding-bottom: 44px;
}

/* 头像（<img>）：只保留对替换元素真正生效的声明 */
.avatar {
    display: block;
    width: 120px;
    height: 120px;
    margin: 0 auto 22px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.hero-name {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.hero-tagline {
    margin: 0 0 6px;
    font-size: 18px;
    color: #555;
}

.hero-meta {
    margin: 0 0 26px;
    font-size: 14px;
    color: #6b6b6b;
}

/* ============ 链接组 ============ */

.links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.link {
    display: inline-block;
    min-width: 88px;
    padding: 8px 18px;
    border: 1px solid #c4c4c4;
    border-radius: 999px;
    background-color: #fff;
    color: var(--text);
    text-align: center;
    text-decoration: none;
    /* 兼容 <button class="link">：清除表单控件默认样式 */
    font-family: inherit;
    font-size: 15px;
    line-height: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s, color 0.2s;
}

.link:hover {
    border-color: var(--accent);
    color: var(--accent-hover);
}

.link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.link:disabled {
    cursor: default;
    opacity: 0.6;
}

/* ============ 分隔线 ============ */

.divider {
    height: 1px;
    margin: 0 0 44px;
    border: 0;
    background-color: #c4c4c4;
}

/* ============ Section ============ */

.section {
    padding-bottom: 48px;
}

.section-title {
    margin: 0 0 16px;
    font-size: 20px;
    line-height: 1.4;
}

/* 正文跟随 .container 宽度（720px） */
.prose p {
    margin: 0 0 24px;
}

.prose p:last-child {
    margin-bottom: 0;
}

/* ============ 404 ============ */

.not-found {
    padding: 72px 0;
    text-align: center;
}

.not-found-code {
    margin: 0 0 8px;
    font-size: 72px;
    font-weight: bold;
    line-height: 1;
    color: var(--accent);
}

.not-found-title {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.4;
}

.not-found-text {
    margin: 0 0 32px;
    color: #6b6b6b;
}

/* ============ 页脚 ============ */

.footer {
    margin-top: 16px;
    padding-top: 32px;
    border-top: 1px solid #c4c4c4;
    font-size: 13px;
    color: #6b6b6b;
    text-align: center;
}

.footer p {
    margin: 0;
}

/* ============ 窄屏适配 ============ */

@media (max-width: 480px) {
    body {
        padding: 40px 20px 48px;
        font-size: 15px;
    }

    .avatar {
        width: 96px;
        height: 96px;
    }

    .hero-name {
        font-size: 26px;
    }

    .hero-tagline {
        font-size: 16px;
    }
}

/* 尊重系统的"减少动态效果"设置 */
@media (prefers-reduced-motion: reduce) {
    .link {
        transition: none;
    }
}