/*
Theme Name: ytcranes
Author: cao xiao hui
Version: 1.0
*/
body{
    font-family: "Roboto", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    background-color: white;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
:root{
    --primary:#d31818;
    --yellow:#d8a72d;
}

body{
    font-family:Arial,Helvetica,sans-serif;
    color:#333;
}

a{
    outline: none;
    color: #333;
    text-decoration:none;
}

.section-title{
    text-align:center;
    margin-bottom:50px;
}

.section-title h2{
    font-size:38px;
    font-weight:700;
}

.section-title .line{
    width:70px;
    height:3px;
    background:var(--yellow);
    margin:15px auto;
}

/* ================= HEADER ================= */

.topbar{
    background:#fff;
    height:80px;
}
.email{
    font-size:14px;
}
.navbar{
    background-color: #F9F9F9;
    padding:0;
}

#menu .navbar-nav .nav-item a {
    text-decoration: none;
    color: #333;
    padding: 0px 37px;
    line-height: 52px;
    display: block;
    white-space: nowrap;
}
#menu .navbar-nav .nav-item:hover{
    background: #F0EEEF;
}
#menu .navbar-nav .nav-item .dropdown-menu {
    background: #F9F9F9;
    border: none;
    border-radius: 0;
    padding:0;
}
#menu .navbar-nav .nav-item .dropdown-menu li a:hover {
    background: #F0EEEF;
}
@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        visibility: visible;
        opacity: 1;
        margin-top: 0;
        transition: opacity 0.2s ease, visibility 0.2s;
    }
    .navbar .dropdown .dropdown-menu {
        display: none;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.2s ease, visibility 0.2s;
        margin-top: 0.25rem;
        border-radius: 16px;
        border: none;
        box-shadow: 0 12px 28px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.02);
        min-width: 220px;
    }
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        visibility: visible;
        opacity: 1;
    }
    .navbar .dropdown-menu {
        left: 0;
        right: auto;
    }
}
/* ================= BANNER ================= */

.carousel-caption{
    position: absolute;
    right: 15%;
    top: 30%;
    left: 15%;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    color: #fff;
    text-align: left;
}

.hero-btns .btn{
    padding:15px 35px;
    border-radius:0;
    margin-right:15px;
}

.btn-red{
    background:var(--primary);
    color:#fff;
}

/* ================= PRODUCT ICONS ================= */

.product-icons{
    background:#f3f3f3;
}

.product-item{
    text-align:center;
}
.product-item a:hover{
    color:#d8a72d;
}
.product-item a:hover .icon svg{
    fill: #d8a72d;
}
.product-item i{
    font-size:48px;
    color:#888;
    margin-bottom:15px;
}

.product-item h6{
    font-size:15px;
}
.icon svg{
    fill: #8a8a8a;
}
/* ================= WHY ================= */

.why{
    background: url(assets/images/why.jpg) no-repeat center top;
}

.why-card{
    text-align:center;
    padding:1rem;
    border: 1px solid #fbfcfc;
}
.why-card:hover{
    background: #fff;
    border: 1px solid #e3e3e3;
    border-bottom: none;
}
.why-icon svg{
    fill: #8a8a8a;
}
.why-card:hover .why-icon{
    background: #d8a72d;
}
.why-card:hover .why-icon svg{
    fill: #ffffff;
    -webkit-transform: scale(1);
    transform: scale(1);
}
.why-icon{
    width:100px;
    height:100px;
    border:1px solid #ddd;
    border-radius:50%;
    margin:auto;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:36px;
    color:#666;
}

.why-card h4{
    margin-top:25px;
    margin-bottom:20px;
}

/* ================= SHOWCASE ================= */

.showcase{
    background:url("assets/images/shengchan.webp")
    center/cover;
    position:relative;
}
.bganli{
    background:url("assets/images/anli.webp")
    center/cover;
}
.showcase::before{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.65);
}

.showcase .container{
    position:relative;
    z-index:2;
}

.showcase h2{
    color:#fff;
}

.showcase h2 span{
    color:#ff2222;
}

.product-card{
    background:#fff;
}

.product-card img{
    width:100%;
    object-fit:cover;
}

.product-card .card-body{
    padding:20px;
}

.btn-detail{
    background:#cf1111;
    color:#fff;
    border-radius:20px;
    padding:8px 28px;
}

