/* 页面背景和基本布局 */
.archive-page {
  background: transparent;
  min-height: 100vh;
  padding: 40px 0; /* 上下留白 */
  display: flex;
  flex-direction: column;
  align-items: center; /* 确保所有子元素水平居中 */
  flex: 1;
}

/* 顶部头像和标题容器 */
.archive-header {
  text-align: center; /* 居中内容 */
  margin-bottom: 50px; /* 增加与下方内容的间距 */
  position: relative;
  z-index: 10;
}

/* 居中的单个头像 */
.archive-avatar {
  width: 150px; /* 调整头像大小 */
  height: 150px;
  border-radius: 50%;
  border: 4px solid white; /* 调整边框 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  /* 移除定位，让其自然居中 */
}

/* 页面标题样式 */
.archive-title {
  margin-top: 15px;
  font-size: 3em;
  color: #ffa4a4; /* 假设标题颜色为白色，与背景搭配 */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* 内容容器 - 保持左右分栏布局 */
.archive-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  width: 80%; /* 控制整体宽度 */
  max-width: 840px;
  padding: 30px;
  
}

/* 搜索容器样式 */
.search-container {
  padding: 10px;
  max-width: 860px;
  min-width: 860px;
  background-color: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  margin-top: 10px;
}

.search-container h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.5em;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  color: #fff;
  text-align: center;
}

/* 搜索输入框样式 */
#search-input {
  width: 100%;
  padding: 10px;
  font-size: 1em;
  
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  box-sizing: border-box; /* 确保 padding 不会撑大宽度 */
  transition: border-color 0.3s, box-shadow 0.3s;
  background-color: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

#search-input:focus {
  border-color: #0b4f98;
  outline: none;
}

/* 搜索结果列表样式 */
#search-results {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
  max-height: 400px; /* 给一个最大高度，超出则滚动 */
  border-radius: 15px;
  overflow-y: auto;
  background-color: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

#search-results li {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

#search-results li:last-child {
  border-bottom: none;
}

#search-results a {
  display: block;
  text-decoration: none;
  color: #0056b3;
}

#search-results li {
  display: block;
  text-decoration: none;
  color: #0056b3;
}

#search-results a:hover {
  text-decoration: underline;
}

#search-results small {
  display: block;
  color: #888;
  font-size: 0.8em;
  margin-top: 4px;
}

#search-input::placeholder {
  color: #706c6c; 
  opacity: 1;
}

#search-input::-webkit-input-placeholder { 
  color: #706c6c;
}
#search-input::-moz-placeholder { /* Firefox 19+ */
  color: #706c6c;
  opacity: 1;
}
#search-input:-ms-input-placeholder { /* IE 10+ */
  color: #706c6c;
}
#search-input:-moz-placeholder { /* Firefox 18- */
  color: #706c6c;
  opacity: 1;
}

@media (max-width: 768px) {
  .search-container {
    min-width: auto; /* 移除最小宽度限制 */
    max-width: 100%; /* 确保它不会超过屏幕宽度 */
    padding: 15px; /* 调整内边距，使其在手机上更紧凑 */
    width: 95%; /* 调整宽度 */
  }
}

/* 左右栏样式调整 */
.archive-column1 {
  flex: 1;
  position: relative; /* 保持相对定位，以备将来需要 */
  max-width: 250px;
  min-width: 250px;
}

.archive-card1 {
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  line-height: 150%;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  border-radius: 25px;
  padding-top: 40px;
  padding-bottom: 40px;
  padding-left: 25px;
  padding-right: 15px;
  box-shadow: 8px 8px 3px rgba(0, 0, 0, 0.3);
  height: 670px;       
  overflow-y: auto; 
}

/* 滚动条样式 */
.archive-card1::-webkit-scrollbar {
  width: 6px;
}

.archive-card1::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: 3px;
}

.archive-card1::-webkit-scrollbar-track {
  background: transparent;
}

.archive-column2 {
  flex: 1;
  position: relative; /* 保持相对定位，以备将来需要 */
  min-width: 620px;
  height: 750px;             /* 固定高度 */
  overflow-y: auto; 
}

.archive-card1::-webkit-scrollbar {
  width: 8px;                /* 滚动条宽度 */
}

.archive-card1::-webkit-scrollbar-track {
  background: transparent;       /* 滚动条轨道颜色 */
  border-radius: 4px;        /* 圆角轨道 */
}

.archive-card1::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 4px; 
}

.archive-card1::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.8);          /* 悬停时颜色 */
}

.archive-column2::-webkit-scrollbar {
  width: 8px;                /* 滚动条宽度 */
}

.archive-column2::-webkit-scrollbar-track {
  background: transparent;       /* 滚动条轨道颜色 */
  border-radius: 4px;        /* 圆角轨道 */
}

.archive-column2::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.6);          /* 滑块颜色 */
  border-radius: 4px;        /* 圆角滑块 */
}

.archive-column2::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.8); 
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.card {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  min-width: 280px;
  border: 3px solid rgba(255, 255, 255, 0.7);
}

