/* 全局重置+基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* 新海诚风格渐变背景 + 星空点缀 */
body {
    font-family: "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(120deg, #87CEEB, #E0F7FA, #FFE4E1);
    background-attachment: fixed;
    color: #333;
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
}

/* 星空背景点缀（固定在页面） */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 90px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.3;
    z-index: -1;
}

/* 导航栏（渐变+透明效果） */
#header {
    background: linear-gradient(135deg, rgba(135,206,235,0.8), rgba(255,228,225,0.8));
    backdrop-filter: blur(10px);
    padding: 1.8rem 0;
    box-shadow: 0 4px 20px rgba(135,206,235,0.3);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: all 0.5s;
}

#header:hover {
    background: linear-gradient(135deg, rgba(135,206,235,0.9), rgba(255,228,225,0.9));
}

/* 博客标题（新海诚风格渐变字） */
#blogTitle h1 {
    font-size: 2.5rem;
    text-align: center;
    background: linear-gradient(90deg, #2196F3, #FF9800, #E91E63);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 0.8rem;
}

#blogTitle h2 {
    font-size: 1.1rem;
    text-align: center;
    color: #666;
    opacity: 0.8;
    font-weight: normal;
}

/* 主容器（居中+弹性布局） */
#main {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 2.5rem;
    position: relative;
}

/* 文章列表区域 */
#mainContent {
    flex: 3;
}

/* 文章卡片（毛玻璃+渐变边框） */
.postCon {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(135,206,235,0.2);
    margin-bottom: 3rem;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.5s;
    position: relative;
    overflow: hidden;
}

/* 文章卡片角落樱花点缀 */
.postCon::after {
    content: "";
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background-image: url("https://cdn-icons-png.flaticon.com/128/2145/2145218.png");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.2;
    transform: rotate(15deg);
}

/* 文章卡片悬浮效果 */
.postCon:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(135,206,235,0.3);
    border-color: rgba(255,228,225,0.6);
}

/* 文章标题（渐变+光晕） */
.postTitle {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    position: relative;
}

.postTitle a {
    background: linear-gradient(90deg, #1976D2, #FF5722);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(25,118,210,0.2);
}

.postTitle::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2196F3, #FF9800);
    border-radius: 3px;
}

/* 文章摘要文字 */
.postCon p {
    color: #444;
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 1rem;
}

/* 文章信息（发布时间/分类） */
.postDesc {
    color: #777;
    font-size: 0.95rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(135,206,235,0.3);
    display: flex;
    gap: 2rem;
}

/* 侧边栏（新海诚风格卡片） */
#sideBar {
    flex: 1;
}

.newsItem, .catListTitle {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(135,206,235,0.2);
    margin-bottom: 2rem;
    border-left: 4px solid;
    border-image: linear-gradient(to bottom, #FFB74D, #EC407A) 1;
}

.catListTitle {
    color: #2196F3;
    font-size: 1.3rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(236,64,122,0.2);
}

/* 侧边栏链接样式 */
#sideBar a {
    color: #3949AB;
    text-decoration: none;
    transition: color 0.3s;
}

#sideBar a:hover {
    color: #EC407A;
    text-shadow: 0 0 5px rgba(236,64,122,0.3);
}

/* 分页按钮（渐变+圆角） */
#nav_next_page a, #nav_prev_page a {
    color: white;
    background: linear-gradient(90deg, #2196F3, #EC407A);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(33,150,243,0.3);
    transition: all 0.3s;
    margin: 0 0.5rem;
}

#nav_next_page a:hover, #nav_prev_page a:hover {
    background: linear-gradient(90deg, #1976D2, #D81B60);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(33,150,243,0.4);
}

/* 底部（透明+渐变） */
#footer {
    text-align: center;
    padding: 2.5rem 0;
    color: #666;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(5px);
    margin-top: 4rem;
    border-top: 1px solid rgba(135,206,235,0.3);
}

#footer a {
    color: #2196F3;
    text-decoration: none;
}

/* 响应式调整（手机适配） */
@media (max-width: 768px) {
    #main {
        flex-direction: column;
        gap: 2rem;
    }
    #blogTitle h1 {
        font-size: 2rem;
    }
    .postCon {
        padding: 1.5rem;
    }
}