/* ===============================
   软件产品页专用样式（product.html）
   自适应高度切换栏
================================== */
#scrollUp {
  right: 30px;
  z-index: 33;
  bottom: 40px;
  text-align: center;
}

#scrollUp i {
  height: 40px;
  width: 40px;
  line-height: 40px;
  background: #0657cf;
  border-radius: 3px;
  font-size: 14px;
  -webkit-transition: all 500ms ease;
  -moz-transition: all 500ms ease;
  transition: all 500ms ease;
  display: block;
  color: #fff;
}

#scrollUp i:hover {
  background: #333;
  color: #fff;
}

.adaptive-tab-bar {
  padding: 40px 0 60px;
}

.adaptive-tab-bar .tab-bar-wrap {
  max-width: 100%;
}

/* 切换导航：与 #portfolio .portfolio-nav 一致 */
.adaptive-tab-bar .tab-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  text-align: center;
}

.adaptive-tab-bar .tab-btn {
  display: inline-block;
  padding: 15px 28px;
  position: relative;
  cursor: pointer;
  font-weight: 400;
  color: #353535;
  transition: color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
  text-transform: capitalize;
  background: #fff;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.06);
  border-radius: 5px;
  border: none;
  font-size: inherit;
  outline: none;
}

.adaptive-tab-bar .tab-btn:hover,
.adaptive-tab-bar .tab-btn:focus,
.adaptive-tab-bar .tab-btn:active {
  outline: none;
  border: none;
}

.adaptive-tab-bar .tab-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, #0657cf 0%, #0a7aff 50%, #2889e4 100%);
  box-shadow:
    0 6px 20px rgba(40, 137, 228, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.1);
}

.adaptive-tab-bar .tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #0657cf 0%, #0a7aff 50%, #2889e4 100%);
  box-shadow:
    0 6px 20px rgba(40, 137, 228, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.1);
}

.adaptive-tab-bar .tab-panels {
  min-height: 0;
}

.adaptive-tab-bar .tab-panel {
  display: none;
  padding: 0;
}

.adaptive-tab-bar .tab-panel.active {
  display: block;
}

/* 内容区 */
.adaptive-tab-bar .tab-panel-inner {
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.16);
  line-height: 1.8;
  color: #444;
  font-size: 16px;
}

.adaptive-tab-bar .tab-panel-inner p {
  margin: 0 0 16px;
}

.adaptive-tab-bar .tab-panel-inner p:last-child {
  margin-bottom: 0;
}

/* 产品描述段落：可读性优化 */
.adaptive-tab-bar .tab-panel-inner .tab-panel-text p {
  margin: 0 0 18px;
  line-height: 1.9;
  color: #555;
  text-align: justify;
  text-indent: 2em;
  letter-spacing: 0.02em;
  max-width: 52em;
}

/* 左右布局：左侧图片、右侧文字，小屏自动上下堆叠 */
.adaptive-tab-bar .tab-panel-inner.tab-panel-lr {
  display: grid;
  grid-template-columns: 35% 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 20px;
}

.adaptive-tab-bar .tab-panel-inner.tab-panel-lr .tab-panel-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.adaptive-tab-bar .tab-panel-inner.tab-panel-lr .tab-panel-img {
  min-width: 0;
  justify-self: start;
  border-radius: 8px;
  overflow: hidden;
}

.adaptive-tab-bar .tab-panel-inner.tab-panel-lr .tab-panel-img img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.adaptive-tab-bar .tab-panel-inner .tab-panel-text h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
}

.adaptive-tab-bar .tab-panel-inner .tab-panel-text h3 a {
  color: #0657cf;
  text-decoration: none;
  font-weight: 600;
}

.adaptive-tab-bar .tab-panel-inner .tab-panel-text h3 a:hover {
  text-decoration: underline;
}

/* 产品详情按钮：与 tab-btn 风格一致，渐变背景，靠右 */
.adaptive-tab-bar .tab-panel-inner .more {
  display: inline-block;
  align-self: flex-end;
  padding: 6px 24px;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
  background: linear-gradient(135deg, #0657cf 0%, #0a7aff 50%, #2889e4 100%);
  box-shadow:
    0 4px 12px rgba(6, 87, 207, 0.35),
    0 2px 4px rgba(0, 0, 0, 0.1);
}

.adaptive-tab-bar .tab-panel-inner .more:hover,
.adaptive-tab-bar .tab-panel-inner .more:focus {
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #0448a8 0%, #0657cf 50%, #0a7aff 100%);
  box-shadow:
    0 6px 20px rgba(40, 137, 228, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.adaptive-tab-bar .tab-panel-inner .more:active {
  transform: translateY(0);
  box-shadow:
    0 2px 8px rgba(6, 87, 207, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.1);
}

.adaptive-tab-bar .tab-panel-inner.tab-panel-lr .tab-panel-img a {
  display: block;
  line-height: 0;
}

/* 小屏：切换栏换行/纵向，高度随内容自适应 */
@media (max-width: 576px) {
  .adaptive-tab-bar {
    padding: 24px 0 40px;
  }

  .adaptive-tab-bar .tab-nav {
    margin-bottom: 20px;
  }

  .adaptive-tab-bar .tab-btn {
    padding: 14px 20px;
    font-size: 14px;
  }

  .adaptive-tab-bar .tab-panel-inner {
    padding: 20px 18px;
    font-size: 15px;
  }

  .adaptive-tab-bar .tab-panel-inner.tab-panel-lr {
    grid-template-columns: 1fr;
  }

  .adaptive-tab-bar .tab-panel-inner.tab-panel-lr .tab-panel-img {
    justify-self: stretch;
    border-radius: 8px;
  }

  .adaptive-tab-bar .tab-panel-inner.tab-panel-lr .tab-panel-img img {
    width: 100%;
    border-radius: 8px;
  }

  .adaptive-tab-bar .tab-panel-inner .more {
    padding: 10px 20px;
    font-size: 14px;
  }
}