.card-image {
  height: 250px;
  background-size: cover;
  background-position: center;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.6);
}


.card-content {
  background-color: transparent;
  padding-top: 15px;
  padding-bottom: 15px;
  padding-left: 10px;
  padding-right: 10px;
  line-height: 120%;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.card-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: bold;
  color: #ffbdbd;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.card-excerpt {
  margin: 4px 0 0;
  font-size: 14px;
  color: #555;
}

.archive-card1 a {
  color: #fff;
  font-size: 1.2rem;
  line-height: 250%;
  border-bottom: 1px solid #fff;
  text-shadow: 0px 0px 3px rgba(23, 22, 22, 0.7);
}

.card-excerpt {
  margin: 4px 0 0;
  font-size: 14px;
  color: #fff;
}

.tag {
  font-size: 1.5rem;
  font-weight: bold;
  color: rgb(141, 187, 252);
  text-shadow: 0px 0px 3px rgba(23, 22, 22, 0.4);
  margin-bottom: 20px;
  text-align: center;
}

@media (max-width: 768px) {
  .archive-container {
    flex-direction: column;
    gap: 20px; 
    width: 95%; 
    padding: 10px;  
  }
}

@media (max-width: 768px) {
  .archive-column1,
  .archive-column2 {
    min-width: auto; 
    max-width: 100%;  
    height: auto;
  }
}

@media (max-width: 768px) {
  .archive-card1 {
    height: auto; 
    overflow-y: visible;
    padding: 20px; 
  }
}

@media (max-width: 768px) {
  .archive-page {
    padding: 20px 0;
    flex: 1;
  }
  .archive-header {
    margin-bottom: 30px;
  }
  .archive-container {
    width: 95%;
    flex-direction: column;
    gap: 40px;
  }
  .archive-avatar {
    width: 80px;
    height: 80px;
  }
  .archive-card {
    padding: 30px;
  }
}

.categories-list {
  list-style: none;
  margin-top: 30px;
}
.categories-list li {
  display: block;
  padding: 8px 0px;
  margin-bottom: 5px;
  text-decoration: none;
  font-size: 1.2rem;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  border-radius: 5px;
  transition: background-color 0.2s, color 0.2s;
  line-height: 150%;
}

.reminder {
  margin-top: 30px;
  line-height: 150%;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  color: #fff;
}

@media (max-width: 768px) {
  .archive-grid {
    grid-template-columns: 1fr; 
    gap: 20px; 
  }
    .card {
    min-width: auto; /* 移除最小宽度限制 */
  }
    .card-image {
    height: 180px;
  }
}

/* --- 更新日志模块样式 --- */
.update-log-container {
  margin: 50px auto;  
  width: 80%; 
  max-width: 840px; 
  display: flex;
  flex-direction: column;
  align-items: center;
}

.update-log-card {
  border-radius: 25px;
  padding: 40px;
  width: 100%;
  box-sizing: border-box;
  color: #fff;
  line-height: 180%;
  text-shadow: 2px 2px 2px rgba(55, 55, 55, 0.4);
  height: 500px;  
  overflow-y: auto; 
}

.update-log-card::-webkit-scrollbar {
  width: 8px;
}

.update-log-card::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.2);
}

.update-log-card::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
}

.update-log-card::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
  .update-log-container {
    width: 95%; /* 适应手机屏幕宽度 */
    margin: 30px auto;
  }
  
  .update-log-card {
    padding: 20px; /* 减小内边距 */
  }
}

/* --- 时间线样式 --- */
.timeline-card {
  padding-left: 20px;
  padding-right: 20px;
}

.timeline {
  list-style: none;
  padding-left: 20px; /* 留出空间放置时间线 */
  position: relative;
}

/* 垂直时间线线条 */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background-color: rgba(255, 255, 255, 0.5); /* 半透明的白色线条 */
}

/* 时间线上的圆形标记 */
.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 10px;
  left: -25px; /* 将圆点移动到线条左侧 */
  width: 13px;
  height: 13px;
  background-color: #ffa4a4; /* 圆点的颜色 */
  border: 3px solid rgba(255, 255, 255, 0.9); /* 圆点边框 */
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* 时间线内容样式 */
.timeline-content {
  background: rgba(255, 255, 255, 0.2); /* 内容卡片背景 */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 15px 20px;
  border-radius: 15px;
  box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
}

.timeline-content:hover {
  transform: scale(1.02); /* 悬停时放大 */
}

.timeline-content h4 {
  margin-top: 0;
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffbdbd;
}

.timeline-content ul {
  list-style-type: none;
  padding: 0;
  margin: 10px 0 0;
}

.timeline-content ul li {
  line-height: 150%;
  margin-bottom: 5px;
  position: relative;
  padding-left: 20px;
  text-shadow: 1px 1px 2px rgba(49, 49, 49, 0.8);
}

.timeline-content ul li::before {
  content: '✓'; 
  position: absolute;
  left: 0;
  color: #a6c3ea;
  font-weight: bold;
}