/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    background-color: #fff;
}

a {
    color: #101010;
    text-decoration: none;
}

li {
    list-style: none;
    color: #101010;
}

/* 布局组件 */
#header {
    flex-shrink: 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 10px;
    height: 140px;
    background-image: url('img/header.png');
    background-color: #fff;
    background-position: left top;
    background-repeat: no-repeat;
    background-size: contain;
}

#header span {
    display: none;
}

.container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    padding: 40px;
    overflow: hidden;
}

.warp-block {
    display: flex;
    flex-direction: row;
    width: 100%;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem 2rem;
    background-color: #FFF;
}

aside {
    flex: 0 200px;
    display: flex;
    flex-direction: column;
}

/* 导航样式 */
.nav {
    position: sticky;
    top: 0;
    width: 200px;
}

.nav.scrolled {
    top: 12px;
}

.wheel {
    overflow-x: hidden;
    -ms-overflow-style: none;
}

.wheel::-webkit-scrollbar {
    width: 2px;
}

.wheel:hover::-webkit-scrollbar-thumb {
    background-color: #D41314;
}

.wheel::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.01);
}

.dropdown-menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 10px 0;
    font-size: 18px;
    line-height: 1.5em;
}

.dropdown-menu li {
    display: block;
    margin: 0.25em 0;
    color: rgb(16, 16, 16);
    background-color: rgb(228, 242, 253);
    position: relative;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s;
}

.dropdown-menu li a{
    display: block;
    height: auto;
    line-height: 1.5em;
    padding: 0.5em 0;
    color: rgb(16, 16, 16);
}

.dropdown-menu li:hover{
    background-color: rgb(99, 166, 219);
}

.dropdown-menu li:hover a{
    color: rgb(255, 255, 255);
}

.dropdown-menu li.active,
.dropdown-menu li:hover .submenu li {
    background-color: rgb(59, 134, 202) ;
}

.dropdown-menu li.active a{
    color: #FFF;
}

.dropdown-item, 
.dropdown-owen {
    background-color: unset !important;
}
.submenu {
    display: none;
    line-height: 1.58em;
    font-size: 17px;
    margin-top: -0.25em;
}

.submenu.show {
    display: block;
}

.submenu li {
    display: flex;
    flex-direction: row;
}

.submenu li a {
    flex: 1;
    padding: 0.25em 0 0.25em 0.5em;
    display: block;
}

.submenu li:hover, 
.submenu li.active {
    color: #FFF;
    background-color: rgb(59, 134, 202);
}

/* 箭头指示器 */
.arrow {
    display: inline-block;
    margin-left: 0.5em;
    transition: transform 0.3s;
}

.active .arrow,
.select .arrow {
    transform: rotate(90deg);
}

/* 内容区域样式 */
.subwrap {
    flex: 1;
    display: flex;
    flex-direction: column;
}



.channel {
    flex: 1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", sans-serif;
    width: 100%;
    display: flex;
    justify-content: space-around;
    flex-direction: row;
    align-items: center;
    padding-bottom: 5px;
    border-bottom: 1px solid rgb(59, 134, 202);
}

.channel .left {
    flex: 0 auto;
    font-size: 20px;
    font-weight: bolder;
    line-height: 1.8em;
    color: #026199;
}

.channel .right {
    flex: 1;
    color: #026199;
    font-size: 14px;
    line-height: 1.2em !important;
    text-align: right;
}

.text-list {
    flex: 1;
    margin: 15px 10px 0;
}

.text-list .subtitle{
    flex: 1;
    display: flex;
    justify-content: space-around;
    flex-direction: row;
    align-items: center;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background-color: rgb(228, 242, 253);
}

.text-list .subtitle h1{
    flex: 1;
    font-size: 18px !important;
    color: #026199;
    line-height: 1.5em;
}

.text-list .subtitle span{
    flex: 0 auto;
    font-size: 12px;
}

