<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <title>Tab淡入切换-自适应高度</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    .tab-wrap {
      border: 1px solid #ddd;
      border-radius: 6px;
      overflow: hidden;
      margin: 50px 0;
    }
    .tab-nav {
      display: flex;
      background: #f3f3f3;
    }
    .tab-nav button {
      padding: 14px 32px;
      border: none;
      background: transparent;
      font-size: 18px;
      cursor: pointer;
      color: #555;
    }
    .tab-nav button.active {
      background: #fff;
      color: #000;
      font-weight: 500;
    }
    .tab-content {
      background: #fff;
      padding: 25px;
    }
    /* 淡入核心样式 */
    .tab-panel {
      display: none;
      opacity: 0;
      transition: opacity 0.4s ease;
    }
    .tab-panel.active {
      display: block;
      opacity: 1;
    }
    h3 {
      color: #007856;
      margin-bottom: 10px;
    }



.tab-panel p{
    font-size: 16px;
    line-height: 28px;
    padding-bottom: 30px;
    word-break: break-word;
    color: #333;
}

.cont h2{
    line-height: 1.5;
    font-size: 32px;
    color: #52366a;
    font-weight: 700;
}

.cont .img{
    margin: 0 auto;
}
.cont .img a{
    display:block;
    margin: 0 auto;
    text-align:center;
}
.cont .img a img{
  max-width:100%;
  display:block;
  margin: 0 auto;
}