/* Mobile Buttons CSS - Cross-Browser Compatibility */

/* 这个文件确保移动设备上的按钮样式兼容性 */
/* 主要样式在 research-enhancement.css 中定义 */

/* 通用按钮重置 - 确保跨浏览器一致性 */
.btn, button {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
}

/* iOS Safari 特殊处理 */
@supports (-webkit-touch-callout: none) {
  .btn.btn-resource,
  button.btn-resource {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
}

/* 安卓 Chrome 特殊处理 */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .btn.btn-resource,
  button.btn-resource {
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }
}

/* 安卓设备按钮统一尺寸 - 修复按钮大小不一致问题 */
@media screen and (max-width: 768px) {
  /* 针对Research Topics中的按钮，使用更具体的选择器提高优先级 */
  .achievement-intro .btn.btn-resource,
  .achievement-intro button.btn-resource,
  .achievement-intro .btn.btn-resource.btn-res-paper,
  .achievement-intro .btn.btn-resource.btn-res-code,
  .achievement-intro .btn.btn-resource.btn-res-external,
  .achievement-intro .btn.btn-resource.btn-res-internal,
  .achievement-intro .btn.btn-resource.btn-res-pdf,
  .achievement-intro .btn.btn-resource.btn-res-poster,
  .achievement-intro .btn.btn-resource.btn-res-slides,
  .achievement-intro .btn.btn-resource.btn-res-blog,
  .achievement-intro .btn.btn-resource.btn-res-news,
  .achievement-intro .btn.btn-resource.btn-res-bibtex,
  .achievement-intro .btn.btn-resource.btn-res-audio,
  .achievement-intro button.btn-res-paper,
  .achievement-intro button.btn-res-code,
  .achievement-intro button.btn-res-external,
  .achievement-intro button.btn-res-internal,
  .achievement-intro button.btn-res-pdf,
  .achievement-intro button.btn-res-poster,
  .achievement-intro button.btn-res-slides,
  .achievement-intro button.btn-res-blog,
  .achievement-intro button.btn-res-news,
  .achievement-intro button.btn-res-bibtex,
  .achievement-intro button.btn-res-audio {
    font-size: 12px !important;
    padding: 5px 10px !important;
    min-width: 50px;
    height: 26px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
}
/* iOS设备按钮统一优化 CSS v1.1 */
/* 针对iOS Safari和WebKit的特殊优化 - 增强优先级 */

/* iOS设备检测和基础重置 */
@supports (-webkit-touch-callout: none) {
  /* 这个选择器主要针对iOS设备 */
  
  /* 全局按钮重置 - iOS特有 */
  .btn, button, [type="button"], input[type="submit"], input[type="reset"],
  .btn-resource, .pub-tier-btn {
    -webkit-appearance: none !important;
    appearance: none !important;
    -webkit-border-radius: 0 !important;
    border-radius: inherit !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-font-smoothing: antialiased !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
    will-change: transform !important;
  }
  
  /* 桌面端统一 - iOS Safari - 极高优先级选择器 */
  html body .achievement-intro .btn.btn-resource,
  html body .achievement-intro .btn.btn-resource.btn-sm,
  html body .btn.btn-resource.btn-res-paper,
  html body .btn.btn-resource.btn-res-code,
  html body .btn.btn-resource.btn-res-external,
  html body .btn.btn-resource.btn-res-internal,
  html body .btn.btn-resource.btn-res-pdf,
  html body .btn.btn-resource.btn-res-poster,
  html body .btn.btn-resource.btn-res-slides,
  html body .btn.btn-resource.btn-res-blog,
  html body .btn.btn-resource.btn-res-news,
  html body .btn.btn-resource.btn-res-bibtex,
  html body .btn.btn-resource.btn-res-audio,
  html body .publication-buttons .btn,
  html body #research .achievement-box .btn.btn-resource {
    font-size: 12px !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    min-height: 28px !important; /* iOS最小点击区域 */
    min-width: 44px !important; /* iOS推荐最小宽度 */
    display: inline-block !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    margin: 2px !important;
  }
  
  /* 等级按钮 - 桌面端 - 极高优先级 */
  html body .pub-tier-btn,
  html body span.pub-tier-btn,
  html body .pub-tier-btn.ccf-a,
  html body .pub-tier-btn.ccf-b,
  html body .pub-tier-btn.ccf-c,
  html body .pub-tier-btn.sci-1,
  html body .pub-tier-btn.sci-2,
  html body .pub-tier-btn.sci-3,
  html body .pub-tier-btn.sci-4,
  html body .pub-tier-btn.others {
    font-size: 12px !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    min-height: 28px !important;
    min-width: 44px !important;
    display: inline !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    margin-left: 5px !important;
  }
}

/* iPad端优化 - 增强选择器优先级 */
@media only screen and (max-width: 768px) and (-webkit-min-device-pixel-ratio: 1) {
  @supports (-webkit-touch-callout: none) {
    /* 资源按钮 - iPad - 极高优先级 */
    html body .achievement-intro .btn.btn-resource,
    html body .achievement-intro .btn.btn-resource.btn-sm,
    html body .btn.btn-resource.btn-res-paper,
    html body .btn.btn-resource.btn-res-code,
    html body .btn.btn-resource.btn-res-external,
    html body .btn.btn-resource.btn-res-internal,
    html body .btn.btn-resource.btn-res-pdf,
    html body .btn.btn-resource.btn-res-poster,
    html body .btn.btn-resource.btn-res-slides,
    html body .btn.btn-resource.btn-res-blog,
    html body .btn.btn-resource.btn-res-news,
    html body .btn.btn-resource.btn-res-bibtex,
    html body .btn.btn-resource.btn-res-audio,
    html body .publication-buttons .btn,
    html body #research .achievement-box .btn.btn-resource {
      font-size: 10px !important;
      padding: 4px 8px !important;
      border-radius: 5px !important;
      font-weight: 500 !important;
      line-height: 1.2 !important;
      min-height: 24px !important;
      min-width: 36px !important;
      display: inline-block !important;
      vertical-align: middle !important;
      box-sizing: border-box !important;
      margin: 1px !important;
      -webkit-transform: translateZ(0) !important;
      transform: translateZ(0) !important;
    }
    
    /* 等级按钮 - iPad - 极高优先级 */
    html body .pub-tier-btn,
    html body span.pub-tier-btn,
    html body .pub-tier-btn.ccf-a,
    html body .pub-tier-btn.ccf-b,
    html body .pub-tier-btn.ccf-c,
    html body .pub-tier-btn.sci-1,
    html body .pub-tier-btn.sci-2,
    html body .pub-tier-btn.sci-3,
    html body .pub-tier-btn.sci-4,
    html body .pub-tier-btn.others {
      font-size: 10px !important;
      padding: 4px 8px !important;
      border-radius: 5px !important;
      font-weight: 700 !important;
      line-height: 1.2 !important;
      min-height: 24px !important;
      min-width: 36px !important;
      display: inline !important;
      vertical-align: middle !important;
      box-sizing: border-box !important;
      margin-left: 4px !important;
      -webkit-transform: translateZ(0) !important;
      transform: translateZ(0) !important;
    }
  }
}

