/* ============================================
   Lanxin Industrial - Main Stylesheet v3.0.1
   Industrial machinery WordPress theme
   ============================================ */

/* CSS Variables */
:root {
    --blue: #087eb8;
    --blue-dark: #063b55;
    --cyan: #22a9da;
    --ink: #173247;
    --muted: #657986;
    --line: #dce8ed;
    --soft: #f3f8fa;
    --white: #fff;
    --shadow: 0 12px 34px rgba(18, 52, 70, .08);
    --container: 1200px;
    --radius: 8px;
    --transition: .25s ease;
}

/* Reset / Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--white);
    overflow-x: hidden;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--cyan);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
    color: var(--ink);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Container */
.container {
    width: min(var(--container), calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

.narrow-content {
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
    gap: 8px;
}
.btn.primary, .btn-primary {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}
.btn.primary:hover, .btn-primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: var(--white);
}
.btn.outline, .btn-secondary {
    background: transparent;
    color: var(--blue);
    border: 2px solid var(--blue);
}
.btn.outline:hover, .btn-secondary:hover {
    background: var(--blue);
    color: var(--white);
}

/* ============================================
   Site Header
   ============================================ */
.site-header {
    height: 86px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}
.site-brand img {
    max-height: 48px;
    width: auto;
}
.brand-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--blue);
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 800;
    font-size: 1.1rem;
}

.site-nav-wrap {
    display: flex;
    align-items: center;
}

.primary-nav, .main-nav {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.primary-nav .menu-item, .main-nav .menu-item {
    position: relative;
}

.primary-nav .menu-item > a, .main-nav .menu-item > a {
    display: block;
    padding: 10px 16px;
    font-size: .95rem;
    font-weight: 500;
    color: var(--ink);
    transition: color var(--transition);
}
.primary-nav .menu-item > a:hover, .main-nav .menu-item > a:hover {
    color: var(--blue);
}

/* ===== Dropdown Menu Styles ===== */
/* Parent item arrow indicator */
.primary-nav .menu-item-has-children > a,
.main-nav .menu-item-has-children > a {
    position: relative;
    padding-right: 28px;
}
.primary-nav .menu-item-has-children > a::after,
.main-nav .menu-item-has-children > a::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: translateY(-60%) rotate(45deg);
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.primary-nav .menu-item-has-children:hover > a::after,
.main-nav .menu-item-has-children:hover > a::after {
    transform: translateY(-20%) rotate(225deg);
    border-color: var(--blue);
}

/* Dropdown panel */
.primary-nav .sub-menu,
.main-nav .sub-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 230px;
    background: var(--white);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(18, 52, 70, 0.10), 0 1.5px 6px rgba(18, 52, 70, 0.06);
    border: 1px solid rgba(18, 52, 70, 0.06);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.primary-nav .sub-menu::before,
.main-nav .sub-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--white);
    border-left: 1px solid rgba(18, 52, 70, 0.06);
    border-top: 1px solid rgba(18, 52, 70, 0.06);
}
.primary-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown items */
.primary-nav .sub-menu .menu-item,
.main-nav .sub-menu .menu-item {
    margin: 0;
}
.primary-nav .sub-menu .menu-item > a,
.main-nav .sub-menu .menu-item > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 450;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease, padding 0.18s ease;
    position: relative;
}
.primary-nav .sub-menu .menu-item > a::before,
.main-nav .sub-menu .menu-item > a::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--line);
    flex-shrink: 0;
    transition: background 0.18s ease, transform 0.18s ease;
}
.primary-nav .sub-menu .menu-item > a:hover,
.main-nav .sub-menu .menu-item > a:hover {
    background: linear-gradient(90deg, var(--soft), transparent);
    color: var(--blue);
    padding-left: 24px;
}
.primary-nav .sub-menu .menu-item > a:hover::before,
.main-nav .sub-menu .menu-item > a:hover::before {
    background: var(--blue);
    transform: scale(1.5);
}

