/* 博客预览样式 */
.blog-preview {
    max-width: 800px;
    margin: 20px auto;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.blog-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.preview-title {
    font-size: 1.8em;
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.preview-title a {
    color: inherit;
    text-decoration: none;
}

.preview-title a:hover {
    color: #3498db;
}

.preview-excerpt {
    font-size: 1.1em;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.preview-meta {
    font-size: 0.9em;
    color: #95a5a6;
    border-top: 1px solid #eee;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
}

.publish-date::before {
    content: "📅 ";
}

.read-time::before {
    content: "⏱️ ";
}

/*按钮样式*/


.fancy-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #007bff;  /* 蓝色背景 */
    color: white;
    text-decoration: none;
    font-family: Arial, sans-serif;
    border-radius: 5px;
    transition: all 0.3s ease;  /* 动画效果 */
}

/* 鼠标悬停效果 */
.fancy-btn:hover {
    background-color: #0056b3;  /* 深蓝色 */
    transform: scale(1.05);     /* 放大5% */
}

/* 点击效果 */
.fancy-btn:active {
    transform: scale(0.95);     /* 缩小5% */
}

.botton-contact {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f4f4f4;
    color :#333;
    text-decoration: none;
    font-family: Arial, sans-serif;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.botton-contact:hover {
    background-color: #ddd;
    transform: scale(1.05);
}

.botton-contact:active {
    transform: scale(0.95);
}

#message {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
    
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    background-color: #1ada37;
    padding: 15px 25px;
    border-radius: 5px;
    font-size: 18px;
    box-shadow: 0 2px 5px #10702b33;
}

/* 可见状态 */
#message.visible {
    opacity: 1;
    visibility: visible;
}
#message.yellow {
    background-color: #ffcc00;
}
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* 导航栏 */
nav ul {
    display: flex;
    list-style: none;
    background: hwb(0 100% 0%);
    color: #fff;
    padding: 10px;
    width: 70%;
    margin-left: auto;
    margin-right: 0;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}
aside {
    position: fixed;
    width: 25%;
    float: left;
    padding: 20px;
    background-color: #f4f4f4;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}
.sidebar {
    text-align: center;
}
.sidebar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.sidebar h2 {
    margin: 10px 0;
    font-size: 1.5em;
}

.sidebar p {
    margin: 5px 0;
    font-size: 1em;
    color: #555;
}
main {
    margin-left: 29%; /* 200px (侧边栏) + 20px (间隙) */
    padding: 20px;
    padding-bottom: 120px;
}
/* 页脚 */
footer {
    position: fixed;
    bottom: 0;
    width : 100%;
    /* left: 0; */
    text-align: center;
    padding: 10px 0;
    background: #333;
    color: #fff;
    margin-top: 20px;
}

.progress-bar {
    background: #eee;
    height: 20px;
    overflow: hidden;
  }
.fill {
    background: repeating-linear-gradient(
    45deg,
      #6f4e37,
      #6f4e37 10px,
      #8b6d5b 10px,
      #8b6d5b 20px
    );
}