

/* =============================================
   1) picture part
============================================= */

.degree-content {
    position: relative;
    width: 68vw;
    margin-bottom: 0;
    overflow: visible; 
    z-index: 2;
    display: block;
  }
  
.degree-image {
    position: absolute;
    right: 0;        /* 锚定在右侧 */
    top: 0;
    width:62%;     /* 控制图片区域宽度 */
    height: auto;
    margin-top: 8vw;
    margin-right:11.5vw;
    z-index: 1;
    text-align: right;
    overflow: hidden;
}

.degree-text{
    margin-top: 2vw;
    word-wrap: break-word;
    hyphens: auto;
}
.degree-image img {
    width: 100%;
    height: auto; /* Scale proportionally with width */
    object-fit: contain; /* Ensure complete display without cropping */
    display: block;
}

.degree-content h1 {
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: bold;
    width: 100%;
    padding-top: 0;
    margin-bottom: 1vw;
    text-transform: uppercase;
    line-height: 1.2;
}
  
.degree-content .title::before {
    content: "#";
    color: #7FEF35;
    margin-right: 2vw;
}
  
  
.degree-content p {
    font-size: clamp(1rem, 1.33vw, 1.23rem);
    line-height:1.4;
    margin-bottom: 1.5vw;
    width: 67vw;
    color: #ffffff;
    word-wrap: break-word;
    hyphens: auto;
}
  
.green {
    font-weight:bold;
    color: #7FEF35;
}
  
.green:hover {
    color: #3535ef;
}



/* =============================================
   2) degree grid list 6x2
============================================= */

.degree-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 0vw;
    align-items: start;
}

.degree-column {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 0;
}

/* 方形单元：保持 1:1 比例 */
.degree-subimage-content{
    position: relative;
    z-index: 3; /* 确保网格在最上层 */
}

.degree-tile.image,
.degree-tile.text {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    background: #0f0f0f;
    overflow: hidden;
}

.degree-tile.image {
    aspect-ratio: 1 / 1; /* 确保图片容器保持正方形 */
    min-height: 0; /* 允许容器收缩 */
}

.degree-tile.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    aspect-ratio: 1 / 1;
}

.degree-tile.text {
    display: flex;
    align-items:flex-start;
    justify-content: flex-start;
    padding: 1.2vw;
    color: #fff;
    background: #000; /* 文本块背景与图片区分 */
    aspect-ratio: 1 / 1; /* 确保文字块也保持正方形比例 */
}

.degree-tile.text p {
    font-size: clamp(1rem, 1.13vw, 1.13rem);
    line-height: 1.4;
    margin: 0;
}

/* 交错：奇数列 图片在上，偶数列 文本在上 */
.degree-column:nth-child(odd) .degree-tile.image { order: 0; }
.degree-column:nth-child(odd) .degree-tile.text { order: 1; }
.degree-column:nth-child(even) {
    grid-template-rows: 1fr auto;
}
.degree-column:nth-child(even) .degree-tile.text { order: 0; }
.degree-column:nth-child(even) .degree-tile.image { order: 1; }

/* 大屏幕：确保文字块保持正方形比例 */
@media (min-width: 1201px) {
    .degree-tile.text {
        aspect-ratio: 1 / 1; /* 确保在大屏幕上文字块保持正方形 */
    }
}

/* 响应式：中等屏改为 2 列，图片在上文字在下 */
@media (max-width: 1200px) {
    .degree-list { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 0.5vw;
    }
    .degree-column {
        grid-template-rows: 1fr auto;
    }
    .degree-column .degree-tile.image { order: 0 !important; }
    .degree-column .degree-tile.text { 
        order: 1 !important;
        aspect-ratio: auto; /* 两列时文字块恢复自适应高度 */
    }
}

/* 小屏：2 列，图片在上文字在下 */
@media (max-width: 768px) {
    .degree-list { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 0.8vw;
    }
    .degree-column {
        grid-template-rows: 1fr auto;
    }
    .degree-column .degree-tile.image { order: 0 !important; }
    .degree-column .degree-tile.text { 
        order: 1 !important;
        aspect-ratio: auto; /* 小屏时文字块恢复自适应高度 */
    }
    .degree-tile.text { padding: 3.5vw; }
}

