/* 主题颜色变量定义 */
:root {
    --primary-color: #1a2b58;
    --primary-light: #4c5e8c;
    --primary-dark: #0f1c3d;
    --accent-color: #c9a769;
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --text-color: #333333;
    --border-color: #eeeeee;
    --link-color: #333333;
    --link-hover: #c9a769;
    --transition-speed: 0.3s;
}

/* 深色主题 */
.theme-dark {
    --primary-color: #121c35;
    --primary-light: #2d3a5c;
    --primary-dark: #0a101f;
    --accent-color: #d4b277;
    --bg-color: #1a1a1a;
    --card-bg: #2c2c2c;
    --text-color: #f0f0f0;
    --border-color: #333333;
    --link-color: #e0e0e0;
    --link-hover: #d4b277;
}

/* 绿色主题 */
.theme-green {
    --primary-color: #1a5839;
    --primary-light: #4c8c65;
    --primary-dark: #0f3d27;
    --accent-color: #c9d876;
    --bg-color: #f0f7f2;
    --card-bg: #ffffff;
    --text-color: #2d3a2f;
    --border-color: #e0efe0;
    --link-color: #2d3a2f;
    --link-hover: #8a9e4a;
}

/* 红色主题 */
.theme-red {
    --primary-color: #581a2b;
    --primary-light: #8c4c5e;
    --primary-dark: #3d0f1c;
    --accent-color: #c9768a;
    --bg-color: #f7f0f2;
    --card-bg: #ffffff;
    --text-color: #3a2d30;
    --border-color: #fee;
    --link-color: #3a2d30;
    --link-hover: #9e4c5e;
}

/* 主题切换按钮样式 */
.theme-switcher {
    position: absolute;
    top: 15px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 1000;
}

.theme-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
}

.theme-btn:hover {
    transform: scale(1.1);
}

.theme-btn.active {
    border-color: white;
    box-shadow: 0 0 0 2px var(--accent-color);
}

/* 使用CSS绘制简单图标代替Font Awesome */
.theme-btn::after {
    content: '';
    position: absolute;
    display: none;
}