/* ================= FAQ ================= */

.faq{
    background:#08142c;
    padding:100px 0;
}

.faq-box{
    background:#16233f;
    padding:60px;
}

.faq-title{
    color:#fff;
}

.faq-title h2{
    font-size:48px;
    font-weight:700;
}

.faq-title p{
    color:#ccc;
}

.accordion-item{
    background:#1c2947;
    border:none;
}

.accordion-button{
    background:#1c2947;
    color:#fff;
}

.accordion-button:not(.collapsed){
    background:#25355c;
    color:#F7C202;
}
.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23F7C202'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(-180deg);
}
.accordion-button:focus {
    box-shadow: none;
    border-bottom: var(--bs-accordion-border-width) solid var(--bs-accordion-border-color);
}
.accordion-body{
    color:#ccc;
}

/* ================= FOOTER ================= */

.footer{
    background:#f5f5f5;
    padding-top:80px;
}
.footer ul{
    list-style:none;
    padding:0;
}

.footer li{
    margin-bottom:10px;
}

.footer-bottom{
    background:#444;
    color:#fff;
    padding:15px;
    margin-top:60px;
    font-size:14px;
}

/* ================= MOBILE ================= */

@media(max-width:768px){
    .faq-box{
        padding:30px;
    }

    .faq-title{
        margin-bottom:40px;
    }

}
.productcate-title{
    position: relative;
}
.productcate-title:before{
    content: "";
    display: block;
    position: absolute;
    width: 60px;
    height: 5px;
    background-color: #F7C200;
    top: 100%;
}
.product-cate-card{
    display: inline-block;
    vertical-align: top;
    background: #fff;
    margin-bottom: 21px;
    padding: 20px;
    box-sizing: border-box;
    border: solid 1px rgba(0, 0, 0, 0.1);
    position: relative;
    box-shadow: 0px 5px 20px -12px rgba(0, 0, 0, 0.83);
}
.product-cate-card-img a img{
    bottom: 0;
    width: 100%;
    height: 100%;
    display: inline-block;
    object-fit: contain;
}
.product-cate-card-title{
    text-align: center;
    position: relative;
}
.product-cate-card-title:before{
    content: "";
    position: absolute;
    display: block;
    height: 1px;
    width: 80%;
    top: -20px;
    background: rgba(247, 195, 0, 0.38);
    left: 50%;
    transform: translateX(-50%);
}
.product-cate-card-title a:hover {
    color: #F7C200;
}
.product-cate-card-more a .icon svg{
    fill: #F7C200;
}
.product-cate-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: rgba(247, 195, 0, 1);
    transition: width 0.3s ease, left 0.3s ease;
}
.product-cate-card:hover::before {
    width: 100%;
    left: 0;
}
.crane-form{
    background:#f5f5f5;
    padding:40px;
    border:1px solid #ddd;
}

.form-title{
    font-size:28px;
    font-weight:700;
    margin-bottom:40px;
    position:relative;
}

.form-title:after{
    content:'';
    width:50px;
    height:4px;
    background:#f0b400;
    display:block;
    margin-top:12px;
}

.step-title{
    color:#f0b400;
    font-size:28px;
    margin-bottom:25px;
}

.form-row-custom{
    display:flex;
    align-items:center;
    margin-bottom:18px;
}

.label-col{
    width:30%;
    font-weight:600;
    font-size:15px;
    flex-shrink:0;
}

.input-col{
    width:50%;
}

.unit-col{
    width:50px;
    padding-left:10px;
    color:#555;
}

.type-field{
    display:flex;
    gap:40px;
}

.type-field .wpcf7-list-item{
    margin:0;
}

.type-field label{
    display:flex;
    align-items:center;
    gap:8px;
    white-space:nowrap;
}
.wpcf7-checkbox input[type="radio"]{
    width:24px;
    height:24px;
}
.wpcf7-checkbox input[type="checkbox"]{
    width:24px;
    height:24px;
}

.form-control{
    /*height:36px;*/
}
.wpcf7-list-item{
    display:block;
    margin-bottom:12px;
    margin-left:0;
}

.wpcf7-list-item label{
    display:flex;
    align-items:center;
    gap:10px;
}

.wpcf7-checkbox input[type=checkbox]{
    width:22px;
    height:22px;
}