@media (max-width: 1024px) {
    .degree-image { width: 55vw; }
}

@media (max-width: 768px) {
    .degree-image { position: relative; width: 100%; margin-top: 2vh; }
}
  
/* =============================================
   3) roles 5x1 staggered square grid
============================================= */

.roles-title {
    font-size: clamp(1rem, 1.33vw, 1.23rem);
    margin-top: 4vw;
    margin-bottom: 4vw;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1vw;
    max-width: 100%;
}

.role-item {
    display: grid;
    grid-template-rows: 1fr 3fr; /* 默认：文字在上，图片在下 */
    aspect-ratio: 1 / 1; /* 正方形 */
    background: #000;
    min-width: 0; /* 防止内容溢出 */
}


.role-text, .role-image { width: 100%; height: 100%; box-sizing: border-box; min-width: 0; }

.role-text {
    font-size: clamp(0.8rem, 1vw, 1rem);
    padding: 0.8vw;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
    line-height: 1.35;

}

.role-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.role-text p { 
    overflow-wrap: anywhere;
    word-break: break-word;
    margin: 0; 
    font-size: clamp(0.8rem, 1vw, 1rem);
}

/* 交错：第1、3、5列为文字在上；第2、4列为图片在上 */
.roles-grid .role-item:nth-child(odd) { 
    grid-template-rows: 1fr 3fr; 
}
.roles-grid .role-item:nth-child(odd) .role-text { order: 1; }
.roles-grid .role-item:nth-child(odd) .role-image { order: 2; }

.roles-grid .role-item:nth-child(even) { 
    grid-template-rows: 3fr 1fr; 
}
.roles-grid .role-item:nth-child(even) .role-image { order: 1; }
.roles-grid .role-item:nth-child(even) .role-text { order: 2; }

/* 响应式 */
@media (max-width: 1400px) and (min-width: 1201px) {
    .roles-grid { 
        grid-template-columns: repeat(5, 1fr); 
        gap: 1.2vw;
    }
}

@media (max-width: 1200px) {
    .roles-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    /* 两列展示时，所有项目都是图片在上，文字在下 */
    .roles-grid .role-item:nth-child(odd) { 
        grid-template-rows: 3fr 1fr !important; 
    }
    .roles-grid .role-item:nth-child(odd) .role-image { order: 1 !important; }
    .roles-grid .role-item:nth-child(odd) .role-text { order: 2 !important; }
    
    .roles-grid .role-item:nth-child(even) { 
        grid-template-rows: 3fr 1fr !important; 
    }
    .roles-grid .role-item:nth-child(even) .role-image { order: 1 !important; }
    .roles-grid .role-item:nth-child(even) .role-text { order: 2 !important; }
}

/* 中等屏幕 - 1000px 到 1199px */
@media (max-width: 1199px) and (min-width: 1000px) {
    .roles-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 1.5vw;
    }
    /* 两列展示时，所有项目都是图片在上，文字在下 */
    .roles-grid .role-item:nth-child(odd) { 
        grid-template-rows: 3fr 1fr !important; 
    }
    .roles-grid .role-item:nth-child(odd) .role-image { order: 1 !important; }
    .roles-grid .role-item:nth-child(odd) .role-text { order: 2 !important; }
    
    .roles-grid .role-item:nth-child(even) { 
        grid-template-rows: 3fr 1fr !important; 
    }
    .roles-grid .role-item:nth-child(even) .role-image { order: 1 !important; }
    .roles-grid .role-item:nth-child(even) .role-text { order: 2 !important; }
    
    .role-text { 
        padding: 1.5vw; 
        font-size: clamp(0.95rem, 1.2vw, 1.2rem);
    }
    .role-text p {
        font-size: clamp(0.95rem, 1.2vw, 1.2rem);
    }
}

