/* style.css */
:root {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --primary-color: #fff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }

body {
    min-height: 100vh;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes gradientBG { 0% {background-position: 0% 50%} 50% {background-position: 100% 50%} 100% {background-position: 0% 50%} }

/* --- 核心布局：Grid 系统 --- */
.main-container {
    display: grid;
    grid-template-columns: 350px 1fr; /* 左边固定宽，右边自适应 */
    gap: 25px;
    width: 100%;
    max-width: 1000px;
    height: 85vh; /* 限制高度，内部滚动 */
}

/* 移动端适配：改为上下布局 */
@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        height: auto;
        min-height: 85vh;
    }
}

/* --- 通用毛玻璃卡片 --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    padding: 30px;
    overflow-y: auto; /* 超出内容滚动 */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

/* 个人介绍区域 */
.profile-section {
    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.3);
    margin-bottom: 20px;
    overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* 文章列表区域 */
.article-section h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.article-item {
    display: block;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: 0.3s;
    border: 1px solid transparent;
}
.article-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(5px);
    border-color: rgba(255,255,255,0.3);
}
.article-date { font-size: 0.8rem; opacity: 0.6; margin-top: 5px; display: block; }
.article-title { font-size: 1.1rem; font-weight: 500; }

/* 文章详情页特定样式 */
.markdown-body { color: #eee; line-height: 1.8; }
.markdown-body h1 { border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 10px; margin-bottom: 20px; }
.markdown-body p { margin-bottom: 15px; }
.markdown-body pre { background: rgba(0,0,0,0.3); padding: 15px; border-radius: 8px; overflow-x: auto; }
.back-btn { display: inline-block; margin-bottom: 20px; color: #fff; text-decoration: none; opacity: 0.7; }
.back-btn:hover { opacity: 1; }