:root {
    --font-color: #5f4a70;
    --card-bg: rgba(255, 255, 255, 0.92);
    --overlay: rgba(255, 255, 255, 0.64);
    --bg-fallback: #efe6f1;
    --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html,
body {
    min-height: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--font-color);
    background: var(--bg-fallback);
    min-height: 100vh;
}

/* --- 背景图 + 白色遮罩 --- */
.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: var(--bg-fallback);
}

.bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.bg .overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay);
}

.container {
    position: relative;
    z-index: 1;
}

/* --- 页面主体 --- */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 48px 20px 56px;
}

/* --- 头像与个人信息 --- */
.profile {
    text-align: center;
    margin-bottom: 30px;
}

.avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 18px;
    border-radius: 50%;
    border: 2px solid var(--font-color);
    background: #fff;
    box-shadow: 6px 8px 0 rgba(95, 74, 112, 0.9);
    overflow: hidden;
}

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

h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-indent: 0.12em;
}

.tagline {
    margin-top: 6px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.meta {
    margin-top: 4px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
}

.socials a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 2px solid var(--font-color);
    color: var(--font-color);
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 3px 4px 0 rgba(95, 74, 112, 0.8);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.socials a:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 5px 0 rgba(95, 74, 112, 0.9);
}

.profile-text {
    margin-top: 22px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* --- lit.link 风格卡片 --- */
.card-block {
    position: relative;
    margin-bottom: 20px;
}

.card-block::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 8px;
    width: 100%;
    height: 100%;
    background: var(--font-color);
}

.card {
    position: relative;
    z-index: 1;
    background: var(--card-bg);
    border: 2px solid var(--font-color);
    padding: 16px 18px;
}

.card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.card-body {
    font-size: 0.98rem;
    line-height: 1.75;
}

.card-body p {
    margin-bottom: 10px;
    text-align: justify;
}

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

.interests {
    list-style: none;
    margin-top: 2px;
}

.interests li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(95, 74, 112, 0.25);
}

.interests li:last-child {
    border-bottom: none;
}

.interests i {
    width: 20px;
    text-align: center;
}

/* --- 可点击链接卡片 --- */
a.link-item {
    position: relative;
    display: block;
    margin-bottom: 18px;
    color: var(--font-color);
    text-decoration: none;
}

a.link-item::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 8px;
    width: 100%;
    height: 100%;
    background: var(--font-color);
}

.card.link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    transition: transform 0.15s ease;
}

a.link-item:hover .card.link-card {
    transform: translate(-2px, -2px);
}

.link-card > i:first-child {
    width: 24px;
    text-align: center;
    font-size: 1.15rem;
}

.link-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.link-text strong {
    font-size: 1rem;
}

.link-text small {
    margin-top: 2px;
    font-size: 0.82rem;
    opacity: 0.75;
}

.link-arrow {
    opacity: 0.7;
}

/* --- 页脚 --- */
footer {
    margin-top: 34px;
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    opacity: 0.75;
}

/* --- 手机端适配 --- */
@media (max-width: 520px) {
    .container {
        padding: 32px 16px 44px;
    }

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

    h1 {
        font-size: 1.7rem;
    }

    .card {
        padding: 14px 14px;
    }
}
