/* ===== 全局变量与基础设置（浅色主题） ===== */
:root {
    --hue: 250;                     /* 主题色调，可修改数值 (0-360) 改变颜色 */
    --card-bg: rgba(255, 255, 255, 0.75);
    --card-border: rgba(0, 0, 0, 0.08);
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --primary-color: oklch(0.55 0.18 var(--hue));
    --radius-large: 1.5rem;
    --page-bg: #f3f4f6;             /* 浅色页面背景 */
}

/* 整体背景与字体 */
body {
    background-color: var(--page-bg);
    color: var(--text-primary);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}
/* ===== 为整个博客主体容器添加圆角与白色背景 ===== */
#home {
    border-radius: var(--radius-large); /* 使用与卡片一致的大圆角变量 */
    overflow: hidden;                  /* 确保子元素不溢出圆角边界 */
    background: #ffffff;              /* 【修改点】背景改为纯白色 */
    margin: 1.5rem auto;              /* 增加上下边距，让圆角更明显 */
    max-width: 1280px;                /* 限制最大宽度，可根据喜好调整 */
    box-shadow: 0 20px 60px -16px rgba(0, 0, 0, 0.08); /* 增加柔和阴影，增强卡片感 */
    padding: 0 0.5rem;                /* 在移动设备上避免内容贴边 */
}
/* ===== 导航菜单 (class="menu") 完全参照 zec-blog ===== */
#navList {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    align-items: center;
}

#navList li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

#navList .menu {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    background: transparent !important;  /* 确保无背景色 */
    border: none !important;
}

#navList .menu:hover {
    color: var(--primary-color);
    background: transparent !important;
    /* 模仿参考站点的悬停下划线效果 */
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--primary-color);
}

#navList .menu:active {
    transform: scale(0.96);
    color: var(--primary-color);
}

/* ===== 侧边栏样式（适配浅色） ===== */
#sideBar {
    background: transparent !important;
}

.profile-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-large);
    padding: 2rem 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.08);
}

.avatar-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #111827;
}

.profile-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 2rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* ===== 侧边栏其他模块（分类、标签）美化 ===== */
#blog-sidecolumn .catListTitle {
    color: #111827;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

#blog-sidecolumn .catListLink,
#blog-sidecolumn .catListTag {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: 0.5rem 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

#blog-sidecolumn .catListLink:hover,
#blog-sidecolumn .catListTag:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: var(--primary-color);
}

/* ===== 博客文章列表样式（适配浅色） ===== */
.day .postTitle a {
    color: #111827 !important;
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.day .postTitle a:hover {
    color: var(--primary-color) !important;
}

.day .postDesc {
    color: var(--text-secondary) !important;
    font-size: 0.9rem;
}

.c_b_p_desc {
    color: #374151 !important;
}

/* ===== 文章卡片效果 ===== */
#mainContent .forFlow .day {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-large);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

#mainContent .forFlow .day:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* ===== 分页器 ===== */
.topicListFooter {
    text-align: center;
    margin-top: 2rem;
}

.topicListFooter a,
.topicListFooter span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 2rem;
    color: var(--text-primary);
    margin: 0 0.25rem;
    transition: all 0.2s ease;
}

.topicListFooter a:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.topicListFooter .current {
    background: var(--primary-color);
    color: #ffffff;
}

/* ===== 滚动条美化（适配浅色） ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}