/* iPhone端优化 - 增强选择器优先级 */
@media only screen and (max-width: 480px) and (-webkit-min-device-pixel-ratio: 1) {
  @supports (-webkit-touch-callout: none) {
    /* 资源按钮 - iPhone - 极高优先级 */
    html body .achievement-intro .btn.btn-resource,
    html body .achievement-intro .btn.btn-resource.btn-sm,
    html body .btn.btn-resource.btn-res-paper,
    html body .btn.btn-resource.btn-res-code,
    html body .btn.btn-resource.btn-res-external,
    html body .btn.btn-resource.btn-res-internal,
    html body .btn.btn-resource.btn-res-pdf,
    html body .btn.btn-resource.btn-res-poster,
    html body .btn.btn-resource.btn-res-slides,
    html body .btn.btn-resource.btn-res-blog,
    html body .btn.btn-resource.btn-res-news,
    html body .btn.btn-resource.btn-res-bibtex,
    html body .btn.btn-resource.btn-res-audio,
    html body .publication-buttons .btn,
    html body #research .achievement-box .btn.btn-resource {
      font-size: 8px !important;
      padding: 3px 7px !important;
      border-radius: 4px !important;
      font-weight: 500 !important;
      line-height: 1.2 !important;
      min-height: 20px !important;
      min-width: 28px !important;
      display: inline-block !important;
      vertical-align: middle !important;
      box-sizing: border-box !important;
      margin: 1px !important;
      -webkit-transform: translateZ(0) !important;
      transform: translateZ(0) !important;
    }
    
    /* 等级按钮 - iPhone - 极高优先级 */
    html body .pub-tier-btn,
    html body span.pub-tier-btn,
    html body .pub-tier-btn.ccf-a,
    html body .pub-tier-btn.ccf-b,
    html body .pub-tier-btn.ccf-c,
    html body .pub-tier-btn.sci-1,
    html body .pub-tier-btn.sci-2,
    html body .pub-tier-btn.sci-3,
    html body .pub-tier-btn.sci-4,
    html body .pub-tier-btn.others {
      font-size: 8px !important;
      padding: 3px 7px !important;
      border-radius: 4px !important;
      font-weight: 700 !important;
      line-height: 1.2 !important;
      min-height: 20px !important;
      min-width: 28px !important;
      display: inline !important;
      vertical-align: middle !important;
      box-sizing: border-box !important;
      margin-left: 3px !important;
      -webkit-transform: translateZ(0) !important;
      transform: translateZ(0) !important;
    }
  }
}

/* 通用iOS优化 - 不受屏幕尺寸限制 */
@supports (-webkit-touch-callout: none) {
  /* 高分辨率设备特殊优化 */
  @media only screen and (-webkit-min-device-pixel-ratio: 2) {
    html body .btn, 
    html body .btn-resource, 
    html body .pub-tier-btn {
      -webkit-font-smoothing: subpixel-antialiased !important;
      font-smooth: always !important;
      text-rendering: optimizeLegibility !important;
    }
  }
  
  /* iOS深色模式适配 */
  @media (prefers-color-scheme: dark) {
    html body .btn, 
    html body .btn-resource, 
    html body .pub-tier-btn {
      -webkit-font-smoothing: antialiased !important;
    }
  }
}
/* iOS设备按钮统一终极修复 CSS v2.0 */
/* 最高优先级 - 确保不被任何其他样式覆盖 */

/* 使用!important + 高权重选择器 + 深层嵌套确保最高优先级 */

/* 所有iOS设备的最终样式覆盖 */
@supports (-webkit-touch-callout: none) {
  
  /* ==== 桌面端 (>768px) - 终极优先级 ==== */
  html body div#page-top .achievement-intro .btn.btn-resource,
  html body div#page-top .achievement-intro .btn.btn-resource.btn-sm,
  html body div#page-top .btn.btn-resource.btn-res-paper,
  html body div#page-top .btn.btn-resource.btn-res-code,
  html body div#page-top .btn.btn-resource.btn-res-external,
  html body div#page-top .btn.btn-resource.btn-res-internal,
  html body div#page-top .btn.btn-resource.btn-res-pdf,
  html body div#page-top .btn.btn-resource.btn-res-poster,
  html body div#page-top .btn.btn-resource.btn-res-slides,
  html body div#page-top .btn.btn-resource.btn-res-blog,
  html body div#page-top .btn.btn-resource.btn-res-news,
  html body div#page-top .btn.btn-resource.btn-res-bibtex,
  html body div#page-top .btn.btn-resource.btn-res-audio,
  html body div#page-top .publication-buttons .btn,
  html body div#page-top #research .achievement-box .btn.btn-resource,
  html body div .content-card .publication-buttons .btn,
  html body div .content-card .btn.btn-res-pdf,
  html body div .content-card .btn.btn-res-bibtex,
  html body div .content-card .btn.btn-res-code,
  html body div .content-card .btn.btn-res-poster,
  html body div .content-card .btn.btn-res-slides {
    font-size: 12px !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    margin: 2px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }
  
  /* 等级按钮 - 桌面端 - 终极优先级 */
  html body div#page-top .pub-tier-btn,
  html body div#page-top span.pub-tier-btn,
  html body div#page-top .pub-tier-btn.ccf-a,
  html body div#page-top .pub-tier-btn.ccf-b,
  html body div#page-top .pub-tier-btn.ccf-c,
  html body div#page-top .pub-tier-btn.sci-1,
  html body div#page-top .pub-tier-btn.sci-2,
  html body div#page-top .pub-tier-btn.sci-3,
  html body div#page-top .pub-tier-btn.sci-4,
  html body div#page-top .pub-tier-btn.others,
  html body div .content-card .pub-tier-btn,
  html body div .content-card span.pub-tier-btn,
  html body div .content-card .pub-tier-btn.ccf-a,
  html body div .content-card .pub-tier-btn.ccf-b,
  html body div .content-card .pub-tier-btn.sci-1,
  html body div .content-card .pub-tier-btn.sci-2,
  html body div .content-card .pub-tier-btn.others {
    font-size: 12px !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-left: 5px !important;
    display: inline !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }
}

