/* Global Styles */
:root {
    --primary-color: #0056b3;
    --footer-bg: #111111; /* Deep charcoal */
    --footer-text: #a0a0a0;
    --header-height: 80px;
    --accent-yellow: #f1b500; /* Matching the yellow in icons */
    --text-white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    /* background-color: #f8f9fa; */
}

.navigation {
    margin: 0 2%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

input, textarea {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
    font-size: 14px;
}

/* Header Styles */
#main-header {
    position: fixed; /* Always fixed */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    color: #fff;
    transition: all 0.3s ease;
}

/* 子页面顶部背景图，完全由 cms_banner 表 page_type 字段控制，通过 header 片段内联 style 动态设置 */
.header-bg-banner {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

/* For index page hero images spacing */
body {
    padding-top: 0;
}

/* Ensure subpages have space for the banner */
body:not(.home-page) {
    padding-top: 0;
}

#main-header.header-transparent {
    background: transparent;
    color: #fff;
    border-bottom: none;
}

#main-header.header-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: #333;
}

#main-header.header-scrolled .header-top-nav {
    background: transparent;
    border-bottom: none;
}

#main-header.header-scrolled .nav-center ul li a {
    color: #333;
}

#main-header.header-scrolled .nav-center ul li:not(:last-child)::after {
    color: #ddd;
}

.header-content {
    position: relative;
    z-index: 2;
}

.header-top-nav {
    padding: 10px 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
    backdrop-filter: blur(2px);
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
}

/* Homepage Hero Slider */
.hero-slider {
    position: relative;
    aspect-ratio: 1920 / 804;
    background: #111 url('/assets/images/home/slider1.jpg') center / cover no-repeat;
    overflow: hidden;
    padding: 0;
}

.slider-wrapper {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.slide {
    position: relative;
    flex: 1 0 0;
    height: 100%;
}

.slide img,
.slide video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* 视频不拦截点击，让 slide 的导航跳转正常工作 */
.slide video {
    pointer-events: none;
}

/* 尊重用户"减少动画"偏好 */
.slide video.is-motion-reduced {
    opacity: 0;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    z-index: 5;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 30px;
    border-radius: 10px;
    background: var(--accent-yellow);
}

.dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* Section Common Styles */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

/* Explore Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--accent-yellow);
}

.product-card img {
    width: 100%;
    height: 125px;
    padding: 10px 20px;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card p {
    font-size: 16px;
    line-height: 1.4;
    color: #333;
    font-weight: 500;
    margin: 0;
    padding: 0 10px;
    background-color: #fff;
    transition: all 0.3s ease;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.product-card:hover p, .product-card.active p {
    background-color: var(--accent-yellow);
    color: #000;
}

.product-card.active {
    border-color: var(--accent-yellow);
}

/* About Us Section Home */
.about-section-home {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/uploads/about/aboutus-bg.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 40px 0;
}

.about-content-wrapper {
    max-width: 900px;
}

.about-section-home h2 {
    font-size: 42px;
    margin-bottom: 30px;
}

.about-section-home p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-view-more {
    display: inline-block;
    padding: 12px 40px;
    background-color: var(--accent-yellow);
    color: #333;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-view-more:hover {
    background-color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-top: 17px;
    border-top: 1px solid rgba(255,255,255,0.2);
    /*padding-top: 40px;*/
}

.stat-item h3,
.stat-value {
    display: block;
    font-size: 32px;
    margin-bottom: 5px;
    font-weight: bold;
}

.stat-item p {
    font-size: 13px;
    margin-bottom: 0;
    opacity: 0.7;
}

/* Case Section Home */
.case-slider {
    position: relative;
    overflow: hidden;
}

.case-track {
    display: flex;
    gap: 30px;
    transition: transform 0.4s ease;
    will-change: transform;
}

.case-card {
    flex: 0 0 calc((100% - 60px) / 3);
    height: 260px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.case-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
}

.case-overlay p {
    font-size: 14px;
    line-height: 1.4;
}

.case-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
    pointer-events: none;
    transition: opacity 0.3s;
}

.case-nav.hidden {
    opacity: 0;
    pointer-events: none;
}

