/*
Theme Name: 国家级职业教育教学成果奖申报主题
Theme URI: http://research.polus.edu.cn
Description: 为国家级职业教育教学成果奖申报网站设计的主题
Author: 开发者
Author URI: http://research.polus.edu.cn
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: 教育, 响应式
Text Domain: research_theme
*/

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部横幅样式 */
.hero-banner {
    color: white;
    text-align: center;
}
.hero-banner img {
    width: 100%;
    height: auto;
    object-fit: cover; 
    object-position: center center;
}

.hero-banner h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-banner p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* 导航菜单样式 */
.main-navigation {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding-bottom: 6px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.main-navigation li {
    width:20%;
    border:1px solid #eee;
    margin:-1px 0 0 -1px;
}

.main-navigation a {
    display: block;
    padding: 8px 5px;
    text-align: center;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.main-navigation a:hover {
    color: #fff;
    background-color:#0056b3;
}

/* 主要内容区域样式 */
.main-content {
    padding: 60px 0;
}

/* 成果简介样式 */
.achievement-intro {
    background-color: #fff;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.achievement-intro h2 {
    color: #003366;
    font-size: 2rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eaeaea;
}

.intro-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #555;
}

.read-more {
    display: inline-block;
    background-color: #0056b3;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-weight: 500;
}
.read-more i {
    display:inline-block;
    margin-right: 8px;
    margin-bottom: 4px;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    background-image: url(images/doc.png);
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center center;
}

.read-more:hover {
    background-color: #004085;
}

/* 功能区块网格样式 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
    text-decoration:none;
}
.feature-grid p{
    text-decoration:none;
    display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .feature-grid {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 3x2网格布局样式 */
.content-extension {
    background-color: #fff;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.grid-2x3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 30px;
}
.grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 30px;
}
.grid-2x5 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 30px;
}

.grid-item {
    background-color: #f8f9fa;
    border-radius: 8px;  
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.grid-item .grid-title {
    position: relative;
}
.mjy .grid-title h3{
    padding:25px;
    font-size:24px;
    background:#eee;
    border-bottom: 1px solid #e9ecef;
}
.grid-item .grid-title a{
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    position: absolute;
    top: 50%;
    right: 20px;
    margin-top: -20px;
    background-color: rgba(255, 255, 255, .5);
    background-image: url(images/arrow-right.png);
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center center;
    transition: all 0.3s ease;
}
.mjy .grid-item .grid-title a{
    background-color: rgba(0, 0, 0, .5);
}
.grid-item .grid-title a::before{
    content: "查看更多";
    display: none;
    width:0;
    position: absolute;
    top: 50%;
    left: 20px;
    margin-top: -10px;
    font-size: 14px;
    color:#fff;
}
.grid-item .grid-title a:hover {
    width: 120px;
    background-position:90px center;
}
.grid-item .grid-title a:hover::before{
    width: 58px;
    display: block;
}
.grid-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover; 
    object-position: center center;
}

.grid-item ul {
    list-style: none;
    padding: 25px;
}

.grid-item li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.grid-item li:before {
    content: "•";
    color: #0056b3;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 网格列表中的超链接样式 */
.grid-item li a {
    color: #003366;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 2px 0;
}

.grid-item li a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 按钮容器样式 - 水平居中 */
.buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* 区块标题栏样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.section-header h2 {
    color: #003366;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.more-button {
    display: inline-flex;
    align-items: center;
    color: #0056b3;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid #0056b3;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.more-button:hover {
    background-color: #0056b3;
    color: white;
}

.more-button span {
    margin-left: 5px;
    font-size: 1rem;
}

.cat-title{
    text-align:center;
    padding-bottom:40px;
}
.cat-list{
    list-style: none;
}
.cat-list li{
    border-bottom: 1px solid #eee;
}
.cat-list li a{
    display:block;
    padding:12px 18px;
    font-size:16px;
    color:#333;
}
.cat-list li a:hover{
    color:rgb(255, 0, 0);
}
.wp-pagenavi{
    text-align:center;
    padding-top:40px;
}

/* 响应式调整 (768px及以下) */
@media (max-width: 768px) {
    /* 区块标题栏 */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    /* 3x2网格 */
    .grid-2x3 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .content-extension {
        padding: 20px;
    }
}

.feature-block {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background-color: #f8f9fa;
    border-radius: 50%;
    padding: 15px;
}

.feature-block h3 {
    color: #003366;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.feature-block p {
    color: #666;
    line-height: 1.6;
}

/* 底部样式 */
.page-footer {
    background-color: #003366;
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo img {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    background-color: white;
    padding: 5px;
    border-radius: 4px;
}

.footer-text p {
    opacity: 0.8;
    font-size: 0.9rem;
}
.footer-text a{
    color:#fff;
    text-decoration:none;
}

/* 移动菜单按钮样式 */
.mobile-menu-button {
    display: none; /* 默认隐藏，仅在移动设备显示 */
    align-items: center;
    justify-content: center;
    padding: 18px 20px;
    background-color: #003366;
    background-image: url(images/menu.png);
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center center;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin: 10px 0;
    transition: background-color 0.3s;
    float:right;
}

.mobile-menu-button:hover {
    background-color: #0056b3;
}

.menu-icon, .close-icon {
    display: inline-block;
    width: 20px;
    height: 3px;
    background-color: white;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s;
}

.menu-icon:before,
.menu-icon:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 3px;
    background-color: white;
    transition: all 0.3s;
}

.menu-icon:before {
    top: -8px;
}

.menu-icon:after {
    bottom: -8px;
}

/* 全屏移动菜单样式 */
.mobile-fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #003366;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-fullscreen-menu.active {
    display: block;
    opacity: 1;
}

.mobile-menu-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.close-mobile-menu-button {
    align-self: flex-end;
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 30px;
}

.close-icon {
    transform: rotate(45deg);
}

.close-icon:before {
    content: '';
    position: absolute;
    width: 20px;
    height: 3px;
    background-color: white;
    transform: rotate(-90deg);
    top: 0;
    left: 0;
}

.mobile-menu-items ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-items li {
    margin-bottom: 15px;
    text-align: center;
}

.mobile-menu-items a {
    display: block;
    padding: 15px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s;
}

.mobile-menu-items a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 移动菜单响应式 */
@media (max-width: 768px) {
    .main-menu {
        display: none;
    }
    
    .mobile-menu-button {
        display: flex;
    }
    
    .read-more{
        padding: 12px 20px;
    }
    .hero-banner h1 {
        font-size: 2.2rem;
    }
    
    .hero-banner p {
        font-size: 1.1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-navigation li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    .achievement-intro {
        padding: 30px 20px;
    }
    
    .achievement-intro h2 {
        font-size: 1.8rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-banner h1 {
        font-size: 1.8rem;
    }
    
    .achievement-intro h2 {
        font-size: 1.5rem;
    }
    
    .intro-content p {
        font-size: 1rem;
    }
}