/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100vh;
    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: 0 auto 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 20px;
    overflow: hidden;
}

.warp-block {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 74vh;
}

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;
    height: calc(100vh - 115px);
    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);
}

/* 内容区域样式 */
.channel {
    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;
}

.channel .left {
    flex: 1;
    font-size: 18px;
    line-height: 1.8em !important;
    color: #026199;
}

.channel .right {
    flex: 1;
    color: #026199;
    font-size: 12px;
    line-height: 1.2em !important;
    text-align: right;
}

.content_box {
    width: 100%;
    margin: 5px 0;
}

.content_title {
    padding: 1rem 0;
    text-align: center;
}

#content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "宋体", sans-serif;
}

#content h1, #content h2, #content h3 {
    line-height: 1.8em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", sans-serif;
}

#content h1 {
    font-size: 2.125rem;
}

#content h2 {
    font-size: 1.875rem;
    color: #004fa6;
}

#content h3 {
    font-size: 1.75rem;
    font-weight: normal;
}

#content p, #content li {
    font-size: 1rem;
}

#content p {
    text-align: justify;
    word-break: break-all;
}

#content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
}

.content_text {
    padding: 2rem 0;
    line-height: 1.8rem;
}

.content_text a {
    color: #034bb7;
}

.content_text .video {
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
}

.content_text video {
    width: 100%;
    height: auto;
}

.content_text p {
    text-indent: 2rem;
    padding: 0.25rem 0;
}

.content_text p img {
    margin-left: -2rem;
}

.content_text table {
    font-size: 1rem;
}

.content_text td p {
    text-align: center !important;
    line-height: 1.1rem !important;
    text-indent: 0 !important;
    font-size: 0.8rem !important;
}

.content_text td p span{
    font-size: 0.8rem !important;
}

.table-container {
    overflow-x: auto;
    max-width: calc(100vw - 30px);
    height: auto;
    position: static;
}

.content_user {
    text-align: right;
    font-size: 0.8rem;
    padding: 0.5rem 0 1rem;
    border-top: 1px solid #b2b2b2;
}

.content_user span {
    padding-left: 2rem;
}

/* 工具控件样式 */
.meta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0.5rem 0;
    border-bottom: 1px solid #b2b2b2;
}

.article-meta {
    color: #666;
    font-size: 0.8em;
}

.index_switchsize {
    display: flex;
    gap: 8px;
}

.index_switchsize span {
    cursor: pointer;
    color: #666;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid #ddd;
    font-size: 0.85rem;
    transition: color 0.2s, background-color 0.2s;
}

.index_switchsize span.on {
    color: #fff;
    background-color: #3498db;
    border-color: #3498db;
}

.share-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 24px;
    height: 24px;
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.wechat-btn {
    background-image: url('img/wechat.png');
}

.wechat-btn:hover {
    background-image: url('img/wechat_on.png');
}

.weibo-btn {
    background-image: url('img/weibo.png');
}

.weibo-btn:hover {
    background-image: url('img/weibo_on.png');
}

.print-controls {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.print-btn {
    background: url('img/print.png') no-repeat right center;
    padding: 0.25rem 1.375rem 0.25rem 0;
    border: none;
    color: #3498db;
    font-size: 0.85rem;
    cursor: pointer;
    background-color: transparent;
}

/* 模态框样式 */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.share-modal.active {
    opacity: 1;
    pointer-events: all;
}

.share-modal-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    width: 90%;
    max-width: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.share-modal.active .share-modal-content {
    transform: translateY(0);
}

.share-modal h3 {
    margin-top: 0;
    color: #2c3e50;
    margin-bottom: 15px;
}

.qrcode-container {
    width: 160px;
    height: 160px;
    margin: 10px auto;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.qrcode-url {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 0.85rem;
    word-break: break-all;
    color: #555;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
    background: none;
    border: none;
    font-weight: bold;
}

.close-modal:hover {
    color: #333;
}

/* 页脚样式 */
footer {
    flex-shrink: 0;
    width: 100%;
    background-color: rgb(170, 218, 240);
}

.footer-block {
    width: 100%;
    max-width: 1200px;
    margin: 18px auto 20px;
    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;
}

.no-printTime {
    display: none;
}

/* 响应式设计 */
@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;
    }

    .channel {
        align-items: stretch !important;
    }

    #content h1, #content h2, #content h3 {
        line-height: 1.2em !important;
    }

    #content h1 {
        font-size: 1.7rem;
    }

    #content h2 {
        font-size: 1.5rem;
        color: #004fa6;
    }

    #content h3 {
        font-size: 1.3rem;
        font-weight: normal;
    }

    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;
    }
    
    #content h1, #content h2, #content h3 {
        line-height: 1.5em !important;
    }

    #content h1 {
        font-size: 1.3rem !important;
    }
    
    #content h2 {
        font-size: 1.2rem !important;
    }
    
    #content h3 {
        font-size: 1rem !important;
    }
    
    #content p {
        font-size: 1rem !important;
    }
    
    .content_text {
        line-height: 1.6rem !important;
    }

    .content_text p {
        text-indent: 0 !important;
    }
    
    .content_text p img {
        margin-left: 0 !important;
    }
    
    .meta-container {
        justify-content: center !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;
    }
}

/* 打印样式 */
@media print {
    body {
        font-size: 12pt !important;
        line-height: 1.5 !important;
        background: white !important;
        color: black !important;
        padding: 0 !important;
    }
    
    body, body * {
        font-size: inherit !important;
    }
    
    #footer .no-printTime {
        display: none !important;
    }
}

/* 辅助类 */
.apendix {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
}

.apendix-list {
    flex: 1;
    padding-left: 1rem;
}

.subwrap {
    flex: 1;
}

table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0.5rem 0 !important;
}

th, td {
    padding: 0.5rem 0 !important;
    border: 1px solid #bbb !important;
    text-align: center !important;
    font-size: 0.8rem !important;
    line-height: 1.1rem !important;
}