/* ==== 平板端 (≤768px) - 终极优先级 ==== */
@media only screen and (max-width: 768px) {
  @supports (-webkit-touch-callout: none) {
    
    /* 资源按钮 - 平板端 */
    html body div#page-top .achievement-intro .btn.btn-resource,
    html body div#page-top .achievement-intro .btn.btn-resource.btn-sm,
    html body div#page-top .btn.btn-resource.btn-res-paper,
    html body div#page-top .btn.btn-resource.btn-res-code,
    html body div#page-top .btn.btn-resource.btn-res-external,
    html body div#page-top .btn.btn-resource.btn-res-internal,
    html body div#page-top .btn.btn-resource.btn-res-pdf,
    html body div#page-top .btn.btn-resource.btn-res-poster,
    html body div#page-top .btn.btn-resource.btn-res-slides,
    html body div#page-top .btn.btn-resource.btn-res-blog,
    html body div#page-top .btn.btn-resource.btn-res-news,
    html body div#page-top .btn.btn-resource.btn-res-bibtex,
    html body div#page-top .btn.btn-resource.btn-res-audio,
    html body div#page-top .publication-buttons .btn,
    html body div#page-top #research .achievement-box .btn.btn-resource,
    html body div .content-card .publication-buttons .btn,
    html body div .content-card .btn.btn-res-pdf,
    html body div .content-card .btn.btn-res-bibtex,
    html body div .content-card .btn.btn-res-code,
    html body div .content-card .btn.btn-res-poster,
    html body div .content-card .btn.btn-res-slides {
      font-size: 10px !important;
      padding: 4px 8px !important;
      border-radius: 5px !important;
      font-weight: 500 !important;
      line-height: 1.2 !important;
      margin: 1px !important;
      display: inline-block !important;
      vertical-align: middle !important;
      box-sizing: border-box !important;
      -webkit-appearance: none !important;
      appearance: none !important;
    }
    
    /* 等级按钮 - 平板端 */
    html body div#page-top .pub-tier-btn,
    html body div#page-top span.pub-tier-btn,
    html body div#page-top .pub-tier-btn.ccf-a,
    html body div#page-top .pub-tier-btn.ccf-b,
    html body div#page-top .pub-tier-btn.ccf-c,
    html body div#page-top .pub-tier-btn.sci-1,
    html body div#page-top .pub-tier-btn.sci-2,
    html body div#page-top .pub-tier-btn.sci-3,
    html body div#page-top .pub-tier-btn.sci-4,
    html body div#page-top .pub-tier-btn.others,
    html body div .content-card .pub-tier-btn,
    html body div .content-card span.pub-tier-btn,
    html body div .content-card .pub-tier-btn.ccf-a,
    html body div .content-card .pub-tier-btn.ccf-b,
    html body div .content-card .pub-tier-btn.sci-1,
    html body div .content-card .pub-tier-btn.sci-2,
    html body div .content-card .pub-tier-btn.others {
      font-size: 10px !important;
      padding: 4px 8px !important;
      border-radius: 5px !important;
      font-weight: 700 !important;
      line-height: 1.2 !important;
      margin-left: 4px !important;
      display: inline !important;
      vertical-align: middle !important;
      box-sizing: border-box !important;
      -webkit-appearance: none !important;
      appearance: none !important;
    }
  }
}

/* ==== 手机端 (≤480px) - 终极优先级 ==== */
@media only screen and (max-width: 480px) {
  @supports (-webkit-touch-callout: none) {
    
    /* 资源按钮 - 手机端 */
    html body div#page-top .achievement-intro .btn.btn-resource,
    html body div#page-top .achievement-intro .btn.btn-resource.btn-sm,
    html body div#page-top .btn.btn-resource.btn-res-paper,
    html body div#page-top .btn.btn-resource.btn-res-code,
    html body div#page-top .btn.btn-resource.btn-res-external,
    html body div#page-top .btn.btn-resource.btn-res-internal,
    html body div#page-top .btn.btn-resource.btn-res-pdf,
    html body div#page-top .btn.btn-resource.btn-res-poster,
    html body div#page-top .btn.btn-resource.btn-res-slides,
    html body div#page-top .btn.btn-resource.btn-res-blog,
    html body div#page-top .btn.btn-resource.btn-res-news,
    html body div#page-top .btn.btn-resource.btn-res-bibtex,
    html body div#page-top .btn.btn-resource.btn-res-audio,
    html body div#page-top .publication-buttons .btn,
    html body div#page-top #research .achievement-box .btn.btn-resource,
    html body div .content-card .publication-buttons .btn,
    html body div .content-card .btn.btn-res-pdf,
    html body div .content-card .btn.btn-res-bibtex,
    html body div .content-card .btn.btn-res-code,
    html body div .content-card .btn.btn-res-poster,
    html body div .content-card .btn.btn-res-slides {
      font-size: 8px !important;
      padding: 3px 7px !important;
      border-radius: 4px !important;
      font-weight: 500 !important;
      line-height: 1.2 !important;
      margin: 1px !important;
      display: inline-block !important;
      vertical-align: middle !important;
      box-sizing: border-box !important;
      -webkit-appearance: none !important;
      appearance: none !important;
    }
    
    /* 等级按钮 - 手机端 */
    html body div#page-top .pub-tier-btn,
    html body div#page-top span.pub-tier-btn,
    html body div#page-top .pub-tier-btn.ccf-a,
    html body div#page-top .pub-tier-btn.ccf-b,
    html body div#page-top .pub-tier-btn.ccf-c,
    html body div#page-top .pub-tier-btn.sci-1,
    html body div#page-top .pub-tier-btn.sci-2,
    html body div#page-top .pub-tier-btn.sci-3,
    html body div#page-top .pub-tier-btn.sci-4,
    html body div#page-top .pub-tier-btn.others,
    html body div .content-card .pub-tier-btn,
    html body div .content-card span.pub-tier-btn,
    html body div .content-card .pub-tier-btn.ccf-a,
    html body div .content-card .pub-tier-btn.ccf-b,
    html body div .content-card .pub-tier-btn.sci-1,
    html body div .content-card .pub-tier-btn.sci-2,
    html body div .content-card .pub-tier-btn.others {
      font-size: 8px !important;
      padding: 3px 7px !important;
      border-radius: 4px !important;
      font-weight: 700 !important;
      line-height: 1.2 !important;
      margin-left: 3px !important;
      display: inline !important;
      vertical-align: middle !important;
      box-sizing: border-box !important;
      -webkit-appearance: none !important;
      appearance: none !important;
    }
  }
}

