/* 学院简介页面特定样式 */

/* Banner 背景图片设置 */
.banner {
    position: relative;
    background-image: url(../images/newInfo.png);
    background-size: cover;
    background-position: center;
    height: 400px;
    margin-bottom: 0;
    overflow: hidden;
}

.banner-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.banner-content {
    position: absolute;
    top: 40%;
    left: 5%;
    transform: translateY(-50%);
    color: white;
}

.page-title-main {
    font-size: 60px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-title-en {
    font-size: 32px;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 2px;
    font-weight: 300;
    display: block;
    position: relative;
    padding-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-title-en:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #ffffff;
}

/* 主要内容区域 */
.main-content {
    background-color: #fff;
    padding: 50px 0;
    /* 防止内容超出 */
    overflow-x: hidden;
}

.container {
    margin: 0 auto;
}

/* 侧边栏样式 */
.sidebar {
    padding: 0;
    background-color: #fff;
    margin-right: 30px;
}

.academy-en {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 0.6px;
    line-height: 40px;
    color: rgba(200, 200, 200, 1);
    text-align: left;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.academy-cn {
    font-size: 24px;
    color: #333;
    font-weight: bold;
    margin-bottom: 8px;
}

.blue-line {
    width: 60px;
    height: 3px;
    background-color: #0066cc;
    margin-bottom: 30px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    padding: 0;
    margin-bottom: 20px;
    border-bottom: none;
}

.sidebar-menu li a {
    color: #333;
    display: block;
    padding: 0;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    border-bottom: none;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    color: #0066cc;
    background-color: transparent;
}

.sidebar-menu li a.active {
    color: #0066cc;
    font-weight: bold;
    border-bottom: 2px solid #0066cc;
    display: inline-block;
    padding-bottom: 5px;
}

/* 不可用菜单项样式 */
.sidebar-menu li .inactive-menu {
    color: #ccc;
    display: block;
    padding: 0;
    font-size: 16px;
    cursor: not-allowed;
}

/* 内容区域样式 */
.content-area {
    padding-left: 0;
}

/* 面包屑导航 */
.breadcrumb-nav {
    margin-bottom: 30px;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
    font-size: 14px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #666;
}

.breadcrumb-item a {
    color: #0066cc;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #004c99;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #666;
}

/* 学院简介内容 - 实现文字环绕效果 */
.academy-intro {
    margin-bottom: 50px;
}

.intro-layout {
    position: relative;
    margin-bottom: 40px;
}

/* 左侧浮动图片区域 */
.intro-image-section {
    float: left;
    width: 45%;
    max-width: 450px;
    margin: 0 30px 20px 0;
    shape-outside: margin-box;
    /* 确保图片区域有足够的高度来支撑文字环绕 */
    min-height: 350px;
}

.intro-image {
    position: relative;
    overflow: hidden;
    /* 右上角和左下角大圆角，其余角小圆角 */
    border-radius: 4px 32px 4px 32px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: #fff;
    width: 100%;
}

.intro-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px 32px 4px 32px;
    transition: transform 0.3s ease;
    display: block;
}

.intro-image:hover img {
    transform: scale(1.05);
}

/* 清除浮动 */
.intro-layout::after {
    content: "";
    display: table;
    clear: both;
}

.content-title {
    font-size: 28px;
    font-weight: bold;
    color: #4a90e2;
    margin-bottom: 25px;
    position: relative;
    line-height: 1.3;
    /* 不清除浮动，让标题也参与文字环绕 */
}

/* 介绍内容文字样式 - 环绕图片 */
.intro-content {
    line-height: 1.8;
    color: #333;
    text-align: justify;
    overflow: hidden;
}

.intro-content p {
    font-size: 16px;
    margin-bottom: 18px;
    text-align: justify;
    text-indent: 2em;
    color: #555;
    line-height: 1.8;
}

.intro-content p:first-child {
    margin-top: 0;
}

.intro-content p:last-child {
    margin-bottom: 0;
}

/* 了解详情按钮 */
.view-details {
    text-align: center;
    margin: 40px 0;
}

.view-details .btn {
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 6px;
    background-color: #0066cc;
    border-color: #0066cc;
    transition: all 0.3s ease;
}

.view-details .btn:hover {
    background-color: #004c99;
    border-color: #004c99;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

/* 上下篇文章导航样式 - 参考newInfo页面样式 */
.article-navigation {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.nav-item1 {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 0;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 140px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.nav-item1:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #ddd;
}

.nav-item1 .nav-content {
    flex: 1;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nav-item1 .nav-date-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 55px;
    margin-right: 15px;
    text-align: center;
    flex-shrink: 0;
}

.nav-item1 .nav-date-main {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: bold;
    color: #333;
    line-height: 1;
    margin-bottom: 2px;
}

.nav-item1 .nav-day {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.nav-item1 .nav-month {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.nav-item1 .nav-date-dot {
    font-size: 16px;
    color: #666;
    margin: 0 3px;
}

.nav-item1 .nav-year {
    font-size: 11px;
    color: #999;
    font-weight: 400;
}

.nav-item1 .nav-label {
    font-size: 12px;
    color: #999;
    font-weight: 400;
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: 0;
}

.nav-item1 .nav-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-item1 .nav-description {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.nav-item1 .nav-link1 {
    display: inline-block;
    color: #f39c12;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    padding: 4px 12px;
    background-color: transparent;
    border-radius: 3px;
    transition: all 0.3s ease;
    border: 1px solid #f39c12;
    align-self: flex-start;
}

.nav-item1 .nav-link1:hover {
    background-color: #f39c12;
    color: white;
    text-decoration: none;
}

.nav-item1 .nav-link1::after {
    content: '';
}

.nav-item1 .nav-link1:hover::after {
    transform: none;
}

/* 无文章时的样式 */
.nav-item1.no-article {
    opacity: 0.6;
    pointer-events: none;
}

.nav-item1 .nav-link1.disabled {
    color: #ccc;
    cursor: not-allowed;
    text-decoration: none;
}

.nav-item1 .nav-link1.disabled:hover {
    color: #ccc;
    background-color: transparent;
}

/* 研究室介绍部分样式 - 实现文字环绕效果 */
.research-office-intro {
    margin-bottom: 40px;
    padding: 20px 0;
}

.section-title {
    font-size: 28px;
    color: #333;
    font-weight: bold;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #0066cc;
    display: inline-block;
}

.intro-content-wrapper {
    position: relative;
    overflow: hidden; /* 包含浮动元素 */
    line-height: 1.8;
    text-align: justify; /* 两端对齐，让文字排列更整齐 */
}

.intro-content-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px 32px 4px 32px;
}

/* 浮动图片样式 */
.office-image.float-left {
    float: left;
    width: 450px;
    height: auto;
    margin: 0 25px 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    shape-outside: margin-box; /* 让文字按照图片的外边距环绕 */
}

.office-image.float-left:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 文字内容样式 */
.intro-text-content {
    text-align: justify;
    color: #444;
    font-size: 16px;
    line-height: 1.8;
}

.intro-text-content p {
    margin-bottom: 18px;
    text-indent: 0; /* 取消首行缩进，因为是环绕效果 */
    word-spacing: 1px;
    letter-spacing: 0.3px;
}

.intro-text-content p:first-child {
    margin-top: 0;
}

.intro-text-content p:last-child {
    margin-bottom: 0;
}

/* 清除浮动 */
.clearfix {
    clear: both;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 联系我们区域样式 */
.contact-section {
    background-color: #f8f9fa;
    padding: 60px 0;
    margin-top: 50px;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header h3 {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.contact-header p {
    font-size: 16px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-content {
    align-items: center;
}

.contact-info-detail {
    padding: 20px;
}

.contact-info-detail p {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-info-detail strong {
    color: #0066cc;
    font-weight: 600;
}

/* 联系我们二维码样式 */
.contact-qrcode {
    text-align: center;
}

.qr-group {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.qr-item {
    text-align: center;
}

.qr-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.qr-img:hover {
    transform: scale(1.05);
}

.qr-item p {
    font-size: 12px;
    color: #666;
    margin: 0;
    white-space: nowrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .banner {
        height: 300px;
    }

    .page-title-main {
        font-size: 40px;
    }

    .page-title-en {
        font-size: 24px;
    }

    .main-content {
        padding: 30px 0;
    }

    .intro-image-section {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 20px 0 !important;
    }

    /* 研究室介绍响应式样式 */
    .office-image.float-left {
        float: none !important;
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto 20px auto !important;
        display: block;
    }

    .intro-text-content {
        text-align: left;
    }

    .intro-text-content p {
        text-indent: 1.5em;
        font-size: 15px;
    }

    .intro-content {
        overflow: visible !important;
    }

    .content-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .intro-content p {
        font-size: 15px;
        text-indent: 1.5em;
        margin-bottom: 18px;
    }

    .article-navigation {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 40px;
        padding-top: 30px;
    }

    .nav-item1 {
        flex-direction: row;
        min-height: 100px;
        padding: 15px;
    }

    .nav-item1 .nav-date-info {
        min-width: 50px;
        margin-right: 15px;
    }

    .nav-item1 .nav-date-main {
        font-size: 20px;
    }

    .nav-item1 .nav-year {
        font-size: 11px;
    }

    .nav-item1 .nav-content {
        margin-left: 15px;
    }

    .nav-item1 .nav-title {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }

    .nav-item1 .nav-description {
        font-size: 12px;
        -webkit-line-clamp: 2;
        margin-bottom: 10px;
    }

    .nav-item1 .nav-link1 {
        font-size: 11px;
        padding: 3px 8px;
    }

    .contact-section {
        padding: 40px 0;
    }

    .contact-header h3 {
        font-size: 28px;
    }

    .qr-group {
        gap: 20px;
    }

    .qr-img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    .sidebar {
        margin-right: 0;
        margin-bottom: 30px;
    }

    .academy-en {
        font-size: 28px;
    }

    .academy-cn {
        font-size: 20px;
    }

    .content-area {
        padding-left: 0;
    }

    .intro-layout {
        gap: 20px;
    }

    .content-title {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .intro-content p {
        font-size: 14px;
        text-indent: 1em;
        margin-bottom: 15px;
    }

    .intro-image {
        border-radius: 8px;
    }

    /* 小屏幕研究室介绍样式 */
    .office-image.float-left {
        float: none !important;
        width: 100% !important;
        max-width: 350px !important;
        margin: 0 auto 15px auto !important;
        display: block;
    }

    .section-title {
        font-size: 24px;
    }

    .intro-text-content p {
        font-size: 14px;
        text-indent: 1em;
        margin-bottom: 15px;
    }

    .qr-group {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
} 

/* 暂无内容提示样式 */
.no-content-message {
    margin: 40px 0;
    padding: 60px 20px;
    text-align: center;
}

.no-content-wrapper {
    max-width: 400px;
    margin: 0 auto;
}

.no-content-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.no-content-title {
    font-size: 24px;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.no-content-description {
    font-size: 16px;
    color: #999;
    line-height: 1.6;
    margin-bottom: 30px;
}

.back-home-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.back-home-btn:hover {
    background-color: #0052a3;
    color: white;
    text-decoration: none;
}

/* 侧边栏样式优化 */
.sidebar-menu li.disabled {
    opacity: 0.6;
}

.sidebar-menu .inactive-menu {
    color: #999;
    cursor: not-allowed;
    padding: 10px 15px;
    display: block;
}

.sidebar-menu a.active {
    background-color: #0066cc;
    color: white;
}

.sidebar-menu a:hover {
    background-color: #f5f5f5;
    color: #0066cc;
}

.sidebar-menu a.active:hover {
    color: white;
} 


/* 二级导航栏样式 */
.sub-nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 32px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 4px;
    font-size: 18px;
    background: transparent;
  }
  
  .sub-nav-link {
    color: #6b7280;
    text-decoration: none;
    padding: 0 4px 6px 4px;
    transition: color 0.2s;
    position: relative;
    font-weight: 500;
  }
  
  .sub-nav-link.active,
  .sub-nav-link.selected,
  .sub-nav-link.active:visited {
    color: #0066cc !important;
  }
  
  .sub-nav-link.selected::after,
  .sub-nav-link.active::after {
    background: #0066cc;
  }