.page {
  background-image: linear-gradient(214.9deg, #fabd01 32.7%, #e75f09 98%);
  border-radius: 2.19rem;
  height: 100%;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  /* 安全区域适配（刘海/圆角屏） */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.section {
  background-color: #ffe1cc;
  /* 扩展背景到整个页面，覆盖橙色渐变 */
  height: 100dvh; /* 更稳定的移动端视口高度 */
  min-height: 100dvh;
  padding-top: 2.5rem;
  overflow: visible; /* 允许装饰图案延伸 */
}
/* 图片基础优化 */
.section img { max-width: 100%; height: auto; }
/* 链接高亮优化（iOS 点击高亮） */
.section a { -webkit-tap-highlight-color: rgba(0,0,0,0.1); }
.group {
  padding: 0 2.13rem 1.88rem;
  width: 61.44rem;
}
.pos {
  position: absolute;
  left: -2.13rem;
  top: 0;
}
.section_2 {
  padding: 5.5rem 0 9.5rem;
  background-image: url('../../assets/09399b47993272167b486c3aa84af236.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  width: 20rem;
}
.text-wrapper {
  margin-left: 4rem;
  padding: 0.75rem 0;
  border-radius: 0.43rem;
  width: 6.56rem;
  height: 2.75rem;
  border-left: solid 0.063rem #000000;
  border-right: solid 0.063rem #000000;
  border-top: solid 0.063rem #000000;
  border-bottom: solid 0.063rem #000000;
}
.font {
  font-size: 1.75rem;
  font-family: Raleway;
  line-height: 1.26rem;
  font-weight: 600;
  color: #000000;
}
.text {
  line-height: 1.26rem;
}
.image_7 {
  margin-top: 29.44rem;
  width: 21.38rem;
  height: 22.63rem;
  display: block;
  z-index: 0;
  pointer-events: none;
}
.image_6 {
  width: 34.5rem;
  height: 23.6rem;
  display: block;
  z-index: 0;
  pointer-events: none;
}
.pos_13 {
  position: absolute;
  right: 7.03rem;
  bottom: 1.88rem;
}
.image_11 {
  width: 10.88rem;
  height: 8.63rem;
  display: block;
  z-index: 0;
  pointer-events: none;
}
.pos_18 {
  position: absolute;
  left: 14.34rem;
  bottom: 0.94rem;
}
.image_2 {
  width: 7.88rem;
  height: 20.13rem;
  display: block;
  z-index: 0;
  pointer-events: none;
}
.pos_6 {
  position: absolute;
  left: 0;
  top: 11.88rem;
}
.image_10 {
  width: 21.31rem;
  height: 11.19rem;
  display: block;
  z-index: 0;
  pointer-events: none;
}
.pos_17 {
  position: absolute;
  right: 0;
  bottom: 0;
}
.image-wrapper_3 {
  padding-top: 2.44rem;
  background-image: url('../../assets/420b1332c4e65770862287539530939e.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  width: 13.31rem;
  height: 15.94rem;
  z-index: 0;
  pointer-events: none;
}
.pos_16 {
  position: absolute;
  left: 2.13rem;
  top: 53.88rem;
}
.image_9 {
  margin-left: -2.13rem;
  width: 15.63rem;
  height: 16.75rem;
  display: block;
  z-index: 0;
  pointer-events: none;
}
.image_3 {
  width: 46.63rem;
  height: 47.19rem;
  display: block;
  z-index: 0;
  pointer-events: none;
}
.pos_7 {
  position: absolute;
  right: 6.94rem;
  bottom: 11.5rem;
}
.pos_3 {
  position: absolute;
  left: 33.76rem;
  top: 6.31rem;
}
.pos_4 {
  position: absolute;
  left: 49.05rem;
  top: 6.31rem;
}
.text_2 {
  line-height: 1.26rem;
}
.pos_5 {
  position: absolute;
  right: 35.81rem;
  top: 6.31rem;
}
.image-wrapper {
  padding: 0.63rem 0;
  background-color: #ff7b4d;
  border-radius: 0.75rem;
  width: 25.13rem;
}
.pos_2 {
  position: absolute;
  right: 5.25rem;
  top: 5.31rem;
}
.image {
  margin-left: 1.5rem;
  width: 1.69rem;
  height: 1.69rem;
  display: block;
  z-index: 2;
}
.group_3 {
  padding-bottom: 3.13rem;
}
.pos_9 {
  position: absolute;
  right: 13.42rem;
  top: 22.19rem;
}
.text_3 {
  color: #332623;
  /* 降低超大字号，改为随视口变化 */
  font-size: clamp(3rem, 12vw, 7rem);
  font-family: Gochi Hand;
  line-height: 1.1;
}
.text_4 {
  color: #332623;
  font-size: clamp(1.125rem, 2.6vw, 2rem);
  font-family: Baloo 2;
  font-weight: 600;
  line-height: 1.4;
  width: auto;
}
.pos_10 {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}
.text_5 {
  color: #332623;
  font-size: clamp(0.95rem, 2.2vw, 1.125rem);
  font-family: Baloo 2;
  line-height: 1.8rem;
  text-align: center;
  width: min(42rem, 90%);
}
.pos_12 {
  position: absolute;
  right: 19.7rem;
  top: 43.23rem;
}
.text-wrapper_2 {
  padding: 0.63rem 0;
  background-color: #332623;
  border-radius: 0.75rem;
}
.pos_14 {
  position: absolute;
  right: 27.56rem;
  top: 49.94rem;
}
.text_6 {
  margin-left: 0.88rem;
  margin-right: 0.5rem;
  color: #ffe1cc;
  font-size: clamp(1rem, 2.3vw, 1.25rem);
  font-family: Baloo 2;
  font-weight: 600;
  line-height: 1.24rem;
}
.btn-link { text-decoration: none; display: inline-block; }
.group_2 {
  padding-bottom: 3.5rem;
  width: 9.94rem;
}
.pos_8 {
  position: absolute;
  right: -0.93rem;
  top: 18.72rem;
}
.image_4 {
  width: 9.94rem;
  height: 29.44rem;
  display: block;
  z-index: 0;
  pointer-events: none;
}
.image_5 {
  width: 4.81rem;
  height: 11.94rem;
  display: block;
  z-index: 0;
  pointer-events: none;
}
.pos_11 {
  position: absolute;
  right: 0.93rem;
  bottom: 0;
}
.image-wrapper_2 {
  padding: 0.25rem 0 0.75rem;
  background-image: url('../../assets/63bb2863638d1ef77eabc3d0c20322c5.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  width: 20.88rem;
  z-index: 0;
  pointer-events: none;
}
.pos_15 {
  position: absolute;
  right: -5.25rem;
  top: 53.74rem;
}
.image_8 {
  width: 17.5rem;
  height: 16.81rem;
  display: block;
  z-index: 0;
  pointer-events: none;
}

/* 博客主页新增样式 */
.blog-section {
  padding: 2rem 1rem 3rem;
  background: transparent !important; /* 完全透明，显示上方背景 */
  position: relative;
  z-index: 2;
  /* 减少上方间距，让文章区域向上移动 */
  margin-top: -12rem;
  padding-top: 8rem;
}
.blog-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 auto 1rem;
  max-width: 64rem;
}
.blog-head h2 { margin: 0; color: #332623; font-size: 1.5rem; }
.blog-more { color: #8a5a3b; font-size: 1rem; text-decoration: none; }

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0 auto 1.5rem;
  max-width: 64rem;
}
.post-card {
  background: rgba(255, 255, 255, 0.65) !important; /* 降低透明度，让背景更明显 */
  background-color: rgba(255, 255, 255, 0.65) !important; /* 兜底 */
  border: 1px solid rgba(255, 217, 197, 0.8);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  backdrop-filter: blur(2px); /* 添加背景模糊效果 */
  /* 渲染优化：可见性与内在尺寸提升滚动性能 */
  content-visibility: auto;
  contain-intrinsic-size: 360px;
}
.post-cover { display: block; height: 9rem; background-image: linear-gradient(135deg, #ff7b4d33, #fabd0133); }
.post-body { padding: 0.9rem; }
.post-title { margin: 0 0 0.25rem; font-size: 1.125rem; color: #332623; }
.post-excerpt { margin: 0; color: #6b4e3f; font-size: 0.95rem; }
.post-meta { margin-top: 0.5rem; color: #a17057; font-size: 0.875rem; }
.tag { background: #ffe6db; color: #a05c3c; padding: 2px 8px; border-radius: 999px; border: 1px solid #ffc9b0; }

.archives-title { color: #332623; font-size: 1.25rem; margin: 1.5rem auto 0.5rem; max-width: 64rem; padding: 0 0.25rem; }
.archives { 
  list-style: none; 
  margin: 0 auto; 
  padding: 0; 
  max-width: 64rem; 
  border: 1px solid rgba(255, 217, 197, 0.8); 
  border-radius: 0.75rem; 
  overflow: hidden; 
  background: rgba(255, 255, 255, 0.5) !important; /* 降低透明度，让背景更明显 */
  backdrop-filter: blur(2px); /* 添加背景模糊效果 */
}
.archives li { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-top: 1px solid #ffe8db; background: transparent; }
.archives li:first-child { border-top: none; }
.archives time { color: #a17057; font-variant-numeric: tabular-nums; }
.archives a { color: #53352a; text-decoration: none; }

/* 内部锚点滚动偏移，避免被顶部内容遮挡 */
#latest-posts, #archives { scroll-margin-top: 5rem; }

/* 移动端简化导航（默认隐藏，移动端显示） */
.mobile-nav { display: none; }
.mobile-nav__link { 
  text-decoration: none; 
  color: #53352a; 
  background: rgba(255,255,255,0.7);
  border: 1px solid #ffd9c5;
  padding: 0.6rem 0.9rem; 
  border-radius: 999px; 
  line-height: 1; 
}

/* 响应式适配：移动端优先覆盖复杂的绝对定位元素 */
@media (max-width: 768px) {
  .page { 
    border-radius: 0; 
    background-image: linear-gradient(214.9deg, #fabd01 32.7%, #e75f09 98%);
    min-height: 100vh;
  }
  
  /* 确保移动端也显示浅色背景 */
  .section { 
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1rem 0; 
    background-color: #ffe1cc; 
    min-height: 100vh;
    height: auto; 
    position: relative;
    /* 添加移动端背景装饰 */
    background-image: 
      radial-gradient(circle at 20% 80%, rgba(250, 189, 1, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(231, 95, 9, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 40% 40%, rgba(255, 123, 77, 0.05) 0%, transparent 60%);
    background-size: 100% 100%;
  }
  
  /* 移动端去除大容器的绝对定位与固定宽度，避免溢出 */
  .pos { 
    position: static; 
    left: auto; 
    top: auto; 
    width: 100%;
    max-width: 100%;
  }
  
  .group { 
    display: flex !important;
    flex-direction: column;
    align-items: center;
    padding: 0;
    width: 100%;
    position: static;
  }
  
  /* 移动端导航优化 */
  .mobile-nav { 
    display: flex; 
    gap: 0.75rem; 
    position: sticky; 
    top: calc(0.5rem + env(safe-area-inset-top)); 
    z-index: 10; 
    justify-content: center; 
    margin: 1rem auto 0; 
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 217, 197, 0.6);
  }
  
  .mobile-nav__link {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    transition: all 0.2s ease;
  }
  
  .mobile-nav__link:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  
  /* 隐藏桌面端装饰图片 */
  .image_7, .image_6, .image_11, .image_2, .image_10, .image-wrapper_3, .image_3 { 
    display: none !important;
  }
  
  /* 隐藏过大的装饰元素 */
  .group_2, .image-wrapper_2 { 
    display: none !important; 
  }
  
  /* 隐藏桌面端导航 */
  .pos_3, .pos_4, .pos_5 { 
    display: none !important;
  }
  
  .section_2 { 
    padding: 2rem 0 1rem; 
    width: 100%; 
    background: none;
    text-align: center;
    order: 1;
  }
  
  .text-wrapper { 
    margin: 0 auto 2rem; 
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 217, 197, 0.8);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  /* 主标题区域优化 */
  .pos_9 {
    position: static;
    text-align: center;
    margin: 1.5rem auto;
    order: 2;
  }
  
  .text_3 { 
    font-size: clamp(2.5rem, 12vw, 4rem); 
    text-align: center;
    margin-bottom: 0.5rem;
    line-height: 1.1;
  }
  
  .text_4 { 
    font-size: clamp(1.1rem, 4vw, 1.5rem); 
    text-align: center;
    margin-top: 0.5rem;
    opacity: 0.85;
  }
  
  /* 描述文字优化 */
  .pos_12 {
    position: static;
    text-align: center;
    margin: 1.5rem auto;
    order: 3;
  }
  
  .text_5 { 
    font-size: 1rem; 
    width: 100%; 
    max-width: 90%;
    padding: 0; 
    text-align: center; 
    line-height: 1.7;
    margin: 0 auto;
  }
  
  /* 按钮优化 */
  .pos_14 {
    position: static; 
    text-align: center;
    margin: 2rem auto 1rem;
    order: 4;
  }
  
  .text-wrapper_2 { 
    display: inline-block; 
    margin: 0; 
    width: auto;
    background: #332623;
    border-radius: 999px;
    box-shadow: 0 4px 15px rgba(51, 38, 35, 0.3);
    transition: all 0.3s ease;
  }
  
  .text-wrapper_2:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(51, 38, 35, 0.4);
  }
  
  .text_6 {
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    margin: 0;
    font-weight: 600;
  }

  /* 博客栅格在手机端为 1 列 */
  .blog-grid { 
    grid-template-columns: 1fr; 
    gap: 1.25rem;
    padding: 0 0.5rem;
  }
  
  /* 移动端取消重叠，顺序自然堆叠 */
  .blog-section { 
    margin-top: 0; 
    padding: 1rem 1rem 3rem;
    order: 5;
    background: transparent;
    width: 100%;
  }
  
  .blog-head {
    margin-bottom: 1.5rem;
  }
  
  .blog-head h2 {
    font-size: 1.75rem;
  }
  
  /* 卡片优化 */
  .post-card {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(255, 217, 197, 0.9);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
  }
  
  .post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  }
  
  .post-cover {
    height: 10rem;
  }
  
  .post-body {
    padding: 1.25rem;
  }
  
  .post-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .post-excerpt {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  /* 归档区域优化 */
  .archives-title {
    font-size: 1.5rem;
    margin-top: 2rem;
    padding: 0 0.5rem;
  }
  
  .archives {
    margin: 0 0.5rem 2rem;
    background: rgba(255, 255, 255, 0.7) !important;
  }
  
  .archives li {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .archives time {
    font-size: 0.9rem;
  }
  
  .archives a {
    font-size: 1rem;
  }
  
  /* 添加移动端底部装饰 */
  .blog-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(180deg, transparent 0%, rgba(250, 189, 1, 0.1) 100%);
    pointer-events: none;
  }
  
  /* 添加移动端装饰图案 */
  .section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
      radial-gradient(circle at 10% 20%, rgba(250, 189, 1, 0.05) 0%, transparent 40%),
      radial-gradient(circle at 90% 80%, rgba(231, 95, 9, 0.05) 0%, transparent 40%),
      radial-gradient(circle at 50% 50%, rgba(255, 123, 77, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
  }
  
  /* 确保内容在装饰之上 */
  .section > * {
    position: relative;
    z-index: 1;
  }
  
  /* 移动端添加简化的装饰图案 */
  .mobile-decoration {
    position: absolute;
    pointer-events: none;
    opacity: 0.15;
    z-index: 0;
  }
  
  .mobile-decoration:nth-child(1) {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #fabd01 0%, transparent 70%);
    border-radius: 50%;
    top: 15%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
  }
  
  .mobile-decoration:nth-child(2) {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #e75f09 0%, transparent 70%);
    border-radius: 50%;
    bottom: 20%;
    left: 15%;
    animation: float 8s ease-in-out infinite reverse;
  }
  
  @keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
  }
}

/* 极小屏进一步简化（< 360px）*/
@media (max-width: 360px) {
  .image_7, .image_6, .image_11, .image_2, .image_10, .image-wrapper_3, .image_3 { display: none !important; }
}
@media (min-width: 769px) and (max-width: 1199px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}
.archives.all-posts {
  max-height: 560px;
  overflow-y: auto;
  padding-right: 0.5rem;
}
@media (min-width: 1024px) {
  .archives.all-posts {
    column-count: 2;
    column-gap: 2rem;
  }
  .archives.all-posts li { break-inside: avoid; }
}