/* 通用iOS修复 - 不受其他样式影响 */
@supports (-webkit-touch-callout: none) {
  html body .btn,
  html body .btn-resource,
  html body .pub-tier-btn {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-font-smoothing: antialiased !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
  }
}
/* 安卓及所有移动端按钮终极修复 v1.0 */
@media only screen and (max-width: 480px) {
  /* 强力覆盖research topics/achievement-box等所有相关容器下的按钮 */
  html body div#page-top .achievement-box .btn.btn-resource,
  html body div#page-top .achievement-intro .btn.btn-resource,
  html body div#page-top .research-topics .btn.btn-resource,
  html body div#page-top .research-topics .btn,
  html body div#page-top .achievement-box .pub-tier-btn,
  html body div#page-top .achievement-intro .pub-tier-btn,
  html body div#page-top .research-topics .pub-tier-btn,
  html body div#page-top .research-topics span.pub-tier-btn,
  html body div#page-top .achievement-box span.pub-tier-btn,
  html body div#page-top .achievement-intro span.pub-tier-btn,
  html body div#page-top .achievement-box .btn,
  html body div#page-top .achievement-intro .btn,
  html body div#page-top .research-topics .btn {
    font-size: 8px !important;
    padding: 3px 7px !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    margin: 1px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }
  html body div#page-top .achievement-box .pub-tier-btn,
  html body div#page-top .achievement-intro .pub-tier-btn,
  html body div#page-top .research-topics .pub-tier-btn,
  html body div#page-top .achievement-box .pub-tier-btn.ccf-a,
  html body div#page-top .achievement-box .pub-tier-btn.ccf-b,
  html body div#page-top .achievement-box .pub-tier-btn.sci-1,
  html body div#page-top .achievement-box .pub-tier-btn.sci-2,
  html body div#page-top .achievement-box .pub-tier-btn.others,
  html body div#page-top .research-topics .pub-tier-btn.ccf-a,
  html body div#page-top .research-topics .pub-tier-btn.ccf-b,
  html body div#page-top .research-topics .pub-tier-btn.sci-1,
  html body div#page-top .research-topics .pub-tier-btn.sci-2,
  html body div#page-top .research-topics .pub-tier-btn.others {
    font-size: 8px !important;
    padding: 3px 7px !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-left: 3px !important;
    display: inline !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }
  html body div#page-top .btn.btn-resource,
  html body div#page-top .btn.btn-resource.btn-res-paper,
  html body div#page-top .btn.btn-resource.btn-res-code,
  html body div#page-top .btn.btn-resource.btn-res-external,
  html body div#page-top .btn.btn-resource.btn-res-internal,
  html body div#page-top .btn.btn-resource.btn-res-pdf,
  html body div#page-top .btn.btn-resource.btn-res-poster,
  html body div#page-top .btn.btn-resource.btn-res-slides,
  html body div#page-top .btn.btn-resource.btn-res-blog,
  html body div#page-top .btn.btn-resource.btn-res-news,
  html body div#page-top .btn.btn-resource.btn-res-bibtex,
  html body div#page-top .btn.btn-resource.btn-res-audio,
  html body div#page-top .publication-buttons .btn,
  html body div#page-top #research .achievement-box .btn.btn-resource,
  html body div .content-card .publication-buttons .btn,
  html body div .content-card .btn.btn-res-pdf,
  html body div .content-card .btn.btn-res-bibtex,
  html body div .content-card .btn.btn-res-code,
  html body div .content-card .btn.btn-res-poster,
  html body div .content-card .btn.btn-res-slides {
    font-size: 8px !important;
    padding: 3px 7px !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    margin: 1px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }
  html body div#page-top .pub-tier-btn,
  html body div#page-top span.pub-tier-btn,
  html body div#page-top .pub-tier-btn.ccf-a,
  html body div#page-top .pub-tier-btn.ccf-b,
  html body div#page-top .pub-tier-btn.ccf-c,
  html body div#page-top .pub-tier-btn.sci-1,
  html body div#page-top .pub-tier-btn.sci-2,
  html body div#page-top .pub-tier-btn.sci-3,
  html body div#page-top .pub-tier-btn.sci-4,
  html body div#page-top .pub-tier-btn.others,
  html body div .content-card .pub-tier-btn,
  html body div .content-card span.pub-tier-btn,
  html body div .content-card .pub-tier-btn.ccf-a,
  html body div .content-card .pub-tier-btn.ccf-b,
  html body div .content-card .pub-tier-btn.sci-1,
  html body div .content-card .pub-tier-btn.sci-2,
  html body div .content-card .pub-tier-btn.others {
    font-size: 8px !important;
    padding: 3px 7px !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-left: 3px !important;
    display: inline !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }
}
/* Research Enhancement CSS v2.0 - 全设备全浏览器兼容 */

/* 全局按钮重置 - 确保跨浏览器兼容性 */
.btn, button, [type="button"], input[type="submit"], input[type="reset"] {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  box-sizing: border-box !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}

/* Research Framework Image */
.research-framework-wrap {
  text-align: center;
  margin: 30px 0 40px 0;
  padding: 20px;
}

.research-framework-wrap img {
  max-width: 80%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 0 auto;
  display: block;
}

/* Intro Research Section */
.about-research-heading h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #2c3e50;
  line-height: 1.2;
}

/* Achievement Introduction */
.achievement-intro {
  margin-bottom: 40px;
  padding: 30px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.achievement-intro h4 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #2c3e50;
  line-height: 1.3;
}

.achievement-intro img {
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-right: 25px;
  margin-bottom: 15px;
  float: left;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.achievement-intro p {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 20px;
  text-align: justify;
}

/* 强调文字样式 */
.achievement-intro p i {
  font-style: italic;
  color: #2c3e50;
  font-weight: 500;
}

.achievement-intro p b {
  font-weight: 700;
  color: #2c3e50;
}

/* Selected Publications 部分样式 */
#research {
  padding: 60px 0 30px;
  max-width: 1200px; /* 限制最大宽度 */
  margin: 0 auto; /* 确保section居中 */
}

#research .section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #2c3e50;
}

#research .achievement-box {
  margin-top: 20px;
  max-width: 900px; /* 限制publications容器宽度，让box看起来更居中 */
  margin-left: auto;
  margin-right: auto;
}

#research .achievement-box ul {
  list-style: none;
  padding-left: 0;
}

#research .achievement-box h5 {
  font-size: 16px;
  margin-bottom: 20px;
  color: #444;
}