.case-nav button {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.2s, opacity 0.2s;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-nav button:hover {
    background: #fff;
}

.case-nav button:disabled {
    opacity: 0.35;
    cursor: default;
}

.btn-read-more {
    display: block;
    width: fit-content;
    margin: 50px auto 0;
    padding: 10px 30px;
    border: 1px solid #ccc;
    color: #666;
    font-size: 14px;
}

/* Request a Quote Section */
.quote-section {
    background-color: #fff;
    scroll-margin-top: 120px;
    padding: 30px 0;
}

.quote-section .section-title {
    margin-bottom: 25px;
}

.quote-section .section-title h2 {
    font-size: 28px;
}

.quote-form {
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.form-group label span {
    color: red;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #eee;
    background-color: #f9f9f9;
    border-radius: 4px;
    outline: none;
}

textarea {
    height: 120px;
    resize: vertical;
}

.quote-section .form-group {
    margin-bottom: 15px;
}

.quote-section .form-group label {
    margin-bottom: 6px;
}

.quote-section input[type="text"],
.quote-section input[type="email"],
.quote-section textarea {
    padding: 10px 12px;
}

.quote-section .form-row > input {
    flex: 1;
    min-width: 0;
}

.quote-section textarea {
    height: 80px;
}

.header-top-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    display: block;
}
.nav-center{
    display: flex;
}
.nav-center nav{
    display: flex;
}
.nav-center ul {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-center ul li {
    position: relative;
}

/* Vertical separators like in the image */
.nav-center ul li:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -20px;
    color: rgba(48, 48, 48, 1);
    font-weight: 300;
}

.nav-center ul li a {
    font-weight: 400;
    font-size: 16px;
    color: rgba(48, 48, 48, 1);
}

.nav-center ul li a:hover {
    color: var(--accent-yellow);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-selector select {
    background: #fff;
    border: none;
    color: #333;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 30px;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

.search-btn button {
    background: var(--accent-yellow);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    transition: all 0.3s ease;
}

.search-btn button:hover {
    background-color: #fff;
}

/* Side Service Sidebar */
.side-service {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001; /* Ensure it's above the fixed header */
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.side-service.visible {
    opacity: 1;
    visibility: visible;
}

.side-item {
    width: 70px;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.side-item.inquiry {
    background-color: var(--accent-yellow);
    color: #000;
    margin-bottom: 5px;
}

.side-item i {
    font-size: 20px;
    margin-bottom: 5px;
}

.side-item span {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

.side-group {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.side-group .side-item {
    box-shadow: none;
    border-bottom: 1px solid #f0f0f0;
    width: 70px;
}

.side-group .side-item:last-child {
    border-bottom: none;
}

.side-item:hover {
    background-color: #f8f8f8;
    color: var(--accent-yellow);
}

.side-item.inquiry:hover {
    background-color: #000;
    color: var(--accent-yellow);
}

.side-item a, .side-item .side-link-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.side-item .side-link-btn {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

/* Tooltip Styles */
#side-email-item {
    position: relative;
}

.side-tooltip {
    position: absolute;
    right: 85px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.side-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 5px solid #333;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.side-tooltip.show {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

.fold-up {
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}
.fold-up:hover {
    color: var(--accent-yellow, #f5a623);
}

/* 折叠状态：隐藏除 fold-up 外的所有子项 */
.side-group.folded .side-item:not(.fold-up) {
    display: none;
}
.side-group.folded {
    box-shadow: none;
}

/* Products Page Layout */
.products-fluid-layout {
    padding: 60px 0;
    padding-bottom: 0px;
}

.product-layer {
    position: relative;
    width: 60%;
    margin: 0 auto 100px;
    display: flex;
    flex-direction: column;
    overflow: visible; /* Ensure cards can stick out if needed */
}

.layer-bg-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden; /* Fix: Hide the 10px overflow from transform */
}

.layer-bg-link {
    align-self: flex-start;
    margin: 0 auto;
}

.product-layer.right-card {
    align-self: flex-end;
}

.layer-bg-link {
    display: block;
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-layer.left-card .layer-bg-link {
    transform: translateX(100px);
}

.product-layer.right-card .layer-bg-link {
    transform: translateX(-100px);
}

.layer-bg-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1);
    transition: background 0.3s ease;
}

.product-intro-card {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    height: 80%;
    background: rgba(241, 241, 241, 1);
    padding: 40px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-layer.left-card .product-intro-card {
    left: 0; /* Adjusted for better positioning relative to bg image */
}

.product-layer.right-card .product-intro-card {
    right: 0; /* Adjusted for better positioning relative to bg image */
}
.card-btns {
    margin-top: 25px;
}
.card-btns .btn {
    margin-top: 15px;
    padding: 5px 20px;
    text-align: center;
    font-weight: 500;
    font-size: 16px;
    border-radius: 0; /* Square corners as in the image */
    display: block;
    width: 70%;
    transition: all 0.3s ease;
}

.page-h2 {
    text-align: center;
    padding: 20px 0;
    font-size: 22px;
    font-weight: 700;
    color: #333;
}
.page-h2-left {
    text-align: left;
    padding: 16px 0 12px;
}

.category-desc {
    max-width: 600px;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.85;
}

.btn-yellow {
    background-color: var(--accent-yellow);
    color: #333;
    border: none;
}

.btn-yellow:hover {
    background-color: #e5ac00;
}

.btn-gray {
    background-color: #e0e0e0;
    color: #333;
    border: none;
}

.btn-gray:hover {
    background-color: #d0d0d0;
}

.layer-product-nav {
    display: flex;
    justify-content: flex-start; /* Aligned left */
    align-items: flex-start; /* top-align so images stay at same height regardless of text lines */
    gap: 0; /* Remove gap to use border as divider */
    padding: 30px 0;
    width: 100%;
}

.layer-product-nav .product-btn {
    text-align: center;
    position: relative;
    padding: 0 15px;
}

/* Vertical divider between buttons */
.layer-product-nav .product-btn:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 5px;
    height: 125px;
    width: 1px;
    background-color: #ddd;
}

.layer-product-nav .product-btn img {
    width: 120px;
    height: 92px;
    object-fit: contain;
    padding: 5px;
    margin-bottom: 5px;
}

.layer-product-nav .product-btn p {
    max-width: 120px;
    margin: 0 auto;
    word-break: break-word;
}

/* Category Nav Bar Enhancements */
.category-nav-bar .container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 90%;
}

.category-item {
    text-align: center;
    cursor: pointer;
    padding: 10px 20px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.category-item:hover {
    opacity: 1;
    background-color: rgba(0,0,0,0.02);
    border-bottom-color: #ddd;
}

.category-item.active {
    opacity: 1;
    border-bottom-color: var(--accent-yellow);
    background-color: rgba(241, 181, 0, 0.02);
}

.category-item img {
    width: 60px;
    display: block;
    margin: 0 auto 8px;
    transition: transform 0.3s ease;
}

.category-item:hover img {
    transform: translateY(-5px);
}

.category-item p {
    font-size: 12px;
    color: #666;
    max-width: 9em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: auto;
    margin-right: auto;
}

.list-main-content {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 40px 0;
}

.filter-sidebar {
    width: 300px;
    background: #fff;
    padding: 25px;
    height: fit-content;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.filter-header h3 {
    font-size: 18px;
}

.btn-reset {
    color: var(--primary-color);
    font-size: 14px;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group h4 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.products-list-container {
    flex: 1;
    max-width: 750px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-list-item {
    background: #fff;
    display: flex;
    padding: 30px;
    gap: 40px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.product-list-item:hover {
    transform: translateY(-5px);
}

.item-img {
    flex: 0 0 35%;
}

.item-img img {
    width: 100%;
}

.item-info {
    flex: 1;
}

.item-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.item-specs {
    margin-bottom: 20px;
}

.item-specs p {
    font-size: 14px;
    color: #888;
    margin-bottom: 5px;
}

.item-tags {
    display: flex;
    gap: 10px;
}

.item-tags span {
    font-size: 12px;
    color: #999;
}

/* Product Detail Page Layout */
.product-detail-page {
    background-color: #fff;
}

.breadcrumb-nav {
    padding: 20px 0;
    font-size: 12px;
    color: #999;
}

.product-hero-card {
    display: flex;
    gap: 50px;
    margin-bottom: 60px;
}

.product-gallery {
    flex: 1;
}

.main-img {
    width: 600px;
    height: 380px;
}

.main-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumb-list {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    overflow-x: auto;
}

.thumb-item {
    width: 100px;
    min-width: 80px;
    cursor: pointer;
    flex-shrink: 0;
}

.thumb-item img {
    width: 100%;
    border: 2px solid #eee;
    border-radius: 4px;
    transition: border-color 0.2s;
}

.thumb-item.active img {
    border-color: var(--accent-yellow, #f5a623);
}

.product-main-info {
    width: 450px;
}

.product-main-info h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

.info-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.tag-badge {
    padding: 5px 15px;
    background: #f9f9f9;
    border: 1px solid #eee;
    font-size: 13px;
    color: #666;
}

.info-specs {
    margin-bottom: 40px;
}

.info-specs p {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

.action-btns {
    display: flex;
    gap: 20px;
}

.action-btns .btn {
    flex: 1;
    padding: 15px;
    text-align: center;
    font-weight: 600;
}

.btn-whatsapp {
    background-color: #25d366;
    color: #fff;
}

.product-long-description img {
    max-width: 100%;
    display: block;
}
.product-long-description table {
    border-collapse: collapse;
    width: 100%;
    margin: 16px 0;
}
.product-long-description th,
.product-long-description td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}
.product-long-description th {
    background-color: #f5f5f5;
    font-weight: 600;
}
.product-long-description tr:nth-child(even) td {
    background-color: #fafafa;
}

/* About Page Tabs */
.about-tabs-container {
    margin-top: 40px;
}

.about-tabs-nav {
    display: flex;
    gap: 1px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 12px 25px;
    background-color: var(--accent-yellow);
    color: #333;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background-color: #111;
    color: #fff;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Overview Content */
.overview-video {
    width: 55%;
    max-width: 1000px;
    margin: 0 auto 40px;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.overview-video video {
    width: 100%;
    display: block;
}

.about-text-content {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    white-space: pre-line;
    margin: 0 auto 100px;
}

/* Quality and Network Split Layout */
.about-split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 20px 0;
}

.split-left {
    width: 30%;
}

.split-right {
    flex: 1;
}

.split-right img {
    width: 100%;
    height: auto;
}

.split-text {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    white-space: pre-line;
}

/* Case Page Styles */
.case-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.case-item {
    background: #fff;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.case-item:hover {
    border-color: var(--accent-yellow);
}

.case-item-img {
    width: 100%;
    padding: 14px 16px 0px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.case-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-item:hover .case-item-img img {
    transform: scale(1.05);
}

.case-item-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case-item-info p {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.case-item-btn {
    height: 40px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.case-item:hover .case-item-btn {
    background-color: var(--accent-yellow);
}

.case-item-btn::after {
    content: "→";
    font-size: 20px;
    color: #333;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
    margin-bottom: 40px;
}

.page-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

button.page-link {
    font-family: inherit;
    line-height: 1;
}

.page-link:hover, .page-link.active {
    background-color: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: #333;
}

.page-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.page-total {
    text-align: center;
    margin-top: 16px;
    padding: 0 15px;
    font-size: 14px;
    color: #999;
}

/* Case Detail Styles */
.case-detail-header {
    text-align: center;
    padding: 40px 0;
}

.case-detail-header h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.case-detail-meta {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #999;
}

.case-detail-content {
    padding: 40px 0;
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.case-detail-content p {
    margin-bottom: 20px;
}

.case-detail-content img {
    max-width: 100%;
    margin-top: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* News Page Styles */
.news-tabs {
    display: flex;
    gap: 1px;
    margin: 40px 0;
}

.news-tab-btn {
    padding: 12px 25px;
    background-color: var(--accent-yellow);
    color: #333;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.news-tab-btn.active {
    background-color: #111;
    color: #fff;
}

.news-list {
    display: flex;
    flex-direction: column;
}

.news-item {
    cursor: pointer;
    display: flex;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
    gap: 40px;
    align-items: center;
}

.news-item-left {
    display: flex;
    gap: 20px;
    align-items: center;
    width: 300px;
}

.news-item-img {
    width: 180px;
    height: 120px;
    background-color: #f0f0f0;
    overflow: hidden;
}

.news-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item-date {
    text-align: right;
    min-width: 80px;
}

.news-item-date .month {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.news-item-date .year {
    display: block;
    font-size: 14px;
    color: #999;
}

.news-item-right {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.news-item-content {
    flex: 1;
}

.news-item-content h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-item-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-arrow {
    width: 40px;
    height: 40px;
    background-color: var(--accent-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.news-item:hover .news-item-arrow {
    background-color: #111;
    transform: translateX(5px);
}

/* Contact Page Styles */
.contact-info-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 40px;
    margin: 40px 0;
}

.contact-info-card h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

.contact-info-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.contact-category-tab {
    display: inline-block;
    padding: 10px 25px;
    background-color: #f5f5f5;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.contact-map {
    width: 100%;
    height: 450px;
    margin-top: 60px;
    margin-bottom: 40px;
    background-color: #f0f0f0;
}

.contact-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Search Modal Styles */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-content {
    width: 100%;
    max-width: 800px;
    padding: 20px;
}

.search-modal-header {
    text-align: right;
    margin-bottom: 30px;
}

.close-search {
    background: none;
    border: none;
    color: #fff;
    font-size: 48px;
    cursor: pointer;
    line-height: 1;
}

.search-input-wrapper {
    position: relative;
    border-bottom: 2px solid #fff;
}

.search-input-wrapper input {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    padding: 15px 50px 15px 0;
    outline: none;
}

.search-input-wrapper i {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 24px;
}

/* Footer Styles */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: flex-start;
}

.footer-brand .footer-logo {
    height: 100px;
    float: right;
    filter: grayscale(1) invert(1) brightness(1.5);
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.8;
    max-width: 300px;
}

.footer-contact h4, .footer-social h4 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
}

.footer-contact ul li {
    margin-bottom: 15px;
    font-size: 14px;
    color: #888;
}

.footer-social {
    text-align: left;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--accent-yellow);
    color: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.social-icon:hover {
    background-color: #fff;
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.copyright {
    text-align: center;
    font-size: 12px;
    color: #666;
}

.footer-privacy-link {
    color: #888;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-privacy-link:hover,
.footer-privacy-link:focus-visible {
    color: var(--accent-yellow);
    outline: none;
}

/* Page Content Placeholder */
.page-content {
    min-height: 500px;
    padding: 100px 0;
    background-color: #fff;
}

/* Page Title Section (used in subpages) */
.hero-section {
    position: relative; /* Changed from absolute */
    padding: 60px 0 0;
    text-align: left;
    z-index: 2;
}

.hero-section .container {
    padding-left: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee; /* The divider line */
}

.hero-section h1 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    text-shadow: none;
    margin: 0;
}

/* Alert Banner (quote form feedback) */
.alert-banner {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 48px 16px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    animation: alertSlideDown 0.4s ease;
    max-width: 90vw;
}
.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.alert-banner i { font-size: 20px; }
.alert-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
    line-height: 1;
}
.alert-close:hover { opacity: 1; }
@keyframes alertSlideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ==================== 表单验证样式 ==================== */
.required {
    color: #dc2626;
    font-weight: 700;
}

input.field-error,
textarea.field-error,
select.field-error {
    border-color: #dc2626 !important;
    background: #fff5f5;
}

.field-error-msg {
    display: block;
    color: #dc2626;
    font-size: 13px;
    margin-top: 5px;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.form-group label .required {
    color: #dc2626;
    font-weight: 700;
    margin-right: 2px;
}

/* Privacy Policy */
.privacy-policy-section {
    padding: 60px 0 100px;
    background: #fafafa;
}

.privacy-policy-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 52px 64px;
    background: #fff;
    border-top: 3px solid var(--accent-yellow);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05);
}

.privacy-updated {
    margin: 0 0 28px;
    color: #888;
    font-size: 13px;
}

.privacy-intro,
.privacy-policy-block p {
    margin: 0;
    color: #555;
    font-size: 15px;
    line-height: 1.9;
}

.privacy-policy-block {
    padding: 0;
    margin-top: 34px;
}

.privacy-policy-block h2 {
    margin: 0 0 12px;
    color: #222;
    font-size: 20px;
    line-height: 1.4;
}

/* ===== Hamburger / Mobile Nav (hidden on desktop) ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 75%;
    max-width: 320px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 20px rgba(0,0,0,0.15);
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 90px 0 40px;
    overflow-y: auto;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
}

.mobile-nav ul li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav ul li a {
    display: block;
    padding: 16px 30px;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.mobile-nav ul li a:hover {
    background-color: #f8f8f8;
    color: var(--accent-yellow);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.nav-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-center ul {
        gap: 20px;
    }
    .nav-center ul li:not(:last-child)::after {
        right: -10px;
    }
    
    .container {
        padding: 0 24px;
    }

    /* Products grid: 6 -> 4 */
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Products page fluid layer wider */
    .product-layer {
        width: 85%;
    }

    /* Case grid 4 -> 3 */
    .case-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==================== 通用工具类 ==================== */
.empty-state {
    text-align: center;
    padding: 60px 0;
    color: #999;
}

.no-results {
    text-align: center;
    padding: 100px 0;
}

.no-results-icon {
    font-size: 60px;
    color: #eee;
    margin-bottom: 20px;
    display: block;
}

.cat-thumb {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.result-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.result-header-mt {
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.case-grid-compact {
    grid-template-columns: repeat(4, 1fr);
}

.news-item-full {
    width: 100%;
}

/* =============================================
   在线聊天弹窗 (Chat Popup)
   ============================================= */
.chat-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 2001;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.chat-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.chat-popup-window {
    position: fixed;
    right: 100px;
    bottom: 20px;
    z-index: 2002;
    width: 380px;
    max-height: 560px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}
.chat-popup-overlay.active .chat-popup-window {
    transform: translateY(0);
    opacity: 1;
}

/* 头部 */
.chat-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--primary-color, #1a1a2e);
    color: #fff;
    flex-shrink: 0;
}
.chat-popup-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.chat-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4ade80;
    flex-shrink: 0;
}
.chat-popup-title {
    font-size: 15px;
    font-weight: 600;
}
.chat-popup-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}
.chat-popup-close:hover {
    color: #fff;
}

/* 注册表单 */
.chat-register {
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chat-register-hint {
    font-size: 14px;
    color: #555;
    margin: 0 0 4px;
    line-height: 1.5;
}
.chat-register-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.chat-register-field input:focus {
    border-color: var(--primary-color, #1a1a2e);
}
.chat-register-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 4px;
}
.chat-btn {
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.chat-btn-skip {
    background: #f3f4f6;
    color: #666;
}
.chat-btn-skip:hover {
    background: #e5e7eb;
}
.chat-btn-start {
    background: var(--primary-color, #1a1a2e);
    color: #fff;
}
.chat-btn-start:hover {
    background: #2d2d4a;
}

/* 聊天消息区域 */
.chat-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}
.chat-messages {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chat-welcome-msg {
    text-align: center;
    font-size: 13px;
    color: #999;
    padding: 20px 10px;
}
.chat-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
    animation: chatMsgIn 0.25s ease;
}
@keyframes chatMsgIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.chat-message.visitor {
    align-self: flex-end;
    background: var(--primary-color, #1a1a2e);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-message.admin {
    align-self: flex-start;
    background: #f3f4f6;
    color: #333;
    border-bottom-left-radius: 4px;
}
.chat-message-time {
    font-size: 10px;
    opacity: 0.65;
    margin-top: 4px;
    text-align: right;
}

/* 底部输入区域 */
.chat-footer {
    padding: 10px 14px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
    background: #fafafa;
}
.chat-input-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}
.chat-input-row textarea {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 14px;
    resize: none;
    outline: none;
    height: auto;
    min-height: 36px;
    max-height: 100px;
    font-family: inherit;
    line-height: 1.4;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.chat-input-row textarea:focus {
    border-color: var(--primary-color, #1a1a2e);
}
.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--accent-yellow, #f5a623);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.chat-send-btn:hover {
    background: #e6951a;
    transform: scale(1.05);
}
.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 响应式：移动端全屏 */
@media (max-width: 768px) {
    /* 移动端隐藏发送按钮，用键盘 Enter 发送，避免焦点切换导致键盘弹跳 */
    .chat-send-btn {
        display: none;
    }
    .chat-footer {
        padding: 6px 10px;
    }
    .chat-input-row textarea {
        border-radius: 20px;
        padding: 8px 14px;
        font-size: 14px;
        height: auto;
        min-height: 34px;
    }

    .chat-popup-window {
        right: 0;
        bottom: 0;
        width: 100%;
        max-height: 100%;
        height: 100%;
        border-radius: 0;
    }
    .chat-popup-overlay {
        background: rgba(0, 0, 0, 0.5);
    }
}

@media (max-width: 480px) {
    .chat-popup-window {
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
}

@media (max-width: 768px) {
    /* --- Global --- */
    .container {
        padding: 0 16px;
    }

    section {
        padding: 50px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .section-title h2 {
        font-size: 26px;
    }

    /* --- Header / Nav --- */
    .navigation {
        margin: 0;
        padding: 0 16px;
    }

    .nav-center {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .header-top-nav {
        padding: 8px 0;
    }

    .logo img {
        height: 38px;
    }

    .nav-right {
        gap: 8px;
    }

    .lang-selector select {
        padding: 6px 24px 6px 8px;
        font-size: 13px;
        background-position: right 4px center;
    }

    /* On scrolled (white) header, hamburger turns dark */
    #main-header.header-scrolled .nav-toggle {
        color: #333;
    }

    .header-bg-banner {
        height: 240px;
    }

    /* --- Hero Slider --- */
    .hero-slider {
        aspect-ratio: 16 / 9;
    }

    .slider-dots {
        bottom: 15px;
    }

    .dot {
        width: 9px;
        height: 9px;
    }

    .dot.active {
        width: 22px;
    }

    /* --- Explore Products: 6 -> 2 --- */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card img {
        padding: 20px 15px;
    }

    .product-card p {
        font-size: 14px;
        padding: 0 8px;
    }

    /* --- About Section Home --- */
    .about-section-home {
        padding: 50px 0;
    }

    .about-section-home h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .about-content-wrapper {
        max-width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding-top: 20px;
    }

    .stat-item h3,
    .stat-value {
        font-size: 26px;
    }

    /* --- Explore Products: Show More toggle --- */
    .explore-products .products-grid .product-card {
        animation: fadeIn 0.3s ease;
    }

    .products-show-more {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 24px auto 0;
        padding: 10px 24px;
        width: fit-content;
        color: #666;
        font-size: 14px;
        cursor: pointer;
        border: 1px solid #eee;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    .products-show-more:hover {
        border-color: var(--accent-yellow);
        color: #333;
    }

    .products-show-more i {
        font-size: 12px;
        transition: transform 0.3s ease;
    }

    .products-show-more.expanded i {
        transform: rotate(180deg);
    }

    /* --- Case Slider (home): 2 rows x 2 cols --- */
    .case-slider {
        flex-wrap: wrap;
        flex-direction: row;
        gap: 14px;
    }

    .case-card {
        flex: 0 0 calc(50% - 7px);
        width: calc(50% - 7px);
        height: auto;
    }

    .case-card img {
        height: auto;
    }

    .case-nav {
        display: none;
    }

    /* --- Quote Form --- */
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .form-group,
    .form-row > input,
    .form-row > select {
        margin-bottom: 15px;
    }

    .form-row > input:last-child {
        margin-bottom: 0;
    }

    /* --- Products Page Fluid Layout --- */
    .products-fluid-layout {
        padding: 30px 0;
    }

    .product-layer,
    .product-layer.right-card {
        width: 100%;
        align-self: auto;
        margin-bottom: 50px;
        padding: 0 16px;
    }

    .product-layer.left-card .layer-bg-link,
    .product-layer.right-card .layer-bg-link {
        transform: none;
        height: 300px;
    }

    .product-intro-card {
        position: static;
        transform: none;
        width: 100%;
        height: auto;
        padding: 25px 20px;
    }

    .card-btns .btn {
        width: 100%;
    }

    .layer-product-nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 20px 0;
    }

    .layer-product-nav .product-btn {
        padding: 8px 4px;
        border: 1px solid #eee;
        border-radius: 6px;
        background: #fff;
        transition: all 0.3s ease;
    }

    .layer-product-nav .product-btn:hover {
        border-color: var(--accent-yellow);
    }

    /* Remove desktop vertical dividers in grid layout */
    .layer-product-nav .product-btn:not(:last-child)::after {
        display: none;
    }

    .layer-product-nav .product-btn img {
        width: 100%;
        height: 56px;
        margin-bottom: 4px;
    }

    .layer-product-nav .product-btn p {
        font-size: 11px;
        line-height: 1.3;
        max-width: 100%;
        word-break: break-word;
    }

    /* --- Products List Page --- */
    .category-nav-bar .container {
        gap: 15px;
    }

    .category-item {
        padding: 8px 10px;
    }

    .category-item img {
        width: 45px;
    }

    .list-main-content {
        flex-direction: column;
        padding: 24px 0;
    }

    .filter-sidebar {
        width: 100%;
    }

    .product-list-item {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .item-img {
        width: 100%;
    }

    .item-info h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    /* --- Product Detail Page --- */
    .product-hero-card {
        flex-direction: column;
        gap: 25px;
        margin-bottom: 40px;
    }

    .main-img {
        width: 100%;
        height: auto;
    }

    .main-img img {
        height: auto;
    }

    .thumb-list {
        gap: 10px;
        flex-wrap: wrap;
    }

    .thumb-item {
        width: 70px;
    }

    .product-main-info {
        width: 100%;
    }

    .product-main-info h1 {
        font-size: 24px;
    }

    .action-btns {
        flex-direction: column;
        gap: 12px;
    }

    /* --- About Page --- */
    .about-tabs-nav {
        margin-bottom: 30px;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 13px;
        flex: 1;
    }

    .overview-video {
        width: 100%;
    }

    .about-text-content {
        margin-bottom: 50px;
    }

    .about-split-layout {
        flex-direction: column;
        gap: 25px;
    }

    .split-left {
        width: 100%;
    }

    /* --- Case Page Grid: 2 cols --- */
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-top: 24px;
    }

    /* --- News Page: tabs same as about-tabs-nav --- */
    .news-tabs {
        margin: 24px 0 30px;
    }

    .news-tab-btn {
        padding: 10px 16px;
        font-size: 13px;
        flex: 1;
    }

    .news-item {
        gap: 16px;
        padding: 20px 0;
        align-items: center;
    }

    .news-item-left {
        width: auto;
        flex-shrink: 0;
        gap: 12px;
    }

    .news-item-img {
        width: 90px;
        height: 70px;
    }

    .news-item-date {
        min-width: auto;
    }

    .news-item-date .month {
        font-size: 16px;
    }

    .news-item-date .year {
        font-size: 12px;
    }

    .news-item-right {
        gap: 0;
    }

    .news-item-content h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .news-item-content p {
        font-size: 13px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    /* Hide arrow on mobile to save space */
    .news-item-arrow {
        display: none;
    }

    /* --- Pagination --- */
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 40px;
    }

    .page-link {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .page-total {
        margin-left: 0;
        margin-top: 10px;
    }

    /* --- Case Detail Page --- */
    .case-detail-header h2 {
        font-size: 22px;
    }

    .case-detail-meta {
        flex-direction: column;
        gap: 6px;
    }

    .case-detail-content {
        padding: 24px 0;
    }

    /* --- Contact Page --- */
    .contact-info-card {
        padding: 24px;
        margin: 24px 0;
    }

    .contact-map {
        height: 300px;
        margin-top: 40px;
    }

    .contact-map iframe {
        height: 300px;
    }

    /* --- Footer --- */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    footer {
        padding: 50px 0 30px;
    }

    .footer-brand .footer-logo {
        float: none;
        height: 70px;
    }

    .footer-brand p {
        max-width: 100%;
        margin: 0 auto;
    }

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

    .social-links {
        justify-content: center;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 8px;
    }

    .privacy-policy-section {
        padding: 36px 0 60px;
    }

    .privacy-policy-content {
        padding: 32px 24px;
    }

    .privacy-policy-block {
        margin-top: 28px;
    }

    .privacy-policy-block h2 {
        font-size: 18px;
    }

    /* --- Side Service: shrink --- */
    .side-service {
        right: 10px;
    }

    .side-item,
    .side-group .side-item {
        width: 56px;
        padding: 8px 4px;
    }

    .side-item i {
        font-size: 16px;
    }

    .side-item span {
        font-size: 9px;
    }

    /* --- Hero / Page Title --- */
    .hero-section {
        padding: 40px 0 0;
    }

    .hero-section h1 {
        font-size: 26px;
    }

    /* --- Search Modal --- */
    .search-input-wrapper input {
        font-size: 22px;
    }

    .close-search {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    /* Products grid: keep 2 but tighter; stats single emphasis */
    .stats-grid {
        gap: 14px;
    }

    .stat-item h3,
    .stat-value {
        font-size: 22px;
    }

    .section-title h2 {
        font-size: 22px;
    }

    /* Case grid stack to single column on very small screens */
    .case-grid {
        grid-template-columns: 1fr;
    }

    .about-section-home h2 {
        font-size: 24px;
    }

    .tab-btn {
        padding: 9px 10px;
        font-size: 12px;
    }
}

