/* XCJ 小站 · 磨砂质感 */

:root {
    --fg: #1a1a1a;
    --muted: #666;
    --line: rgba(0, 0, 0, 0.08);
    --card-bg: rgba(255, 255, 255, 0.82);
    --card-line: rgba(255, 255, 255, 0.65);
}

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

html, body { height: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--fg);
    line-height: 1.7;
    min-height: 100vh;
    background: #eef1f5 url("../images/bg/1.jpg") center / cover no-repeat;
    -webkit-font-smoothing: antialiased;
}

/* 背景遮罩：压柔底图，保证卡片区域可读 */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(160deg, rgba(248, 249, 252, 0.62), rgba(232, 236, 243, 0.55));
}

.wrap {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 48px auto;
    min-height: calc(100vh - 96px);
    padding: 48px 32px 28px;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid var(--card-line);
    border-radius: 22px;
    box-shadow: 0 12px 40px rgba(31, 41, 55, 0.12);
}

/* 头像与名字 */
.profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 14px rgba(31, 41, 55, 0.15);
    transition: transform 0.25s ease;
}

.avatar:hover { transform: scale(1.06); }

.name {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.bio {
    color: var(--muted);
    font-size: 15px;
    margin-top: 2px;
}

/* 一言 */
.quote {
    border-left: 2px solid rgba(0, 0, 0, 0.12);
    padding: 2px 0 2px 14px;
    margin: 0 0 32px;
}

.quote .text {
    font-size: 15px;
    transition: opacity 0.25s ease;
}

.quote .from {
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px;
    transition: opacity 0.25s ease;
}

.quote-refresh {
    margin-top: 10px;
    padding: 6px 12px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease, color 0.2s ease;
}

.quote-refresh:hover {
    background: rgba(255, 255, 255, 0.75);
    color: var(--fg);
}

/* 链接列表 */
.links {
    display: flex;
    flex-direction: column;
    margin-bottom: 32px;
}

.links a {
    color: var(--fg);
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
    padding: 14px 12px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.links a:last-child { border-bottom: 1px solid var(--line); }

.links a:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateX(2px);
}

.links .desc {
    color: var(--muted);
    font-size: 13px;
    transition: color 0.2s ease;
}

.links a:hover .desc { color: var(--fg); }

/* 页脚 */
footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.9;
}

footer a {
    color: var(--muted);
    text-decoration: none;
}

footer a:hover { color: var(--fg); }

footer .sep { margin: 0 6px; }

.police-icon {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 3px;
}

@media (max-width: 480px) {
    .wrap {
        margin: 12px;
        min-height: calc(100vh - 24px);
        padding: 36px 20px 24px;
        border-radius: 18px;
    }
    .profile { margin-bottom: 24px; }
}
