@media screen {
    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    a,div,img,li,span,ul {
        margin: 0;
        padding: 0;
        outline: 0;
        border: 0;
        background: 0 0;
        vertical-align: baseline;
    }

    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
        background-color: rgba(0,0,0,.1);
    }

    ::-webkit-scrollbar-track {
        border-radius: 10px;
        background-color: rgba(0,0,0,.01);
        -webkit-box-shadow: inset 0 0 6px transparent;
    }

    ::-webkit-scrollbar-track:hover {
        background-color: rgba(0,0,0,.2);
        -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.4);
    }

    ::-webkit-scrollbar-track:active {
        background-color: rgba(0,0,0,.2);
        -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.1);
    }

    ::-webkit-scrollbar-thumb {
        border-radius: 10px;
        background-color: rgba(0,0,0,.2);
        -webkit-box-shadow: inset 1px 1px 0 rgba(0,0,0,.1);
    }

    ::-webkit-scrollbar-thumb:hover {
        background-color: rgba(0,0,0,.4);
        -webkit-box-shadow: inset 1px 1px 0 rgba(0,0,0,.1);
    }

    ::-webkit-scrollbar-thumb:active {
        background: rgba(0,0,0,.4);
    }

    a {
        color: #8c8c8c;
    }

    a:hover {
        color: #ff6e79;
        text-decoration: none;
    }

    a:active,a:focus,a:visited {
        outline: 0;
        text-decoration: none;
    }

    .btn:active,.btn:focus {
        outline: 0;
    }

    ul {
        list-style: none;
    }

    a {
        text-decoration: none;
    }

    img {
        border: 0;
    }

    img {
        max-width: 100%;
        max-height: 100%;
        vertical-align: middle;
    }

    .clearfix:after,.clearfix:before,.container:after,.container:before {
        display: table;
        content: "";
        line-height: 0;
    }

    .clearfix:after,.container:after {
        clear: both;
    }

    :link,:visited {
        text-decoration: none;
    }

    :focus {
        outline: 0;
    }

    .container {
        position: relative;
        margin: 0 auto;
        max-width: 1200px;
    }

    .text-center {
        text-align: center;
    }

    .btn {
        padding: 8px 25px;
        border: none;
        border-radius: 2px;
        background: #1d1d1d;
        -webkit-box-shadow: 0 0 30px 0 rgba(0,0,0,.1);
        -moz-box-shadow: 0 0 30px 0 rgba(0,0,0,.1);
        color: #fff;
        text-align: center;
        text-decoration: none;
        text-transform: uppercase;
        cursor: pointer;
        transition: all .3s ease 0s;
    }

    .btn:hover {
        opacity: .6;
    }

    @media (max-width: 1535px) {
        .container {
            max-width:1200px!important;
        }
    }

    @media (max-width: 925px) {
        .container {
            max-width:737.5px!important;
        }
    }

    @media (max-width: 768px) {
        .container {
            padding:0 15px;
            max-width: 620px!important;
        }
    }

    @media (max-width: 620px) {
        .container {
            max-width:515px!important;
        }
    }

    .clearfix {
        zoom:1;}

    .clearfix:after {
        content: ".";
        display: block;
        clear: both;
        width: 0px;
        height: 0px;
        visibility: hidden;
        font-size: 0;
    }
}

/*! CSS Used from: https://www.neapi.com/ys/css/style1.css?v=3.24 */
div,span,a,img,ul,li,section {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

section,img {
    display: block;
}

div {
    font-family: "Segoe UI", "Lucida Grande", "Helvetica", "Arial", "Microsoft YaHei", "FreeSans", "Arimo", "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3", sans-serif;
}

ul,li {
    list-style: none;
}

a {
    text-decoration: none;
}

a:link,a:visited {
    color: #222;
}

a:active {
    color: #222;
}

a:hover {
    color: #222;
    text-decoration: none;
}

.template .template-block-04 .block01 {
    border-bottom: 1px solid #aaa;
    font-size: 35px;
    line-height: 80px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #c53d3d;
}

@media (max-width: 976px) {
    .template-content.cases-template .container {
        width:100%;
    }
}

*,*::after,*::before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

ul,li {
    margin: 0;
    padding: 0;
}

/* li.poker {
    float: left;
    margin-right: 10%;
    width: 35%;
    height: 320px;
    position: relative;
    box-sizing: border-box;
} */

/* 使用 flexbox 让 PC 端每行 2 个，自动换行 */
.portfoliolist ul {
    display: flex;
    flex-wrap: wrap;  /* 自动换行 */
    gap: 20px; /* 控制间距 */
    justify-content: center;
    list-style: none;
    padding: 0;
}

/* 每个模板项 */
.portfoliolist .poker {
    position: relative;
    text-align: center;
    width: calc(50% - 10px); /* PC 端每行显示 2 个 */
    max-width: 739px; /* 保持原始比例 */
}

/* 图片样式 */
.portfoliolist .poker .pic img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 739px; /* 限制最大宽度 */
    max-height: 388px;
    margin: 0 auto;
}