.questionnaire-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    min-height:110px;
    border:1px solid #bbb;
    background:#fff;
    color:#333;
    text-decoration:none;
    padding:20px;
    transition:.3s;
}

.questionnaire-btn:hover{
    background:#11713a;
    color:#fff;
}

.survey-title{
    text-align:center;
    margin:40px 0 20px;
    font-weight:600;
}

.wpcf7-submit{
    background:#f0b400;
    border:none;
    color:#000;
    font-weight:600;
    padding:12px 0;
}

.wpcf7-submit:hover{
    opacity:.9;
}
@media(max-width:768px) {
    .form-row-custom .type-field{
        display: block;
    }
}
.card-img a img{
    width: 100%;
    height: 100%;
    display: inline-block;
    object-fit: contain;
}
/* 案例 */
.case-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
/* 案例图片样式 */
.case-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
/* 案例遮罩层 - 从下向上动画 */
.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.6), transparent);
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

/* 悬停时遮罩层滑入 */
.case-card:hover .case-overlay {
    transform: translateY(0);
}

/* 案例标题样式 */
.case-overlay h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

/* 案例描述文字样式 */
.case-overlay p {
    font-size: 0.85rem;
    margin-bottom: 0;
    opacity: 0.9;
}
/* 响应式调整高度 */
@media (max-width: 768px) {
    .case-card img {
        height: 220px;
    }
    .case-overlay h3 {
        font-size: 1rem;
    }
    .case-overlay p {
        font-size: 0.7rem;
    }
}
.faq-warp{
    box-sizing: border-box;
    border: solid 2px #f7c200;
    background-color: #f9f9f9;
}
.question-section{
    background:#4b4b4b;
}

.question-section h2{
    color:#fff;
    margin-bottom:10px;
}

.question-section p{
    color:#d0d0d0;
    margin:0;
}

.question-icon{
    color:#fff;
    margin-right:25px;
}

/* CF7 */
.cf7-custom-form .form-control{
    height:52px;
    border:2px solid #d8d8d8;
    border-radius:4px;
    padding:0 20px;
    font-size:18px;
}

.cf7-custom-form .wpcf7-form-control-wrap{
    display:block;
}

.cf7-custom-form .btn-submit{
    width:100%;
    border:none;
    border-radius:4px;
    background:#f6c100;
    color:#000;
    font-weight:600;
    transition:.3s;
}

.cf7-custom-form .btn-submit:hover{
    background:#e3b100;
}

/* 文件上传 */
.cf7-custom-form input[type=file]{
    width:100%;
    background:#fff;
    padding:10px;
    border-radius:4px;
    border:1px solid #ddd;
}

/* CF7提示信息 */
.wpcf7-response-output{
    margin-top:20px !important;
    color:#fff;
}
.download li{list-style: none;}
.download li .icon svg{fill: #e3b100;}
.service-grid {
    width: 100%;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    padding: 1rem;
}

.service-grid .section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a2a3a;
    text-align: center;
    margin-bottom: 36px;
    letter-spacing: -0.3px;
}
.service-grid .section-title span {
    color: #b45b2a;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 16px 22px 16px;
    border-radius: 18px;
    background: #fafcfe;
    border: 1.5px solid #edf2f7;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
    cursor: default;
    height: 100%;
    min-height: 160px;
    position: relative;
}

.service-item:hover {
    border-color: #ffcd39;
    box-shadow: 0 8px 24px rgba(180, 91, 42, 0.10);
    transform: translateY(-4px);
}

.service-item .icon-wrapper {
    font-size: 48px;
    color: #ffcd39;
    transition: transform 0.25s, color 0.25s;
    line-height: 1;
}

.service-item:hover .icon-wrapper {
    transform: scale(1.10);
    color: #ffcd39;
}
.service-item .item-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a2a3a;
    text-align: center;
    line-height: 1.4;
    margin-top: 14px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
.service-item:hover .item-title {
    opacity: 1;
    transform: translateY(0);
}
.icon-wrapper svg {
    fill: #ffcd39;
}
.types-port {
    background: #f5f5f5;
}
.types-port .types-port-card{
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(180, 91, 42, 0.10);
    padding:1rem;
}
.types-port .row:nth-child(even) {
    flex-direction: row-reverse;
}
.lebedki {
    max-width: 100%;
    background: #ffffff;
    border-radius: 20px;
    padding:20px 10px 20px 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s, transform 0.25s;
    border: 1px solid #f0ebe6;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.lebedki:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.10);
    border-color: #ffcd39;
}