#research .achievement-box li {
  padding: 15px 0;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 5px;
  text-align: left;
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  list-style: none;
}

/* 桌面端标签比例统一 - 基准比例 - 提高优先级 */
/* 资源按钮：基础尺寸 - 更高优先级选择器 */
.achievement-intro .btn.btn-resource,
.achievement-intro .btn.btn-resource.btn-sm,
.achievement-intro button.btn-resource,
button.btn.btn-resource,
.btn.btn-resource.btn-res-paper,
.btn.btn-resource.btn-res-code,
.btn.btn-resource.btn-res-external,
.btn.btn-resource.btn-res-internal,
.btn.btn-resource.btn-res-pdf,
.btn.btn-resource.btn-res-poster,
.btn.btn-resource.btn-res-slides,
.btn.btn-resource.btn-res-blog,
.btn.btn-resource.btn-res-news,
.btn.btn-resource.btn-res-bibtex,
.btn.btn-resource.btn-res-audio {
  border-radius: 6px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  transition: all 0.18s ease !important;
  border: 1px solid transparent !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
  text-decoration: none !important;
  display: inline-block !important;
  cursor: pointer !important;
  font-family: inherit !important;
  font-size: 12px !important; /* 资源按钮：12px基准 */
  padding: 5px 10px !important; /* 资源按钮：5px 10px基准 */
  margin: 1px 2px !important;
  vertical-align: middle !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
}

.achievement-intro .btn.btn-resource:hover,
.achievement-intro .btn.btn-resource.btn-sm:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important; /* 稍微增强的阴影 */
  text-decoration: none !important;
}

/* Resource Button Colors - 与publications页面完全一致 */
.achievement-intro .btn-res-paper,
.achievement-intro .btn.btn-res-paper,
.achievement-intro button.btn-res-paper {
  background: #ED8936 !important; /* 与publications页面一致 */
  border-color: #ED8936 !important;
  color: white !important;
}

.achievement-intro .btn-res-paper:hover,
.achievement-intro .btn.btn-res-paper:hover,
.achievement-intro button.btn-res-paper:hover {
  background: #DD6B20 !important; /* 与publications页面一致 */
  border-color: #DD6B20 !important;
  color: white !important;
  transform: translateY(-1px) !important;
}

.achievement-intro .btn-res-code,
.achievement-intro .btn.btn-res-code,
.achievement-intro button.btn-res-code {
  background: #38A169 !important; /* 与publications页面一致 */
  border-color: #38A169 !important;
  color: white !important;
}

.achievement-intro .btn-res-code:hover,
.achievement-intro .btn.btn-res-code:hover,
.achievement-intro button.btn-res-code:hover {
  background: #2F855A !important; /* 与publications页面一致 */
  border-color: #2F855A !important;
  color: white !important;
  transform: translateY(-1px) !important;
}

.achievement-intro .btn-res-poster, 
.achievement-intro .btn-res-slides,
.achievement-intro .btn.btn-res-poster, 
.achievement-intro .btn.btn-res-slides,
.achievement-intro button.btn-res-poster, 
.achievement-intro button.btn-res-slides {
  background: #3182CE !important; /* 与publications页面一致 */
  border-color: #3182CE !important;
  color: white !important;
}

.achievement-intro .btn-res-poster:hover, 
.achievement-intro .btn-res-slides:hover,
.achievement-intro .btn.btn-res-poster:hover, 
.achievement-intro .btn.btn-res-slides:hover,
.achievement-intro button.btn-res-poster:hover, 
.achievement-intro button.btn-res-slides:hover {
  background: #2C5282 !important; /* 与publications页面一致 */
  border-color: #2C5282 !important;
  color: white !important;
  transform: translateY(-1px) !important;
}

.achievement-intro .btn-res-blog,
.achievement-intro .btn.btn-res-blog,
.achievement-intro button.btn-res-blog {
  background: #805AD5 !important; /* 与publications页面一致 */
  border-color: #805AD5 !important;
  color: white !important;
}

.achievement-intro .btn-res-blog:hover,
.achievement-intro .btn.btn-res-blog:hover,
.achievement-intro button.btn-res-blog:hover {
  background: #6B46C1 !important; /* 与publications页面一致 */
  border-color: #6B46C1 !important;
  color: white !important;
  transform: translateY(-1px) !important;
}

.achievement-intro .btn-res-news,
.achievement-intro .btn.btn-res-news,
.achievement-intro button.btn-res-news {
  background: #F56500 !important; /* 与publications页面一致 */
  border-color: #F56500 !important;
  color: white !important;
}

.achievement-intro .btn-res-news:hover,
.achievement-intro .btn.btn-res-news:hover,
.achievement-intro button.btn-res-news:hover {
  background: #DD6B20 !important; /* 与publications页面一致 */
  border-color: #DD6B20 !important;
  color: white !important;
  transform: translateY(-1px) !important;
}

/* 保持小按钮样式用于特殊情况 */
.achievement-intro .btn.btn-resource.btn-sm {
  font-size: 13px !important;
  padding: 6px 14px !important;
  margin: 0 2px !important;
  border-radius: 6px;
  display: inline;
  vertical-align: baseline;
  line-height: 1.2;
  font-weight: 600;
}

/* Selected Publications区域的按钮样式 - 与Research Topics保持一致比例 */
#research .achievement-box .btn.btn-resource {
  border-radius: 6px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  transition: all 0.18s ease !important;
  border: 1px solid transparent !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  font-family: inherit !important;
  font-size: 12px !important; /* 与Research Topics一致 */
  padding: 5px 10px !important; /* 与Research Topics一致 */
  margin: 1px 2px !important; /* 与Research Topics一致 */
  vertical-align: middle !important;
}

#research .achievement-box .btn.btn-resource:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important; /* 稍微增强的阴影 */
  text-decoration: none !important;
}

/* Selected Publications区域的按钮颜色 - 与publications页面一致 */
#research .btn-res-pdf { 
  background: #E53E3E !important; 
  border-color: #E53E3E !important; 
  color: white !important;
}
#research .btn-res-pdf:hover { 
  background: #C53030 !important; 
  border-color: #C53030 !important; 
  color: white !important;
}

#research .btn-res-code { 
  background: #38A169 !important; 
  border-color: #38A169 !important; 
  color: white !important;
}
#research .btn-res-code:hover { 
  background: #2F855A !important; 
  border-color: #2F855A !important; 
  color: white !important;
}

#research .btn-res-poster, #research .btn-res-slides { 
  background: #3182CE !important; 
  border-color: #3182CE !important; 
  color: white !important;
}
#research .btn-res-poster:hover, #research .btn-res-slides:hover { 
  background: #2C5282 !important; 
  border-color: #2C5282 !important; 
  color: white !important;
}