/* "All Products" first item highlight */
.primary-nav .sub-menu .menu-item:first-child > a,
.main-nav .sub-menu .menu-item:first-child > a {
    font-weight: 600;
    color: var(--blue);
}
.primary-nav .sub-menu .menu-item:first-child > a::before,
.main-nav .sub-menu .menu-item:first-child > a::before {
    background: var(--blue);
    width: 6px;
    height: 6px;
}

.nav-cta {
    margin-left: 16px;
    padding: 8px 20px !important;
    font-size: .9rem !important;
}

/* WhatsApp Chat Link */
.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 24px;
    background: #25D366;
    color: #fff !important;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .95rem;
    transition: background var(--transition), transform var(--transition);
    text-decoration: none;
}
.whatsapp-link:hover {
    background: #1da851;
    color: #fff !important;
    transform: translateY(-1px);
}
.whatsapp-link .whatsapp-icon {
    font-size: 1.2rem;
}

.nav-toggle, .mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span, .mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
    transition: var(--transition);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 650px;
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, var(--cyan) 100%);
    display: flex;
    align-items: center;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.hero .container, .hero-inner {
    position: relative;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(6, 59, 85, .45);
    z-index: 1;
}

.hero-eyebrow {
    display: inline-block;
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: .85;
    margin-bottom: 16px;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 20px;
    color: var(--white);
}
.hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.15;
}
.hero p {
    font-size: 1.1rem;
    opacity: .9;
    margin-bottom: 32px;
    line-height: 1.7;
    color: var(--white);
}
.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-btns .btn.primary {
    background: var(--white);
    color: var(--blue);
    border-color: var(--white);
}
.hero-btns .btn.primary:hover {
    background: var(--soft);
    color: var(--blue-dark);
}
.hero-btns .btn.outline {
    border-color: var(--white);
    color: var(--white);
}
.hero-btns .btn.outline:hover {
    background: var(--white);
    color: var(--blue);
}

/* Hero Decor - CSS Machines */
.hero-decor {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    pointer-events: none;
}
.machine {
    position: absolute;
    background: rgba(255,255,255,.1);
    border: 2px solid rgba(255,255,255,.15);
    border-radius: 12px;
}
.machine-1 {
    width: 160px;
    height: 200px;
    top: 40px;
    right: 10%;
}
.machine-2 {
    width: 140px;
    height: 180px;
    top: 80px;
    right: 30%;
}

/* ============================================
   Section
   ============================================ */
.section {
    padding: 86px 0;
}
.section.soft {
    background: var(--soft);
}
.section-head {
    text-align: center;
    margin-bottom: 50px;
}
.section-head h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}
.section-head p {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
}
.section-foot {
    text-align: center;
    margin-top: 40px;
}

/* ============================================
   Category Bar (Products)
   ============================================ */
.cat-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    justify-content: center;
}
.cat-link {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--line);
    font-size: .9rem;
    font-weight: 500;
    color: var(--ink);
    transition: all var(--transition);
}
.cat-link:hover {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

/* ============================================
   Product Grid
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.product-grid.full-list {
    grid-template-columns: repeat(4, 1fr);
}
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--blue);
}
.product-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--soft);
}
.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}
.product-card:hover .product-media img {
    transform: scale(1.05);
}
.product-card .card-content {
    padding: 20px;
}
.product-card .card-content h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}
.product-card .card-content p {
    font-size: .9rem;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.model-tag {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    color: var(--blue);
    background: rgba(8, 126, 184, .08);
    padding: 2px 10px;
    border-radius: 12px;
    margin-bottom: 6px;
}
.model-badge {
    display: inline-block;
    font-size: .85rem;
    font-weight: 700;
    color: var(--white);
    background: var(--blue);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.type-tag {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    color: var(--cyan);
    background: rgba(34, 169, 218, .1);
    padding: 2px 10px;
    border-radius: 12px;
    margin-bottom: 4px;
}

/* ============================================
   Why Choose Us
   ============================================ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.why-card {
    text-align: center;
    padding: 28px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    transition: all var(--transition);
}
.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.why-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
}
.why-card h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}
.why-card p {
    font-size: .9rem;
    color: var(--muted);
}

/* ============================================
   Solution Grid
   ============================================ */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.solution-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
}
.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.solution-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--soft);
}
.solution-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}
.solution-card:hover .solution-media img {
    transform: scale(1.05);
}
.solution-card .card-content {
    padding: 20px;
}
.solution-card .card-content h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}
.solution-card .card-content p {
    font-size: .9rem;
    color: var(--muted);
}

