/* ========================================================= 
   mobile.css 
   深圳技术大学药学院 - 首页移动端样式 
   生效条件：屏幕宽度 ≤ 768px 
========================================================= */

/* 全局移动端样式 - 屏幕宽度 ≤ 768px */
@media screen and (max-width: 768px) {
    /* =============================== 1. 全局基础 =============================== */
    html,
    body {
        overflow-x: hidden;
    }

    body {
        font-size: 14px;
        line-height: 1.6;
    }

    .section-title h2 {
        font-size: 22px;
    }

    .section-title .title-en {
        font-size: 12px;
    }

    /* =============================== 2. 顶部导航 =============================== */
    .top-nav {
        height: 56px;
        padding: 0 12px;
    }

    .top-nav .logo img {
        height: 36px;
    }

    /* 主导航隐藏（移动端不适合 hover） */
    /* .nav-menu {
        display: none;
    } */

    .nav-tools {
        gap: 8px;
    }

    .lang-switch {
        font-size: 12px;
    }

    /* =============================== 3. 搜索框 =============================== */
    .search-container {
        padding: 0 16px;
    }

    .search-input-wrapper {
        width: 100%;
    }

    .search-input {
        font-size: 14px;
    }

    /* =============================== 4. 关闭全屏滚动 =============================== */
    .fullpage-wrapper {
        height: auto;
    }

    .fullpage-section {
        height: auto;
        min-height: auto;
        padding: 40px 16px;
    }

    /* 右侧滚动指示器隐藏 */
    .page-indicators {
        display: none;
    }

    /* =============================== 5. Banner 轮播 =============================== */
    .section-banner {
        padding: 0;
        height: 60vh;
    }

    .carousel-wrapper,
    .carousel-slides,
    .carousel-slide {
        height: 100%;
    }

    .carousel-content {
        left: 16px;
        right: 16px;
        bottom: 32px;
        text-align: center;
    }

    .carousel-content h1 {
        font-size: 24px;
    }

    .carousel-content .subtitle-cn {
        font-size: 14px;
    }

    .carousel-content .subtitle-en {
        font-size: 12px;
    }

    /* 隐藏右下角缩略图指示器 */
    /* .carousel-indicators {
        display: none;
    } */

    /* =============================== 6. 药苑要闻 =============================== */
    .section-news .section-title {
        padding-top:5px;
    }
    .section-news .section-content {
        padding: 0;
    }

    .news-list {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
   .section-news .news-item {
        width: 100%;
    }
    .news-item {
        width: 100%;
    }
    .section-news .news-image{
        height:clamp(200px, 20vh, 220px);
    }

    .news-image img {
        width: 100%;
        height: auto;
    }

    .news-overlay p {
        font-size: 13px;
    }

    .news-footer {
        flex-direction: column;
        gap: 12px;
    }

    /* =============================== 7. 通知公告 =============================== */
    .announcement-wrapper {
        flex-direction: column;
    }

    .announcement-left {
        width: 100%;
        height: 120px;
    }

    .announcement-bg {
        display: none;
    }

    .announcement-categories {
        display: flex;
        justify-content: space-around;
        padding: 12px 0;
    }

    .category-item {
        flex-direction: column;
        font-size: 12px;
    }

    .category-line {
        display: none;
    }

    .announcement-right {
        width: 100%;
        padding: 20px 0 0;
    }

    .notice-item {
        padding: 12px 0;
    }

    .notice-date {
        font-size: 12px;
    }

    .notice-title {
        font-size: 14px;
    }

    /* =============================== 8. 专业设置 =============================== */
    .major-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .major-item img {
        object-fit: cover;
    }

    .major-item h4 {
        font-size: 14px;
    }

    .major-item p {
        font-size: 12px;
    }

    /* =============================== 9. 特色班 =============================== */
    .section-feature .item-title {
        position: relative;
        z-index: 5;
    }
    .section-feature .feature-info {
        position: relative;
    }

    .feature-content {
        flex-direction: column;
        gap: 16px;
    }

    .feature-item {
        height:auto;
        padding:10px;
    }

    .feature-item .item-title {
        /* font-size: 18px;
        margin-bottom: -50px;
        padding-bottom:10px; */
        /* display: none; */
        display: block;
        
    }

    .feature-item .item-desc,
    .feature-item .item-content
    {
        font-size: 13px;
        line-height: 1.6;
    }

    

    /* =============================== 10. 药研前沿 =============================== */
    /* PC 原结构直接隐藏 */
    .research-wrapper {
        display: none !important;
    }

    /* 移动端结构显示 */
    .research-mobile {
        display: block !important;
        padding: 24px 16px 40px;
    }

    /* 标题 */
    .research-title {
        font-size: 26px;
        font-weight: 600;
        text-align: center;
        margin-left:20px;
    }

    .research-subtitle {
        text-align: center;
        font-size: 13px;
        opacity: .7;
        margin-bottom: 24px;
        margin-left:20px;
    }

    /* 海报列表 */
    .research-mobile-posters .poster-card {
        width: 100%;
        margin-bottom: 20px;
        position: relative;
    }

    .research-mobile-posters img {
        width: 100%;
        height: auto;
        display: block;
    }

    .section-research .poster-info {
        position: absolute;
        left: 12px;
        right: 12px;
        bottom: 12px;

        display: flex;
        justify-content: space-between;
        align-items: flex-end;

        z-index: 3;          /* 一定要高于 overlay */
        color: #fff;
    }
    .section-research .poster-info .message {
        max-width: calc(100% - 44px);
        background: rgba(255, 255, 255, 0.85); 
        color: var(--text-color); 
        font-weight: 900; 
        padding: 10px;
    }

    .section-research .poster-date {
        display: block;
        font-size: 12px;
        opacity: 0.85;
        margin-bottom: 4px;
    }

    .section-research .poster-desc {
        font-size: 13px;
        line-height: 1.4;
        margin: 0;
    }

    .section-research .poster-info .view-more {
        flex-shrink: 0;
        margin-left: 8px;
    }

    .section-research .poster-info .view-more .btn {
        display: block;
        width:32px;
        height: 32px;
        background: url("../images/view_more4.png") no-repeat center;
        background-size: 30px 30px;
    }
    
    /* 查看更多 */
    .research-more {
        margin-top: 12px;
        text-align: center;
    }

    .research-more .btn {
        padding: 10px 36px;
        font-size: 14px;
    }

   
    
    /* =============================== 11. 荣誉殿堂 =============================== */
    /* .honor-gallery {
        display: flex;
        gap: 12px;
        overflow-x: auto;
    }

    .honor-row {
        min-width: 140px;
    }

    .honor-item img {
        width: 100%;
    } */
    .section-honor .honor-gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .section-honor .honor-item {
        overflow: hidden;
    }

    .section-honor .honor-item img {
        transition: transform 0.3s ease;
    }

    /* 手指按下时放大 */
    .section-honor .honor-item:active img,
    .section-honor .honor-item:focus-visible img {
        transform: scale(1.08);
    }
    /* =============================== 12. 诺奖典范 =============================== */
    .nobel-content {
        flex-direction: column;
        gap: 24px;
    }

    .nobel-left,
    .nobel-center,
    .nobel-right {
        width: 100%;
    }

    .nobel-center {
        display: flex;
        justify-content: space-around;
    }

    .nobel-category-card {
        width: 30%;
    }

    .nobel-text {
        font-size: 13px;
    }

    .nobel-date-item {
        font-size: 12px;
    }

    /* =============================== 13. Footer =============================== */
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-info span {
        display: block;
        margin-bottom: 6px;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-bottom p {
        font-size: 12px;
    }
    

    /*================== 14.头部 ============== */
      /* 顶部整体 */
  .top-nav {
    flex-wrap: nowrap;
    overflow: hidden;
  }

  /* LOGO 固定 */
  .top-nav .logo {
    flex-shrink: 0;
  }

  /* 主导航：横向滚动 */
  .nav-menu {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;

    margin: 0 8px;
    padding: 0;

    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }

  .nav-menu::-webkit-scrollbar {
    display: none; /* Chrome */
  }

  /* 每一项 */
  .nav-menu > li {
    flex-shrink: 0;
  }

  .nav-menu > li > a {
    padding: 0 12px;
    height: 56px;
    line-height: 56px;
    font-size: 14px;
    white-space: nowrap;
  }

  /* 右侧工具栏固定 */
  .nav-tools {
    flex-shrink: 0;
  }

}

/* =============================== 移动端汉堡菜单 =============================== */
@media screen and (max-width: 768px) {
    /* 汉堡按钮 */
    .hamburger-btn {
        width: 28px;
        height: 22px;
        position: relative;
        cursor: pointer;
    }

    .hamburger-btn span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: #333;
        transition: all 0.3s;
    }

    .hamburger-btn span:nth-child(1) {
        top: 0;
    }

    .hamburger-btn span:nth-child(2) {
        top: 10px;
    }

    .hamburger-btn span:nth-child(3) {
        bottom: 0;
    }

    /* 抽屉菜单容器 */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -80%;
        width: 80%;
        height: 100vh;
        background: #fff;
        z-index: 9999;
        padding: 60px 20px 20px;
        transition: right 0.3s ease;
        overflow-y: auto;
    }

    .mobile-menu.active {
        right: 0;
    }

    /* 遮罩层 */
    .mobile-menu-mask {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 9998;
        display: none;
    }

    .mobile-menu-mask.active {
        display: block;
    }

    /* 移动端导航样式 */
    .mobile-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-menu li {
        border-bottom: 1px solid #eee;
    }

    .mobile-menu a {
        display: block;
        padding: 14px 0;
        font-size: 16px;
        color: #333;
    }

    /* 二级菜单展开 */
    .mobile-menu .dropdown-menu {
        display: none;
        padding-left: 12px;
    }

    .mobile-menu li.open > .dropdown-menu {
        display: block;
    }
}

