html {
  /* 定义变量 */
  --bgColor: #ff5353;

  /* rgba的四个值分别为：红(R)、绿(G)、蓝(B)、透明度(A) */
  --whiteShadow: -15px -15px 25px rgba(197, 197, 197, 0.829);
  --blackShadow: 15px 15px 25px rgba(0, 0, 0, 0.26);
  background-color: rgb(255, 255, 255);
}

body {
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: "SiYuan";
  src: url("SourceHanSansSC-Normal-2.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SiYuan-M";
  src: url("SourceHanSansSC-Medium-2.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
* {
  font-family: "SiYuan", sans-serif;
}

h1 {
  font-family: "SiYuan-M", sans-serif;
}

.main {
  display: flex;
  height: 100vh;
  align-items: center;
  justify-content: center;
}

.centerbox {
  background-color: rgb(255, 255, 255);
  width: 470px;
  /* height: 600px; */
  max-height: 700px;
  /* height: auto; */
  /* position: absolute; */
  margin: 15px;
  /* margin-top: 30px; */
  /* top: 0;
  left: 0;
  right: 0;
  bottom: 0; */
  border-radius: 13px;
  /* box-shadow: 0px 0px 55px rgba(65, 66, 65, 0.568); */
  /* 设置外阴影 */
  box-shadow: var(--blackShadow), var(--whiteShadow);
  /* border: 1px solid rgb(0, 0, 0); */
}

/* .contentbox {
  margin: 25px;
} */
.margin-25px {
  margin: 25px;
}

.toolbar {
  display: flex;
  margin: 15px;
  justify-content: space-between;
  flex-direction: row;

  /* align-self: flex-end; */
}

.tooltwo {
  display: flex;
  flex-direction: row;
}

.flex {
  display: flex;
  flex-direction: column;
}

.circle {
  border-radius: 100%;
  /* border: 1px solid rgb(107, 107, 107); */
  box-shadow: 1px 1px 12px rgb(134, 134, 134);
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 4px;
}

.stop {
  cursor: not-allowed;
}

.circle:hover {
  /* background-color: #6e8efb; */
  background-color: #3b3b3b;
  border-color: #3b3b3b;
  transform: scale(1.1);
}

.circle:hover img {
  filter: brightness(0) invert(1);
}

.circle img {
  transition: all 0.3s ease;
}

.page_box {
  display: flex;
  flex-direction: row;
  justify-content: start;
  margin-bottom: 15px;
  margin-top: 0px;

  /* border-top: 1px dashed black; */
}

/* .page_box .circle {
  width: 30px;
  height: 30px;
} */

.bg {
  /* background-image: url("https://t.alcy.cc/fj"); */
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
  overflow: hidden;
  border-top-left-radius: 13px;
  border-top-right-radius: 13px;
  height: 216px;
}

/* .contentbox {
}

.content_picture {
  background-color: rgb(46, 46, 46);
} */

footer {
  position: absolute;
  bottom: 0; /* 4. 设置页脚position为absolute之后，再将其bottom值设为0，即可使其处于页面的底部 */
  width: 100%;
  left: 0;
  text-align: center;
  /* margin: 15px; */
  height: 35px;
  color: #0000007a;
}

.about-footer {
  position: relative;
}

footer a {
  text-decoration: none;
  color: #304f68;
  transition: all 0.3s ease;
}

footer a:hover {
  color: #629ac0;
}

.small_text {
  margin: 3px;
  color: #868686b9;
  font-size: 13px;
  margin-left: 25px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.likes-count {
  margin-right: 30px;
}

/* 日期导航样式 */
/* .date-navigation {
  border-radius: 8px;
  overflow: hidden;
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  transition: all 0.4s ease;
  box-shadow: 1px 1px 12px rgb(134, 134, 134);
} */

.date-navigation:hover {
  /* background-color: #333; */
}

/* .date-navigation select {
  appearance: none; 
  padding: 8px 12px;

  overflow: hidden;
  background-color: white;
  font-size: 14px;

  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  transition: all 0.3s, all 0.3s;


  border: 0;

  position: relative;
} */

/* .date-navigation select::picker {
  border: 0;
} */

/* select样式 */
/* .date-navigation select:hover {
  background-color: #f0f0f0;
  border-color: #333;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}


.date-navigation select:invalid {
  color: #ccc;
}

.date-navigation select:focus {
  outline: none;
}
.current-date {
  font-weight: bold;
  color: #333;
} */

/* 展开功能样式 */
.content-container {
  position: relative;
  max-height: 130px;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-bottom: 0px; /* 为按钮留出空间 */
}

.content-container.expanded {
  max-height: 180px;
  overflow-y: auto;
}

.content-text {
  line-height: 1.5;
  margin-bottom: 0;
}

.expand-btn-container {
  position: sticky;
  bottom: 0px;
  background: linear-gradient(
    to top,
    rgb(255, 255, 255) 70%,
    rgba(255, 255, 255, 0)
  );
  padding: 15px 0 5px 0;
  text-align: center;
  z-index: 5;
  pointer-events: none; /* 允许点击穿透到下方内容 */
}

.expand-btn {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e0e0e0;
  color: #666;
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  pointer-events: auto; /* 确保按钮本身可以点击 */
}

.expand-btn:hover {
  background-color: #f8f8f8;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.expand-btn::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #666;
  transition: transform 0.3s ease;
}

.expand-btn.expanded::after {
  transform: rotate(180deg);
}

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

.content-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.content-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

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

@media (max-height: 720px) {
  /*0~720*/
  .margin-25px {
    margin: 15px;
  }
  .bg {
    height: auto;
  }
  .content-text {
    margin-top: 0;
  }
}

/* select样式 */
/* 日期导航样式 */
.date-navigation {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.date-selector-wrapper {
  position: relative;
  display: inline-block;
}

.date-selector {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 10px 35px 10px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  background-color: white;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-width: 140px;
  outline: none;
}

.date-selector:hover {
  border-color: #3b3b3b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.date-selector:focus {
  border-color: #3b3b3b;
  box-shadow: 0 0 0 3px rgba(59, 59, 59, 0.1);
}

.select-arrow {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  pointer-events: none;
  color: #666;
  transition: transform 0.3s ease;
}

.date-selector:focus + .select-arrow {
  color: #3b3b3b;
}

/* 下拉选项样式 */
.date-selector option {
  padding: 8px 12px;
  background: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .date-navigation {
    top: 15px;
    right: 15px;
  }

  .date-selector {
    padding: 8px 30px 8px 12px;
    font-size: 13px;
    min-width: 120px;
  }

  .select-arrow {
    right: 10px;
  }
  .centerbox {
    box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.199);
  }
}

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

.date-navigation {
  animation: fadeIn 0.5s ease;
}



/* 翻页动画效果 */
.page-transition {
  position: relative;
}

.centerbox {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 淡入动画 */
.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 翻页动画 */
.page-turn {
  animation: pageTurn 0.6s ease forwards;
}

@keyframes pageTurn {
  0% {
    opacity: 0;
    transform: rotateY(90deg) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: rotateY(0) scale(1);
  }
}

/* 滑动动画 */
.slide-in {
  animation: slideIn 0.5s ease forwards;
}

.slide-out {
  animation: slideOut 0.5s ease forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50px);
  }
}

/* 缩放动画 */
.zoom-in {
  animation: zoomIn 0.5s ease forwards;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 加载动画 */
.loading-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, #3b3b3b, #6e8efb, #3b3b3b);
  z-index: 9999;
  transform: translateX(-100%);
}

.loading-animation.active {
  animation: loading 1s ease-in-out;
}

@keyframes loading {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

/* 页面切换时的覆盖层 */
.page-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 9998;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.page-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .centerbox {
    transition: all 0.3s ease;
  }
}