/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, "Microsoft Yahei", "Hiragino Sans GB", "Heiti SC", "WenQuanYi Micro Hei", sans-serif;
    background-color: #e6dece; /* 背景米色 */
    color: #333;
    line-height: 1.6;
    min-width: 350px;
    font-size: 16px;
}

/* 导航栏样式 */
.navbar {
    background-color: #b55d3f; /* 顶部赤陶色 */
    min-height: 220px;
    padding: 20px 0 60px 0;
    display: flex;
    align-items: center;
    color: white;
}

.nav-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-container a {
    text-decoration: none;
}

/* 头像 */
.avatar {
    width: 85px;
    height: 85px;
    background: #2c3d49;
    padding: 4px;
    border-radius: 50%;
    cursor: pointer;
}
.avatar:hover {
  border-width: 5px;
  animation: rotation .5s;
  border-width: 5px;
  border-color: #008565;
  animation-fill-mode: forwards;
}

.avatar:not(:hover) {
  animation: rotationV .5s;
}

@keyframes rotation {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes rotationV {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

@-webkit-keyframes rotation {
  from {
    -webkit-transform: rotate(0deg);

  }

  to {
    -webkit-transform: rotate(360deg);
  }
}

@-webkit-keyframes rotationV {
  from {
    -webkit-transform: rotate(360deg);
  }

  to {
    -webkit-transform: rotate(0deg);
  }
}


.site-title {
    font-size: 44px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 20px;
}

.nav-menu a:hover {
    color: #fff;
}

.nav-menu a.selected {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    box-shadow: 2px 2px #e0e0e0;
    margin: 0 12px;
}

.nav-icons {
    display: flex;
    gap: 15px;
    cursor: pointer;
}

/* 内容页面 */
.max-screen {
	width: 80%;
	max-width: 1200px;
}

.content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 20px 0 100px 0;
}

/* 内容卡片样式 */
.content-wrapper {
    margin: -120px auto 50px; /* 向上偏移产生重叠感 */
    background-image: url(../../images/xt.svg);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.post-card {
    position: relative;
    width: 80%;
    background: #fff;
    padding: 100px 185px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    background-image: url(../../images/texture.png);
}

.post-title {
    font-size: 40px;
    margin-bottom: 10px;
}

.post-meta {
    color: #999;
    font-size: 15px;
    margin-bottom: 40px;
}

.intro-quote {
    text-align: center;
    font-style: italic;
    color: #666;
    position: relative;
    border: 2px solid #e0e0e0;
    padding: 45px 30px 40px 30px;
    margin: 40px 0px;
    box-shadow: 5px 5px #e0e0e0;
    font-size: 18px;
}

.intro-quote::before {
    content: "“";
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #b55d3f;
    font-size: 20px;
    font-weight: bolder;
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
}

.post-content p {
    line-height: 2;
    padding-bottom: 20px;
    font-size: 18px;
    text-align: justify;
}

.post-content .code {
    color: #d63384;
    font-weight: bold;
}

h2 {
    margin: 15px 0px;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.6;
}

a {
    color: #b55d3f;
    font-weight: 500;
}

li {
    margin-bottom: 5px;
    margin-top: 5px;
}

@media screen and (max-width: 768px) {
    .navbar {
        align-items: flex-start;
        padding-bottom: 40px;
    }
    .nav-menu {
        gap: 5px;
    }
    .nav-right {
        margin-top: 40px;
    }
    .nav-container {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    .site-title {
        font-size: 36px;
    }

    .avatar {
        width: 70px;
        height: 70px;
    }

    .post-card {
        width: 93%;
        padding: 35px 40px;
    }
}