#research .btn-res-blog { 
  background: #805AD5 !important; 
  border-color: #805AD5 !important; 
  color: white !important;
}
#research .btn-res-blog:hover { 
  background: #6B46C1 !important; 
  border-color: #6B46C1 !important; 
  color: white !important;
}

#research .btn-res-news { 
  background: #F56500 !important; 
  border-color: #F56500 !important; 
  color: white !important;
}
#research .btn-res-news:hover { 
  background: #DD6B20 !important; 
  border-color: #DD6B20 !important; 
  color: white !important;
}

#research .btn-res-bibtex { 
  background: #718096 !important; 
  border-color: #718096 !important; 
  color: white !important;
}
#research .btn-res-bibtex:hover { 
  background: #4A5568 !important; 
  border-color: #4A5568 !important; 
  color: white !important;
}

#research .btn-res-external { 
  background: #4299E1 !important; 
  border-color: #4299E1 !important; 
  color: white !important;
}
#research .btn-res-external:hover { 
  background: #3182CE !important; 
  border-color: #3182CE !important; 
  color: white !important;
}

#research .btn-res-internal { 
  background: #48BB78 !important; 
  border-color: #48BB78 !important; 
  color: white !important;
}
#research .btn-res-internal:hover { 
  background: #38A169 !important; 
  border-color: #38A169 !important; 
  color: white !important;
}

/* Publication Container and Number Circle Styles */
.content-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  position: relative;
  text-align: left; /* 确保内容左对齐 */
}

.content-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.publication-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pub-title-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.pub-number-circle {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #E87E04 0%, #CC6600 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  box-shadow: 0 3px 8px rgba(232, 126, 4, 0.3);
}

.pub-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: #1e293b;
  margin: 0;
  flex: 1;
  padding-top: 2px;
}

.pub-authors {
  font-size: 15px;
  color: #64748b;
  margin: 8px 0 0 0;
  padding-left: 56px; /* Align with title */
  line-height: 1.4;
}

.first-author {
  font-weight: 600;
  color: #1e293b;
}

.pub-venue-container {
  display: flex;
  align-items: center;
  gap: 4px; /* 进一步减少间距 */
  margin: 8px 0 0 0;
  padding-left: 56px; /* Align with title */
  flex-wrap: nowrap; /* 防止换行，保持在同一行 */
  justify-content: flex-start; /* 确保内容从左侧开始 */
}

.pub-venue {
  font-size: 15px;
  color: #64748b;
  font-style: italic;
  flex: 0 1 auto; /* 只占用内容需要的空间，不拉伸填充 */
  margin-right: 0; /* 不需要额外的右边距 */
  line-height: 1.4;
  max-width: calc(100% - 80px); /* 为等级标签留出空间 */
  overflow-wrap: break-word; /* 长文本自动换行 */
}

/* 等级标签：与资源按钮统一尺寸，通过字体加粗区分 - 提高优先级 */
.pub-tier-btn,
.pub-tier-btn.ccf-a,
.pub-tier-btn.ccf-b,
.pub-tier-btn.sci-1,
.pub-tier-btn.sci-2,
.pub-tier-btn.others {
  display: inline-block !important;
  padding: 5px 10px !important; /* 等级标签：统一为资源按钮尺寸 */
  border-radius: 6px !important; /* 等级标签：统一为资源按钮圆角 */
  font-size: 12px !important; /* 等级标签：统一为资源按钮字号 */
  font-weight: 700 !important; /* 等级标签：加粗以区分 */
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  margin-left: 6px !important; /* 与期刊名称保持间距 */
  margin-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border: 1px solid transparent !important; /* 等级标签：与资源按钮相同的边框 */
  line-height: 1.2 !important; /* 统一行高 */
  box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important; /* 统一阴影 */
  transition: all 0.18s ease !important; /* 统一过渡效果 */
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  vertical-align: baseline !important; /* 与文字基线对齐 */
}

/* Tier Button Colors */
.pub-tier-btn.ccf-a {
  background: #dc2626;
  color: white;
  border-color: #b91c1c;
}

.pub-tier-btn.ccf-b {
  background: #ea580c;
  color: white;
  border-color: #c2410c;
}

.pub-tier-btn.sci-1 {
  background: #7c3aed;
  color: white;
  border-color: #6d28d9;
}

.pub-tier-btn.sci-2 {
  background: #2563eb;
  color: white;
  border-color: #1d4ed8;
}

.pub-tier-btn.others {
  background: #64748b;
  color: white;
  border-color: #475569;
}
/* Publication Buttons - Resource Button Layout */
.publication-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0 0 0;
  padding-left: 56px; /* Align with title */
}

.publication-buttons .btn {
  margin: 0;
  font-size: 13px;
  padding: 6px 12px;
  line-height: 1.2;
  border-radius: 6px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

/* 确保所有资源按钮颜色一致 */
.btn-res-pdf {
  background: #ef4444;
  color: white;
  border-color: #dc2626;
}

.btn-res-pdf:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.btn-res-code {
  background: #10b981;
  color: white;
  border-color: #059669;
}

.btn-res-code:hover {
  background: #059669;
  transform: translateY(-1px);
}

.btn-res-poster, .btn-res-slides {
  background: #3b82f6;
  color: white;
  border-color: #2563eb;
}

.btn-res-poster:hover, .btn-res-slides:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.btn-res-blog {
  background: #8b5cf6;
  color: white;
  border-color: #7c3aed;
}

.btn-res-blog:hover {
  background: #7c3aed;
  transform: translateY(-1px);
}

.btn-res-news {
  background: #f59e0b;
  color: white;
  border-color: #d97706;
}

.btn-res-news:hover {
  background: #d97706;
  transform: translateY(-1px);
}

.btn-res-bibtex {
  background: #6b7280;
  color: white;
  border-color: #4b5563;
}

.btn-res-bibtex:hover {
  background: #4b5563;
  transform: translateY(-1px);
}

.btn-res-supp {
  background: #14b8a6;
  color: white;
  border-color: #0d9488;
}

.btn-res-supp:hover {
  background: #0d9488;
  transform: translateY(-1px);
}

.btn-res-video, .btn-res-audio {
  background: #ec4899;
  color: white;
  border-color: #db2777;
}

.btn-res-video:hover, .btn-res-audio:hover {
  background: #db2777;
  transform: translateY(-1px);
}

.btn-res-external {
  background: #06b6d4;
  color: white;
  border-color: #0891b2;
}

.btn-res-external:hover {
  background: #0891b2;
  transform: translateY(-1px);
}

.btn-res-internal {
  background: #059669;
  color: white;
  border-color: #047857;
}

.btn-res-internal:hover {
  background: #047857;
  transform: translateY(-1px);
}

.publication-buttons .btn {
  margin: 0;
  font-size: 13px;
  padding: 6px 14px;
  line-height: 1.2;
  border-radius: 6px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
}

/* 移动设备适配 */
@media (max-width: 992px) {
  .achievement-intro h4 {
    font-size: 22px;
  }
  
  .achievement-intro p {
    font-size: 15px;
    line-height: 1.7;
  }
  
  #research .achievement-box li {
    font-size: 15px;
    line-height: 1.5;
  }
  
  .content-card {
    padding: 20px 25px;
  }
  
  /* 移动端Research Framework图片 */
  .research-framework-wrap img {
    max-width: 95%;
  }
}

