/* 基础样式 */
* {
    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: 1000px;
    margin: 0 auto;
    height: 170px;
    background-image: url('img/header.jpg');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

#header span {
    display: none;
}

.container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.warp-block {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 74vh;
    border-right: 1px solid #eee;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
    background-color: #FFF;
}

aside {
    flex: 0 200px;
    display: flex;
    flex-direction: column;
    background-color: #eee;
}

/* 导航样式 */
.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: 14px;
    line-height: 2em;
}

.dropdown-item, .dropdown-owen {
    display: block;
    padding: 0 10px;
    cursor: pointer;
}

.dropdown-item span, .dropdown-owen span {
    vertical-align: middle;
    z-index: 3;
    padding-left: 20px;
    background: url('img/snav.png') no-repeat;
}

.dropdown-owen span {
    background: url('img/leftnav.png') no-repeat;
}

.dropdown-item:hover, .dropdown-owen:hover {
    background-color: #63a6db;
}

.dropdown-item:hover span {
    color: #FFF;
    background: url('img/snav_hover.png') no-repeat;
}

.dropdown-owen:hover span, .dropdown-menu li.active span {
    color: #FFF;
    background: url('img/leftnav_hover.png') no-repeat;
}

.dropdown-menu li.active {
    background-color: #63a6db;
}

.dropdown-item.select:hover span {
    background: url('img/snav_ohover.png') no-repeat;
}

.dropdown-item.select span {
    background: url('img/snav_o.png') no-repeat;
}

.submenu {
    display: none;
    line-height: 1.5em;
}

.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: #63a6db;
}

.submenu li span {
    padding-left: 20px;
    background: url('img/leftnav.png') no-repeat;
}

.submenu li:hover span, .submenu li.active span {
    color: #FFF;
    background: #63a6db url('img/leftnav_hover.png') no-repeat;
}

.submenu li:before {
    content: "└";
    margin-left: 1em;
}

.submenu li:hover:before, .submenu li.active:before {
    color: #FFF;
}

/* 内容区域样式 */
.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;
    border-bottom: 1px solid #b2b2b2;
}

.channel .left {
    flex: 1;
}

.channel .right {
    flex: 1;
    color: #026199;
    font-size: 12px;
    line-height: 1.2em !important;
    text-align: right;
}

.channel dl {
    display: flex;
    justify-content: space-around;
    flex-direction: row;
    align-items: center;
}

.channel dt {
    flex: 0 228px;
    width: 228px;
    height: 46px;
    background: url('img/other_style.gif') no-repeat;
}

.channel dd {
    flex: 1;
    padding-left: 10px;
    font-size: 20px;
    line-height: 1.8em !important;
    color: #026199;
}

.channel dd a {
    color: #026199;
}

.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: 1.6rem;
}

#content h2 {
    font-size: 1.4rem;
    color: #004fa6;
}

#content h3 {
    font-size: 1.2rem;
    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 p.insertfileTag img{
   margin-left: 0 !important; 
}

.insertfileTag {
   margin-top: 0.5rem;
}

.insertfileTag a{
   font-size: 1rem !important;
}

.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.85rem;
}

.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%;
    height: 100px;
    background: linear-gradient(#fff 0%, #CACACA 100%);
    border-top: 2px solid #8D8D8D;
    font-size: 12px;
}

.bottom {
    display: flex;
    flex-direction: row;
    margin: 0 auto;
    width: 100%;
    max-width: 1000px;
    height: 100px;
    align-items: center;
    justify-content: space-evenly;
}

.bottom > .left {
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.bottom > .right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.desc-row {
    display: flex;
    flex: 1;
    line-height: 2em;
}

.desc-row span {
    padding: 0 8px;
}

.desc-row span, .desc-row span a {
    color: #2E2E2E;
}

.no-printTime {
    display: none;
}

/* 响应式设计 */
@media screen and (orientation: landscape) and (min-width: 480px) and (max-width: 900px) {
    #header {
        width: 100% !important;
        height: 110px !important;
        background: url(img/logo_wap.png) 10px 10px no-repeat, 
                   url(img/header_wap.png) center 45px no-repeat, 
                   -webkit-linear-gradient(90deg, #0078FF 0%, #004DEB 100%) !important;
        border-bottom: 1px solid #0466CB;
    }
    
    .channel {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    aside, .channel dt, .bottom > .left {
        display: none !important;
    }
   
    .channel dd {
        padding-left: 0 !important;
    }
 
    .bottom {
        max-width: 100% !important;
        flex-direction: column !important;
    }
    
    footer, .bottom {
        height: auto !important;
    }
    
    footer {
        background: none !important;
    }
    
    .bottom > .right {
        padding: 0.5em 0 !important;
    }
    
    .desc-row {
        line-height: 1.5em !important;
        flex-direction: row !important;
        align-items: center !important;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    main {
        padding: 0.5rem !important;
    }
    
    aside, .index_switchsize, .print-controls, 
    .share-container, .channel dt, .bottom > .left {
        display: none !important;
    }
    
    #header {
        width: 100% !important;
        height: 110px !important;
        background: url(img/logo_wap.png) 5px 10px no-repeat, 
                   url(img/header_wap.png) center 45px no-repeat, 
                   -webkit-linear-gradient(90deg, #0078FF 0%, #004DEB 100%) !important;
        border-bottom: 1px solid #0466CB;
    }
    
    .channel {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .channel dd {
        font-size: 1rem !important;
        padding: 0 !important;
    }
    
    .channel .right {
        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: 0.8rem !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 {
        background: none !important;
    }

    .bottom {
        max-width: 100% !important;
        flex-direction: column !important;
    }
    
    .bottom {
        height: auto !important;
    }
    
    .bottom > .right {
        padding: 0.5em 0 !important;
    }

    .desc-row {
        flex-direction: column !important;
        align-items: center !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;
}