/* datang 模板主样式（2026-10 精简版：仅保留模板实际使用的选择器，视觉表现与精简前一致） */

/* ===== 基础 Reset ===== */
html,body,h1,h2,h3,h4,h5,h6,div,dl,dt,dd,ul,ol,li,p,blockquote,pre,hr,figure,table,caption,th,td,form,fieldset,legend,input,button,textarea,menu {
    margin: 0;
    padding: 0
}

header,footer,section,article,aside,nav,hgroup,address,figure,figcaption,menu,details {
    display: block
}

table {
    border-collapse: collapse;
    border-spacing: 0
}

caption,th {
    text-align: left;
    font-weight: 400
}

html,body,fieldset,img,iframe,abbr {
    border: 0
}

i,cite,em,var,address,dfn {
    font-style: normal
}

[hidefocus],summary {
    outline: 0
}

li {
    list-style: none
}

h1,h2,h3,h4,h5,h6,small {
    font-size: 100%
}

sup,sub {
    font-size: 83%
}

pre,code,kbd,samp {
    font-family: inherit
}

q:before,q:after {
    content: none
}

textarea {
    overflow: auto;
    resize: none
}

label,summary {
    cursor: default
}

a,button {
    cursor: pointer
}

h1,h2,h3,h4,h5,h6,em,strong,b {
    font-weight: 700
}

body{
    font-family: Microsoft Yahei,PingFang SC,Hiragino Sans GB,STHeiti,Microsoft Sans Serif,sans-serif!important;
    font-size: 16px;
    line-height: 200%;
    margin: 0px;
    color: #0F0F0F;
    background-color: #E1E0C7;
}

*{
    margin: 0px;
    padding: 0px;
}

a{color:#2a2a2a;text-decoration: none;}
a:hover {text-decoration:underline;}
img {
    width: auto;
    height: auto;
    max-width: 100%
}
input{outline:0px;}

/* ===== 面包屑 ===== */
.breadcrumbs{
    width:1100px;
    height:auto;
    margin: 5px auto;
    overflow: hidden;
    font-size: 14px;
}
.breadcrumbs a{
    padding: 0px 5px;
}

/* ===== 头部导航 ===== */
.gs-hd {
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #5D6146;
    height: 45px;
    border-bottom: 1px solid #d7d5bc;
}

.gs-header {
    padding: 0 15px;
    margin: 0 auto;
    max-width: 1100px;
}
.gs-logo {
    float: left;
    display: inline-block;
    width: auto;
    height: 45px;
    padding: 0 40px;
    background: url(/template/datang/images/logo.png) 0 8px no-repeat;
    background-size: 32px 32px;
}
.gs-logo a {
    font-size: 26px;
    line-height: 45px;
    color:#F0EFE2;
}
.gs-logo a:hover {
    text-decoration: none;
}
.gs-nav {
    margin-bottom: 0;
    margin-right: 0;
    float: left;
}
.gs-nav ul {
    overflow: hidden;
}
.gs-nav li {
    line-height: 45px;
    float: left
}
.gs-nav li a {
    white-space: nowrap;
    color: #F0EFE2;
    display: inline-block;
    font-size: 16px;
    position: relative;
    width: 90px;
    text-align: center;
}
.gs-nav li a.on {
    margin-left: 1px;
    background-color: #757863;
    border-bottom: 3px solid #F0EFE2;
    height: 42px;
}
.gs-nav li a:hover {
    margin-left: 1px;
    text-decoration: none;
    background-color: #757863;
    border-bottom: 3px solid #F0EFE2;
    height: 42px;
}

.gs-search {
    float: right;
    margin-right: 0px;
    margin-top: 8px;
    line-height: normal;
}

.search_form {
    position: relative;
    margin: 0;
    display: inline-block;
}

.search_input {
    float: left;
    width: 256px;
    height: 20px;
    line-height: 19px;
    padding: 4px 7px;
    color: #985d3e;
    background-color:#FBFAF6;
    display: inline-block;
    vertical-align: middle;
    border: 0px solid #ccc;
    border-top: 1px solid rgba(0,0,0,.12);
    border-bottom: 1px solid rgba(0,0,0,.12);
    border-left: 1px solid rgba(0,0,0,.05);
    border-radius: 2px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
}
.search_input:focus {
    border-color: #d9dee6;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(197, 197, 197, 0.6);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(197, 197, 197, 0.6);
}
.search_btn {
    float: left;
    width: 50px;
    height: 30px;
    padding: 0 10px;
    margin-left: -1px;
    border-radius: 0 2px 2px 0;
    border: 1px solid #847110;
    background-color: #747110;
    cursor: pointer;
    display: inline-block;
    font-size: 15px;
    vertical-align: middle;
    color: #f3f7fc;
    line-height: 29px;
}
#sidr-right {
    display: none;
}