@media (max-width: 768px) {
  .about-research-heading h2,
  #achievements .section-title h2,
  #research .section-title h2 {
    font-size: 28px;
  }
  
  .achievement-intro h4 {
    font-size: 20px;
  }
  
  .achievement-intro img {
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
    float: none !important;
    display: block;
  }
  
  .achievement-intro p {
    font-size: 15px;
    line-height: 1.6;
    clear: both;
  }
  
  #research .achievement-box h5 {
    font-size: 15px;
  }
  
  #research .achievement-box li {
    font-size: 14px;
    padding: 12px 0;
  }
  
  .publication-buttons .btn {
    font-size: 11px !important; /* 与publications页面一致 */
    padding: 4px 8px !important; /* 与publications页面一致 */
    font-weight: 600 !important; /* 与publications页面一致 */
    border-radius: 8px !important; /* 与publications页面一致 */
    margin: 2px 3px !important; /* 与publications页面一致 */
  }
  
  .content-card {
    padding: 15px 20px;
  }

  .pub-number-circle {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .pub-title {
    font-size: 16px;
  }

  .pub-authors {
    font-size: 14px;
    padding-left: 48px;
  }

  .pub-venue-container {
    padding-left: 48px;
  }

  .pub-venue {
    font-size: 14px;
  }

  .publication-buttons {
    padding-left: 48px;
  }
  
  /* 平板端Research Framework图片 */
  .research-framework-wrap img {
    max-width: 90%;
  }
  
  /* 平板端按钮样式 - 保持与桌面端相同的比例关系 (约85%缩放) - 提高优先级 */
  .achievement-intro .btn.btn-resource,
  .achievement-intro .btn.btn-resource.btn-sm,
  .achievement-intro button.btn-resource,
  button.btn.btn-resource,
  #research .achievement-box .btn.btn-resource,
  .publication-buttons .btn,
  .btn.btn-resource.btn-res-paper,
  .btn.btn-resource.btn-res-code,
  .btn.btn-resource.btn-res-external,
  .btn.btn-resource.btn-res-internal,
  .btn.btn-resource.btn-res-pdf,
  .btn.btn-resource.btn-res-poster,
  .btn.btn-resource.btn-res-slides,
  .btn.btn-resource.btn-res-blog,
  .btn.btn-resource.btn-res-news,
  .btn.btn-resource.btn-res-bibtex,
  .btn.btn-resource.btn-res-audio {
    font-size: 10px !important; /* 资源按钮：12px * 0.83 ≈ 10px */
    padding: 4px 8px !important; /* 资源按钮：5px 10px * 0.8 = 4px 8px */
    margin: 1px !important;
    font-weight: 500 !important;
    border-radius: 5px !important; /* 6px * 0.83 ≈ 5px */
    display: inline-block !important;
    vertical-align: baseline !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    border: 1px solid transparent !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
  }
  
  /* 平板端等级标签 - 与资源按钮统一尺寸，通过字体加粗区分 */
  .pub-tier-btn {
    font-size: 10px !important; /* 等级标签：统一为资源按钮字号 */
    padding: 4px 8px !important; /* 等级标签：统一为资源按钮内边距 */
    border-radius: 5px !important; /* 等级标签：统一为资源按钮圆角 */
    font-weight: 700 !important; /* 等级标签：加粗以区分 */
    letter-spacing: 0.5px !important;
    line-height: 1.2 !important; /* 统一行高 */
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important; /* 统一阴影 */
  }
}

@media (max-width: 480px) {
  .about-research-heading h2,
  #achievements .section-title h2,
  #research .section-title h2 {
    font-size: 24px;
  }
  
  .achievement-intro h4 {
    font-size: 18px;
  }
  
  .achievement-intro p {
    font-size: 14px;
    line-height: 1.6;
  }
  
  #research .achievement-box h5 {
    font-size: 14px;
  }
  
  #research .achievement-box li {
    font-size: 14px;
    line-height: 1.5;
  }
  
  /* 手机端按钮样式 - 保持与桌面端相同的比例关系 (约67%缩放) - 提高优先级 */
  .achievement-intro .btn.btn-resource,
  .achievement-intro .btn.btn-resource.btn-sm,
  .achievement-intro button.btn-resource,
  button.btn.btn-resource,
  #research .achievement-box .btn.btn-resource,
  .publication-buttons .btn,
  .btn.btn-resource.btn-res-paper,
  .btn.btn-resource.btn-res-code,
  .btn.btn-resource.btn-res-external,
  .btn.btn-resource.btn-res-internal,
  .btn.btn-resource.btn-res-pdf,
  .btn.btn-resource.btn-res-poster,
  .btn.btn-resource.btn-res-slides,
  .btn.btn-resource.btn-res-blog,
  .btn.btn-resource.btn-res-news,
  .btn.btn-resource.btn-res-bibtex,
  .btn.btn-resource.btn-res-audio {
    font-size: 8px !important; /* 资源按钮：12px * 0.67 ≈ 8px */
    padding: 3px 7px !important; /* 资源按钮：5px 10px * 0.67 ≈ 3px 7px */
    margin: 1px !important;
    display: inline-block !important;
    font-weight: 500 !important;
    vertical-align: baseline !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    border-radius: 4px !important; /* 6px * 0.67 ≈ 4px */
    text-decoration: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    border: 1px solid transparent !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06) !important;
  }
  
  /* 手机端等级标签 - 与资源按钮统一尺寸，通过字体加粗区分 */
  .pub-tier-btn {
    font-size: 8px !important; /* 等级标签：统一为资源按钮字号 */
    padding: 3px 7px !important; /* 等级标签：统一为资源按钮内边距 */
    border-radius: 4px !important; /* 等级标签：统一为资源按钮圆角 */
    font-weight: 700 !important; /* 等级标签：加粗以区分 */
    letter-spacing: 0.4px !important;
    line-height: 1.2 !important; /* 统一行高 */
    box-shadow: 0 1px 2px rgba(0,0,0,0.06) !important; /* 统一阴影 */
  }
  
  .content-card {
    padding: 12px 15px;
  }

  .pub-number-circle {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .pub-title {
    font-size: 15px;
    line-height: 1.3;
  }

  .pub-authors {
    font-size: 13px;
    padding-left: 44px;
  }

  .pub-venue-container {
    padding-left: 44px;
  }

  .pub-venue {
    font-size: 13px;
  }

  .publication-buttons {
    padding-left: 44px;
  }
  
  /* 手机端Research Framework图片 */
  .research-framework-wrap {
    margin: 20px 0 30px 0;
    padding: 15px;
  }
  
  .research-framework-wrap img {
    max-width: 100%;
  }
  
  /* 手机端Research Topics按钮 - 与Selected Publications保持一致 */
  .achievement-intro .btn.btn-resource,
  .achievement-intro .btn.btn-resource.btn-sm {
    font-size: 11px !important;
    padding: 4px 8px !important;
    margin: 1px !important;
    font-weight: 500 !important; /* 与其他按钮保持一致 */
  }
}

