/**************************************************
* 博客园惬意放松皮肤 · 柔光暖居版
* 风格：圆润卡片、低饱和度暖色、柔和阴影、温和交互
* 适配所有标准博客园页面（首页、文章、列表、相册、留言等）
**************************************************/

/* ---------- 全局重置与柔光背景 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f2ece4;   /* 暖灰基底，纸张质感 */
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Noto Sans', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #2e2c2a;
    padding: 1.8rem 1rem;
}

/* 主容器：柔软白卡 + 淡淡暖影 */
#home {
    max-width: 1280px;
    margin: 0 auto;
    background: #fffdf9;
    border-radius: 2rem;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.01);
    overflow: hidden;
    transition: all 0.2s;
}

/* 链接颜色 —— 安宁草木色 */
a {
    color: #7f8e6b;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s;
}

a:hover {
    color: #d9a77e;
    text-decoration: none;
}

.clear {
    clear: both;
}

/* ---------- 头部 · 舒展留白 ---------- */
#header {
    border: none;
    padding: 2rem 2rem 0.8rem 2rem;
    margin: 0;
    background: #fffdf9;
    border-bottom: 1px solid #f0e4da;
}

#blogTitle {
    height: auto;
    margin-bottom: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
}

#blogTitle h1 {
    font-size: 2rem;
    font-weight: 500;
    margin: 0;
    width: auto;
    float: none;
    letter-spacing: -0.3px;
}

#blogTitle h1 a {
    color: #5b6e4a;
    background: linear-gradient(135deg, #5b6e4a, #8b9a76);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

#blogTitle h2 {
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0.25rem 0 0 0.5rem;
    color: #b8a691;
}

#blogLogo {
    max-height: 48px;
    width: auto;
    opacity: 0.8;
    border-radius: 1rem;
}

/* 导航栏 · 无框呼吸 */
#navigator {
    background: transparent;
    height: auto;
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

#navList {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    background: none;
}

#navList li {
    list-style: none;
}

#navList a {
    display: inline-block;
    padding: 0.45rem 1.2rem;
    font-weight: 470;
    font-size: 0.9rem;
    border-radius: 3rem;
    background: transparent;
    color: #6b7c58;
    transition: all 0.2s;
}

#navList a:hover {
    background: #f1e9e2;
    color: #cf9f7b;
    transform: translateY(-1px);
}

.blogStats {
    color: #c8b8a6;
    font-size: 0.7rem;
    background: #f9f4ef;
    padding: 0.3rem 1rem;
    border-radius: 2rem;
}

/* ---------- 主内容区域 · 空气感侧边栏 ---------- */
#main {
    width: 100%;
    padding: 0 1.8rem 1rem 1.8rem;
}

#mainContent {
    float: right;
    margin-left: -260px;
    width: 100%;
}

#mainContent .forFlow {
    margin-left: 260px;
    width: auto;
}

#sideBar {
    width: 230px;
    float: left;
    padding: 1.5rem 0.5rem 0 0;
}

/* 侧边栏模块：暖灰卡片 */
#sideBarMain > div {
    background: #fefbf7;
    border-radius: 1.5rem;
    padding: 1rem 1rem 1.2rem 1rem;
    margin-bottom: 1.6rem;
    border: 1px solid #f2e7df;
    transition: box-shadow 0.2s;
}

.catListTitle {
    font-size: 1rem;
    font-weight: 520;
    color: #9b8874;
    border-bottom: 2px solid #e8ddd2;
    padding-bottom: 0.5rem;
    margin-bottom: 0.9rem;
    letter-spacing: -0.2px;
    text-align: left;
}

.newsItem {
    background: #fef9f3;
    border-radius: 1.5rem;
    font-size: 0.85rem;
    color: #7e6c5b;
}

#sideBarMain ul {
    line-height: 1.6;
    padding-left: 0.2rem;
}

#sideBarMain li {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    border-left: 2px solid transparent;
    transition: all 0.1s;
}

#sideBarMain li a {
    display: block;
    padding: 0.1rem 0 0.1rem 0.6rem;
    color: #6d7d5b;
}

#sideBarMain li a:hover {
    color: #d9a77e;
    border-left-color: #d9a77e;
    padding-left: 0.9rem;
}

/* 日历惬意样式 */
.Cal {
    width: 100%;
    font-size: 0.8rem;
}
.CalTitle {
    background: none;
    border-bottom: 1px solid #e6d9cf;
}
.CalTodayDay {
    background: #e6d6c8;
    border-radius: 2rem;
    color: #5c6e49;
}