/* 介绍文字（始终显示，保证对齐） */
.portfoliolist .poker div {
    font-size: 16px;
    color: #333;
    font-weight: bold;
    text-align: center;
    display: block;
    margin-top: 10px;
    width: 100%;
}

.portfoliolist .poker div a {
    color: #007bff;
    text-decoration: none;
}

.portfoliolist .poker div a:hover {
    text-decoration: underline;
}


ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: #333;
}

a:hover,a:active,a:focus {
    color: #000;
    text-decoration: none;
}

a:active {
    color: #aaa;
}

img {
    vertical-align: middle;
    border: 0;
    -ms-interpolation-mode: bicubic;
}

img {
    border: 0;
}

a:hover {
    text-decoration: none;
}

ul,li {
    margin: 0;
    padding: 0;
}

ul,li {
    list-style-type: none;
}

img {
    border: none;
}

a {
    outline: none;
    list-style: none;
    text-decoration: none;
}

:focus {
    outline: 0;
}

.template-content {
    width: 100%;
    padding: 0px 0;
}

.template .container {
    position: relative;
    width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 0;
    padding-bottom: 1%;
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -o-transition: all 1s ease;
    transition: all 1s ease;
}

.portfoliolist .portfolio {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -o-box-sizing: border-box;
    width: 31.2%;
    margin: 1%;
    padding-bottom: 4.4%;
    /* display: none; */
    float: left;
    position: relative;
    margin-bottom: 45px!important;
}

.portfoliolist .portfolio:after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    width: 100.1%;
    background-image: url(/external/demo.neapi.com/ys/images/abg-d.png);
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 106.3%;
    height: 50px;
}

.portfolio .bg-img {
    height: 100%;
    width: 100%;
    position: relative;
    display: block;
    background-size: 100%;
}

@media only screen and (min-width: 768px) and (max-width:959px) {
    .container {
        width:768px;
    }
}

@media only screen and (min-width: 480px) and (max-width:767px) {
    .container {
        width:70%;
    }
}