/* ============================================
   Category Grid (Archive Product)
   ============================================ */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}
.cat-grid.subcats {
    margin-bottom: 0;
}
.cat-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    overflow: hidden;
    text-align: center;
    transition: all var(--transition);
}
.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--blue);
}
.cat-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--soft);
}
.cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cat-info {
    padding: 16px;
}
.cat-info h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}
.cat-info span {
    font-size: .85rem;
    color: var(--muted);
}

/* ============================================
   Homepage Technical Split
   ============================================ */
.tech-split {
    display: grid;
    grid-template-columns: 1fr 420px;
    align-items: stretch;
    gap: 32px;
}

.tech-featured {
    display: flex;
    flex-direction: column;
}
.tech-featured-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    overflow: hidden;
    background: var(--white);
    height: 100%;
    transition: all var(--transition);
    color: var(--ink);
}
.tech-featured-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--blue);
    color: var(--ink);
}
.tech-featured-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--soft);
}
.tech-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tech-featured-card h3 {
    padding: 20px 20px 8px;
    font-size: 1.2rem;
}
.tech-featured-card p {
    padding: 0 20px;
    color: var(--muted);
    font-size: .95rem;
    flex: 1;
}
.tech-featured-card .tech-date {
    padding: 12px 20px 0;
}
.tech-featured-card .tech-read {
    display: block;
    padding: 8px 20px 20px;
    color: var(--blue);
    font-weight: 600;
    font-size: .9rem;
}

.tech-list {
    display: flex;
    flex-direction: column;
}
.tech-list-item {
    flex: 1;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all var(--transition);
    color: var(--ink);
}
.tech-list-item:last-child {
    border-bottom: none;
}
.tech-list-item:hover {
    color: var(--blue);
}
.tech-list-item h4 {
    font-size: 1rem;
    margin-bottom: 6px;
}
.tech-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cat-pill {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    color: var(--blue);
    background: rgba(8, 126, 184, .08);
    padding: 2px 10px;
    border-radius: 12px;
}
.tech-date {
    font-size: .8rem;
    color: var(--muted);
}

/* ============================================
   CTA Band
   ============================================ */
.cta-band {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}
.cta-band h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 16px;
}
.cta-band p {
    font-size: 1.05rem;
    opacity: .85;
    margin-bottom: 28px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.cta-band .btn.primary {
    background: var(--white);
    color: var(--blue);
    border-color: var(--white);
}
.cta-band .btn.primary:hover {
    background: var(--soft);
}

/* ============================================
   Page Hero (Inner pages)
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}

/* General section wrappers */
.products-section,
.solutions-section,
.why-section,
.tech-section {
    padding: 86px 0;
}

/* Generic page wrap */
.wrap {
    padding: 60px 0;
}

/* Sidebar category list */
.cat-list {
    list-style: none;
}
.cat-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.cat-list li:last-child {
    border-bottom: none;
}
.cat-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--ink);
    font-size: .95rem;
}
.cat-list li a:hover {
    color: var(--blue);
}
.cat-list li a span {
    font-size: .8rem;
    color: var(--muted);
}
.page-hero h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 12px;
}
.page-hero p {
    font-size: 1.1rem;
    opacity: .85;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Technical Page Layout (page-technical.php)
   ============================================ */
.tech-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}
.tech-main {
    min-width: 0;
}