.lebedki::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.lebedki .card-header {
  text-align: center;
}
.lebedki .model-badge {
    font-weight: 800;
    color: #1a2a3a;
    letter-spacing: -0.5px;
}

.lebedki .model-badge small {
    font-size: 14px;
    font-weight: 400;
    color: #8a7a6a;
    margin-left: 8px;
}

.lebedki .drive-icon {
    font-size: 28px;
    color: #ffcd39;
    background: #f5f0eb;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.lebedki .drive-icon.diesel {
    color: #5a4a3a;
    background: #e8e0d8;
}

.lebedki .param-row {
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid #f0ebe6;
}

.lebedki .param-row:last-of-type {
    border-bottom: none;
}

.lebedki .param-label {
    font-size: 13px;
    font-weight: 600;
    color: #8a7a6a;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    min-width: 78px;
    flex-shrink: 0;
}

.lebedki .param-value {
    font-size: 15px;
    font-weight: 500;
    color: #1a2a3a;
    flex: 1;
}

.lebedki .param-value .highlight {
    color: #d8a72d;
    font-weight: 700;
}

.lebedki .description {
    padding-top: 16px;
    font-size: 14px;
    color: #4a5a6a;
    line-height: 1.7;
}

.lebedki .description i {
    color: #d8a72d;
    margin-right: 8px;
}

.install-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 20px 20px 20px;
    border: 1px solid #edf0f2;
    transition: box-shadow 0.25s, transform 0.2s, border-color 0.25s;
    height: 100%;
    position: relative;
}

.install-item:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    border-color: #d8a72d;
}

.install-item .icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f5efe9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    margin-bottom: 14px;
    transition: background 0.25s, color 0.25s;
}

.install-item:hover .icon-wrap {
    background: #d8a72d;
    color: #ffffff;
}
.install-item .icon-wrap svg{
    fill: #232323;
}
.install-item .item-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a2a3a;
    margin-bottom: 4px;
}
#btn-back-to-top {
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
}
#btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.btn-warning .icon svg{ fill: #232323}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}
.article-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
    height: 100%;
}
.article-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
}

.article-card .card-img-wrap {
    position: relative;
    height: 100%;
    background: #e9ecef;
    overflow: hidden;
}
.article-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-card .card-img-wrap {
    border-radius: 0 0 0 0;
}

.article-card .card-img-wrap img {
    border-radius: 0; /* 默认无 */
    clip-path: inset(0 round 0 0 0 0);
}

.article-card .card-img-wrap {
    border-radius: 20px 0 0 20px;
    overflow: hidden;
}

.article-card .card-body {
    padding: 1.5rem 1.5rem 1.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}
.article-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    color: #0d6efd;
    text-decoration: none;
    transition: gap 0.2s, color 0.2s;
}
.article-card .read-more:hover {
    color: #0a58ca;
    gap: 8px;
}
.sidebar-search{
    background: #f5f5f5;
    padding: 5%;
}
.sidebar-wiget{
    background: #f5f5f5;
    padding: 5%;
}
.loop-item-wiget{
    color: #000;
    display: grid;
    gap: 1rem;
    grid-template-columns: 35% 1fr;
    margin-top: 1rem;
    transition: all .3s linear;
}
.item-wiget-img img{
    aspect-ratio: 3 / 2;
    border-radius: 5px;
    display: block;
    -o-object-fit: cover;
    object-fit: cover;
    height: auto;
    width: 100%;
}
.item-wiget-title{
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    font-family: Roboto;
    overflow: hidden;
    text-overflow: ellipsis;
}
.single-sidebar {
    position: sticky;
    top: calc(9rem + 3rem);
}
#button-addon2{
    border: var(--bs-border-width) solid var(--bs-border-color);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
#button-addon2:hover{
    background: #ffca2c;
}
#button-addon2:hover .icon svg{
    fill:#fff;
}
.modal-header{
    background: #f7c300;
    color: #fff;
    text-align: center;
}
.hover-card:hover .card-img-top {
    opacity: 0.9;
}
.hover-card:hover .card-title{
    color:#f7c300;
}