.text-list > .list {
    display: flex;
    flex-direction: column;
}

.text-list > .list li {
    display: flex;
    font-size: 1rem;
    line-height: 2.2rem;
    align-items: center;
}

.text-list > .list li a {
    flex: 1;
    height: 2em;
    overflow: hidden;
}

.text-list > .list li a:before {
    content: "·";
    padding-right:  0.25rem;
}

.text-list > .list li span {
    flex: 0 auto;
    font-size: 0.9rem;
    order: 3;
    padding-left: 2em;
}

.updown {
    display: flex;
    align-items: baseline;
    justify-content: center;
    width: 100%;
    margin: 50px auto 20px;
    font-size: 1rem;
    text-align: center;
}

.updown span {
    flex: 0 auto;
    padding: 0.5rem 1rem;
    margin: 0 1px;
    border: 1px solid rgb(223, 223, 223);
    background-color: rgb(255, 255, 255);
    color: rgb(52, 121, 180);
}

.updown span.gray {
    color: gray;
}

.updown a span {
    border: 1px solid rgb(99, 166, 219);
    background-color: rgb(99, 166, 219);
    color: rgb(255, 255, 255);
}

/* 页脚样式 */
footer {
    flex-shrink: 0;
    width: 100%;
    background-color: rgb(170, 218, 240);
}

.footer-block {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    display: flex;
    justify-content: space-around;
    flex-direction: row;
    align-items: center;
}

.footer-left {
    flex: 1;
    background-color: rgb(170, 218, 240);
}

.footer-left dt {
    font: 20px / 2em "Microsoft YaHei", Arial;
    color: rgb(41, 91, 162);
}

.footer-left dd {
    font: 14px / 2em "Microsoft YaHei", Arial;
    color: rgb(41, 91, 162);
}

.footer-left dd a {
    color: rgb(41, 91, 162);
}

.footer-right {
    flex: 0 158px;
    height: 158px;
    background-image: url('img/logo_small.png');
    background-color: rgb(170, 218, 240);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}


/* 响应式设计 */
@media screen and (orientation: landscape) and (min-width: 480px) and (max-width: 900px) {
    #header {
        width: 100% !important;
        height: 80px !important;
        padding-bottom: 0 !important;
        background-size: contain !important;
    }
    
    .container {
        margin: 0 auto !important;
        border-radius: 0;
        box-shadow: none;
        padding: 1em !important;
    }


    aside {
        display: none !important;
    }
 
    .footer-block {
        max-width: 90vw !important;
        margin: 15px 5vw 20px !important;
        flex-direction: row !important;
    }

    .footer-left dt {
        font-size: 14px;
    }

    .footer-left dd {
        font-size: 12px;
        line-height: 1.25em;
    }

    .footer-right {
        flex: 0 90px !important;
        height: 90px !important;
    }

}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    main {
        padding: 0.5rem 0.75rem !important;
    }
    
    aside, .index_switchsize, .channel .left, .print-controls, 
    .share-container, .bottom > .left {
        display: none !important;
    }
    
    #header {
        width: 100% !important;
        height: 80px !important;
        padding-bottom: 0 auto !important;
        background-size: 100% !important;
    }
    
    .container {
        margin: 0 auto !important;
        border-radius: 0;
        box-shadow: none;
        padding: 1em !important;
    }

    .channel {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .channel .right {
        text-align: left !important;
        font-size: 0.75rem !important;
    }
    
    .footer-block {
        max-width: 100vw !important;
        margin: 15px auto 20px;
        flex-direction: column;
    }

    .footer-left dt {
        font-size: 14px;
    }

    .footer-left dd {
        font-size: 12px;
        line-height: 1.25em;
    }

    .footer-right {
        display: none !important;
    }
}

/* 辅助类 */
.apendix {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
}

.apendix-list {
    flex: 1;
    padding-left: 1rem;
}