/* 中等屏幕 - 900px 到 999px */
@media (max-width: 999px) and (min-width: 900px) {
    .roles-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 2vw;
    }
    /* 两列展示时，所有项目都是图片在上，文字在下 */
    .roles-grid .role-item:nth-child(odd) { 
        grid-template-rows: 3fr 1fr !important; 
    }
    .roles-grid .role-item:nth-child(odd) .role-image { order: 1 !important; }
    .roles-grid .role-item:nth-child(odd) .role-text { order: 2 !important; }
    
    .roles-grid .role-item:nth-child(even) { 
        grid-template-rows: 3fr 1fr !important; 
    }
    .roles-grid .role-item:nth-child(even) .role-image { order: 1 !important; }
    .roles-grid .role-item:nth-child(even) .role-text { order: 2 !important; }
    
    .role-text { 
        padding: 2vw; 
        font-size: clamp(0.9rem, 1.3vw, 1.15rem);
    }
    .role-text p {
        font-size: clamp(0.9rem, 1.3vw, 1.15rem);
    }
}

/* 中等屏幕 - 800px 到 899px */
@media (max-width: 899px) and (min-width: 800px) {
    .roles-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 2.5vw;
    }
    /* 两列展示时，所有项目都是图片在上，文字在下 */
    .roles-grid .role-item:nth-child(odd) { 
        grid-template-rows: 3fr 1fr !important; 
    }
    .roles-grid .role-item:nth-child(odd) .role-image { order: 1 !important; }
    .roles-grid .role-item:nth-child(odd) .role-text { order: 2 !important; }
    
    .roles-grid .role-item:nth-child(even) { 
        grid-template-rows: 3fr 1fr !important; 
    }
    .roles-grid .role-item:nth-child(even) .role-image { order: 1 !important; }
    .roles-grid .role-item:nth-child(even) .role-text { order: 2 !important; }
    
    .role-text { 
        padding: 2.5vw; 
        font-size: clamp(0.9rem, 1.4vw, 1.1rem);
    }
    .role-text p {
        font-size: clamp(0.9rem, 1.4vw, 1.1rem);
    }
}

/* 小屏幕 - 700px 到 768px */
@media (max-width: 768px) and (min-width: 700px) {
    .roles-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 3vw; 
    }
    .role-item {
        grid-template-rows: 150px auto; /* 减小图片高度 */
        aspect-ratio: auto;
    }
    /* 两列展示时，所有项目都是图片在上，文字在下 */
    .roles-grid .role-item:nth-child(odd) { 
        grid-template-rows: 150px auto !important; 
    }
    .roles-grid .role-item:nth-child(odd) .role-image { order: 1 !important; }
    .roles-grid .role-item:nth-child(odd) .role-text { order: 2 !important; }
    
    .roles-grid .role-item:nth-child(even) { 
        grid-template-rows: 150px auto !important; 
    }
    .roles-grid .role-item:nth-child(even) .role-image { order: 1 !important; }
    .roles-grid .role-item:nth-child(even) .role-text { order: 2 !important; }
    
    .role-image {
        height: 150px;
    }
    .role-text { 
        padding: 3vw; 
        font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    }
    .role-text p {
        font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    }
}

/* 小屏幕 - 600px 到 699px */
@media (max-width: 699px) and (min-width: 600px) {
    .roles-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 3.5vw; 
    }
    .role-item {
        grid-template-rows: 140px auto; /* 进一步减小图片高度 */
        aspect-ratio: auto;
    }
    /* 两列展示时，所有项目都是图片在上，文字在下 */
    .roles-grid .role-item:nth-child(odd) { 
        grid-template-rows: 140px auto !important; 
    }
    .roles-grid .role-item:nth-child(odd) .role-image { order: 1 !important; }
    .roles-grid .role-item:nth-child(odd) .role-text { order: 2 !important; }
    
    .roles-grid .role-item:nth-child(even) { 
        grid-template-rows: 140px auto !important; 
    }
    .roles-grid .role-item:nth-child(even) .role-image { order: 1 !important; }
    .roles-grid .role-item:nth-child(even) .role-text { order: 2 !important; }
    
    .role-image {
        height: 140px;
    }
    .role-text { 
        padding: 3.5vw; 
        font-size: clamp(0.85rem, 1.6vw, 1.05rem);
    }
    .role-text p {
        font-size: clamp(0.85rem, 1.6vw, 1.05rem);
    }
}