/* ===== 热门标签按钮（详情页下载/磁力按钮区） ===== */
.gs-hot-tag{
    margin: 10px 10px;
    height: auto;
}
.gs-hot-tag a {
    display: block;
    width: 90px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    background-color: #747110;
    color: #F0F0E1;
    float: left;
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
}

/* ===== 内容区块 ===== */
.gs-isgood{
    width: 1100px;
    height: auto;
    margin: 0 auto 10px auto;
    overflow: hidden;
    background-color: #F0EFE2;
    border-radius: 5px;
}
.gs-isgood-title {
    line-height: 26px;
    font-size: 20px;
    border-left: 4px solid #A2C241;
    text-indent: 10px;
    color: #0F0F0F;
    margin: 15px 10px 5px;
    overflow: hidden;
}

/* ===== 页脚 ===== */
footer{width:1100px; height:auto; margin:0 auto;font-size:12px; text-align:center; border-top: 1px solid #c8c7bc; padding:10px 0;}
footer p{line-height:26px;}
footer p,footer a{color:#999;}

/* ===== 响应式（中屏） ===== */
@media (max-width:1080px){
    body, html{width:100%;}
    .gs-isgood,.breadcrumbs{width:98%; height:auto; margin:10px auto; overflow:hidden;}
    .gs-hot-tag{margin:10px 5px; }
    .gs-hot-tag a{height:42px; line-height:42px; text-align:center;background-color: #747110;color: #F0F0E1; float:left;border-radius: 5px;margin:0px 3px 10px 3px;}
    footer{width:100%; height:auto; margin:0 auto;font-size:12px; text-align:center; border-top: 1px solid #c8c7bc; padding:10px 0;}
}


/* ===== 移动端菜单按钮与侧栏 ===== */
#simple-menu {
    display: none;
    width: 45px;
    height: 45px;
    font-size: 0;
    overflow: hidden;
    text-align: center;
}
@media screen and (max-width: 767px) {
    .gs-hd{
        height:45px;
    }
    .gs-header{
        width:100%;
        padding:0;
    }
    .gs-logo{
        margin: 2px 0 0;
        width: auto;
        background-size: 30px 30px;
        background-position-x: 8px;
        background-position-y: 5px;
        padding-left: 44px;
    }
    .gs-logo a{
        font-size: 23px;
    }
    .gs-nav,.gs-search{
        float: none;
        display: none;
    }

    #simple-menu {
        display: block;
        float: right;
        margin-right: 10px;
        cursor: pointer;
    }
    #simple-menu:before {
        display: inline-block;
        font: bold 45px/45px "Times New Roman";
        vertical-align: text-bottom;
        content: "\2261";
        color: #F0EFE2;
    }
    .sidr-open #simple-menu:before {
        display: inline-block;
        font: bold 45px/45px "Times New Roman", Arial;
        vertical-align: text-bottom;
        content: "\00D7";
        color: #F0EFE2;
    }
    .sidr {
        display: none;
        position: absolute;
        position: fixed;
        top: 0;
        height: 100%;
        z-index: 999999;
        width: 260px;
        overflow-x: none;
        overflow-y: auto;
        font-size: 16px;
        background: #F0EFE2;
        color: #333;
        -webkit-box-shadow: inset 0 0 5px 0px #E1E0C7;
        -moz-box-shadow: inset 0 0 5px 0px #E1E0C7;
        box-shadow: inset 0 0 5px 0px #e1e0c7;
    }
    .sidr.right {
        left: auto;
        right: -260px;
    }
    .sidr .sidr-inner {
        padding: 0 0 6px;
    }
    .sidr-inner {
        clear: both;
    }
    .sidr ul {
        display: block;
        margin: 20px 0 15px;
        padding: 0;
        border-top: 1px solid #e5e5e5;
        border-bottom: 1px solid #fff;
    }
    .sidr ul li {
        display: block;
        margin: 0;
        line-height: 48px;
        border-top: 1px solid #fff;
        border-bottom: 1px solid #e5e5e5;
    }
    .sidr ul li a, .sidr ul li > span {
        padding: 0 20px;
        display: block;
        text-decoration: none;
        color: #333;
        font-weight: bold;
    }

    #sidr-id-search_form {
        padding: 20px 15px 0;
        overflow: hidden;
    }
    .sidr-inner #sidr-id-keys {
        float: left;
        background: #fff;
        border: 1px solid #d6d0cd;
        border-top-left-radius: 2px;
        border-bottom-left-radius: 2px;
        border-right: none;
        color: #825d5b;
        font: italic 14px/24px "serif";
        transition: all 0.7s ease 0s;
        width: 182px;
        height: 30px;
        padding-left: 6px;
    }
    #sidr-id-search_form .sidr-class-search_btn {
        float: left;
        background: url(/template/datang/images/search.png) no-repeat;
        width: 32px;
        height: 32px;
        border-top-right-radius: 2px;
        border-bottom-right-radius: 2px;
        border: 1px solid #d6d0cd;
        border-left: none;
        cursor: pointer;
        text-indent: -9999px;
    }
    #sidr-id-search_form #sidr-id-keys:focus {
        font-style: normal;
        background: #fff;
        width:190px;
        outline: 0;
    }
}

