@charset "utf-8";
:root {
	--txt-family:  "Microsoft Yahei", sans-serif，tahoma;
	--color-primary: #ffbd41;
	--color-bg: white;  
    --color-border:#eee;  
    --txt-little:.75rem;
    --txt-normal:1rem;
    --txt-big:1.25rem;
    --border-radius:.4rem;
    --gap:1rem;
    --transition: all .3s ease-out;

	font-size:16px;
}

*,
*::before,
*::after {box-sizing: border-box;margin: 0;padding: 0;text-decoration: none;list-style: none;cursor: default;font-family: var(--txt-family);border-spacing: 0;font-style: normal;word-break: break-word;}
header,main,footer{width: 100% ;}
/*可选*/
html,body {width: 100%;height: 100%;font-size: 1rem;margin: 0 !important;font-family: var(--txt-family);text-align: right;}
var,area,map,bdo,dfn,font,ins,sup,time,tt,small{display:none;}
/*行内块元素*/
input,button,img {border: 0 none;outline-style: none;max-width: 100%;max-height: 100%;display: block;object-fit: cover;border-radius: var(--border-radius);}
/* 使用伪元素清除浮动 */
.clearfix::before, .clearfix::after {content: "";height: 0;line-height: 0;display: block;visibility: none;clear: both;}
span,a {display: block;text-decoration: none;color:black;}
a:hover {text-decoration: none;cursor: pointer;}
.bshadow {box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 8px 0px;}
.nowrap {overflow: hidden;text-overflow: ellipsis;white-space: nowrap;text-align: right;}
.nowrap2 {overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;word-break: break-word; white-space: normal;text-align: right;}

.hide {display: none !important;}
.bd {border-radius: var(--border-radius);border:1px solid var(--color-border); }
.mgtb{margin:var(--gap) 0;}
.pd{padding:var(--gap);}
::placeholder {color: var(--color-bg)}
::-webkit-scrollbar {display: none;}
.sticky {position: sticky;top: 0;z-index: 666;}
div.mask {position: fixed;top: 0;bottom: 0;z-index: 2;left: 0;right: 0;background-color: rgba(0, 0, 0, 0.1);display: none;transition: display .2s, opacity 1.2s;}
div.mask_active {display: block;}
.ltxt{font-size: var(--txt-little);}
.btxt{font-size:var(--txt-big)}
h1{font-size:var(--txt-big)}
h2,h3{font-size:var(--txt-normal)}

body{background-color: var(--color-bg);}
header > div,main > div,footer > div{width: 100%;margin:0 auto;max-width: 1600px;padding: 1rem;}

.grid{display: grid;gap:var(--gap)}
header {
    background-color: var(--color-bg);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* 添加下边框阴影 */
    z-index:999;
}
.fixed {
    position: fixed;
    top: -100%;
    animation: headerIn 0.4s forwards;
}
@keyframes headerIn {
    from {
        top: -100%;
    }
    to {
        top: 0;
    }
}

header > div.topmenu{grid-template-columns: 2rem auto 16rem;align-items: center;}
header > div.topmenu > button{
    background: url(../girdtemp/imgs/sun.svg) no-repeat center center;
    background-size: 2rem 2rem;
    width: 2rem;
    height: 2rem;
}
header > div.topmenu > nav{
    width: 100%;
    grid-template-columns: repeat(auto-fit,minmax(5rem,1fr));
    justify-items: center;
    align-items: center;
}
header > div.topmenu > nav > a{
    width: 100%;
    font-weight: bold;
    text-align: center;
    line-height: 3rem;
    transition: var(--transition);
}
header > div.topmenu > nav > a:hover,header > div.topmenu > h1:hover{
    transform: scale(1.1);
}
header > div.topmenu > h1{justify-self: end;transition: var(--transition);}

header > div.topmenu > img{display: none;width: 2.2rem;height:2.2rem;}

div.container{grid-template-columns: 1fr 3fr;}

section.imgnews{
    grid-template-columns: repeat(4,1fr);
}

section.imgnews > a > img{
    width: 100%;
    height: 16rem;
}
section.imglrnews{
    grid-template-columns: 1fr 1fr 1fr 1fr;    
}
section.imglrnews > a{
    grid-template-columns:auto;
    position: relative;
    border:1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: var(--transition);
}
section.imglrnews > a > img{
    width: 100%;
    height: 14rem;
}
section.imglrnews > a:nth-child(3){
    grid-column: 3/5;
}
section.imglrnews > a:nth-child(4){
    grid-column: 1/3;
}
section.imglrnews > a:nth-child(3) > img,
section.imglrnews > a:nth-child(4) > img{
    height: 20rem;
}
section.imglrnews > a:nth-child(3) > section,
section.imglrnews > a:nth-child(4) > section{
    position: absolute;
    right: 0;
    bottom: var(--gap);
    background-color: white;
    width: 80%;
}
section.imglrnews > a > img:hover,
section.imglrnews > a > section:hover,
section.asideimgnews > a > img:hover,
section.asideimgnews > a > h3:hover,
section.imgnews > a > img,
section.imgnews > a > section > h3,
section.imgnews > a > section > span,
section.imgnews > a > section > p{cursor: pointer;}




section.txtnews{
    grid-template-columns: 1fr 1fr;
    gap:var(--gap);
}
section.txtnews>a{
    transition: var(--transition);
    padding: var(--gap);
}