.container:after {
    content: "\0020";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.clearfix:before,.clearfix:after {
    content: '\0020';
    display: block;
    overflow: hidden;
    visibility: hidden;
    width: 0;
    height: 0;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    zoom:1;}

.cd-section {
    padding: 0;
    text-align: center;
}

@media only screen and (min-width: 768px) {
    .cd-section {
        padding:0;
    }
}

@media only screen and (min-width: 1170px) {
    .cd-section {
        padding:0;
    }
}

.cd-modal-action {
    position: relative;
    padding: 24.6% 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background-color: transparent;
    -webkit-transition: background-color .2s 0s;
    -moz-transition: background-color .2s 0s;
    transition: background-color .2s 0s;
}

@media only screen and (max-width: 1150px) {
    .container {
        position:relative;
        width: 100%;
    }
}

@media only screen and (max-width: 960px) {
    .cd-modal-action {
        padding:23% 0;
    }
}

@media only screen and (max-width: 768px) {
    .container {
        width:100%;
    }

    .portfoliolist .portfolio {
        width: 48%;
        margin: 1%;
        padding-bottom: 6.9%;
    }

    .portfoliolist .portfolio:after {
        background-size: 106.9%;
    }

    .cd-modal-action .btn {
        height: 3.5em!important;
        line-height: 3.5em!important;
    }
}

@media only screen and (max-width: 590px) {
    .portfoliolist .portfolio {
        width:48%;
        margin: 1%;
        padding-bottom: 8.8%;
    }

    .cd-modal-action .btn {
        height: 3em!important;
        line-height: 3em!important;
    }
}

@media only screen and (max-width: 490px) {
    .portfoliolist .portfolio {
        width:48%;
        margin: 1%;
        padding-bottom: 11.2%;
    }

    .cd-modal-action .btn {
        height: 2.6em!important;
        line-height: 2.6em!important;
    }
}

@media only screen and (max-width: 452px) {
    .portfoliolist .portfolio {
        width:98%;
        margin: 1%;
        padding-bottom: 12.7%!important;
    }

    .cd-modal-action {
        padding: 25.3% 0;
    }

    .portfoliolist .portfolio:after {
        background-size: 106.9%;
    }
}

@media only screen and (max-width: 414px) {
    .cd-modal-action {
        padding:24.8% 0!important;
    }

    .portfoliolist .portfolio {
        padding-bottom: 13.2%!important;
    }

    .portfoliolist .portfolio:after {
        width: 100.1%;
    }

    .cd-modal-action .btn {
        height: 2.7em!important;
        line-height: 2.7em!important;
    }

     li.poker {
        float: left;
        margin-right: 10%;
        width: 100%;
        height: 300px;
        position: relative;
        box-sizing: border-box;
    }

    .style_show ul li {
        float: left;
        margin-right: 1%;
        width: 30%;
        height: 320px;
        position: relative;
        box-sizing: border-box;
    }

    .style_show .telPhone .mask {
        width: 100px;
        height: 100px;
        margin-top: -108px;
        left: 93%;
    }
}

.cd-modal-action .btn {
    display: inline-block;
    height: 40px;
    background-color: rgba(35,35,35,.96);
}

.cd-modal-action .btn {
    background-color: #cdb993;
}

.cd-modal-action .btn {
    width: 4em;
    border-radius: 0;
    color: #fff;
    padding: 0!important;
    line-height: 40px;
    white-space: nowrap;
    font-weight: 500;
    opacity: 0;
    border-radius: 4px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-transition: opacity .3s 0s,color .2s .3s,width .3s 0s;
    -moz-transition: opacity .3s 0s,color .2s .3s,width .3s 0s;
    transition: opacity .3s 0s,color .2s .3s,width .3s 0s;
}

.cd-modal-action .btn-f {
    background-color: #009cff;
    border: 1px solid #009cff;
}

.cd-modal-action .btn-s {
    background-color: #ff592d;
    border: 1px solid #ff592d;
}

.cd-section {
    background-position: top center;
    background-size: 100%;
    border-color: #dcdcdc;
    -webkit-transition: all .3s 0s;
    -moz-transition: all .3s 0s;
    transition: .3s 0s;
}

.portfolio .bg-diy {
    position: absolute;
    z-index: -1;
    top: 0;
    background-color: #000;
    padding: 15px;
    width: 100%;
    height: 81.6%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.portfolio .bg-diy:before {
    content: "";
    width: 100%;
    height: 100%;
    background-image: url(/external/demo.neapi.com/ys/images/abg-t.png);
    background-repeat: no-repeat;
    background-position: top right;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
}

.portfolio .bg-img {
    -webkit-transition: transform .3s 0s;
    -moz-transition: transform .3s 0s;
    transition: transform .3s 0s;
}

.portfoliolist .portfolio:hover .bg-img {
    -webkit-transform: scale(1.08,1.14);
    -moz-transform: scale(1.08,1.14);
    transform: scale(1.08,1.14);
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.portfolio:hover .cd-section>.cd-modal-action {
    background-color: rgba(0,0,0,.8);
}

.portfolio:hover .cd-section>.cd-modal-action>.btn {
    opacity: 1;
    width: 31%;
}


.portfoliolist {
    overflow: hidden;
}

/* 基础样式清理 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.style_show-wap {
    width: 100%;
    padding: 20px;
}

/* 使用 flexbox 让模板从左到右排列，自动换行 */
.style_show-wap ul {
    display: flex;
    flex-wrap: wrap;  /* 自动换行，防止空位 */
    gap: 20px; /* 控制模板间距 */
    justify-content: flex-start; /* 确保从左到右排列 */
    list-style: none;
    padding: 0;
}

/* 每个模板项 */
.style_show-wap .telPhone {
    position: relative;
    text-align: center;
    width: 100%;
    max-width: 250px; /* 限制模板最大宽度 */
    margin: 0; /* 确保不会有多余的间距 */
}

/* 确保图片大小不会超出 */
.style_show-wap .telPhone .pic img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 250px; /* 限制最大宽度 */
    margin: 0 auto;
}
.portfoliolist .portfolio .tem-title-b:last-child {
    font-size: 16px;
    color: #f70808;
    font-weight: bold;
    width: 100%;
    position: absolute;
    text-align: center;
    bottom: -15%;
}
/* 模板名称（始终显示，保证对齐） */
.style_show-wap .telPhone div:last-child {
    font-size: 16px;
    color: #f70808;
    font-weight: bold;
    text-align: center;
    display: block;
    margin-top: 5px;
    width: 100%;
}

/* 遮罩层（默认隐藏） */
.style_show-wap .mask {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 85%;
    max-width: 200px; /* 保持与图片一致 */
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-in-out;
}

/* 悬停或触摸时显示遮罩层 */
.style_show-wap .telPhone:hover .mask,
.style_show-wap .telPhone:active .mask {
    opacity: 1;
}

/* 按钮样式 */
.mask .btn {
    padding: 10px 20px;
    background: #ff6600;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    border-radius: 5px;
    transition: background 0.3s;
}

.mask .btn:hover {
    background: #e55b00;
}

/* 适配移动端：单列显示，避免模板太小 */
@media (max-width: 768px) {
    .style_show-wap ul {
        flex-direction: column; /* 让模板在手机上单列排列 */
        align-items: center;
    }

    .style_show-wap .telPhone {
        max-width: 300px; /* 适当放大 */
        width: 100%;
    }

    .style_show-wap .telPhone .pic img {
        max-width: 100%;
    }

    /* 触摸时始终显示遮罩层 */
    .style_show-wap .telPhone:active .mask {
        opacity: 1;
    }
    .portfoliolist ul {
        flex-direction: column;
        align-items: center;
    }

    .portfoliolist .poker {
        width: 100%; /* 移动端每行一个 */
        max-width: 100%; /* 适配小屏幕 */
    }

    .portfoliolist .poker .pic img {
        max-width: 100%;
        height: auto;
    }    
}