/* ===== 列表/详情页内容 ===== */
.bt_ul{
    margin: 5px 20px 5px;
}

.bt_ul li{
    padding: 10px 0 10px 0;
    border-bottom: dotted 1px #c7cfcf;
    word-break: break-all;
    line-height: 25px;
}

.video-description {
    font-size: 14px;
    line-height: 180%;
}

/* 上一篇/下一篇 导航 */
.pagination-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 10px 20px 45px;
}

.pagination-nav .nav-item {
    flex: 1;
    min-width: 0;
}

.prev-next-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    box-sizing: border-box;
    padding: 14px 16px;
    background-color: #F5F4E8;
    border: 1px solid #c7cfcf;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    height: 100%;
    min-height: 72px;
    word-break: break-all;
}

.prev-next-link:hover {
    background-color: #EDECE0;
    border-color: #747110;
    box-shadow: 0 2px 8px rgba(116, 113, 16, 0.15);
    color: #747110;
}

.prev-next-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #F5F4E8;
}

.prev-next-link .nav-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #888;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.prev-next-link .nav-title {
    font-size: 0.95rem;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .pagination-nav {
        flex-direction: row;
        gap: 16px;
    }

    .pagination-nav .nav-item {
        flex: 0 0 calc(50% - 8px);
        width: calc(50% - 8px);
        min-width: 0;
    }

    .prev-next-link .nav-title {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 100%;
        max-width: 100%;
    }
}

/* ===== 合作图标（广告入口） ===== */
#icon-container{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;padding:5px 10px}
#icon-container a{display:block}
#icon-container a:hover{opacity:.7}
#icon-container img{display:block;width:100%;height:auto;border-radius:6px}
@media (max-width:767px){#icon-container{padding:3px}}
@media (min-width:768px){#icon-container{grid-template-columns:repeat(10,1fr)}}

.gs-isgood-title h2{float:left;}
.gs-isgood-title a:hover{
    color: #19537D;
    text-decoration: none;
}

