/* 博客园自定义样式 - 修改自 RuntimeErr 博客 */
/* 博客地址：www.cnblogs.com/wenw8409 */

#blogTitle {
    margin: 10px 0;
    text-align: center;
}

#blogTitle h1 {
    font-size: 2.5em;
    font-weight: bold;
    margin: 10px 0;
    color: #333;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

#blogTitle h2 {
    font-size: 1.2em;
    color: #666;
    margin: 5px 0 20px 0;
    font-style: italic;
}

#Header1_HeaderTitle {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

#Header1_HeaderTitle:hover {
    color: #e74c3c;
}

#navigator {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#navList {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

#navList li {
    margin: 0 15px;
}

#navList .menu {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#navList .menu:hover {
    background: #e9ecef;
    color: #e74c3c;
    transform: translateY(-2px);
}

.day {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.day:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dayTitle {
    border-bottom: 2px solid #e74c3c;
    margin-bottom: 15px;
    padding-bottom: 8px;
}

.dayTitle a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
}

.postTitle2 {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: 600;
    transition: color 0.3s ease;
}

.postTitle2:hover {
    color: #e74c3c;
}

.pinned-post {
    background: linear-gradient(135deg, #ffeaa7, #fab1a0);
    padding: 10px 15px;
    border-radius: 6px;
    border-left: 4px solid #e74c3c;
}

.pinned-post-mark {
    color: #e74c3c;
    font-weight: bold;
    margin-right: 8px;
}

.postCon {
    line-height: 1.6;
    color: #555;
}

.postDesc {
    color: #888;
    font-size: 0.9em;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 15px;
}

.c_b_p_desc {
    color: #666;
    line-height: 1.6;
}

.c_b_p_desc_readmore {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
    margin-left: 10px;
}

.c_b_p_desc_readmore:hover {
    text-decoration: underline;
}

.blogStats {
    text-align: center;
    margin: 10px 0;
    color: #888;
    font-size: 0.9em;
}

#sidebar_news {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.catListTitle {
    color: #e74c3c;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 5px;
    margin-bottom: 10px;
    font-size: 1.1em;
}

#top_nav {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-list a {
    color: #ecf0f1 !important;
    transition: color 0.3s ease;
}

.navbar-list a:hover {
    color: #e74c3c !important;
}

#zzk_search_input {
    border: 1px solid #bdc3c7;
    border-radius: 20px;
    padding: 8px 15px;
}

#zzk_search_button {
    background: #e74c3c;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    margin-left: 5px;
    transition: background 0.3s ease;
}

#zzk_search_button:hover {
    background: #c0392b;
}

/* 响应式设计 */
@media (max-width: 767px) {
    #blogTitle h1 {
        font-size: 2em;
    }
    
    #blogTitle h2 {
        font-size: 1em;
    }
    
    #navList {
        flex-direction: column;
        align-items: center;
    }
    
    #navList li {
        margin: 5px 0;
    }
    
    .day {
        padding: 15px;
        margin: 15px 0;
    }
}

/* 代码块样式 */
.cnblogs_code {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 12px;
    margin: 10px 0;
}

.cnblogs_code pre {
    margin: 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* 数学公式样式 */
.mathjax2 {
    color: #2c3e50;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.day {
    animation: fadeIn 0.5s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 选择文本样式 */
::selection {
    background: #e74c3c;
    color: white;
}

::-moz-selection {
    background: #e74c3c;
    color: white;
}

/* 页脚样式 */
#footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 20px 0;
    margin-top: 30px;
    text-align: center;
}

.footer-brand {
    color: #e74c3c !important;
    font-weight: bold;
}

.footer-copyright {
    color: #bdc3c7;
}

.footer-icp a {
    color: #95a5a6 !important;
}

.footer-icp a:hover {
    color: #e74c3c !important;
}

/* 特殊效果：生日祝福闪烁动画 */
@keyframes birthdayGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(231, 76, 60, 0.8), 0 0 30px rgba(231, 76, 60, 0.6);
    }
}

#blogTitle h2 {
    animation: birthdayGlow 2s ease-in-out infinite;
}