/* 
科研创新页面移动端适配样式文件
基于rem布局，根字体大小由rem.js动态设置
750px设计稿对应100px根字体大小，即1rem = 100px
转换公式：rem = px / 100
*/

/* 移动端适配 - 最大宽度900px */
@media (max-width: 900px) {
  /* ======================== 主体内容区域 ======================== */
  .innovation-main {
    padding: 0.6rem 0 0.8rem 0;
    min-height: auto;
  }

  .innovation-main .section-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 0.2rem;
    box-sizing: border-box;
  }

  /* ======================== 标签页导航 ======================== */
  .innovation-tabs {
    margin-bottom: 0.4rem;
  }

  .tab-nav {
    display: flex;
    justify-content: center;
    background: white;
    border-radius: 0.08rem;
    overflow: hidden;
    box-shadow: 0 0.02rem 0.08rem rgba(0, 0, 0, 0.1);
  }

  .tab-btn {
    flex: 1;
    padding: 0.2rem 0.15rem;
    background: none;
    border: none;
    font-weight: 400;
    font-size: 0.24rem;
    color: #626262;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
    border-radius: 0;
  }

  .tab-btn:hover {
    color: #003fa4;
    background: rgba(0, 62, 161, 0.05);
  }

  .tab-btn.active {
    color: #003fa4;
    background: rgba(0, 62, 161, 0.1);
  }

  .tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0.03rem;
    background: #003fa4;
  }

  /* ======================== 标签页内容 ======================== */
  .tab-content-wrapper {
    min-height: 4rem;
  }

  .tab-content {
    display: none;
  }

  .tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(0.2rem);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* ======================== 平台项目样式 ======================== */
  .platform-item {
    margin-bottom: 0.4rem;
    background: white;
    border-radius: 0.12rem;
    overflow: hidden;
    box-shadow: 0 0.04rem 0.16rem rgba(0, 0, 0, 0.08);
    position: relative;
    margin-top: 0;
    height: auto;
  }

  .platform-item-1,
  .platform-item-2,
  .achievement-item-1,
  .achievement-item-2,
  .capability-item-1,
  .capability-item-2 {
    /* width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    position: absolute;
    z-index: -1; */
    display: none;
  }

  .div-overlay,
  .div-overlay-reverse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      135deg,
      rgba(0, 62, 161, 0.8) 0%,
      rgba(0, 62, 161, 0.6) 50%,
      transparent 100%
    );
  }

  .platform-content {
    display: flex;
    flex-direction: column;
    padding: 0.3rem;
    height: auto;
  }

  .platform-text {
    order: 2;
    width: 100%;
  }

  .platform-image {
    order: 1;
    width: 100%;
    margin-bottom: 0.2rem;
    flex: 0 0 3rem;
  }

  .platform-title {
    font-weight: 600;
    font-size: 0.32rem;
    color: #003fa4;
    margin-bottom: 0.2rem;
  }

  .platform-text p {
    font-size: 0.22rem;
    line-height: 1.6;
    color: #333;
    text-align: justify;
    margin: 0;
  }

  /* reverse类型的项目样式保持一致 */
  .platform-item.reverse .platform-content {
    flex-direction: column;
    padding: 0.3rem;
  }

  .platform-item.reverse .platform-text {
    order: 2;
  }

  .platform-item.reverse .platform-image {
    order: 1;
  }

  /* ======================== Footer适配 ======================== */
  .footer {
    margin-top: 0.6rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.4rem 0.2rem;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    width: 100%;
    text-align: center;
  }

  .company-title {
    font-size: 0.36rem;
    margin-bottom: 0.08rem;
  }

  .company-english {
    font-size: 0.24rem;
    margin-bottom: 0.12rem;
  }

  .company-desc {
    font-size: 0.2rem;
    line-height: 1.4;
  }

  .contact-title {
    font-size: 0.28rem;
    margin-bottom: 0.2rem;
  }

  .contact-row {
    flex-direction: column;
    gap: 0.08rem;
    margin-bottom: 0.12rem;
  }

  .contact-label {
    font-size: 0.2rem;
    color: #666;
  }

  .contact-value {
    font-size: 0.2rem;
    color: #333;
  }

  .qr-codes {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
  }

  .qr-code-item {
    text-align: center;
  }

  .qr-code-image {
    width: 0.8rem;
    height: 0.8rem;
    margin-bottom: 0.08rem;
  }

  .qr-code-image img {
    width: 100%;
    height: 100%;
    border-radius: 0.04rem;
  }

  .qr-code-label {
    font-size: 0.18rem;
    color: #666;
  }

  /* ======================== 移动端触摸优化 ======================== */
  .tab-btn,
  .platform-item {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  /* ======================== 移动端交互增强 ======================== */
  .platform-item:hover {
    transform: translateY(-0.02rem);
    box-shadow: 0 0.06rem 0.2rem rgba(0, 0, 0, 0.12);
  }

  /* 确保文字可选择性 */
  .platform-text p {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
  }
}