/* 响应式调整 - 主页期刊等级标签 */
@media (max-width: 768px) {
  .pub-venue-container {
    gap: 3px; /* 平板端使用较小间距 */
    flex-wrap: nowrap; /* 保持同一行 */
    justify-content: flex-start;
  }
  
  .pub-venue {
    margin-right: 3px;
    font-size: 13px;
    flex: 0 1 auto;
  }
  
  .pub-tier-btn {
    margin-left: 5px; /* 适当间距 */
    font-size: 10px !important; /* 等级标签：统一为平板端资源按钮字号 */
    padding: 4px 8px !important; /* 等级标签：统一为资源按钮内边距 */
    border-radius: 5px !important; /* 等级标签：统一为资源按钮圆角 */
    font-weight: 700 !important; /* 加粗以区分 */
  }
}

@media (max-width: 480px) {
  .pub-venue-container {
    gap: 2px;
    flex-wrap: nowrap; /* 保持同一行 */
    justify-content: flex-start;
  }
  
  .pub-venue {
    margin-right: 2px;
    font-size: 12px;
    flex: 0 1 auto;
  }
  
  .pub-tier-btn {
    margin-left: 4px; /* 适当间距 */
    font-size: 8px !important; /* 等级标签：统一为手机端资源按钮字号 */
    padding: 3px 7px !important; /* 等级标签：统一为资源按钮内边距 */
    border-radius: 4px !important; /* 等级标签：统一为资源按钮圆角 */
    font-weight: 700 !important; /* 加粗以区分 */
  }
}
/* Publications Page Unified Button Styling */
.pub-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.pub-controls .pub-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  align-items: center;
}

.pub-controls .control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
}

.pub-controls .control-group .control-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #374151;
  margin-bottom: 2px;
}

.pub-controls input#pub-search {
  min-width: 240px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 6px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pub-controls input#pub-search:focus {
  border-color: #E87E04;
  box-shadow: 0 0 0 3px rgba(232,126,4,0.1);
  outline: none;
}

/* Unified button styling for publication controls */
.pub-controls .btn-group .btn,
.pub-controls .sort-group #sort-toggle {
  color: #76818d;
  background-color: #fff;
  border-color: #76818d;
  padding: 6px 12px;
  line-height: 1.5;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: 500;
  margin: 0 3px;
}

.pub-controls .btn-group .btn:hover,
.pub-controls .sort-group #sort-toggle:hover,
.pub-controls .btn-group .btn:focus,
.pub-controls .sort-group #sort-toggle:focus,
.pub-controls .btn-group .btn.focus,
.pub-controls .sort-group #sort-toggle.focus,
.pub-controls .btn-group .btn:active,
.pub-controls .sort-group #sort-toggle:active {
  color: #eee;
  background-color: rgb(48,29,74);
  border-color: #2c3e50;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(44,62,80,0.2);
}

.pub-controls .btn-group .btn.active {
  color: #eee;
  background-color: rgb(48,29,74);
  border-color: #2c3e50;
  box-shadow: 0 2px 4px rgba(44,62,80,0.25);
}

/* Resource buttons in publication list */
#pub-list .btn.btn-resource {
  display: inline-block !important;
  margin: 2px 4px 2px 0;
  padding: 3px 8px !important;
  font-size: 11px !important;
  font-weight: 500;
  line-height: 1.2;
  border: 1px solid #76818d;
  background-color: #fff;
  color: #76818d;
  border-radius: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

#pub-list .btn.btn-resource:hover,
#pub-list .btn.btn-resource:focus,
#pub-list .btn.btn-resource:active {
  color: #eee !important;
  background-color: rgb(48,29,74);
  border-color: #2c3e50;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(44,62,80,0.2);
}

/* Back to Top Button Styling */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgb(48,29,74);
  color: #fff;
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: hidden;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.back-to-top-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.back-to-top i {
  font-size: 18px;
  margin-bottom: 2px;
}

.back-to-top-text {
  font-size: 13px;
  font-weight: bold !important;
  text-transform: uppercase;
  display: block;
  text-align: center;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.back-to-top:hover {
  background-color: #E87E04;
  transform: translateY(-3px) translateZ(0);
  -webkit-transform: translateY(-3px) translateZ(0);
  box-shadow: 0 4px 12px rgba(232,126,4,0.3);
}

.back-to-top:focus {
  outline: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Media queries for responsive design */
@media (max-width:840px) {
  .pub-controls .pub-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .pub-controls .control-group {
    width: 100%;
  }
  
  .pub-controls input#pub-search {
    min-width: 100%;
  }
}

@media (max-width:768px) {
  .btn.btn-resource {
    display: inline-block !important;
    margin: 2px 2px 2px 0;
    padding: 2px 6px !important;
    font-size: 10px !important;
    line-height: 1.1;
  }
  
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
  }
  
  .back-to-top i {
    font-size: 16px;
    margin-bottom: 1px;
  }
  
  .back-to-top-text {
    font-size: 11px;
    font-weight: bold !important;
    line-height: 1;
    margin: 0;
    padding: 0;
  }
}

@media (max-width:480px) {
  .btn.btn-resource {
    font-size: 9px !important;
    padding: 1px 4px !important;
    margin: 1px 1px 1px 0;
  }
}