.tech-sidebar {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.sidebar-box {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}
.sidebar-box h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--blue);
}
.sidebar-box ul {
    list-style: none;
}
.sidebar-box ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}
.sidebar-box ul li:last-child {
    border-bottom: none;
}
.sidebar-box ul li a {
    color: var(--ink);
    font-size: .95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sidebar-box ul li a:hover {
    color: var(--blue);
}
.sidebar-cta {
    background: var(--soft);
}
.sidebar-cta p {
    font-size: .9rem;
    color: var(--muted);
    margin-bottom: 16px;
}

/* Featured post (technical page) */
.featured-post {
    margin-bottom: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    overflow: hidden;
    background: var(--white);
}
.featured-img {
    aspect-ratio: 21 / 9;
    overflow: hidden;
    background: var(--soft);
}
.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.featured-body {
    padding: 28px;
}
.featured-body h2 {
    margin-bottom: 12px;
}
.featured-body h2 a {
    color: var(--ink);
}
.featured-body h2 a:hover {
    color: var(--blue);
}
.featured-body p {
    color: var(--muted);
    margin-bottom: 10px;
}

/* Article grid 3-col */
.article-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.article-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: all var(--transition);
    color: var(--ink);
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    color: var(--blue);
}
.card-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--soft);
}
.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-card .card-content {
    padding: 16px 20px;
}
.article-card .card-content h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

/* Recent list (sidebar) */
.recent-list {
    list-style: none;
}
.recent-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}
.recent-list li:last-child {
    border-bottom: none;
}
.recent-list li a {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--ink);
}
.recent-list li a:hover {
    color: var(--blue);
}
.recent-thumb {
    width: 60px;
    height: 45px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--soft);
}
.recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.recent-info h5 {
    font-size: .9rem;
    margin-bottom: 2px;
    line-height: 1.3;
}
.recent-info span {
    font-size: .8rem;
    color: var(--muted);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    font-size: .9rem;
    color: var(--ink);
    transition: all var(--transition);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

/* ============================================
   Video Grid
   ============================================ */
.video-grid, .video-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.video-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: all var(--transition);
}
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--blue);
}
.video-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--ink);
}
.video-embed iframe,
.video-embed video {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
}
.video-thumb-wrap {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}
.video-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.duration-tag {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    color: var(--white);
    background: rgba(0, 0, 0, .6);
    padding: 2px 8px;
    border-radius: 4px;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(8, 126, 184, .85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: all var(--transition);
}
.video-card:hover .play-overlay {
    background: var(--blue);
    transform: translate(-50%, -50%) scale(1.1);
}
.video-card .card-content {
    padding: 16px 20px;
}
.video-card .card-content h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}
.video-card .card-content h3 a {
    color: var(--ink);
}
.video-card .card-content h3 a:hover {
    color: var(--blue);
}
.video-card .card-content p {
    font-size: .9rem;
    color: var(--muted);
}

/* ============================================
   Single Product
   ============================================ */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}
.product-main {
    min-width: 0;
}
.product-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}
.product-gallery-main {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--soft);
}
.product-main-img {
    width: 100%;
    height: auto;
    display: block;
}
.product-info h1 {
    margin-bottom: 10px;
}
.short-desc {
    color: var(--muted);
    margin-bottom: 20px;
}

/* Product Tabs */
.product-tabs {
    margin-bottom: 40px;
}
.tab-nav {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--line);
    margin-bottom: 24px;
}
.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
}
.tab-btn:hover {
    color: var(--blue);
}
.tab-btn.active {
    color: var(--blue);
    border-bottom-color: var(--blue);
}
.tab-pane {
    display: none;
}
.tab-pane.active, .tab-body {
    display: block;
}
.specs-table {
    background: var(--soft);
    border-radius: var(--radius);
    padding: 20px;
    font-size: .9rem;
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-x: auto;
}
.feature-list {
    list-style: none;
}
.feature-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    border-bottom: 1px solid var(--line);
}
.feature-list li:last-child {
    border-bottom: none;
}
.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: 700;
}

