html {
    width: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    max-width: 100vw;
    position: relative;
    overflow-x: hidden;
}

/* 确保所有容器不超出视口 */
* {
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 980px) and (max-width: 1600px) {

    /* 主容器自适应宽度 */
    .ww {
        width: 95% !important;
        max-width: 1360px !important;
        padding-left: 20px;
        padding-right: 20px;
    }

    /* 导航栏自适应 */
    .header .hbox {
        width: 95% !important;
        max-width: 1360px !important;
    }

    .header .hlogo .hlbox img {
        max-height: 30px !important;
    }

    #searchword {
        max-width: 190px !important;
    }

    .hsearch .layui-form {
        margin-left: 20px !important;
    }


    .commenu ul li ul,
    .hsearch ul li ul {
        max-width: 900px;
    }
}

.video-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-modal-content {
    position: relative;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    width: 95%;
    height: 95%;
    max-width: 1200px;
    max-height: 800px;
}

.close-video {
    position: absolute;
    top: -10px;
    right: -10px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background-color: #ff0000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.close-video:hover {
    background-color: #cc0000;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: none;
    border-radius: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .video-modal-content {
        width: 98%;
        height: 90%;
        padding: 0;
        margin: 0;
    }

    .video-container iframe {
        min-height: 300px;
        border-radius: 4px;
    }
}

@media (max-width: 480px) {
    .video-modal-content {
        width: 100%;
        height: 85%;
    }

    .video-container iframe {
        min-height: 250px;
    }
}

.whatsapp-hover {
    position: relative;
    display: inline-block;
}

.whatsapp-hover .hover-image {
    position: absolute !important;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 5px;
    display: block;
}

.whatsapp-hover:hover .hover-image {
    opacity: 1 !important;
    visibility: visible !important;
}

.whatsapp-hover .hover-image::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid white;
}

.wechat-hover {
    text-decoration: none;
    transition: text-decoration 0.3s ease;
}

.wechat-hover:hover {
    text-decoration: underline;
}

.layui-laypage a,
.layui-laypage span {
    font-size: 16px;
}

/* News Blog List Page Styles */
.news-banner {
    background: url('https://static.bestware-stainless.com/biPages/images/news-banner-bg.jpg') no-repeat center center;
    background-size: cover;
    background-color: #001529; /* Fallback */
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease-out 0.2s;
}

.news-banner.animate {
    transform: translateY(0);
    opacity: 1;
}

.news-banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: normal;
}

.news-banner p {
    font-size: 18px;
    max-width: 800px;
    line-height: 1.5;
    opacity: 0.9;
}

.bread {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s ease-out 0.4s;
}

.bread.animate {
    transform: translateY(0);
    opacity: 1;
}

.bread a { color: #666; }
.bread span { color: #999; }

.news-layout {
    display: flex;
    padding: 60px 0;
    gap: 40px;
}

.news-sidebar {
    width: 280px;
    flex-shrink: 0;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.6s ease-out 0.6s;
}

.news-sidebar.animate {
    transform: translateY(0);
    opacity: 1;
}

.news-content {
    flex: 1;
    min-width: 0; /* Prevent flex overflow */
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.6s ease-out 0.8s;
}

.news-content.animate {
    transform: translateY(0);
    opacity: 1;
}

/* Sidebar Styles */
.sidebar-menu {
    margin-bottom: 40px;
}

.sidebar-menu h3 {
    font-size: 18px;
    color: #1767b2;
    margin-bottom: 20px;
    font-weight: bold;
    border-left: 4px solid #1767b2;
    padding-left: 10px;
    line-height: 1;
}

.sidebar-menu ul li {
    margin-bottom: 0;
    border-bottom: 1px solid #f5f5f5;
}

.sidebar-menu ul li a {
    display: flex;
    justify-content: space-between;
    padding: 15px 10px;
    color: #333;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-menu ul li a:hover, .sidebar-menu ul li a.on {
    color: #1767b2;
    background: #f9f9f9;
    border-left-color: #1767b2;
}

.sidebar-menu ul li a i {
    font-size: 12px;
}

.rec-news h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.rec-news ul li {
    margin-bottom: 15px;
    padding-left: 15px;
    position: relative;
}

.rec-news ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: #ccc;
    border-radius: 50%;
}

.rec-news ul li a {
    color: #666;
    line-height: 1.4;
    display: block;
    font-size: 14px;
}

.rec-news ul li a:hover {
    color: #1767b2;
}

.rec-news .date {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* News List Styles */
.news-list-item {
    display: flex;
    margin-bottom: 30px;
    background: #fff;
    padding: 20px;
    transition: all 0.3s;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.6s ease-out;
}

.news-list-item.fade-in-up {
    transform: translateY(0);
    opacity: 1;
}

.news-list-item:nth-child(1) { transition-delay: 0.1s; }
.news-list-item:nth-child(2) { transition-delay: 0.2s; }
.news-list-item:nth-child(3) { transition-delay: 0.3s; }
.news-list-item:nth-child(4) { transition-delay: 0.4s; }
.news-list-item:nth-child(5) { transition-delay: 0.5s; }
.news-list-item:nth-child(6) { transition-delay: 0.6s; }
.news-list-item:nth-child(7) { transition-delay: 0.7s; }
.news-list-item:nth-child(8) { transition-delay: 0.8s; }
.news-list-item:nth-child(9) { transition-delay: 0.9s; }
.news-list-item:nth-child(10) { transition-delay: 1.0s; }
.news-list-item:nth-child(11) { transition-delay: 1.1s; }
.news-list-item:nth-child(12) { transition-delay: 1.2s; }

.news-list-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.news-list-item .img-box {
    width: 280px;
    height: 180px;
    flex-shrink: 0;
    margin-right: 25px;
    overflow: hidden;
}

.news-list-item .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-list-item:hover .img-box img {
    transform: scale(1.05);
}

.news-list-item .txt-box {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-list-item .title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-list-item .title a { color: #333; }
.news-list-item .title a:hover { color: #1767b2; }

.news-list-item .date {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

.news-list-item .desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .news-layout {
        flex-direction: column;
    }
    .news-sidebar {
        width: 100%;
    }
    .news-list-item {
        flex-direction: column;
    }
    .news-list-item .img-box {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 15px;
    }
}