.theme-btn.active::after {
    display: block;
    width: 14px;
    height: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.theme-default {
    /* background: linear-gradient(135deg, var(--bg-color) 50%, var(--primary-color) 50%); */
	 background: linear-gradient(135deg, #f0f7f2  50%, #121c35 50%);
}

.theme-dark-btn {
    background: linear-gradient(135deg, #1a1a1a 50%, #121c35 50%);
}

.theme-green-btn {
    background: linear-gradient(135deg, #f0f7f2 50%, #1a5839 50%);
}

.theme-red-btn {
    background: linear-gradient(135deg, #f7f0f2 50%, #581a2b 50%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "SimSun", Arial, sans-serif;
    transition: background-color var(--transition-speed), 
                color var(--transition-speed),
                border-color var(--transition-speed);
}
body {
    color: var(--text-color);
    background: var(--bg-color);
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: var(--link-color);
    transition: all var(--transition-speed);
}
a:hover {
    color: var(--link-hover);
}
img {
    border: 0;
    max-width: 100%;
    height: auto;
}
ul, ol {
    list-style: none;
}
.fixed {
    width: 1200px;
    margin: 0 auto;
}
.wd {
    width: 100%;
}

/* Header Styles */
.header {
    /* background: var(--primary-color); */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}
.headTop {
    height: 90px;
    line-height: 90px;
    /* background: var(--primary-color); */
    /* color: #fff; */
}
.headTop .fixed {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.logo {
    margin-top: 10px;
}
.logo img {
    height: 60px;
}
.headRig {
    margin-top: -10px;
}

.lang {
    color: #fff;
}
.lang a {
    color: #fff;
    margin: 0 5px;
}
.lang a:hover {
    color: var(--accent-color);
}
.lang span {
    color: #555;
    margin: 0 5px;
}

/* 导航栏样式优化 */
.nav {
    background: linear-gradient(top, var(--primary-light), var(--primary-dark));
    background: -webkit-linear-gradient(top, var(--primary-light), var(--primary-dark));
    width:100%;
    height: 50px;
    line-height: 50px;
    position: relative;
}
.pcfixed {
    display: flex;
    justify-content: center;
}
#nav {
    display: flex;
    justify-content: space-between;
}
#nav > li {
    position: relative;
    text-align: center;
    flex: 1;
    width:150px;
}
#nav > li > a {
    color: #fff;
    display: block;
    font-size: 16px;
    font-weight: bold;
    padding: 0 10px;
}
#nav > li:hover > a {
    color: var(--accent-color);
    background: rgba(255,255,255,0.1);
}
#nav > li i {
    display: none;
}

/* 二级菜单样式优化 */
.hover-content {
    position: relative;
}
.hover-content:hover .dropdown-menu {
    display: block;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    border-radius: 0 0 20px 20px;
    background: linear-gradient(top, var(--primary-light), var(--primary-dark));
    background: -webkit-linear-gradient(top, var(--primary-light), var(--primary-dark));
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 10;
}
.dropdown-menu ul {
    padding: 1px 0;
}
.dropdown-item a {
    display: block;
    padding: 2px 15px;
    color: #fff;
    text-align: left;
}
.dropdown-item a:hover {
    color: var(--accent-color);
    background: var(--card-bg);
}

/* 移动端导航样式 */
.mobileIconCon {
    display: none;
    height: 50px;
    line-height: 50px;
    background: var(--primary-color);
    color: #fff;
    padding: 0 15px;
    position: relative;
}
.menuBtn {
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}
#mobileNavTit {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.sideNavCon {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}
.sideNavCon .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}
.sideNavScroll {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: var(--card-bg);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: all 0.3s;
}
.sideNavCon.on  .sideNavScroll {
    transform: translateX(0);
}
.sideNavBox {
    padding: 20px 0;
}
.closeSideNavCon {
    text-align: right;
    padding: 0 15px 15px;
}
.closeSideNavCon a {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 20px;
    color: var(--text-color);
}
.sideNav li {
    border-bottom: 1px solid var(--border-color);
}
.sideNav li a {
    display: block;
    padding: 12px 15px;
    color: var(--text-color);
    position: relative;
}
.sideNav li i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* 移动端导航栏样式 */
.mobileNavBtn {
    display: none;
    background: linear-gradient(top, var(--primary-light), var(--primary-color));
    background: -webkit-linear-gradient(top, var(--primary-light), var(--primary-color));
    color: #fff;
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
    position: relative;
}
.mobileNavBtn i {
    margin-right: 5px;
}
.mobileNav {
    display: none;
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.mobileNav ul {
    padding: 10px 0;
}
.mobileNav li {
    border-bottom: 1px solid var(--border-color);
}
.mobileNav li a {
    display: block;
    padding: 10px 15px;
}
.mobileNav .dropdown-menu {
    position: static;
    box-shadow: none;
    border-left: 2px solid var(--accent-color);
    margin-left: 15px;
}

/* Banner */
.banner {
    width: 100%;
    overflow: hidden;
    position: relative;
}
.owl-carousel .item img {
    width: 100%;
    display: block;
}

/* Main Content */
.indexMain {
    padding: 30px 10px;
    background: var(--card-bg);
    width: 1220px;
    margin: 0 auto;
    border-radius: 20px;
}
.newsBox {
    display: flex;
    flex-direction: row;
    margin-bottom: 30px;
    justify-content: center;
}
/* 为.newsBox添加内边距 */
.one.newsBox {
    padding: 3px;
}
.newsBoxLeft {
    width: 780px;
    margin-right: 20px;
}
.newsBoxRight {
    width: 390px;
    padding-right:10px;
}

.newsBoxRight .indexNews {
     margin-top:11px;
}

/* 大屏幕下的布局 */
@media (min-width: 993px) {
    .newsBoxLeft {
        display: flex;
        flex-wrap: wrap;
        padding-left:10px;
        padding-right: 5px;
    }
    
    .newsBoxLeft .bd {
        width: 100%;
        padding-right:5px;
    }
    
    .newsBoxLeft .slideBox {
        width: 380px;
    }
    
    .newsBoxLeft .indexNews {
        width: 50%;
        padding-left: 30px;
    }
    
    .indexTitle {
        width: 100%;
    }
}

.indexTitle {
    height: 40px;
    line-height: 40px;
    border-bottom: 2px solid var(--accent-color);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    padding-right:30px;
}
.indexTitle b {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: bold;
}
.indexTitle a {
    color: #999;
    font-size: 14px;
}
.slideBox {
    position: relative;
    margin-bottom: 15px;
}
.slideBox .bd {
    overflow: hidden;
}
.slideBox .bd ul {
    display: flex;
    width: 100%;
}
.slideBox .bd li {
    position: relative;
    width: 100%;
    flex-shrink: 0;
}
.slideBox .pic {
    height: 240px;
    overflow: hidden;
}
.slideBox .pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slideBox .tit {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: rgba(255,255,255,0.7);
    color: var(--primary-color);
    font-size: 16px;
}
.slideBox .bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1);
    transition: all 0.3s;
}
.slideBox li:hover .bg {
    background: rgba(0,0,0,0.3);
}