/* Gallery */
.gallery-section {
    margin-bottom: 40px;
}
.gallery-section h2 {
    margin-bottom: 20px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.gallery-grid img {
    width: 100%;
    border-radius: var(--radius);
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Video section in single product */
.video-section {
    margin-bottom: 40px;
}
.video-section h2 {
    margin-bottom: 20px;
}
.video-embed-wrap,
.video-embed-main {
    border-radius: var(--radius);
    overflow: hidden;
}
.video-single {
    margin-bottom: 30px;
}
.video-description {
    margin-top: 20px;
    line-height: 1.7;
    color: var(--ink);
}
.video-fallback {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--soft);
    border-radius: var(--radius);
}
.video-fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Related products */
.related-section {
    margin-bottom: 20px;
}
.related-section h2 {
    margin-bottom: 24px;
}
.related-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Product sidebar */
.product-sidebar {
    position: sticky;
    top: 110px;
}
.sticky-sidebar {
    position: sticky;
    top: 110px;
}
.quote-form-box {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
}
.quote-form-box h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--blue);
}
.quote-form-box p {
    font-size: .9rem;
    color: var(--muted);
    margin-bottom: 20px;
}

/* ============================================
   Single Solution
   ============================================ */
.benefits-section {
    background: var(--soft);
    border-radius: var(--radius);
    padding: 48px 0;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}
.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--line);
}
.benefit-check {
    color: var(--blue);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ============================================
   Single Post (Article)
   ============================================ */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}
.article-main {
    min-width: 0;
}
.article-detail {
    background: var(--white);
}
.article-featured-img {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
}
.article-featured-img img {
    width: 100%;
    height: auto;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
}
.article-body p {
    margin-bottom: 16px;
}

/* ============================================
   Search Page
   ============================================ */
.no-results {
    text-align: center;
    padding: 60px 0;
}
.no-results p {
    color: var(--muted);
    margin-bottom: 20px;
}

/* ============================================
   404 Page
   ============================================ */
.error-404 {
    padding: 100px 0;
    text-align: center;
}
.error-inner {
    max-width: 500px;
    margin: 0 auto;
}
.error-num {
    font-size: 6rem;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
    display: block;
    margin-bottom: 10px;
}
.error-inner h1 {
    margin-bottom: 12px;
}
.error-inner p {
    color: var(--muted);
    margin-bottom: 24px;
}
.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Site Footer
   ============================================ */
.site-footer {
    background: #082b3e;
    color: rgba(255, 255, 255, .75);
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}
.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 16px;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col ul li a {
    color: rgba(255, 255, 255, .65);
    font-size: .9rem;
    transition: color var(--transition);
}
.footer-col ul li a:hover {
    color: var(--white);
}
.footer-col p {
    font-size: .9rem;
    line-height: 1.7;
}
.footer-col p a {
    color: rgba(255, 255, 255, .75);
}
.footer-col p a:hover {
    color: var(--white);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 24px;
    text-align: center;
    font-size: .85rem;
    color: rgba(255, 255, 255, .5);
}

/* ============================================
   Quote Form
   ============================================ */
.lanxin-quote-form {
    max-width: 600px;
}
.lanxin-quote-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.lanxin-quote-form .form-group {
    margin-bottom: 16px;
}
.lanxin-quote-form .form-group label {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ink);
}
.lanxin-quote-form .form-group input,
.lanxin-quote-form .form-group textarea,
.lanxin-quote-form .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: .95rem;
    font-family: inherit;
    transition: border-color var(--transition);
    background: var(--white);
}
.lanxin-quote-form .form-group input:focus,
.lanxin-quote-form .form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(8, 126, 184, .1);
}
.lanxin-quote-form .form-group textarea {
    resize: vertical;
    min-height: 100px;
}
.form-status {
    font-size: .9rem;
    margin-top: 12px;
}