section.imglrnews > a:hover,
section.txtnews>a:hover,
section.asideimgnews > a:hover,
section.imgnews > a:hover{
    transform: scale(1.05);
    filter: brightness(1.2);    
    border:1px solid #ffbd41;
    box-shadow: 0px 4px 6px rgb(255,189,65,.2);
}

section.index > a:nth-child(3n){
    grid-column: 3/5;
}
section.index > a:nth-child(4n){
    grid-column: 1/3;
}
section.index > a:nth-child(6n){
    grid-column: 4/5;
}
div.container > div > h2,
div.container > aside > h2{
    font-size: var(--txt-big);
    margin-bottom: var(--gap);
    border-bottom: 3px solid var(--color-border);
    padding-bottom: var(--gap);
    position: relative;
}
div.container > div > h2::after,
div.container > aside > h2::after{
    content: "";
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 8rem;
    height: 3px;
    background-color: var(--color-primary);
}
.pagelist{
    display: flex;
    padding: var(--gap) 0;
    justify-items: center;
    align-items: center;
    justify-content: center;
    gap: var(--gap);
    flex-wrap: wrap;
}
.pagelist > a{
    padding: .6rem 1rem;
    background-color: #eee;
    border-radius: var(--border-radius);
}
article{
    gap: var(--gap);
    justify-content: end;
    justify-items: end;
}
div.location{
    display: flex;
    justify-content: end;
    font-weight: bold;
}
section.asideimgnews > a,section.imgnews > a{
    transition: var(--transition);
}
section.asideimgnews > a > img{
    width: 100%;
    height: 14rem;
}

@media (max-width: 1200px) {
    section.imgnews{
        grid-template-columns: repeat(3,1fr);
    }
    section.imgnews > a > img{height: 12rem;}
   
    section.imglrnews > a > img{
        height: 12rem;
    }
    section.imglrnews > a:nth-child(3) > img,
    section.imglrnews > a:nth-child(4) > img{
        height: 18rem;
    }
}
@media (max-width: 1024px) {
    header > div.topmenu{grid-template-columns: 2rem auto 16rem}
    header > div.topmenu > nav{grid-column: 1/4;}
    header > div.topmenu > h1{grid-column: 3/4;grid-row: 1/2}
    section.imgnews{grid-template-columns: repeat(2,1fr);}
    
    section.imglrnews > a{
        grid-template-columns: auto;
    }
    section.imglrnews > a > img{
        height: 12rem;
    }
    section.index > a:nth-child(3n){
        grid-column: auto;
    }
    section.index > a:nth-child(4n){
        grid-column: auto;
    }
    section.imglrnews > a:nth-child(3) > img,
    section.imglrnews > a:nth-child(4) > img{
        height: 12rem;
    }
    section.imglrnews > a:nth-child(3) > section,
    section.imglrnews > a:nth-child(4) > section{
        position: relative;
        right: auto;
        bottom: auto;
        background-color: none;
        width:auto;
    }
}
@media (max-width: 768px) {
    :root {
        --gap: .8rem;
        font-size:14px;
    }
    header > div.topmenu{grid-template-columns: 2rem auto 2rem}
    header > div.topmenu > h1{grid-column: 2/3;grid-row: 1/2}
    header > div.topmenu > img{grid-column: 3/4;grid-row: 1/2;display: block;}
    header > div.topmenu > nav{
        grid-column: auto;
        position: absolute;
        right: 0;
        top:0;
        width: 0;
        height: 0;
        grid-template-columns: auto;
        grid-template-rows: repeat(auto-fill,3rem);
        z-index:666;   
        gap: calc(var(--gap) * .5);   
        max-width: 70%;  
        overflow: hidden;
        transition: all .4s;
        background: rgba(0, 0, 0, 0.2); /* 半透明白色 */
        backdrop-filter: blur(10px); /* 模糊效果 */
        -webkit-backdrop-filter: blur(10px); 
        border: 1px solid rgba(255, 255, 255, 0.2); 
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    }
    section.txtnews{
        grid-template-columns: auto;
    }
    header > div.topmenu > nav.active{
        width: 20rem;
        height: 100vh;
    }
    header > div.topmenu > nav > a{
        color:white;        
    }
   
    div.container{grid-template-columns: auto;}
    div.container > div{grid-row: 1/2;}
    section.asideimgnews{grid-template-columns: 1fr 1fr;}
    section.asideimgnews > a > img{
        width: 100%;
        height: 12rem;
    }
    section.imglrnews{
        grid-template-columns: 1fr 1fr  1fr;    
    }

    section.imglrnews > a:nth-child(3){
        grid-column: auto;
    }
    section.imglrnews > a:nth-child(4){
        grid-column: auto;
    }
    section.imglrnews > a:nth-child(3) > img,
    section.imglrnews > a:nth-child(4) > img{
        height: 16rem;
    }
    section.imglrnews > a > img{
        height: 16rem;
    }
}
@media (max-width: 576px){
    :root {
        --gap: .4rem;
        font-size:12px;
    }
    section.imgnews{grid-template-columns: auto;}
    section.imglrnews{grid-template-columns: 1fr ;}
    section.imgnews > a > img{height: 16rem;}
    section.asideimgnews{grid-template-columns: 1fr;}
    section.asideimgnews > a > img{ height: 16rem;}
}