@media screen and (max-width: 768px) {
    .hamburger-btn {
        display: block;
    }
}



/* =============================== 
    移动端专用 · 药研前沿 
=============================== */
@media screen and (max-width: 768px) {

    /* PC 原结构直接隐藏 */
    .research-wrapper {
        display: none !important;
    }

    /* 移动端结构显示 */
    .research-mobile {
        display: block !important;
        padding: 24px 16px 40px;
    }

    /* 标题 */
    .research-title {
        font-size: 26px;
        font-weight: 600;
        text-align: center;
        margin-left:20px;
    }

    .research-subtitle {
        text-align: center;
        font-size: 13px;
        opacity: .7;
        margin-bottom: 24px;
        margin-left:20px;
    }

    /* 海报列表 */
    .research-mobile-posters .poster-card {
        width: 100%;
        margin-bottom: 20px;
        position: relative;
    }

    .research-mobile-posters img {
        width: 100%;
        height: auto;
        display: block;
    }

    .section-research .poster-info {
        position: absolute;
        left: 12px;
        right: 12px;
        bottom: 12px;

        display: flex;
        justify-content: space-between;
        align-items: flex-end;

        z-index: 3;          /* 一定要高于 overlay */
        color: #fff;
    }
    .section-research .poster-info .message {
        max-width: calc(100% - 44px);
    }

    .section-research .poster-date {
        display: block;
        font-size: 12px;
        opacity: 0.85;
        margin-bottom: 4px;
    }

    .section-research .poster-desc {
        font-size: 13px;
        line-height: 1.4;
        margin: 0;
    }

    .section-research .poster-info .view-more {
        flex-shrink: 0;
        margin-left: 8px;
    }

    .section-research .poster-info .view-more .btn {
        display: block;
        width:32px;
        height: 32px;
        background: url("../images/view_more4.png") no-repeat center;
        background-size: 30px 30px;
    }
    
    /* 查看更多 */
    .research-more {
        margin-top: 12px;
        text-align: center;
    }

    .research-more .btn {
        padding: 10px 36px;
        font-size: 14px;
    }
}




/* ===============================
   移动端 · 诺奖典范 Tab 化
=============================== */
@media screen and (max-width: 768px) {

  /* 1. 隐藏中间图片 */
  .section-nobel .nobel-center {
    display: none;
  }

  /* 2. Tabs 容器 */
  .nobel-tabs {
    display: flex !important;
    justify-content: space-between;
    margin: 12px 0 20px;
    border-bottom: 1px solid #eee;
  }

  /* 3. 单个 Tab */
  .nobel-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    color: #666;
    position: relative;
    cursor: pointer;
  }

  /* 4. 激活态 */
  .nobel-tab.active {
    color: var(--primary-color);
    font-weight: 600;
  }

  .nobel-tab.active::after {
    content: "";
    position: absolute;
    left: 25%;
    right: 25%;
    bottom: 0;
    height: 2px;
    background: var(--primary-color);
  }

  /* 5. 移动端布局调整 */
  .section-nobel .nobel-content {
    flex-direction: column;
    gap: 12px;
  }

  .section-nobel .nobel-left {
    width: 100%;
  }

  .section-nobel .nobel-right {
    display: none;
  }
}