/* ============================================
   Breadcrumb
   ============================================ */
.lanxin-breadcrumb {
    padding: 14px 0;
    font-size: .85rem;
    color: rgba(255,255,255,.6);
    margin-bottom: 10px;
}
.page-hero .lanxin-breadcrumb {
    color: rgba(255,255,255,.6);
}
.lanxin-breadcrumb a {
    color: rgba(255,255,255,.6);
}
.lanxin-breadcrumb a:hover {
    color: var(--white);
}
.lanxin-breadcrumb .sep {
    margin: 0 8px;
    opacity: .5;
}
/* Breadcrumb on non-hero pages */
body:not(.lanxin-home) .section > .container > .lanxin-breadcrumb {
    color: var(--muted);
}
body:not(.lanxin-home) .section > .container > .lanxin-breadcrumb a {
    color: var(--muted);
}
body:not(.lanxin-home) .section > .container > .lanxin-breadcrumb a:hover {
    color: var(--blue);
}

/* ============================================
   Responsive Breakpoints
   ============================================ */
@media (max-width: 1050px) {
    .product-grid,
    .why-grid,
    .solution-grid,
    .cat-grid,
    .article-grid-3col {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero .container {
        grid-template-columns: 1fr;
    }
    .hero-decor {
        display: none;
    }
    .tech-split {
        grid-template-columns: 1fr;
    }
    .tech-layout {
        grid-template-columns: 1fr;
    }
    .product-detail,
    .article-layout {
        grid-template-columns: 1fr;
    }
    .product-top {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tech-sidebar,
    .product-sidebar,
    .sticky-sidebar {
        position: static;
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .product-grid,
    .why-grid,
    .solution-grid,
    .cat-grid,
    .article-grid-3col,
    .video-grid,
    .video-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero h1, .page-hero h1 {
        font-size: 2.2rem;
    }
    .hero {
        min-height: auto;
        padding: 40px 0;
    }

    /* Mobile nav */
    .nav-toggle, .mobile-toggle {
        display: block;
    }
    .site-nav-wrap {
        position: fixed;
        top: 86px;
        left: 0;
        width: 100%;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
        flex-direction: column;
        align-items: stretch;
    }
    .site-nav-wrap.open {
        max-height: 80vh;
        overflow-y: auto;
    }
    .primary-nav, .main-nav {
        flex-direction: column;
        padding: 12px 0;
    }
    .primary-nav .menu-item > a,
    .main-nav .menu-item > a {
        padding: 12px 20px;
    }
    .primary-nav .sub-menu,
    .main-nav .sub-menu {
        display: none;
        position: static;
        box-shadow: none;
        padding: 0;
        background: var(--soft);
        border-top: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .primary-nav .menu-item-has-children.open .sub-menu,
    .main-nav .menu-item-has-children.open .sub-menu {
        display: block;
    }
    .primary-nav .sub-menu .menu-item > a,
    .main-nav .sub-menu .menu-item > a {
        padding: 10px 28px;
        border-left: 3px solid var(--blue);
    }
    .primary-nav .sub-menu .menu-item > a:hover,
    .main-nav .sub-menu .menu-item > a:hover {
        padding-left: 32px;
    }
    /* Mobile dropdown arrow rotation */
    .primary-nav .menu-item-has-children.open > a::after,
    .main-nav .menu-item-has-children.open > a::after {
        transform: rotate(180deg);
    }
    .nav-cta {
        margin: 12px 20px;
        text-align: center;
    }
    .lanxin-quote-form .form-row {
        grid-template-columns: 1fr;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .product-grid,
    .why-grid,
    .solution-grid,
    .cat-grid,
    .article-grid-3col {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 50px 0;
    }
    .section-head h2 {
        font-size: 1.6rem;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .page-hero h1 {
        font-size: 1.8rem;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
}
