* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --glass-bg: rgba(255, 255, 255, 0.10);
    --glass-bg-strong: rgba(255, 255, 255, 0.16);
    --glass-border: rgba(255, 255, 255, 0.24);
    --glass-border-soft: rgba(255, 255, 255, 0.14);
    --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.36);
    --glass-shadow-inset: inset 0 -1px 0 rgba(0, 0, 0, 0.06);
    --glass-shadow-outer: 0 12px 34px rgba(0, 0, 0, 0.28);
    --accent: rgba(255, 255, 255, 0.35);
}
body {
    position: relative;
    min-height: 100vh;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #fff;
    padding: 16px 16px 30px;
    overflow-x: hidden;
    background-color: #0b1020;
}
/* ===== 背景层：柔和呼吸 ===== */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("images/bj.png") center / cover no-repeat;
    filter: brightness(0.72);
    transform: scale(1.04);
    z-index: -2;
    animation: bgBreath 22s ease-in-out infinite alternate;
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.07), transparent 42%),
        radial-gradient(circle at 80% 30%, rgba(120, 180, 255, 0.07), transparent 46%),
        radial-gradient(circle at 50% 90%, rgba(255, 200, 240, 0.05), transparent 42%);
    pointer-events: none;
    z-index: -1;
    animation: lightShift 18s ease-in-out infinite alternate;
}
/* ===== 时钟：通透玻璃 + 轻微微动效 ===== */
.clock-box {
    position: fixed;
    top: 14px;
    left: 14px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.20) 0%,
        rgba(255, 255, 255, 0.10) 42%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 11px 15px;
    text-align: center;
    z-index: 999;
    box-shadow:
        var(--glass-shadow-outer),
        var(--glass-highlight),
        var(--glass-shadow-inset);
    animation: floatY 7s ease-in-out infinite, fadeInDown 0.9s ease both;
}
.clock-time {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
    font-variant-numeric: tabular-nums;
    animation: numberPulse 2s ease-in-out infinite alternate;
}
.clock-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.84);
    margin-top: 2px;
    letter-spacing: 1px;
}
.clock-timezone {
    display: inline-block;
    margin-top: 7px;
    padding: 2px 9px;
    font-size: 11px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 999px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

/* =========页面外层布局：PC左右并排========= */
.page-wrap {
    display: flex;
    gap: 24px;
    max-width: 1200px;
    margin: 80px auto 0;
}
/* 左侧简介卡片 */
.profile-card {
    flex: 0 0 380px;
    width: 380px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.07) 100%
    );
    border-radius: 30px;
    padding: 24px;
    border: 1px solid var(--glass-border);
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.30),
        var(--glass-highlight),
        var(--glass-shadow-inset);
    animation: fadeInUp 1s ease both, cardBreath 7s ease-in-out infinite;
    height: fit-content;
}
/* 右侧动态区域 */
.feed-wrap {
    flex:1;
    min-width:0;
}
.feed-title{
    font-size:22px;
    font-weight:bold;
    margin-bottom:16px;
    text-shadow:0 2px 10px rgba(0,0,0,0.25);
}
.feed-list{
    display:flex;
    flex-direction:column;
    gap:16px;
}
/* 单条动态卡片 */
.feed-item{
    background: linear-gradient(180deg,rgba(255,255,255,0.11),rgba(255,255,255,0.06));
    border:1px solid var(--glass-border-soft);
    border-radius:22px;
    padding:18px;
    box-shadow: var(--glass-shadow-outer), var(--glass-highlight), var(--glass-shadow-inset);
    animation: fadeInUp 1.1s ease both;
}
.feed-time{
    font-size:12px;
    color:rgba(255,255,255,0.72);
    margin-bottom:10px;
}
.feed-content p{
    font-size:15px;
    line-height:1.7;
    color:rgba(255,255,255,0.93);
    margin-bottom:12px;
}
.feed-img-group{
    display:grid;
    grid-template-columns: repeat(auto-fit,minmax(120px,1fr));
    gap:10px;
}