.indexNews li {
    height: 36px;
    line-height: 36px;
    border-bottom: 1px dashed var(--border-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.indexNews li b {
    color: var(--accent-color);
    margin-right: 10px;
}
.indexNews li a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.slideNotice {
    position: relative;
    height: 280px;
    overflow: hidden;
}
.slideNotice .bd ul {
    position: relative;
}

.indexAd {
    margin-bottom: 20px;
}

/* 电脑端下的布局 */
@media (min-width: 769px) {
    .indexAd .owl-carousel {
        display: flex;
        flex-wrap: nowrap;
    }
    
    .indexAd .item {
        flex: 0 0 calc(33.333% - 10px);
        max-width: calc(33.333% - 10px);
    }
}

.indexAd .item {
    margin-right: 10px;
}
.indexAd .item img {
    border-radius: 4px;
}

/* 修改：调整.video-box内部布局为垂直，并设置间距 */
.video-box {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    gap: 20px;
    padding: 10px;
}

.video-box a {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: bold;
    border-bottom: 2px solid var(--accent-color);
}
.video-box img {
    width: 134px;
    height: auto;
    object-fit: cover;
}

.video-box video {
    width: 360px;
    height: 240px;
    object-fit: cover;
}

.mask {
    /*display: none;*/
    /*position: fixed;*/
    /*top: 0;*/
    /*left: 0;*/
    /*width: 100%;*/
    /*height: 100%;*/
    /*background: rgba(0,0,0,0.8);*/
    /*z-index: 1000;*/
}
.video-box.on  {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    z-index: 1001;
}

/* 调整.fjyxvideo的边距 */
.fjyxvideo {
    margin-left: 10px;
}

.link {
    display: flex;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.linkText {
    color: #666;
    margin-right: 15px;
}
.fLink a {
    color: var(--link-color);
    margin-right: 15px;
}
.fLink a:hover {
    color: var(--link-hover);
}

/* Footer */
.footer {
    background: linear-gradient(top, var(--primary-light), var(--primary-color));
    background: -webkit-linear-gradient(top, var(--primary-light), var(--primary-color));
    padding: 30px 0;
}
.footLink {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.footLink a {
    color: #fff;
    margin: 0 15px;
}
.footLink a:hover {
    color: var(--accent-color);
}
.copy {
    text-align: center;
    color: #aaa;
    font-size: 14px;
}
.copy p {
    margin-bottom: 5px;
}
.copy a {
    color: #aaa;
}
.copy a:hover {
    color: var(--accent-color);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .fixed {
        width: 100%;
        padding: 0 15px;
    }
    .indexMain {
        width: 100%;
        padding: 30px 15px;
    }
    .newsBoxLeft {
        width: 65%;
    }
    .newsBoxRight {
        width: 35%;
    }
    .theme-switcher {
        right: 15px;
    }
}
@media (max-width: 992px) {
    .newsBox {
        flex-direction: column;
    }
    .newsBoxLeft {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    .newsBoxRight {
        width: 100%;
    }
    .newsBoxLeft .indexTitle,
    .newsBoxLeft .bd {
        width: 100%;
        padding: 0;
    }
    .newsBoxLeft .indexNews {
        width: 100%;
        padding: 0;
    }
}
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    .mobileIconCon {
        display: block;
    }
    .mobileNavBtn {
        display: block;
    }
    .headTop {
        height: 100px;
    }
    .logo {
        margin-top: 10px;
    }
    .logo img {
        height: 50px;
    }
    .headRig {
        margin-top: -15px;
    }
    .slideBox .pic {
        height: 180px;
    }
    .video-box {
        height: auto;
    }
    .theme-switcher {
        top: 10px;
    }
    .theme-btn {
        width: 24px;
        height: 24px;
    }
}
@media (max-width: 576px) {
    .indexTitle {
        font-size: 14px;
    }
    .indexNews li {
        font-size: 14px;
    }
    .footLink {
        flex-wrap: wrap;
    }
    .footLink a {
        margin: 5px 10px;
    }
}

/* 调整.three-columns-layout的布局 */
.three-columns-layout {
    display: block;
}

/* 电脑端布局 */
@media (min-width: 769px) {
    .three-columns-layout {
        display: flex;
        flex-direction: row;
    }
    
    .three-columns-layout .twonewsBox {
        width: 780px;
        margin-right: 10px;
        padding: 0 10px;
    }
    
    .three-columns-layout .fjyxvideo {
        width: 390px;
        margin-right: 10px;
        padding: 0 10px;
    }
    
    .three-columns-layout .fjyxvideo + .video-box,
    .three-columns-layout .video-box + .fjyxvideo {
        margin-top: 0;
        margin-left: 15px;
    }
}


/*newsBox33的样式*/
.newsBox33 {
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.newsDiv33 {
    flex: 1;
    min-width: calc(33.333% - 10px);
    background-color: var(--card-bg);
    box-sizing: border-box;
}

.indexTitle33 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.indexTitle33 b {
    font-size: 18px;
    color: var(--primary-color);
}

.indexTitle33 a {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
}

.indexTitle33 a:hover {
    color: var(--accent-color);
}

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

.indexNews33 li {
   height: 36px;
       line-height: 36px;
       border-bottom: 1px dashed var(--border-color);
       white-space: nowrap;
       overflow: hidden;
       text-overflow: ellipsis;
}

.indexNews33 li:last-child {
    border-bottom: none;
}

.indexNews33 li b {
   color: var(--accent-color);
       margin-right: 10px;
}

.indexNews33 li a {
    color: var(--text-color);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    width: calc(100% - 65px);
    height: 100%;
}

.indexNews33 li a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .newsDiv33 {
        min-width: 100%;
        margin-bottom: 15px;
    }
    
    .indexTitle33 b {
        font-size: 16px;
    }
    
    .indexNews33 li {
        font-size: 14px;
    }
}

/* 平板设备适配 */
@media (min-width: 769px) and (max-width: 1024px) {
    .newsDiv33 {
        min-width: calc(50% - 10px);
    }
    
    .newsDiv33:nth-child(3) {
        margin-left: auto;
        margin-right: auto;
        min-width: calc(50% - 10px);
    }
}