/* 小屏幕 - 500px 到 599px */
@media (max-width: 599px) and (min-width: 500px) {
    .roles-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 4vw; 
    }
    .role-item {
        grid-template-rows: 130px auto; /* 继续减小图片高度 */
        aspect-ratio: auto;
    }
    /* 两列展示时，所有项目都是图片在上，文字在下 */
    .roles-grid .role-item:nth-child(odd) { 
        grid-template-rows: 130px auto !important; 
    }
    .roles-grid .role-item:nth-child(odd) .role-image { order: 1 !important; }
    .roles-grid .role-item:nth-child(odd) .role-text { order: 2 !important; }
    
    .roles-grid .role-item:nth-child(even) { 
        grid-template-rows: 130px auto !important; 
    }
    .roles-grid .role-item:nth-child(even) .role-image { order: 1 !important; }
    .roles-grid .role-item:nth-child(even) .role-text { order: 2 !important; }
    
    .role-image {
        height: 130px;
    }
    .role-text { 
        padding: 4vw; 
        font-size: clamp(0.8rem, 1.7vw, 1rem);
    }
    .role-text p {
        font-size: clamp(0.8rem, 1.7vw, 1rem);
    }
}

/* =============================================
   手机端响应式设计 (Mobile Responsive Design)
============================================= */

