/* ==========================================================================
   Base Reset & Variables
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: #333; line-height: 1.6; background-color: #f8f9fa; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

:root {
    --primary-color: #0052D4;
    --primary-dark: #003db3;
    --secondary-color: #1a2530;
    --light-bg: #f0f4f8;
    --border-color: #e2e8f0;
    --danger-color: #e11d48;
    --max-width: 1380px; /* 控制大屏27寸下的最大宽度，防止横向拉长 */
}

/* Container Limit for Large Screens */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ==========================================================================
   Top Header Bar
   ========================================================================== */
.top-bar { background-color: var(--secondary-color); color: #ffffff; padding: 8px 0; font-size: 13px; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-socials a { color: #cccccc; margin-right: 15px; font-size: 14px; }
.top-socials a:hover { color: #ffffff; }
.top-contact a { color: #cccccc; margin-left: 15px; }
.top-contact a:hover { color: var(--primary-color); }

/* ==========================================================================
   Navigation Header
   ========================================================================== */
.main-header { background: #ffffff; box-shadow: 0 2px 10px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; padding: 15px 0; }
.main-header-inner { display: flex; justify-content: space-between; align-items: center; }

.logo {
    width: 320px;
    height: 70px;
    display: flex;
    align-items: center;
}
.logo a, 
.logo svg {
    display: block;
    width: 100%;
    height: 100%;
}

.nav-right-wrap { display: flex; align-items: center; gap: 20px; }
.nav-menu { display: flex; align-items: center; }
.nav-menu > li { margin: 0 10px; position: relative; }
.nav-menu > li > a { font-size: 15px; font-weight: 600; color: #444; padding: 12px 6px; border-bottom: 2px solid transparent; display: inline-block; }
.nav-menu > li > a:hover, .nav-menu > li > a.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }

/* 2, 动态 Products 下拉子分类菜单 */
.nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    border: 1px solid var(--border-color);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1100;
}

.nav-menu > li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0 !important;
    width: 100%;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    border-bottom: none !important;
    transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: #f0f4f8;
    color: var(--primary-color);
    padding-left: 22px;
}

/* Language Selector as Buttons */
.lang-btn-group { display: flex; gap: 4px; background: #eef2f7; padding: 3px; border-radius: 4px; border: 1px solid var(--border-color); }
.lang-btn { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 3px; color: #555; text-transform: uppercase; }
.lang-btn.active, .lang-btn:hover { background-color: var(--primary-color); color: #fff; }

/* ==========================================================================
   Banner Slider & Search Overlay
   ========================================================================== */
.hero-section { position: relative; width: 100%; height: 600px; overflow: hidden; background: #000; }
.banner-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease-in-out; background-size: cover; background-position: center; }
.slide.active { opacity: 0.65; }

/* Banner Numeric Indicators */
.banner-nav-numbers { position: absolute; bottom: 25px; right: 5%; z-index: 12; display: flex; gap: 8px; }
.banner-nav-num { width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.4); color: #fff; font-size: 13px; font-weight: bold; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; }
.banner-nav-num.active, .banner-nav-num:hover { background: var(--primary-color); border-color: var(--primary-color); transform: scale(1.1); }

.search-overlay-container { position: relative; z-index: 10; height: 100%; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.hero-title { font-size: 38px; font-weight: 700; margin-bottom: 10px; text-shadow: 0 2px 4px rgba(0,0,0,0.6); }
.hero-subtitle { font-size: 17px; margin-bottom: 25px; text-shadow: 0 2px 4px rgba(0,0,0,0.6); max-width: 850px; }

.part-search-card { background: rgba(255, 255, 255, 0.96); padding: 25px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); color: #333; max-width: 1050px; }
.part-search-card h3 { margin-bottom: 15px; color: var(--primary-color); font-size: 18px; text-transform: uppercase; border-bottom: 2px solid var(--primary-color); display: inline-block; padding-bottom: 4px; }
.search-form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.search-input-group { flex: 1; min-width: 180px; }
.search-input-group label { display: block; font-size: 12px; font-weight: bold; margin-bottom: 4px; color: #555; }
.search-input-group input, .search-input-group select { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; }
.search-btn { background: var(--primary-color); color: #fff; border: none; padding: 0 25px; border-radius: 4px; font-weight: bold; cursor: pointer; transition: background 0.3s ease; min-height: 42px; margin-top: 18px; }
.search-btn:hover { background: var(--primary-dark); }

/* ==========================================================================
   General Section Styling
   ========================================================================== */
.section-padding { padding: 70px 0; }
.section-title { text-align: center; font-size: 30px; color: #222; margin-bottom: 12px; font-weight: 700; }
.section-subtitle { text-align: center; color: #666; max-width: 750px; margin: 0 auto 40px auto; font-size: 15px; }

/* ==========================================================================
   Main Products Section
   ========================================================================== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.product-card { position: relative; height: auto; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.product-bg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-bg { transform: scale(1.08); }
.product-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.1) 100%); z-index: 2; padding: 25px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.product-overlay h3 { font-size: 20px; margin-bottom: 8px; color: #fff; }
.product-overlay p { font-size: 13px; color: #ddd; margin-bottom: 15px; line-height: 1.4; }
.btn-read-more { display: inline-block; padding: 8px 18px; background-color: var(--primary-color); color: #fff; border-radius: 4px; font-size: 13px; font-weight: 600; width: fit-content; }
.btn-read-more:hover { background-color: #fff; color: var(--primary-color); }

/* ==========================================================================
   About Us Section
   ========================================================================== */
.about-container { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.about-image-wrapper { flex: 1; min-width: 320px; max-width: 580px; position: relative; overflow: hidden; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.12); }
.about-image-wrapper img { transition: transform 0.5s ease; width: 100%; height: 100%; object-fit: cover; }
.about-image-wrapper:hover img { transform: scale(1.05); }
.about-content { flex: 1; min-width: 320px; }
.about-content h2 { font-size: 28px; color: #222; margin-bottom: 15px; }
.about-content p { color: #555; margin-bottom: 18px; line-height: 1.7; font-size: 15px; }
.about-socials { display: flex; gap: 12px; margin-bottom: 25px; }
.about-socials a { width: 36px; height: 36px; background: #e9ecef; color: #333; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.3s ease; }
.about-socials a:hover { background: var(--primary-color); color: #fff; }

/* ==========================================================================
   Workshop Image Gallery
   ========================================================================== */
.workshop-bg { background-color: var(--light-bg); }
.workshop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.workshop-item { position: relative; border-radius: 6px; overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,0.08); height: 220px; }
.workshop-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.workshop-item:hover img { transform: scale(1.08); }
.workshop-item a {
    display: block;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Certificates Section
   ========================================================================== */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; }
.cert-card { background: #fff; border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: transform 0.3s ease; }
.cert-card:hover { transform: translateY(-5px); border-color: var(--primary-color); }
.cert-img-box { height: 200px; overflow: hidden; margin-bottom: 15px; display: flex; align-items: center; justify-content: center; }
.cert-img-box img { max-height: 100%; width: auto; transition: transform 0.4s ease; }
.cert-img-box a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.cert-card:hover .cert-img-box img { transform: scale(1.05); }
.cert-card h4 { font-size: 15px; color: #333; }
.cert-card h4 a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cert-card h4 a:hover {
    color: var(--primary-color); 
}

/* ==========================================================================
   Case & News Section
   ========================================================================== */
.news-bg { background-color: #fff; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.news-card { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color); box-shadow: 0 3px 12px rgba(0,0,0,0.05); }
.news-img-box { height: 210px; overflow: hidden; position: relative; }
.news-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-card:hover .news-img-box img { transform: scale(1.08); }
.news-content { padding: 20px; }
.news-date { font-size: 12px; color: #888; margin-bottom: 8px; }
.news-title { font-size: 17px; font-weight: 700; color: #222; margin-bottom: 10px; line-height: 1.4; }
.news-desc { font-size: 13px; color: #666; margin-bottom: 15px; line-height: 1.5; }

.news-title a {
    color: #222222;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--primary-color); 
}

.news-img-box a {
    display: block;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Inner Page Banner
   ========================================================================== */
.inner-hero {
    position: relative;
    height: 300px;
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('/images/banner1.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
}
.inner-hero-content h1 { font-size: 36px; font-weight: 700; margin-bottom: 10px; }
.inner-hero-content p { font-size: 16px; color: #e2e8f0; max-width: 700px; }

/* ==========================================================================
   Breadcrumb Navigation
   ========================================================================== */
.breadcrumb-section { background: #fff; border-bottom: 1px solid var(--border-color); padding: 12px 0; font-size: 14px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: #666; }
.breadcrumb a { color: #444; }
.breadcrumb a:hover { color: var(--primary-color); }
.breadcrumb .separator { color: #aaa; font-size: 12px; }
.breadcrumb .current { color: var(--primary-color); font-weight: 600; }

/* ==========================================================================
   Main Page Layout
   ========================================================================== */
.page-main-padding { padding: 50px 0 80px 0; }
.layout-wrapper { display: flex; gap: 40px; position: relative; }

/* ==========================================================================
   Left Sidebar - Categories Tree
   ========================================================================== */
.sidebar { width: 280px; flex-shrink: 0; }
.sidebar-card { background: #fff; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.03); margin-bottom: 30px; }
.sidebar-title { background: var(--secondary-color); color: #fff; padding: 16px 20px; font-size: 18px; font-weight: 700; border-bottom: 3px solid var(--primary-color); }

.category-tree > li { border-bottom: 1px solid var(--border-color); }
.category-tree > li:last-child { border-bottom: none; }

.cat-item-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 18px; font-size: 15px; font-weight: 600; color: #333; cursor: pointer; transition: all 0.2s ease;
}
.cat-item-header:hover, .cat-item-header.active { background-color: var(--light-bg); color: var(--primary-color); }
.cat-item-header .toggle-icon { font-size: 12px; color: #888; transition: transform 0.3s ease; }
.category-tree > li.expanded .cat-item-header .toggle-icon { transform: rotate(180deg); }

/* Second-level Subcategories */
.sub-category { display: none; background-color: #fcfcfc; border-top: 1px dashed var(--border-color); padding: 5px 0; }
.category-tree > li.expanded .sub-category { display: block; }
.sub-category li a {
    display: block; padding: 8px 18px 8px 35px; font-size: 13px; font-weight: 500; color: #666; transition: all 0.2s ease;
}
.sub-category li a:hover, .sub-category li a.active { color: var(--primary-color); font-weight: 600; padding-left: 40px; }

.sidebar-contact-card { background: #fff; border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; }
.sidebar-contact-card h4 { font-size: 16px; color: #222; margin-bottom: 12px; border-bottom: 2px solid var(--primary-color); padding-bottom: 6px; display: inline-block; }
.sidebar-contact-card p { font-size: 13px; color: #555; margin-bottom: 8px; }

/* ==========================================================================
   Right Content Area - Product Grid (Products Page)
   ========================================================================== */
.content-area { flex: 1; min-width: 0; }

.product-list-header {
    display: flex; justify-content: space-between; align-items: center;
    background: #fff; padding: 15px 20px; border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 25px;
}
.product-count { font-size: 14px; color: #666; }
.product-count span { color: var(--primary-color); font-weight: 700; }

.product-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-bottom: 40px;
}



.product-img-box {
    position: relative; height: 260px; background: #fff;
    display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #f0f0f0;
}
.product-img-box img { height:260px;width: auto; transition: transform 0.4s ease;  }


.product-info { padding: 20px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.product-tag { font-size: 12px; font-weight: 600; color: var(--primary-color); background: var(--light-bg); padding: 3px 8px; border-radius: 4px; display: inline-block; margin-bottom: 8px; width: fit-content; }
.product-title { font-size: 16px; font-weight: 700; color: #222; margin-bottom: 10px; line-height: 1.4; height: 44px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-title a:hover { color: var(--primary-color); }

.product-specs { font-size: 13px; color: #666; margin-bottom: 15px; }
.product-specs p { margin-bottom: 4px; }

.btn-inquiry {
    display: inline-block; text-align: center; background-color: var(--primary-color); color: #fff;
    padding: 8px 15px; border-radius: 4px; font-size: 13px; font-weight: 600; width: 100%; transition: background 0.3s ease;
}
.btn-inquiry:hover { background-color: var(--primary-dark); }

/* Pagination Styling */
.pagination-wrap { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 20px; }
.pagination-wrap a, .pagination-wrap span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 12px; border-radius: 4px;
    background: #fff; border: 1px solid var(--border-color); color: #555;
    font-size: 14px; font-weight: 600; transition: all 0.2s ease;
}
.pagination-wrap a:hover { border-color: var(--primary-color); color: var(--primary-color); background: var(--light-bg); }
.pagination-wrap .active { background-color: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.pagination-wrap .disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ==========================================================================
   Stock Page Specific Styles
   ========================================================================== */
.stock-card {
    background: #fff; border: 1px solid var(--border-color); border-radius: 8px;
    padding: 30px; box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

/* Search Form Styling */
.stock-search-box {
    background: #f8fafc; border: 1px solid var(--border-color); border-radius: 8px;
    padding: 20px; margin-bottom: 25px;
}
.search-input-wrap { flex: 1; position: relative; }
.search-input-wrap input {
    width: 100%; height: 46px; padding: 0 16px 0 42px; font-size: 14px;
    border: 1px solid #cbd5e1; border-radius: 6px; outline: none; transition: border-color 0.2s;
}
.search-input-wrap input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0,82,212,0.1); }
.search-input-wrap i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 16px; }

.btn-search-sku {
    height: 46px; padding: 0 24px; background: var(--primary-color); color: #fff;
    border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px; transition: background 0.2s; white-space: nowrap;
}
.btn-search-sku:hover { background: var(--primary-dark); }

/* Header View Status Title */
.view-status-title {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 2px solid var(--primary-color); padding-bottom: 12px; margin-bottom: 20px;
}
.view-status-title h3 { font-size: 20px; color: var(--secondary-color); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.view-status-title span { font-size: 13px; color: #64748b; }

/* Table Styling */
.table-responsive { width: 100%; overflow-x: auto; }
.stock-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.stock-table th {
    background: #f1f5f9; color: #334155; font-weight: 700; padding: 14px 16px;
    border-bottom: 2px solid var(--border-color); white-space: nowrap;
}
.stock-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-color); vertical-align: middle; color: #475569; }
.stock-table tbody tr:hover { background-color: #f8fafc; }

.part-no-text { font-weight: 700; color: #0f172a; font-family: monospace; font-size: 15px; }
.stock-qty-badge {
    display: inline-block; padding: 4px 10px; border-radius: 12px;
    background: #dcfce7; color: #166534; font-weight: 700; font-size: 13px;
}

/* Tool Request Input & Action Buttons */
.qty-input-group { display: flex; align-items: center; gap: 6px; }
.input-tool-qty {
    width: 80px; height: 36px; border: 1px solid #cbd5e1; border-radius: 4px;
    padding: 0 8px; text-align: center; font-size: 14px; font-weight: 600; outline: none;
}
.input-tool-qty:focus { border-color: var(--primary-color); }

.btn-add-cart {
    height: 36px; padding: 0 14px; background: var(--primary-color); color: #fff;
    border: none; border-radius: 4px; font-size: 13px; font-weight: 600; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px; transition: background 0.2s; white-space: nowrap;
}
.btn-add-cart:hover { background: var(--primary-dark); }

.btn-delete-cart {
    height: 36px; padding: 0 14px; background: var(--danger-color); color: #fff;
    border: none; border-radius: 4px; font-size: 13px; font-weight: 600; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px; transition: background 0.2s; white-space: nowrap;
}
.btn-delete-cart:hover { background: #be123c; }

/* Empty Data Placeholder */
.empty-table-msg { text-align: center; padding: 40px 0; color: #94a3b8; font-size: 15px; }

/* ==========================================================================
   Floating Cart Icon (Follows Page Scroll)
   ========================================================================== */
.floating-cart-btn {
    position: fixed; right: 35px; top: 40%; transform: translateY(-50%);
    width: 60px; height: 60px; background: var(--primary-color); color: #fff;
    border-radius: 50%; box-shadow: 0 8px 20px rgba(0, 82, 212, 0.35);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    cursor: pointer; z-index: 999; transition: transform 0.2s, background 0.2s;
    border: 2px solid #fff;
}
.floating-cart-btn:hover { transform: translateY(-50%) scale(1.08); background: var(--primary-dark); }
.floating-cart-btn i { font-size: 20px; }
.cart-badge-count {
    position: absolute; top: -4px; right: -4px; background: var(--danger-color);
    color: #fff; font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 10px;
    border: 2px solid #fff; min-width: 22px; text-align: center;
}

/* Cart Flash Animation */
@keyframes cartPulse {
    0% { transform: translateY(-50%) scale(1); box-shadow: 0 8px 20px rgba(0, 82, 212, 0.35); }
    30% { transform: translateY(-50%) scale(1.25) rotate(-10deg); background: var(--danger-color); box-shadow: 0 0 25px rgba(225, 29, 72, 0.7); }
    60% { transform: translateY(-50%) scale(1.25) rotate(10deg); background: var(--danger-color); box-shadow: 0 0 25px rgba(225, 29, 72, 0.7); }
    100% { transform: translateY(-50%) scale(1); box-shadow: 0 8px 20px rgba(0, 82, 212, 0.35); }
}
.cart-notify-pulse {
    animation: cartPulse 0.6s ease-in-out;
}

/* ==========================================================================
   RFQ Form Area (Under Cart Table)
   ========================================================================== */
.rfq-form-section {
    margin-top: 30px;
    padding: 25px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: none; /* Default Hidden */
}
.rfq-form-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}
.rfq-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.rfq-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rfq-form-group.full-width {
    grid-column: span 2;
}
.rfq-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}
.rfq-form-group label span {
    color: var(--danger-color);
}
.rfq-form-group input, .rfq-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}
.rfq-form-group input:focus, .rfq-form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,82,212,0.1);
}
.btn-submit-rfq {
    margin-top: 15px;
    height: 46px;
    padding: 0 30px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}
.btn-submit-rfq:hover {
    background: var(--primary-dark);
}

/* ==========================================================================
   Product Detail Page Specific Styles
   ========================================================================== */
.detail-card {
    background: #fff; border: 1px solid var(--border-color); border-radius: 8px;
    padding: 30px; box-shadow: 0 4px 12px rgba(0,0,0,0.02); margin-bottom: 30px;
}

/* Product Title */
.product-detail-title {
    font-size: 26px; font-weight: 700; color: #1a2530; margin-bottom: 25px;
    padding-bottom: 15px; border-bottom: 2px solid var(--light-bg); line-height: 1.3;
}

/* Product Top Section Split (Left Image, Right Attributes) */
.detail-top-wrapper { display: flex; gap: 35px; margin-bottom: 10px; }

.detail-img-box {
    width: 380px; flex-shrink: 0; background: #fff; border: 1px solid var(--border-color);
    border-radius: 8px; padding: 15px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.detail-img-box img { max-height: 320px; width: auto; object-fit: contain; }

.detail-field-box { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }

/* Attributes Table */
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 14px; }
.spec-table tr { border-bottom: 1px solid var(--border-color); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td { padding: 10px 12px; }
.spec-table td.label { width: 35%; font-weight: 600; color: #555; background-color: #fcfcfc; border-right: 1px solid var(--border-color); }
.spec-table td.value { color: #222; font-weight: 500; }

/* RFQ Fixed Link Button */
.rfq-btn-wrap { margin-top: 15px; }
.btn-rfq {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background-color: var(--primary-color); color: #ffffff; padding: 12px 28px;
    font-size: 15px; font-weight: 700; border-radius: 6px; transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 82, 212, 0.25); text-transform: uppercase; letter-spacing: 0.5px;
}
.btn-rfq:hover { background-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0, 82, 212, 0.35); }

/* Product Description Section */
.description-card {
    background: #fff; border: 1px solid var(--border-color); border-radius: 8px;
    padding: 30px; box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.section-tab-header {
    border-bottom: 2px solid var(--primary-color); margin-bottom: 25px; padding-bottom: 10px;
}
.section-tab-header h3 { font-size: 20px; font-weight: 700; color: var(--secondary-color); display: inline-block; }

.description-content { color: #444; font-size: 15px; line-height: 1.8; }
.description-content p { margin-bottom: 16px; }
.description-content h4 { font-size: 17px; font-weight: 700; color: #222; margin: 25px 0 12px 0; }

.description-content ul { list-style: disc; padding-left: 20px; margin-bottom: 20px; }
.description-content ul li { margin-bottom: 8px; }

.tech-data-table {
    width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px;
}
.tech-data-table th, .tech-data-table td {
    border: 1px solid var(--border-color); padding: 12px 15px; text-align: left;
}
.tech-data-table th { background-color: var(--light-bg); color: var(--secondary-color); font-weight: 700; }

/* ==========================================================================
   About Page Specific Styles
   ========================================================================== */
.sidebar-menu-card { background: #fff; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.sidebar-nav li a {
    display: flex; justify-content: space-between; align-items: center; padding: 14px 20px;
    font-size: 15px; font-weight: 600; color: #444; border-bottom: 1px solid var(--border-color); transition: all 0.2s ease;
}
.sidebar-nav li:last-child a { border-bottom: none; }
.sidebar-nav li a:hover, .sidebar-nav li a.active { background-color: var(--light-bg); color: var(--primary-color); padding-left: 25px; }

.content-block { background: #fff; border: 1px solid var(--border-color); border-radius: 8px; padding: 35px; margin-bottom: 40px; box-shadow: 0 4px 12px rgba(0,0,0,0.02); }
.block-title { font-size: 24px; color: #222; margin-bottom: 20px; font-weight: 700; position: relative; padding-bottom: 10px; }
.block-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 45px; height: 3px; background: var(--primary-color); }

.about-text-content p { font-size: 15px; color: #444; line-height: 1.8; margin-bottom: 16px; }
.about-main-img { border-radius: 6px; margin: 20px 0; overflow: hidden; }

/* Inner Workshop Grid */
.inner-workshop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 15px; }
.inner-workshop-item { border-radius: 6px; overflow: hidden; height: 200px; }
.inner-workshop-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.inner-workshop-item:hover img { transform: scale(1.06); }

/* Inner Certificates Grid */
.inner-cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-top: 15px; }
.inner-cert-card { background: var(--light-bg); border: 1px solid var(--border-color); border-radius: 6px; padding: 15px; text-align: center; }
.inner-cert-img { height: 160px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; overflow: hidden; background: #fff; border-radius: 4px; }
.inner-cert-img img { max-height: 90%; width: auto; }
.inner-cert-card h5 { font-size: 14px; color: #333; font-weight: 600; }

/* ==========================================================================
   Contact Page Specific Styles
   ========================================================================== */
.contact-wrapper-card {
    background: #fff; border: 1px solid var(--border-color); border-radius: 8px;
    padding: 35px; box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.contact-grid {
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px;
}

/* Left Side: Direct Contact Details */
.contact-info-block { display: flex; flex-direction: column; gap: 20px; }
.contact-info-block h3 {
    font-size: 22px; font-weight: 700; color: var(--secondary-color);
    padding-bottom: 12px; border-bottom: 2px solid var(--primary-color); margin-bottom: 5px;
}

.info-item { display: flex; gap: 15px; align-items: flex-start; }
.info-icon {
    width: 42px; height: 42px; background: var(--light-bg); color: var(--primary-color);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0; margin-top: 2px;
}
.info-text label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; color: #888; margin-bottom: 2px; }
.info-text p, .info-text a { font-size: 15px; color: #222; font-weight: 600; word-break: break-word; }
.info-text a:hover { color: var(--primary-color); }

/* Right Side: Inquiry Form */
.contact-form-block h3 {
    font-size: 22px; font-weight: 700; color: var(--secondary-color);
    padding-bottom: 12px; border-bottom: 2px solid var(--primary-color); margin-bottom: 20px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.form-group { margin-bottom: 15px; }
.form-group.full-width { grid-column: span 2; }

.form-group label {
    display: block; font-size: 13px; font-weight: 600; color: #444; margin-bottom: 6px;
}
.form-group label .required { color: #e53e3e; margin-left: 3px; }

.form-control {
    width: 100%; padding: 10px 14px; font-size: 14px; color: #333; background: #fff;
    border: 1px solid var(--border-color); border-radius: 5px; outline: none; transition: border-color 0.2s ease;
}
.form-control:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0, 82, 212, 0.1); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* Code Validation Layout */
.captcha-row { display: flex; gap: 12px; align-items: center; }
.captcha-code-box {
    background: #e2e8f0; color: #1a2530; font-family: 'Courier New', Courier, monospace;
    font-weight: 700; font-size: 18px; letter-spacing: 4px; 
    border-radius: 5px; user-select: none; border: 1px solid #cbd5e1; cursor: pointer; text-align: center;
}

.btn-submit {
    background-color: var(--primary-color); color: #fff; font-size: 15px; font-weight: 700;
    padding: 12px 30px; border: none; border-radius: 5px; cursor: pointer; width: 100%;
    transition: background 0.3s ease, transform 0.2s ease; text-transform: uppercase; letter-spacing: 0.5px;
}
.btn-submit:hover { background-color: var(--primary-dark); transform: translateY(-1px); }

/* ==========================================================================
   Capability Page Specific Styles
   ========================================================================== */
.capability-card {
    background: #fff; border: 1px solid var(--border-color); border-radius: 8px;
    padding: 30px; box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.capability-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 2px solid var(--primary-color); padding-bottom: 15px; margin-bottom: 25px;
}
.capability-header h2 { font-size: 22px; font-weight: 700; color: var(--secondary-color); }
.capability-header span { font-size: 14px; color: #666; }

/* Table Styling for Model / Name & Date */
.capability-table {
    width: 100%; border-collapse: collapse; text-align: left; font-size: 14px;
}
.capability-table th {
    background: #f1f5f9; color: #334155; font-weight: 700; padding: 14px 18px;
    border-bottom: 2px solid var(--border-color); white-space: nowrap;
}
.capability-table td {
    padding: 16px 18px; border-bottom: 1px solid var(--border-color); vertical-align: middle; color: #475569;
}
.capability-table tbody tr:hover { background-color: #f8fafc; }

/* Model Name Column Link & Typography */
.item-model-link {
    font-size: 15px; font-weight: 600; color: #1e293b; display: inline-block;
    line-height: 1.5; word-break: break-word;
}
.item-model-link:hover { color: var(--primary-color); }

.item-date { color: #64748b; font-size: 13px; white-space: nowrap; }
.btn-view-spec {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
    font-size: 12px; font-weight: 600; color: var(--primary-color); background: var(--light-bg);
    border-radius: 4px; border: 1px solid #dbeafe; white-space: nowrap;
}
.btn-view-spec:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

/* Pagination Component */
.pagination-wrapper {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border-color); flex-wrap: wrap; gap: 15px;
}
.pagination-info { font-size: 14px; color: #64748b; }
.pagination { display: flex; align-items: center; gap: 6px; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 10px; font-size: 14px; font-weight: 600;
    border: 1px solid var(--border-color); border-radius: 4px; color: #475569; background: #fff;
    transition: all 0.2s ease;
}
.pagination a:hover { border-color: var(--primary-color); color: var(--primary-color); background: #f0f4f8; }
.pagination .active { background-color: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.pagination .disabled { color: #cbd5e1; border-color: #f1f5f9; cursor: not-allowed; background: #f8fafc; }

/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer-main { background-color: var(--secondary-color); color: #cbd5e1; padding: 60px 0 30px 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 20px; position: relative; padding-bottom: 8px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background-color: var(--primary-color); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a:hover { color: #fff; padding-left: 4px; }
.footer-contact-info p { margin-bottom: 10px; line-height: 1.5; }

.footer-bottom { border-top: 1px solid #334155; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; font-size: 13px; }
.footer-links a { margin: 0 8px; color: #94a3b8; }
.footer-links a:hover { color: #fff; }

/* 4, 底部中国国旗图标正圆裁切与五星醒目处理 */
.country-flag { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #e2e8f0; }
.flag-icon-round { 
    width: 28px; 
    height: 28px; 
    border-radius: 50%; 
    overflow: hidden; 
    box-shadow: 0 0 6px rgba(255,255,255,0.25); 
    border: 1px solid rgba(255,255,255,0.3);
    display: inline-block;
    vertical-align: middle;
    background-color: #ee1c25;
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 9999;
    text-decoration: none;
}

#backToTop:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Responsive Navigation Toggle
   ========================================================================== */
.menu-toggle { display: none; font-size: 22px; cursor: pointer; color: #333; }

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* 992px and below */
@media (max-width: 992px) {
    .layout-wrapper { flex-direction: column; }
    .sidebar { width: 100%; }
    .detail-top-wrapper { flex-direction: column; }
    .detail-img-box { width: 100%; }
    .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    .inner-workshop-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .floating-cart-btn { right: 20px; top: 80%; width: 54px; height: 54px; }
    
    .menu-toggle { display: block; }
    .nav-menu { display: none; width: 100%; position: absolute; top: 100%; left: 0; background: #fff; flex-direction: column; padding: 20px; box-shadow: 0 10px 15px rgba(0,0,0,0.1); }
    .nav-menu.show { display: flex; }
    .nav-menu > li { margin: 10px 0; width: 100%; }
    
    .nav-menu .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 15px;
        width: 100%;
        display: none; 
        background: #f8f9fa; 
        border-radius: 4px;
        margin-top: 5px;
    }
            
    .nav-menu > li:hover .dropdown-menu {
        display: none;
    }
    
    .nav-menu > li.open > .dropdown-menu {
        display: block !important;
    }

    .nav-menu > li > a .fa-chevron-down {
        transition: transform 0.3s ease;
    }
    .nav-menu > li.open > a .fa-chevron-down {
        transform: rotate(180deg);
    }
    
    .hero-title { font-size: 26px; }
    .hero-subtitle { font-size: 14px; }
    .hero-section { height: auto; padding: 50px 0; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* 768px and below */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .top-bar-inner {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
    .top-socials {
        display: flex;
        justify-content: center;
    }
    .top-socials a {
        margin: 0 8px;
    }
    .top-contact {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .top-contact a {
        margin: 0;
    }

    .logo {
        width: 240px; 
        height: auto;
    }
    
    .nav-right-wrap {
        gap: 10px; 
    }

    .lang-btn-group {
        flex-shrink: 0; 
        white-space: nowrap; 
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 12px;
    }

    .inner-hero { height: 220px; }
    .inner-hero-content h1 { font-size: 26px; }
    .inner-hero-content p { font-size: 14px; }

    

    .stock-card { padding: 20px 15px; }
    .stock-table th, .stock-table td { padding: 10px 8px; }
    
    .rfq-form-grid { grid-template-columns: 1fr; }
    .rfq-form-group.full-width { grid-column: span 1; }

    .product-grid { grid-template-columns: 1fr; }
    .product-detail-title { font-size: 20px; }
    .detail-card, .description-card { padding: 20px; }
    
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-group.full-width { grid-column: span 1; }
    .contact-wrapper-card { padding: 20px; }
    
    .capability-card { padding: 20px 15px; }
    .capability-header { flex-direction: column; align-items: flex-start; gap: 5px; }
    .capability-table th, .capability-table td { padding: 12px 10px; }
    .pagination-wrapper { flex-direction: column; align-items: center; }
    
    .content-block { padding: 20px; }
    
    .footer-bottom { flex-direction: column; text-align: center; }
    #backToTop { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}

/* 993px and above (workshop grid 4 columns) */
@media (min-width: 993px) {
    .inner-workshop-grid {
        grid-template-columns: repeat(4, 1fr); 
        gap: 15px;
    }
    
    .inner-workshop-item {
        height: 150px;
    }
}