html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    min-height: 100vh; /* 关键修改：允许内容扩展高度  */
    font-family: 'TypeLand', serif;
    /* background-color: var(--oil_color_black); */
    background-color: var(--oil_paper_color);
    /* background-image: url('../img/bg_xuan_paper.jpg'); */
    background-image: url('/img/paper/cover_1.webp');
    background-size: cover;
    background-attachment: fixed;
    color: var(--oil_color_black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.8;
    letter-spacing: 0.05em;
    overflow-x: hidden; /* 阻止横向滚动 */
    /* 限制文字 */
    user-select: none; /* 阻止選取文字 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }
  
  @font-face {
    font-family: 'TypeLand';
    src: url('/webfont/TypeLand.woff') format('woff');
  }
  
  * {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
    font-family: 'TypeLand';
  }
  
  :root {
    --back_color_01: #F8F8F8;
    --back_color_02: #FFF2D6;
    --oil_color_effect: palevioletred;
    --oil_color_black: rgb(34, 34, 34);
    --oil_paper_color: #FFF2D6;
    --slider_width_cover: 80vw;
    --slider_width_inside: 79vw;
    --secttion_hight: 900px;
  }
  
  header {
    display: none;
  }
  
  .exhibit-container {
    /* display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* 改为从顶部开始 */
    width: 100%;
    padding: 20px 0; /* 添加安全间距 */
    flex-grow: 1;
    max-width: 100vw; /* 确保不超出视口 */
  }
  .herb-title
  {
    font-size: 2.5em;
    letter-spacing: 1rem;
  }
  .herb-card {
    background-image: url('/img/paper/ricepaper.webp');
    background-size: 50%;
    background-repeat: repeat;
    background-position: center;
    width: 90%;
    max-width: 800px;
    padding: 2vh 2vw;
    text-align: center;
    opacity: 0.76;
    position: relative;
    /* filter: drop-shadow(10px 12px 8px rgba(0, 0, 0, 0.4)); */

    /* 添加最小高度保证样式 */
    min-height: 300px;
    display: flex;
    flex-direction: column;



  }

  .herb-image {    
    width: 90vw;/*100%; /* 关键修改：宽度基于容器而非视口 */
    max-width: 420px;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    object-fit: contain; /* 确保图片自适应 */
    margin: 3vh auto -2vh auto;
    background-size: contain; /* 修改为contain确保完整显示 */
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.25));
  }

    /* 创建内容滚动区域 */
  .herb-content {
    max-height: 50vh; /* 限制内容区域高度 */
    overflow-y: auto; /* 添加垂直滚动 */
    width: 100%;
    padding: 0 10px;
    margin-top: 15px;
  }

  .herb-card h2 {
    margin: 0;
    font-size: 2.5em;
    margin-bottom: 0.3em;
  }
  
  .herb-card small {
    display: block;
    font-size: 0.3em;
    margin-top: 0.2em;
    letter-spacing: 0.15em;
  }
  
  .herb-card p {
    text-align: left;
    margin-bottom: 1.2em;
    line-height: 1.9;
    letter-spacing: 0.04em;
    word-break: break-word; /* 防止长单词溢出 */
    hyphens: auto; /* 自动连字符 */
  }
  
  footer {
    text-align: center;
    padding: 1vh 0;        /* 原本 2vh → 改成 1vh，讓它更靠下 */
    font-size: 0.9em;
    width: 100%;
    line-height: 1.6;
    letter-spacing: 0.04em;
    margin-top: auto; /* 确保页脚在底部 */
    opacity: .86;
  }
  
  .back-button {
    position: fixed;
    /* absolute; */
    top: 1vh;
    left: 1vw;
    width: 160px;
    height: 160px;
    background-image: url('../img/tool/crane.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    z-index: 10;
    cursor: pointer;
    /* 貼合 PNG 形狀的陰影 */
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.2));
  }
  
  .back-button:hover {
    transform: scale(1.1) rotate(-5deg); /* 略微放大旋轉模仿飛動感 */
    /* background: var(--back_color_02); */
  }
   /*.back-button::after {
   content: attr(data-tooltip);
    position: absolute;
    bottom: -10%;  在上方 
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.75em;
    opacity: .4;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  */
  .back-button:hover::after {
    opacity: 0;
  }
  
/* 印章 */
.stamp-overlay {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(50%, -50%); /* 水平右移一半、垂直置中 */
  width: 96px;
  opacity: 0.85;
  pointer-events: none;
  z-index: 2;
}