/* 手机端 - 480px 及以下 */
@media (max-width: 480px) {
    
    /* 主要内容区域 - 模仿homepage overview布局 */
    .degree-content {
        width: 100%;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        text-align: justify;
        min-height: auto;
        padding: 1vh;
    }
    
    .degree-content h1 {
        font-size: clamp(1.3rem, 2vw, 1.3rem);
        width: 100%;
        padding-top: 0;
        margin-bottom: 1.5rem;
        text-align: left;
        line-height: 1.3;
    }
    
    .degree-content p {
        width: 100%;
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        margin-bottom: 1.2rem;
        text-align: justify;
        line-height: 1.6;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    /* 图片区域 - 模仿homepage overview-image布局 */
    .degree-image {
        position: static;
        width: 100%;
        height: auto;
        order: -1;
        margin: 0;
        text-align: center;
        margin-bottom: 2rem;
        padding-top: 3vh;
    }
    
    .degree-image img {
        width: 100%;
        max-width: 500px;
        height: auto;
        aspect-ratio: 16/9;
        object-fit: cover;
        border-radius: 8px;
    }
    
    /* 度学位网格 - 改为单列布局 */
    .degree-list {
        grid-template-columns: 1fr;
        gap: 2vw;
        margin-top: 2vw;
    }
    
    .degree-subimage-content {
        margin-left: 0;
        margin-top: 4vw;
    }
    
    .degree-column {
        display: block; /* 改为块级布局 */
    }
    
    .degree-tile.image,
    .degree-tile.text {
        margin-left: 0;
        width: 100%;
        aspect-ratio: auto; /* 移除固定比例 */
        min-height: 200px; /* 设置最小高度 */
    }
    
    .degree-tile.image {
        height: 200px; /* 固定图片高度 */
        aspect-ratio: 1 / 1; /* 确保保持正方形 */
    }
    
    .degree-tile.text {
        height: auto;
        min-height: 120px;
        padding: 6vw;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .degree-tile.text p {
        font-size: clamp(0.95rem, 4vw, 1.1rem);
        line-height: 1.5;
    }
    
    /* 角色区域 */
    .roles-section {
        width: auto;
        margin-top: 4vw;
        margin-left: 0;
    }
    
    .roles-title {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        margin-top: 6vw;
        margin-bottom: 6vw;
        text-align: justify;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .roles-grid {
        grid-template-columns: 1fr; /* 单列布局 */
        gap: 4vw;
    }
    
    .role-item {
        grid-template-rows: 200px auto; /* 固定图片高度，自适应文字高度 */
        aspect-ratio: auto;
    }
    
    /* 手机端：所有项目都是图片在上，文字在下，使用相同的比例 */
    .roles-grid .role-item:nth-child(odd) { 
        grid-template-rows: 200px auto !important; 
    }
    .roles-grid .role-item:nth-child(even) { 
        grid-template-rows: 200px auto !important; 
    }
    .roles-grid .role-item .role-image { order: 1 !important; }
    .roles-grid .role-item .role-text { order: 2 !important; }
    
    .role-text {
        font-size: clamp(0.95rem, 4vw, 1.1rem);
        padding: 6vw;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: 80px;
    }
    
    .role-image {
        height: 200px;
    }
    
    .role-image img {
        height: 100%;
        object-fit: cover;
    }
    
    .role-text p {
        font-size: clamp(0.95rem, 4vw, 1.1rem);
        line-height: 1.5;
    }
}

/* 小屏手机端 - 360px 及以下 */
@media (max-width: 360px) {
    
    .degree-content h1 {
        font-size: clamp(1.3rem, 2vw, 1.3rem);
        width: 100%;
        padding-top: 0;
        margin-bottom: 1.2rem;
    }
    
    .degree-content p {
        text-align: justify;
        font-size: clamp(0.85rem, 4.5vw, 1rem);
        line-height: 1.7;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .degree-image img {
        max-width: 400px;
        border-radius: 6px;
    }
    
    .degree-tile.text,
    .role-text {
        padding: 8vw;
    }
    
    .degree-tile.text p,
    .role-text p {
        font-size: clamp(0.9rem, 4.5vw, 1rem);
    }
}

/* =============================================
   平板端响应式设计 (Tablet Responsive Design)
============================================= */

/* 大平板横屏 - 1024px 到 1199px */
@media (min-width: 1024px) and (max-width: 1199px) {
    
    .degree-content {
        width: 68vw;
    }
    
    .degree-content h1 {
        font-size: clamp(1.5rem, 2vw, 2rem);
        width: 100%;
        padding-top: 0;
    }
    
    .degree-content p {
        width: 100%;
        font-size: clamp(1.1rem, 1.5vw, 1.3rem);
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .degree-image {
        width: 58%;
        margin-right: 8vw;
    }
    
    .degree-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6vw;
    }
    
    .degree-column .degree-tile.image { order: 0 !important; }
    .degree-column .degree-tile.text { order: 1 !important; }
    
    .degree-subimage-content {
        margin-left: 1.5vw;
        margin-top: 2vw;
    }
    
    .degree-tile.text {
        padding: 1.5vw;
    }
    
    .degree-tile.text p {
        font-size: clamp(1rem, 1.2vw, 1.2rem);
    }
    
    .roles-section {
        width: auto;
        margin-left: 1.5vw;
    }
    
    .roles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5vw;
    }
    
    .role-text {
        padding: 1.2vw;
        font-size: clamp(1rem, 1.3vw, 1.3rem);
    }
    
    .role-text p {
        font-size: clamp(1rem, 1.3vw, 1.3rem);
    }
}

/* 中等平板 - 769px 到 1023px */
@media (min-width: 769px) and (max-width: 1023px) {
    
    .degree-content {
        width: 68vw;
        margin-bottom: 0;
    }
    
    .degree-content h1 {
        font-size: clamp(1.5rem, 2vw, 2rem);
        width: 100%;
        padding-top: 0;
        margin-bottom: 1.5vw;
    }
    
    .degree-content p {
        width: 100%;
        font-size: clamp(1.05rem, 1.6vw, 1.25rem);
        margin-bottom: 2vw;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .degree-image {
        width: 55%;
        margin-right: 6vw;
        margin-top: 6vw;
    }
    
    .degree-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7vw;
    }
    
    .degree-column .degree-tile.image { order: 0 !important; }
    .degree-column .degree-tile.text { order: 1 !important; }
    
    .degree-subimage-content {
        margin-left: 1.8vw;
        margin-top: 2vw;
    }
    
    .degree-tile.text {
        padding: 2vw;
    }
    
    .degree-tile.text p {
        font-size: clamp(1rem, 1.4vw, 1.25rem);
    }
    
    .roles-section {
        width: auto;
        margin-top: 3vw;
        margin-left: 1.8vw;
    }
    
    .roles-title {
        font-size: clamp(1.05rem, 1.6vw, 1.25rem);
        margin-top: 5vw;
        margin-bottom: 5vw;
    }
    
    .roles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2vw;
    }
    
    .role-text {
        padding: 1.8vw;
        font-size: clamp(1rem, 1.4vw, 1.25rem);
    }
    
    .role-text p {
        font-size: clamp(1rem, 1.4vw, 1.25rem);
    }
}

/* 小平板竖屏 - 481px 到 768px */
@media (min-width: 481px) and (max-width: 768px) {
    
    .degree-content {
        width: 100%;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        padding: 1vh;
    }
    
    .degree-content h1 {
        width: 100%;
        font-size: clamp(1.3rem, 2vw, 1.3rem);
        padding-top: 0;
        margin-bottom: 1.5rem;
        text-align: left;
    }
    
    .degree-content p {
        width: 100%;
        font-size: clamp(1rem, 2.2vw, 1.2rem);
        margin-bottom: 1.5rem;
        text-align: justify;
        line-height: 1.6;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .degree-image {
        position: static;
        width: 100%;
        height: auto;
        order: -1;
        margin: 0;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .degree-image img {
        width: 100%;
        max-width: 600px;
        height: auto;
        aspect-ratio: 16/9;
        object-fit: cover;
        border-radius: 8px;
    }
    
    .degree-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.9vw;
    }
    
    .degree-column .degree-tile.image { order: 0 !important; }
    .degree-column .degree-tile.text { order: 1 !important; }
    
    .degree-subimage-content {
        margin-left: 0;
        margin-top: 2vw;
    }
    
    .degree-tile.image,
    .degree-tile.text {
        margin-left: 0;
    }
    
    .degree-tile.image {
        aspect-ratio: 1 / 1; /* 确保保持正方形 */
    }
    
    .degree-tile.text {
        padding: 3vw;
    }
    
    .degree-tile.text p {
        font-size: clamp(0.95rem, 2vw, 1.15rem);
    }
    
    .roles-section {
        width: auto;
        margin-top: 3vw;
        margin-left: 0;
    }
    
    .roles-title {
        font-size: clamp(1rem, 2.2vw, 1.2rem);
        margin-top: 4vw;
        margin-bottom: 4vw;
        text-align: justify;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .roles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3vw;
    }
    
    /* 小平板竖屏：所有项目都是图片在上，文字在下，使用相同的比例 */
    .roles-grid .role-item:nth-child(odd) { 
        grid-template-rows: 200px auto !important; 
    }
    .roles-grid .role-item:nth-child(even) { 
        grid-template-rows: 200px auto !important; 
    }
    .roles-grid .role-item .role-image { order: 1 !important; }
    .roles-grid .role-item .role-text { order: 2 !important; }
    
    .role-text {
        padding: 3vw;
        font-size: clamp(0.95rem, 2vw, 1.15rem);
    }
    
    .role-text p {
        font-size: clamp(0.95rem, 2vw, 1.15rem);
    }
}

/* iPad Pro 横屏等大屏平板 - 1200px 到 1366px */
@media (min-width: 1200px) and (max-width: 1366px) {
    .degree-content h1 {
        font-size: clamp(1.5rem, 2vw, 2rem);
        padding-top: 0;
    }
    
    .degree-content p {
        font-size: clamp(1.15rem, 1.4vw, 1.35rem);
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .degree-list {
        grid-template-columns: repeat(6, 1fr);
        gap: 1.2vw;
    }
    
    .roles-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.5vw;
    }
}