/* ===== 头像 ===== */
.avatar {
    text-align: center;
    margin-bottom: 14px;
    position: relative;
}
.avatar img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.36);
    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    animation: avatarFloat 5s ease-in-out infinite;
}
/* ===== 名字：柔和发光 ===== */
h1 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 18px;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.26);
    animation: glowText 4s ease-in-out infinite alternate;
}
/* ===== 社交按钮：通透玻璃 + 柔和悬浮 ===== */
.social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
}
.btn {
    position: relative;
    padding: 10px 19px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.06) 100%
    );
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.30),
        inset 0 -1px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s ease,
        background 0.4s ease;
    animation: btnPop 1s ease both;
}
.btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.30),
        transparent
    );
    transform: skewX(-20deg);
    transition: left 0.8s ease;
}
.btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.40),
        inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}
.btn:hover::after {
    left: 130%;
}
.btn:active {
    transform: translateY(-1px) scale(1.02);
}
.wechat { background-color: #07c160; }
.qq { background-color: #12b7f5; }
.furchannel { background-color: #ffc820; color: #111; }
.rongshou { background-color: #ff8822; }
/* ===== 简介 ===== */
.intro {
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.93);
}
.intro p {
    margin-bottom: 8px;
    animation: fadeInUp 1.2s ease both;
}
.intro p:nth-child(2) { animation-delay: 0.2s; }
.intro p:nth-child(3) { animation-delay: 0.4s; }
/* ===== 图片展示 ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.gallery-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.6s ease,
                filter 0.6s ease;
    animation: imgIn 1.2s ease both;
}
.gallery-img:nth-child(1) { animation-delay: 0.1s; }
.gallery-img:nth-child(2) { animation-delay: 0.25s; }
.gallery-img:nth-child(3) { animation-delay: 0.4s; }
.gallery-img:nth-child(4) { animation-delay: 0.55s; }
.gallery-img:hover {
    transform: translateY(-4px) scale(1.025);
    filter: brightness(1.06) saturate(1.04);
    box-shadow:
        0 16px 28px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.30);
}
/* ===== 页脚 ===== */
.footer {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.76);
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    animation: fadeInUp 1.2s ease both;
}
/* ===== 灯箱 ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.lightbox.active {
    display: flex;
    opacity: 1;
}
.lightbox-wrap {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    overflow: hidden;
}
.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 14px;
    transform: scale(0.92);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.lightbox.active .lightbox-img {
    transform: scale(1);
}
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.lightbox-close:hover {
    transform: rotate(90deg);
    opacity: 0.8;
}
.lightbox-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.lightbox-btn {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(0, 0, 0, 0.38);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.lightbox-btn:hover {
    background: rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}
/* ===== 关键帧动画 ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
@keyframes avatarFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.015); }
}
@keyframes numberPulse {
    from { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22); }
    to { text-shadow: 0 2px 16px rgba(255, 255, 255, 0.30); }
}
@keyframes glowText {
    from { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.26); }
    to { text-shadow: 0 0 16px rgba(255, 255, 255, 0.38); }
}
@keyframes cardBreath {
    0%, 100% { box-shadow: 0 14px 40px rgba(0, 0, 0, 0.30), var(--glass-highlight), var(--glass-shadow-inset); }
    50% { box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32), var(--glass-highlight), var(--glass-shadow-inset); }
}
@keyframes btnPop {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@keyframes imgIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@keyframes bgBreath {
    from { filter: brightness(0.70) saturate(1); }
    to { filter: brightness(0.78) saturate(1.06); }
}
@keyframes lightShift {
    from { opacity: 0.35; }
    to { opacity: 0.7; }
}

/* =========手机适配 768px以下：上下堆叠========= */
@media (max-width: 768px) {
    .page-wrap{
        flex-direction: column;
        margin-top:12px;
        gap:20px;
    }
    .profile-card{
        flex:none;
        width:100%;
    }
    /* 手机时钟 */
    .clock-box {
        position: static;
        margin: 0 16px 16px;
        padding: 10px 14px;
        border-radius: 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        animation: none !important;
    }
    .clock-time {
        font-size: 17px;
    }
    .clock-date {
        font-size: 11px;
    }
    .clock-timezone {
        margin-top: 0;
    }
    .profile-card {
        padding: 20px;
        border-radius: 26px;
    }
    .avatar img {
        width: 108px;
        height: 108px;
    }
    h1 {
        font-size: 22px;
    }
    .btn {
        padding: 9px 16px;
        font-size: 14px;
    }
    .footer {
        font-size: 12px;
    }
}
