/* ========== 全局样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', 'Helvetica Neue', 'Hiragino Sans', 'Microsoft YaHei', sans-serif;
}

body {
    min-height: 100vh;
    background-color: #d9f0f7;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('/img/bg.webp');
    background-size: cover;
    background-position: center 20%;
    filter: blur(12px) brightness(1.02);
    z-index: -1;
    pointer-events: none;
}

.page-wrap {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 顶栏 */
.top-bar {
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 60px;
    padding: 1rem 2rem;
    text-align: center;
    font-weight: 650;
    font-size: 1.8rem;
    color: #014c79;
    text-shadow: 2px 2px 6px rgba(255,255,255,0.7);
}
.top-bar i { margin: 0 10px; color: #3d9fd3; }

/* 毛玻璃卡片通用 */
.glass-card {
    background: rgba(255,255,255,0.26);
    backdrop-filter: blur(14px) saturate(150%);
    border-radius: 36px;
    border: 1.5px solid rgba(255,255,255,0.7);
    box-shadow: 0 20px 40px -12px rgba(0,100,140,0.25), 0 4px 18px rgba(255,255,255,0.5) inset;
    padding: 2rem;
    color: #01486b;
}

/* 侧边栏个人卡片 */
.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.avatar {
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.9);
    overflow: hidden;
    background: #e1f0fc;
    margin-bottom: 1rem;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.nickname {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(145deg, #01638f, #2899d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.bio {
    background: rgba(255,255,240,0.4);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1.5rem;
    border-radius: 60px;
    color: #015e8c;
    margin: 0.5rem 0;
}
.badge-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
    padding: 0.8rem 1.5rem;
    border-radius: 60px;
    border: 1px solid rgba(255,255,255,0.7);
}
.badge-item i { color: #0481c4; margin-right: 5px; }

/* 文章列表卡片 */
.post-card {
    background: rgba(255,255,255,0.22);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 32px;
    padding: 1.5rem;
    transition: 0.15s;
}
.post-card:hover { background: rgba(255,255,255,0.35); transform: translateY(-3px); }
.post-title {
    font-size: 1.8rem;
    background: linear-gradient(145deg, #01638f, #2899d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}
.post-title a { color: inherit; text-decoration: none; }
.post-meta {
    color: #01527a;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.post-meta i { margin-right: 5px; }
.post-excerpt { color: #013e5c; line-height: 1.6; margin-bottom: 1rem; }
.read-more {
    background: rgba(100,190,240,0.7);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 40px;
    padding: 0.3rem 1.2rem;
    color: #003959;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
}

/* 文章页内容卡片 */
.post-content {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(14px);
    border-radius: 36px;
    border: 1.5px solid rgba(255,255,255,0.7);
    padding: 2rem;
    color: #01486b;
    line-height: 1.8;
}
.post-content img { max-width: 100%; border-radius: 20px; }
.post-content h1, .post-content h2 { color: #003f63; }

/* 页脚 */
.footer {
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(8px);
    border-radius: 48px;
    padding: 1rem 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2.5rem;
    color: #025a86;
}
.footer a { color: #0f5f8a; text-decoration: none; border-bottom: 1px dotted #7cb8d4; }

/* 响应式 */
@media (max-width: 550px) {
    .top-bar { font-size: 1.5rem; }
    .glass-card { padding: 1.5rem; }
    .page-wrap { grid-template-columns: 1fr; }
    div[style*="grid-template-columns: 1fr 300px;"] {
        grid-template-columns: 1fr !important;
    }
}