/* ---------- 首页文章卡片 · 放松呼吸感 ---------- */
.day {
    background: #ffffff;
    border-radius: 1.8rem;
    padding: 1.2rem 1.8rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.02);
    border: 1px solid #f3ece5;
    transition: all 0.25s ease;
}
.day:hover {
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.08), 0 0 0 1px #f0e2d8;
}

.dayTitle {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #cdbcab;
    letter-spacing: 1px;
    border: none;
    text-align: left;
    margin-bottom: 0.5rem;
}

.postTitle {
    font-size: 1.55rem;
    font-weight: 520;
    border: none;
    margin: 0.2rem 0 0.6rem;
    letter-spacing: -0.3px;
}
.postTitle a {
    color: #5b694c;
}
.postTitle a:hover {
    color: #d9a77e;
}

.postCon {
    padding: 0.6rem 0;
    font-size: 0.92rem;
    color: #5f5952;
    line-height: 1.65;
}

.postDesc {
    text-align: right;
    font-size: 0.72rem;
    color: #c2b19f;
    border-top: 1px dashed #eee2d8;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}
.postDesc a {
    color: #beab97;
}

/* ---------- 文章正文页面 · 沉浸阅读 ---------- */
#topics .postTitle {
    font-size: 1.9rem;
    border: none;
}

.postBody {
    background: transparent;
    font-size: 1rem;
    line-height: 1.7;
    color: #2e2b27;
    padding: 0.5rem 0 1rem;
}
.postBody p {
    margin-bottom: 1.2rem;
}
.postBody h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 1.8rem 0 0.8rem;
    color: #6d8156;
}
.postBody blockquote {
    background: #faf4ed;
    border-left: 4px solid #dbbc9b;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    margin: 1rem 0;
}

#EntryTag {
    margin: 2rem 0 0;
    background: #f7efe8;
    border-radius: 3rem;
    padding: 0.4rem 1rem;
    display: inline-block;
    font-size: 0.75rem;
}
#EntryTag a {
    background: #ffffffc9;
    padding: 0.2rem 0.8rem;
    border-radius: 2rem;
    margin-left: 0.4rem;
}

/* 评论区域 */
.feedback_area_title {
    font-weight: 480;
    font-size: 1.1rem;
    margin-top: 2rem;
    border-bottom: 1px solid #e6dbcf;
    padding-bottom: 0.4rem;
}
.feedbackItem {
    background: #fefbf7;
    border-radius: 1.2rem;
    padding: 1rem;
    margin-bottom: 1rem;
}
.feedbackCon {
    border-left: 2px solid #decbb8;
    padding-left: 1rem;
    margin-top: 0.4rem;
}

/* 提交评论框 */
.commentform {
    background: #fefaf5;
    border-radius: 1.5rem;
    padding: 1.2rem;
}
.commenttb, .commentTextBox {
    border: 1px solid #e6dad0;
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    background: white;
}
input[type="submit"] {
    background: #dacbbc;
    border: none;
    border-radius: 2rem;
    padding: 0.45rem 2rem;
    color: #4c5e3c;
    font-weight: 500;
    cursor: pointer;
}

/* ---------- 列表/相册/留言 卡片延续 ---------- */
.entrylistItem, .PostList {
    background: white;
    border-radius: 1.5rem;
    padding: 1rem 1.4rem;
    margin-bottom: 1.2rem;
    border: 1px solid #f3e9e1;
}
.entrylistPosttitle {
    font-size: 1.2rem;
    font-weight: 520;
}
.pfl_feedbackItem {
    background: #fffbf7;
    border-radius: 1.5rem;
    border: 1px solid #efe2d9;
    padding: 1rem;
}
/* 回到顶部按钮（配合页脚JS） */
#goTopBtn {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    background: #e6dace;
    color: #5b6a49;
    border: none;
    border-radius: 3rem;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    cursor: pointer;
    backdrop-filter: blur(4px);
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.2s;
}
#goTopBtn:hover {
    background: #d8cbb9;
    transform: translateY(-2px);
}
/* 跟随鼠标的柔光圆（页首JS动态创建） */
.soft-light {
    position: fixed;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(218, 180, 146, 0.12) 0%, rgba(218, 180, 146, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.08s linear;
    will-change: transform;
}
/* 页脚暖语 */
.footer-warm {
    text-align: center;
    font-size: 0.75rem;
    color: #cfbeab;
    padding: 1rem 0 1.5rem;
    border-top: 1px solid #f0e3da;
    margin-top: 0.5rem;
}
/* 响应式 */
@media (max-width: 780px) {
    body { padding: 0.5rem; }
    #mainContent, #mainContent .forFlow { margin-left: 0; float: none; width: 100%; }
    #sideBar { width: 100%; float: none; padding: 1rem 0; }
    .day { padding: 1rem; }
}