/* 云南乡土文化能人网站 - 四部分页面框架样式 */

/* 自定义字体引入 */
@font-face {
    font-family: '方正隶变简体';
    src: url('../fonts/FZLBJW.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* 容器样式 - 固定1920px宽度 */
.container {
    width: 1920px;
    max-width: 100%;
    margin: 0 auto;
}
/* 头部 */
.section-0{
    height: 950px;
    background-image: url('../images/data/bg0.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}


/* 标题图片样式 */
.head {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    padding-top: 80px;
}

/* 搜索框样式 */
.search-box {
    display: block; 
    width: 100%; 
    height: 50px;
    margin: 50px auto;
}

.search-container {
    margin: 0 auto;
    display: flex;
    align-items: center;
    background: #faf5ed;
    border-radius: 25px;
    padding: 8px;
    border: 1px solid #bf813d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 630px;
    height: 50px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 20px;
    font-size: 16px;
    color: #333;
    background: transparent;
    border-radius: 20px 0 0 20px;
}

.search-input::placeholder {
    color: #bf813d;
    font-size: 14px;
}

.search-input:focus {
    color: #333;
}
.main-header .main-s {
    width: 630px;
    height: 50px;
    margin: 50px auto;
}
.main-header .main-s .s{
    background: #faf5ed;
    border-radius: 25px;
    padding: 0 8px;
    border: 1px solid #bf813d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 630px;
    height: 50px;
}
.main-header #q{
    height: 50px;
    line-height: 50px;
    padding: 0 10px;
    font-size: 16px;
    width: calc(100% - 110px);
    background: initial !important;
    border: none;
    outline: none;
    cursor: pointer;
}
input:-webkit-autofill {
    background: transparent;
    -webkit-text-fill-color: unset;
}
.main-header #searchbutton{
    float: right;
    background: url(/statics/ylwhggfc/indexnew/images/data/search.png) center center no-repeat;
    background-size: 16px 16px;
    border: 0;
    height: 50px;
    margin-right: 6px;
    width: 90px;
    cursor: pointer;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    font-size: 18px;
    color: #b87537;
    text-align: right;
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 20px;
    background-color: #faf5ed;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 34px;
    min-width: 80px;
}

.search-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.search-text {
    color: #bf813d;
    font-size: 14px;
    font-weight: 500;
}


/* 主导航栏样式 */
.main-navigation {
    width: 100%;
    margin: 10px auto;
    padding-bottom: 280px;
}

.nav-container {
    display: flex;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    gap: 30px; /* 导航项之间的间距 */
}

/* 导航项基础样式 */
.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 60px;
}

/* 导航图标样式 */
.nav-icon {
    width: 31px;
    height: 17px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* 导航文字容器样式 */
.nav-text-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    font-family: '方正隶变简体';
    text-decoration: none;
    color: inherit;
}

/* 导航链接悬停效果 */
.nav-text-container:hover {
    text-decoration: none;
    color: inherit;
}

/* 英文文字样式 */
.nav-text-en {
    font-size: 20px;
    font-weight: 500;
    color: #212121;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

/* 中文文字样式 */
.nav-text-cn {
    font-size: 30px;
    font-weight: 500;
    color: #212121;
    font-family: '方正隶变简体';
}

/* 可展开导航项样式 */
.nav-item.expandable {
    position: relative;
}

/* 子菜单样式 */
.sub-menu {
    position: absolute;
    top: 90%;
    left: 16px; /* 与主导航文字左对齐，43px = 31px(图标宽度) + 12px(图标右边距) */
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    min-width: 160px;
}

.nav-item.expandable.active .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 子菜单项样式 */
.sub-item {
    display: flex;
    align-items: center;
    color: #212121;
    cursor: pointer;
    padding: 8px 14px;
    position: relative;
    transition: color 0.2s ease;
}

/* 子菜单图标样式 */
.sub-icon {
    width: 11px;
    height: 15px;
    margin-right: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

/* 子菜单文字样式 */
.sub-text {
    font-size: 30px;
    font-weight: 500;
    font-family: '方正隶变简体';
    transition: color 0.2s ease;
    border-bottom: 1px solid #97262c;
}

.sub-item:hover {
    color: #97262c;
}

/* 子菜单项hover时显示图标 */
.sub-item:hover .sub-icon,
.sub-item.hover-active .sub-icon,
.sub-item.selected .sub-icon {
    opacity: 1;
    visibility: visible;
}

.sub-item:hover .sub-text,
.sub-item.hover-active .sub-text,
.sub-item.selected .sub-text {
    color: #97262c;
}

/* 子菜单项选中状态 */
.sub-item.selected {
    color: #97262c;
}

/* 导航项激活状态 */
.nav-item.active .nav-text-en,
.nav-item.active .nav-text-cn {
    color: #97262c;
}

/* 导航项鼠标移入和点击交互效果 */
.nav-item:hover .nav-text-en,
.nav-item:hover .nav-text-cn,
.nav-item.clicked .nav-text-en,
.nav-item.clicked .nav-text-cn {
    color: #97262c;
    transition: color 0.3s ease;
}

/* 导航图标hover和点击状态切换 */
.nav-item:hover .nav-icon,
.nav-item.clicked .nav-icon {
    content: url('../images/data/h2.png');
    transition: all 0.3s ease;
}

.section-0-0{
    height: 930px;
    background-image: url('../images/data/bg0_1.jpg');
    background-position: center;
    background-repeat: no-repeat;
}
.section1 {
    background: url(../images/data/bg.jpg) repeat-y center center;
}
.list_container {
    display: block;
    width: 1500px;
    max-width: 1500px;
    margin: 0 auto;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 30px, rgba(255,255,255,1) 100%);
    padding: 70px 120px;

}
.p-img{
    display: block;
    margin: 0 auto;
}
.m-img{
    display: none;
}
@media screen and (max-width: 768px) {
    .p-img{
        display: none;
    }
    .m-img{
        display: block;
        width: 100%;
        padding-top: 15px;
    }
    /* 搜索框 */
    .main-header .main-s{
        width: 90%;
        height: 40px;
        margin: 30px auto 20px;
    }
    .main-header .main-s .s{
        width: 100%;
        height: 40px;
    }
    .main-header #q{
        height: 40px;
        line-height: 40px;
    }
    .main-header #searchbutton{
        height: 40px;
        font-size: 16px;
    }
    /* 导航 */
    .nav-container{
        gap: 0;
    }
    .nav-item{
        padding: 5px 2px;
    }
    .nav-icon{
        width: 8px;
        height: 5px;
        margin-right: 5px;
    }
    .nav-text-en{
        font-size: 10px;
        visibility: hidden;
    }
    .nav-text-cn{
        font-size: 16px;
    }
    .sub-item{
        padding: 8px 0px;
    }
    .sub-icon{
        width: 6px;
        height: 8px;
        margin-right: 0;
    }
    .sub-text{
        font-size: 14px;
    }
    .main-navigation{
        padding-bottom: 140px;
    }
    /* 头部背景 */
    .section-0{
        height: 373px;
        background-image: url(../images/data/m_index_head.jpg);
    }
}