:root {
    --primary-color: #004a99;
}
.bg-primary { background-color: var(--primary-color); }
.text-primary { color: var(--primary-color); }
.border-primary { border-color: var(--primary-color); }
.hover-primary:hover { background-color: #003a7a; }

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Front Page Header Styles */
#front-page-header {
    background: transparent !important;
}

#front-page-header .header-glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

#front-page-header .header-content {
    position: relative;
    z-index: 1;
}

/* Top Bar Fixed */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 51;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Add padding to body when topbar is fixed (only on front page) */
body.home {
    padding-top: 25px;
}

.top-bar.top-bar-transparent {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Initial state: white text for front page header */
#front-page-header .header-nav-color a,
#front-page-header #mobile-menu-toggle {
    color: #ffffff;
    transition: color 0.3s ease;
}

#front-page-header .header-quote-btn {
    color: #ffffff;
    border-color: #ffffff;
    transition: color 0.3s ease, border-color 0.3s ease;
}

/* Keep logo primary color */
#front-page-header .text-primary {
    color: var(--primary-color) !important;
}

/* 鈿狅笍 FIX: Mobile menu text color on front page - must override white text */
#front-page-header #mobile-menu,
#front-page-header #mobile-menu *,
#front-page-header #mobile-menu a,
#front-page-header #mobile-menu .header-nav-color,
#front-page-header #mobile-menu li a,
#front-page-header #mobile-menu ul a,
#front-page-header #mobile-menu .menu-item a {
    color: #374151 !important;
}

#front-page-header #mobile-menu a:hover,
#front-page-header #mobile-menu .menu-item a:hover {
    color: var(--primary-color) !important;
}

/* 鈿狅笍 FIX: Mobile quote button and menu toggle - visible on white background */
#front-page-header .header-quote-btn,
#front-page-header #mobile-menu-toggle {
    color: #374151 !important;
    border-color: #374151 !important;
}

#front-page-header .header-quote-btn:hover,
#front-page-header #mobile-menu-toggle:hover {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* 鈿狅笍 FIX: When mobile menu is open, force header to solid state */
#front-page-header.menu-open,
.header-wrapper.menu-open {
    background: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

#front-page-header.menu-open .header-nav-color a,
#front-page-header.menu-open #mobile-menu-toggle,
#front-page-header.menu-open .header-quote-btn {
    color: #374151 !important;
    border-color: #374151 !important;
}

#front-page-header.menu-open .header-nav-color a:hover,
#front-page-header.menu-open #mobile-menu-toggle:hover,
#front-page-header.menu-open .header-quote-btn:hover {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* Ensure header glass overlay doesn't interfere when menu is open */
#front-page-header.menu-open .header-glass-overlay {
    background: rgba(255, 255, 255, 0.95) !important;
}

/* Global text alignment for better readability */
p, .description, .content, .text-content, .card-content,
.timeline-description, .qa-answer, .product-description {
    text-align: left;
    word-break: break-word;
}

/* Center alignment for certificate section description */
section.py-20.bg-gray-50 .text-center .text-gray-500 {
    text-align: center !important;
}

/* Override global p text alignment for center-aligned contexts */
.text-center p,
section.py-20.bg-gray-50 .text-center p {
    text-align: center !important;
}

/* Mega menu simulation */
.mega-menu {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 50;
    transition: all 0.3s ease;
    transform: translateY(10px);
}
.group:hover .mega-menu { 
    opacity: 100;
    visibility: visible;
    transform: translateY(0);
}
.mega-menu::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

/* WhatsApp Floating Button Styling (if needed beyond Tailwind) */
.whatsapp-float {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

[data-animate] {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.8,.2,1);
    will-change: opacity, transform;
}

[data-animate="fade-left"] { transform: translate3d(-18px, 0, 0); }
[data-animate="fade-right"] { transform: translate3d(18px, 0, 0); }

/* When section is visible */
[data-animate].animated {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Animated children - only for direct children with specific animation classes */
[data-animate].animated > .animate-item {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Initial state for animated items */
[data-animate] > .animate-item {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.8,.2,1);
}

[data-animate="fade-left"] > .animate-item {
    transform: translate3d(-18px, 0, 0);
}

[data-animate="fade-right"] > .animate-item {
    transform: translate3d(18px, 0, 0);
}

/* Q&A Accordion Styles */
.yichuhui-qa-section {
    background: #ffffff;
}

.qa-accordion {
    max-width: 100%;
    margin: 0 auto;
}

.qa-item {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.qa-item:hover {
    border-color: #d1d5db;
    background: #f3f4f6;
}

.qa-item.active {
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.qa-question {
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 600;
    color: #1f2937;
}

.qa-question:hover {
    color: var(--primary-color);
}

.qa-icon {
    transition: all 0.3s ease;
}

.qa-item.active .qa-icon {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: rotate(45deg);
}

.qa-item.active .qa-icon .fa-plus {
    transform: rotate(0deg);
}

.qa-answer {
    line-height: 1.7;
    color: #4b5563;
    font-size: 0.95rem;
    animation: slideDown 0.3s ease-out;
}

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

/* Responsive Q&A */
@media (max-width: 768px) {
    .yichuhui-qa-section {
        padding: 3rem 1rem;
    }
    
    .qa-question {
        font-size: 0.95rem;
        padding: 1rem !important;
    }
    
    .qa-answer {
        padding: 0 1rem 1.5rem !important;
        font-size: 0.9rem;
    }
    
    .yichuhui-qa-section h2 {
        font-size: 1.75rem !important;
    }
}

[data-animate="zoom-in"] { transform: translate3d(0, 0, 0) scale(.96); }

.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.hero-bg {
    transform: scale(1.08);
    animation: heroZoom 16s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.06); }
    to { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .hero-bg { animation: none !important; }
}

.ych-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--primary-new);
    color: #fff !important;
    transition: all 0.3s ease;
    text-decoration: none !important;
    line-height: 1 !important;
}

.ych-social-icon i {
    font-size: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    line-height: 1 !important;
}

.ych-social-icon:hover {
    background: var(--secondary-new);
    transform: translateY(-3px);
    color: #fff !important;
}

/* Pagination Component Styles - Clean & Simple */
.pagination-wrapper {
    margin-top: 3rem;
    display: flex !important;
    justify-content: center !important;
}

.pagination-wrapper .nav-links {
    display: flex !important;
    align-items: center !important;
    gap: 22px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pagination-wrapper .page-numbers,
.pagination-wrapper a.page-numbers,
.pagination-wrapper span.page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 16px !important;
    margin: 0 6px !important;
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    border: none !important;
}

.pagination-wrapper a.page-numbers:hover {
    background: #e5e7eb !important;
    color: var(--primary-color) !important;
}

.pagination-wrapper .page-numbers.current {
    background: var(--primary-color) !important;
    color: #fff !important;
}

.pagination-wrapper .prev.page-numbers,
.pagination-wrapper .next.page-numbers {
    background: transparent !important;
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

.pagination-wrapper .prev.page-numbers:hover,
.pagination-wrapper .next.page-numbers:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
}

.pagination-wrapper .dots {
    background: transparent !important;
    min-width: 20px !important;
    padding: 0 4px !important;
    color: #9ca3af !important;
}

/* Legacy pagination styles */
.pagination-page {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pagination-page a,
.pagination-page span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 14px !important;
    margin: 0 3px !important;
    background: #f3f4f6 !important;
    color: #374151 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    border: none !important;
}

.pagination-page a:hover {
    background: #e5e7eb !important;
    color: var(--primary-color) !important;
}

.pagination-page span.current {
    background: var(--primary-color) !important;
    color: #fff !important;
}

.pagination-page .prev,
.pagination-page .next {
    background: transparent !important;
    color: var(--primary-color) !important;
}

.pagination-page .prev:hover,
.pagination-page .next:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
}

/* Legacy pagination styles */
.pagination-list {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.pagination-list li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.pagination-list .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-list .page-numbers:hover {
    background: #e5e7eb;
    color: var(--primary-color);
}

.pagination-list .page-numbers.current {
    background: var(--primary-color);
    color: #fff;
}

.pagination-list .prev,
.pagination-list .next {
    background: transparent;
    color: var(--primary-color);
}

.pagination-list .prev:hover,
.pagination-list .next:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Paginate Links - Horizontal */
.pagination-list,
.wp-pagenavi,
.pagination {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pagination-list li,
.wp-pagenavi li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pagination-list li a,
.pagination-list li span,
.wp-pagenavi a,
.wp-pagenavi .current,
.pagination a,
.pagination span {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px !important;
    margin: 0 2px !important;
    background: #f3f4f6 !important;
    color: #374151 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    border: none !important;
}

.pagination-list li a:hover,
.pagination a:hover,
.wp-pagenavi a:hover {
    background: #e5e7eb !important;
    color: var(--primary-color) !important;
}

.pagination-list li span.current,
.pagination .current,
.wp-pagenavi .current {
    background: var(--primary-color) !important;
    color: #fff !important;
}

.pagination-list li .prev,
.pagination-list li .next,
.pagination .prev,
.pagination .next {
    background: transparent !important;
    color: var(--primary-color) !important;
}

.pagination-list li .prev:hover,
.pagination-list li .next:hover,
.pagination .prev:hover,
.pagination .next:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
}

/* Paginate Links (non-list type) */
.wp-pagenavi {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.wp-pagenavi .page,
.wp-pagenavi .current,
.wp-pagenavi a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.wp-pagenavi .current {
    background: var(--primary-color);
    color: #fff;
}

.wp-pagenavi a:hover {
    background: #e5e7eb;
    color: var(--primary-color);
}

/* ========================================
   3. Prototype B-Plus Design System
   ======================================== */
:root {
    /* 品牌色系统 - 亮度大幅提升 */
    --primary-new: #2959A8;
    --primary-light: #3d72c7;
    --primary-dark: #1e448a;
    --primary-rgb: 41, 89, 168;
    
    --secondary-new: #E3711C;
    --secondary-light: #f08a3d;
    --secondary-dark: #c55a0a;
    --secondary-rgb: 227, 113, 28;

    /* 背景色 - 明亮的灰白色调 */
    --bg-base: #F7F8FA;
    --bg-card: #FFFFFF;
    --bg-elevated: #ffffff;
    --bg-warm: #fafbfc;

    /* 文字色 */
    --text-primary: #1a1a2e;
    --text-secondary: #5a6478;
    --text-muted: #8892a4;

    /* 边框与装饰 */
    --border-light: rgba(41, 89, 168, 0.10);
    --border-hover: rgba(41, 89, 168, 0.25);
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(41, 89, 168, 0.08);
    --shadow-lg: 0 16px 50px rgba(41, 89, 168, 0.12);
    --glow-primary: 0 0 30px rgba(41, 89, 168, 0.15);
    --glow-secondary: 0 0 25px rgba(227, 113, 28, 0.15);
}

.home-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* 细腻网格图案 */
.home-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(41, 89, 168, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(41, 89, 168, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* ===== HEADER OVERRIDES ===== */
#front-page-header {
    background: rgba(247, 248, 250, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid var(--border-light);
}
#front-page-header .text-2xl.font-bold.text-primary {
    font-size: 22px !important;
    font-weight: 900 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    color: var(--primary-new) !important;
    display: flex;
    align-items: center;
}
#front-page-header .text-2xl.font-bold.text-primary i {
    display: none;
}
#front-page-header .text-2xl.font-bold.text-primary span {
    position: relative;
}
#front-page-header .text-2xl.font-bold.text-primary span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 36px;
    height: 3px;
    background: var(--secondary-new);
    border-radius: 2px;
}
#front-page-header .header-nav-color a {
    color: var(--text-secondary) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}
#front-page-header .header-nav-color a:hover {
    color: var(--primary-new) !important;
}
#front-page-header .header-quote-btn {
    background: var(--secondary-new) !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 24px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    border-radius: 8px !important;
    box-shadow: var(--glow-secondary) !important;
}

/* ===== HERO ===== */
.hero-new {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 140px 50px 100px;
    overflow: hidden;
}

.hero-bg-new {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 25% 40%, rgba(41, 89, 168, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 25%, rgba(227, 113, 28, 0.05) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 100%, rgba(41, 89, 168, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-base) 0%, #eef1f6 100%);
}

.hero-bg-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.88; /* Adjusted to 50% */
    mix-blend-mode: multiply;
}

.geo-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--primary-new), transparent);
    opacity: 0.12;
}
.geo-line-1 { width: 500px; height: 2px; top: 28%; left: -120px; transform: rotate(-22deg); }
.geo-line-2 { width: 350px; height: 2px; bottom: 28%; right: -80px; transform: rotate(18deg); }

.geo-hex {
    position: absolute;
    width: 220px;
    height: 220px;
    border: 1.5px solid var(--border-light);
    opacity: 0.4;
}
.geo-hex-1 { top: 14%; right: 12%; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); }
.geo-hex-2 { bottom: 12%; left: 8%; width: 160px; height: 160px; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); border-color: rgba(227, 113, 28, 0.15); }

.hero-content-new {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 1000px;
}

.hero-tag-new {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.38);
    border: 1px solid var(--border-light);
    padding: 10px 26px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary-new);
    margin-bottom: 40px;
    border-radius: 50px;
}

.hero-tag-new::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--secondary-new);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(227, 113, 28, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(227, 113, 28, 0); }
}

.hero-new h1 {
    font-size: clamp(42px, 6.5vw, 82px);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -2px;
    margin-bottom: 32px;
    color: #ffffff; /* Changed to white */
    text-shadow: 0 0 1px rgba(0,0,0,0.15), 0 0 2px rgba(0,0,0,0.1); /* 极细边框增强可读性 */
}

.hero-new h1 span {
    background: linear-gradient(135deg, var(--primary-new) 0%, var(--secondary-new) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc-new {
    font-size: 18px;
    color: #ffffff; /* Changed to white */
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.8;
    text-align: center;
    text-shadow: 0 0 1px rgba(0,0,0,0.15), 0 0 2px rgba(0,0,0,0.1); /* 极细边框增强可读性 */
}

.hero-btns-new { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }

.btn-primary-new {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-new);
    color: #fff !important;
    padding: 18px 42px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 10px;
    box-shadow: var(--glow-primary);
}

.btn-primary-new:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(41, 89, 168, 0.25);
    background: var(--primary-dark);
}

.btn-outline-new {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--secondary-new);
    color: var(--primary-new) !important;
    padding: 16px 40px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
}

.btn-outline-new:hover {
    border-color: var(--primary-new);
    background: rgba(41, 89, 168, 0.04);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.scroll-indicator-new {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 1px rgba(0,0,0,0.15), 0 0 2px rgba(0,0,0,0.1); /* 极细边框增强可读性 */
}

.scroll-line-new {
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, var(--primary-new), transparent);
    border-radius: 2px;
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; height: 50px; }
    50% { opacity: 1; height: 70px; }
}

/* ===== SECTION COMMON ===== */
.section-header-new {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 56px;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag-new {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary-new);
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-tag-new::before {
    content: '';
    width: 40px;
    height: 2.5px;
    background: var(--secondary-new);
    border-radius: 2px;
}

.section-title-new {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-primary);
}

/* ===== PRODUCT LINES ===== */
.products-section-new {
    padding: 110px 50px;
    position: relative;
    z-index: 1;
}

.product-grid-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1500px;
    margin: 0 auto;
}

/* ========================================
   4. About Page Redesign System
   ======================================== */
.about-redesign-container {
    background-color: #ffffff !important;
}

.about-banner-simple {
    background-color: #111827 !important;
    padding-top: 180px !important;
    padding-bottom: 120px !important;
    min-height: 450px !important;
    display: flex !important;
    align-items: center !important;
}

.about-banner-simple img {
    opacity: 0.4 !important;
    mix-blend-mode: normal !important;
    z-index: 1 !important;
    position: absolute !important;
}

.about-banner-simple h1 {
    color: #ffffff !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    margin-bottom: 24px !important;
}

.about-banner-simple p {
    color: rgba(255,255,255,0.9) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.about-stats-clean {
    margin-top: 0 !important;
    background-color: #ffffff !important;
    position: relative !important;
    z-index: 20 !important;
    border-bottom: 1px solid #f3f4f6 !important;
}

.about-stat-num {
    background: none !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    margin-bottom: 8px !important;
    font-size: 42px !important; /* Increased font size to match prototype */
}

.about-stat-label {
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: #9ca3af !important;
}

/* Core Story Styles */
.story-image-container {
    border-radius: 30px !important;
    overflow: visible !important; /* Allow decoration to show outside */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    border: 8px solid #ffffff !important;
    background: #ffffff !important;
    position: relative !important;
    z-index: 10 !important;
}

.story-decorative-circle {
    position: absolute !important;
    top: -40px !important;
    left: -40px !important;
    width: 120px !important;
    height: 120px !important;
    border: 2px solid rgba(41, 89, 168, 0.2) !important;
    border-radius: 50% !important;
    pointer-events: none !important;
}

.story-main-img {
    display: block !important;
    width: 100% !important;
    height: 500px !important;
    object-fit: cover !important;
    border-radius: 22px !important; /* Inner radius slightly smaller than container */
}

.story-button-box {
    background-color: #f8f9fa;
    padding: 1rem;
    padding-right: 2rem;
    border-radius: 1rem;
    border: 1px solid #f3f4f6;
    transition: all 0.3s;
}

.story-icon-container {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.story-icon-container i {
    color: #ffffff !important;
}

.story-main-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background-color: #2959A8 !important;
    color: #ffffff !important;
    padding: 16px 32px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    transition: transform 0.3s !important;
    box-shadow: 0 10px 20px rgba(41, 89, 168, 0.15) !important;
    text-decoration: none !important;
}

.story-main-btn:hover {
    transform: scale(1.05) !important;
}

/* Quality Section Cards */
.quality-card {
    background-color: #ffffff !important;
    padding: 40px !important;
    border-radius: 30px !important; /* Rounded corners match prototype */
    border: 1px solid #f3f4f6 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.4s !important;
}

.quality-card:hover {
    transform: translateY(-12px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Timeline Modern Path */
.timeline-modern-path {
    position: relative;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 80px 0 40px !important; /* Increased top padding for spacing */
}

.timeline-vertical-line {
    position: absolute;
    left: 50%;
    top: 40px !important; /* Line starts lower to avoid title overlap */
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-row {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 100px !important;
    position: relative !important;
    z-index: 2 !important;
    flex-direction: row !important; /* Default row */
}

.timeline-row:nth-child(even) {
    flex-direction: row-reverse !important;
}

.timeline-col {
    width: 50% !important;
    position: relative !important;
}

.timeline-content-left {
    padding-right: 80px !important;
    text-align: right !important;
}

.timeline-content-right {
    padding-left: 80px !important;
    text-align: left !important;
}

.timeline-dot-new {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 16px !important;
    height: 16px !important;
    background: #fff !important;
    border: 4px solid var(--primary-new) !important;
    border-radius: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10 !important;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 1), 0 0 0 10px rgba(41, 89, 168, 0.05) !important;
}

.timeline-row:nth-child(even) .timeline-dot-new {
    border-color: var(--secondary-new) !important;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 1), 0 0 0 10px rgba(227, 113, 28, 0.05) !important;
}

.timeline-year {
    font-size: 30px !important;
    font-weight: 900 !important;
    margin-bottom: 10px !important;
    line-height: 1 !important;
}

.timeline-row:nth-child(odd) .timeline-year { color: var(--primary-new) !important; }
.timeline-row:nth-child(even) .timeline-year { color: var(--secondary-new) !important; }

.timeline-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #111827 !important;
    margin-bottom: 15px !important;
}

.timeline-desc {
    font-size: 16px !important;
    color: #6b7280 !important;
    line-height: 1.7 !important;
    max-width: 440px !important;
    display: block !important;
}

.timeline-content-left .timeline-desc {
    margin-left: auto !important;
    text-align: right !important;
}

.timeline-content-right .timeline-desc {
    margin-right: auto !important;
}

.timeline-image-box {
    padding: 0 40px !important;
}

.timeline-item-image {
    border-radius: 24px !important;
    overflow: hidden !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
    aspect-ratio: 16/9 !important;
    background: #f3f4f6 !important;
}

.timeline-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-row:hover .timeline-item-image img {
    transform: scale(1.08);
}

/* CTA Section Styles */
.cta-banner-new {
    padding: 100px 0 !important;
    background-color: var(--primary-new) !important;
}

.cta-banner-new h2 {
    font-size: 42px !important;
    font-weight: 900 !important;
    margin-bottom: 24px !important;
    color: #ffffff !important;
}

.cta-banner-new p {
    font-size: 20px !important;
    opacity: 0.9 !important;
    max-width: 800px !important;
    margin: 0 auto 40px !important;
    color: #ffffff !important;
}

.cta-main-btn {
    display: inline-block !important;
    background-color: #ffffff !important;
    color: var(--primary-new) !important; /* Visible text color */
    padding: 18px 48px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    transition: all 0.3s !important;
    text-decoration: none !important;
}

.cta-main-btn:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2) !important;
}

@media (max-width: 767px) {
    .timeline-vertical-line {
        left: 30px;
        top: 20px !important;
    }
    .timeline-row {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 60px;
        margin-bottom: 60px;
    }
    .timeline-col {
        width: 100%;
    }
    .timeline-content-left, .timeline-content-right {
        padding: 0;
        text-align: left;
        margin-bottom: 30px;
    }
    .timeline-row:nth-child(odd) .timeline-desc { margin-left: 0; }
    .timeline-dot-new {
        left: 30px;
        top: 40px;
    }
    .timeline-image-box {
        padding: 0;
    }
}

    position: relative;
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
}

.product-card-new::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, transparent 50%, var(--primary-new) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}

.product-card-new:hover::before { opacity: 1; }

.product-card-new:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-img-new {
    aspect-ratio: 4/3;
    background: #f8fafc;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-img-new img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.5s;
}

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

.card-badge-new {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--secondary-new);
    color: #fff !important;
    font-size: 9px !important;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 6px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(227, 113, 28, 0.25);
}

.card-body-new {
    padding: 22px 24px 26px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-name-new {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-specs-new {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.spec-item-new {
    background: rgba(41, 89, 168, 0.06);
    color: var(--primary-new);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ===== FEATURES SPLIT ===== */
.features-new {
    padding: 0px 50px 110px;
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px; /* Reduced from 80px */
    align-items: center;
}

.features-visual-new {
    aspect-ratio: 4/3;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.features-visual-new img,
.features-visual-new iframe,
.features-visual-new video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border: none;
    position: relative;
    z-index: 2;
}

.features-visual-new::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--primary-new), transparent, transparent);
    animation: rotate-border 8s linear infinite;
    opacity: 0.08;
    z-index: 1;
}

@keyframes rotate-border {
    to { transform: rotate(360deg); }
}

.features-list-new { list-style: none; }

.feature-item-new {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 12px 0; /* Reduced from 16px */
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.feature-item-new:hover { padding-left: 10px; }

.feature-icon-new {
    width: 38px; /* Reduced from 42px */
    height: 38px;
    background: rgba(41, 89, 168, 0.07);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px; /* Reduced from 18px */
    transition: all 0.3s;
    color: var(--primary-new);
}

.feature-item-new:hover .feature-icon-new {
    background: var(--primary-new);
    border-color: var(--primary-new);
    box-shadow: var(--glow-primary);
    color: #fff;
}

.feature-text-new h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.feature-text-new p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== STATS BAR ===== */
.stats-bar-new {
    padding: 76px 50px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin: 0 50px;
    border-radius: 18px;
    max-width: calc(1500px + 100px);
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-sm);
}

.stats-inner-new {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-num-new {
    font-size: clamp(38px, 5vw, 56px);
    font-weight: 900;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--primary-new), var(--secondary-new));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label-new {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ===== CTA BANNER ===== */
.cta-banner-new {
    margin: 90px 50px;
    padding: 70px 60px;
    background: linear-gradient(135deg, var(--primary-new) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: calc(1500px + 100px);
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-banner-new .animate-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta-banner-new h2 {
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
    text-align: center;
}

.cta-banner-new p {
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
    text-align: center;
}

.cta-banner-new::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-banner-new h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.cta-banner-new p {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    max-width: 550px;
    margin: 0 auto 36px;
    position: relative;
    z-index: 1;
}

.btn-cta-white-new {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--primary-new) !important;
    padding: 17px 44px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* ===== FOOTER ===== */
.footer-new {
    padding: 80px 50px 40px;
    background: var(--text-primary);
}

.footer-inner-new {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
}

.footer-brand-new .logo-new {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    position: relative;
    display: inline-block;
}

.footer-brand-new .logo-new::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 36px;
    height: 3px;
    background: var(--secondary-new);
    border-radius: 2px;
}

.footer-brand-new p {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    margin-top: 20px;
    line-height: 1.8;
}

.footer-col-new h4 {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--secondary-new);
    margin-bottom: 24px;
}

.footer-col-new ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col-new a, .footer-col-new span {
    display: block;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 12px;
    transition: all 0.2s;
    line-height: 1.6;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-social-new {
    margin-top: 10px;
}

.footer-col-new a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-bottom-new {
    max-width: 1500px;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    display: flex;
    justify-content: space-between;
    letter-spacing: 1px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .product-grid-new { grid-template-columns: repeat(2, 1fr); }
    .features-new { grid-template-columns: 1fr; gap: 50px; }
    .features-visual-new { aspect-ratio: 16/9; order: -1; }
    .stats-inner-new { grid-template-columns: repeat(2, 1fr); gap: 36px; }
    .stats-bar-new { margin: 0 24px; border-radius: 14px; }
    .cta-banner-new { margin: 60px 24px; border-radius: 16px; }
    .footer-inner-new { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 640px) {
    .product-grid-new { grid-template-columns: 1fr; }
    .stats-inner-new { grid-template-columns: 1fr 1fr; }
    .footer-inner-new { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom-new { flex-direction: column; gap: 15px; text-align: center; }
}

@media (max-width: 640px) {
    .hero-new { padding: 120px 24px 80px; }
    .products-section-new { padding: 70px 20px; }
    .features-new { padding: 70px 20px; }
    .product-grid-new { grid-template-columns: 1fr; }
    .stats-inner-new { grid-template-columns: 1fr 1fr; }
    .section-header-new { flex-direction: column; align-items: flex-start; gap: 16px; }
    .stats-bar-new { margin: 0 16px; }
    .cta-banner-new { margin: 40px 16px; padding: 48px 28px; }
}

/* ========================================
   4. Header Transparent (Front Page)
   ======================================== */

/* Top bar transparent on front page */
.top-bar-transparent {
    background: rgba(0, 0, 0, 0.6);
}

.top-bar-transparent .border-gray-700 {
    border-color: rgba(255, 255, 255, 0.2);
}

.top-bar-transparent .bg-gray-800 {
    background: rgba(255, 255, 255, 0.15);
}

.top-bar-solid {
    background: #111827;
}

/* Header transparent state - glass effect over hero */
.header-transparent {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: none !important;
}

.header-transparent .header-nav-color {
    color: #ffffff;
}

.header-transparent .header-nav-color:hover {
    color: rgba(255, 255, 255, 0.85);
}

.header-transparent .header-quote-btn {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
}

.header-transparent .header-quote-btn:hover {
    color: #ffffff;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile menu transparent - override to always show on white background */
.header-transparent #mobile-menu {
    background: #ffffff !important;
    border-color: #e5e7eb;
    position: relative;
    z-index: 100;
}

/* 鈿狅笍 Use multiple selectors with higher specificity */
.header-transparent #mobile-menu,
.header-transparent #mobile-menu *,
.header-transparent #mobile-menu a,
.header-transparent #mobile-menu .header-nav-color,
.header-transparent #mobile-menu li a,
.header-transparent #mobile-menu ul a,
.header-transparent #mobile-menu .menu-item a {
    color: #374151 !important;
}

.header-transparent #mobile-menu a:hover,
.header-transparent #mobile-menu .menu-item a:hover {
    color: var(--primary-color) !important;
}

/* Header solid state (after scroll) */
.header-solid {
    background: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

/* Mobile menu text color - always visible */
#mobile-menu {
    background: #ffffff !important;
    position: relative;
    z-index: 100;
}

/* 鈿狅笍 Use multiple selectors to ensure coverage */
#mobile-menu,
#mobile-menu *,
#mobile-menu a,
#mobile-menu .header-nav-color,
#mobile-menu li a,
#mobile-menu ul a,
#mobile-menu .menu-item a {
    color: #374151 !important;
}

#mobile-menu a:hover,
#mobile-menu .header-nav-color:hover,
#mobile-menu li a:hover,
#mobile-menu .menu-item a:hover {
    color: var(--primary-color) !important;
}

.header-solid .header-nav-color {
    color: #374151;
}

.header-solid .header-nav-color:hover {
    color: var(--primary-color);
}

.header-solid .header-quote-btn {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.header-solid .header-quote-btn:hover {
    color: #ffffff;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.header-solid #mobile-menu {
    background: #ffffff;
    border-color: #f3f4f6;
}

.header-solid #mobile-menu .header-nav-color {
    color: #374151;
}

/* ========================================
   2. Product Filter Panel
   ======================================== */

.product-filter-search {
    position: relative;
}

.product-filter-search input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f9fafb;
}

.product-filter-search input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 74, 153, 0.1);
    background: #ffffff;
}

.product-filter-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
    pointer-events: none;
}

/* Filter category checkboxes */
.filter-cat-list {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.filter-cat-list::-webkit-scrollbar {
    width: 4px;
}

.filter-cat-list::-webkit-scrollbar-track {
    background: transparent;
}

.filter-cat-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.filter-cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.15s;
}

.filter-cat-item:last-child {
    border-bottom: none;
}

.filter-cat-item:hover {
    background: #f9fafb;
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 6px;
}

.filter-cat-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    cursor: pointer;
    flex-shrink: 0;
}

.filter-cat-item label {
    flex: 1;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    line-height: 1.4;
    min-width: 0;
}

.filter-cat-item label:hover {
    color: var(--primary-color);
}

.filter-cat-count {
    font-size: 12px;
    color: #9ca3af;
    flex-shrink: 0;
    background: #f3f4f6;
    padding: 1px 8px;
    border-radius: 10px;
}

/* Filter actions */
.filter-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.filter-actions button {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn-select-all {
    background: #f3f4f6;
    color: #374151;
}

.filter-btn-select-all:hover {
    background: #e5e7eb;
}

.filter-btn-clear {
    background: transparent;
    color: #6b7280;
    border: 1px solid #e5e7eb !important;
}

.filter-btn-clear:hover {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fecaca !important;
}

/* Active filter count badge */
.active-filter-badge {
    display: none;
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    margin-left: 8px;
}

.active-filter-badge.visible {
    display: inline-flex;
}

/* Product grid loading state */
.products-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    color: #9ca3af;
    font-size: 14px;
    gap: 8px;
}

.products-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* No products found */
.products-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.products-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.products-empty p {
    font-size: 16px;
}

/* Product card title - fixed 2 lines height */
.product-card h3,
div.border.rounded-lg.p-4 h3 {
    min-height: 3rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ensure product cards have equal height - Removed fixed min-height to allow responsiveness */
div.border.rounded-lg.p-4 {
    /* min-height: 460px; */
}

/* Product title fixed height for 2 lines - Removed forced height to allow responsiveness */
div.border.rounded-lg.p-4 h3 {
    /* height: 2.8em !important; */
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: clip !important;
}

/* ========================================== */
/* style.css */
/* ========================================== */
/*
Theme Name: Yichuhui Refrigeration Theme
Theme URI: http://yichuhui.com/
Author: AI Assistant
Description: A custom SEO-friendly WordPress theme for Yichuhui Refrigeration.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yichuhui
*/

/* 
 * The main styles are in css/common.css. 
 * This file is required for WordPress theme identification.
 */

.drift-zoom-pane {
    z-index: 9999;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

/* xZoom Custom Styling */
.xzoom-source, .xzoom-ghost {
    z-index: 1000;
}
.xzoom-lens {
    border: 1px solid rgba(0,0,0,0.2);
    box-shadow: none;
    cursor: crosshair;
}
.xzoom-preview {
    border: 1px solid #eee;
    background: #fff;
    box-shadow: none;
    border-radius: 4px;
    z-index: 9999;
}

/* xZoom Thumbs styling - Simple & Clean */
.xzoom-thumbs {
    margin-top: 15px;
}
.xzoom-thumbs a {
    display: block;
    border: 2px solid transparent; /* Transparent border for placeholder */
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.3s ease;
    box-sizing: border-box; /* The ultimate fix for box model issues */
}
.xzoom-thumbs a:hover {
    border-color: #dbeafe; /* A light blue for hover */
}
.xzoom-thumbs a.xactive {
    border-color: #004a99; /* Primary color for active */
}
.xzoom-thumbs img.xzoom-gallery {
    display: block;
    width: 100%;
    height: 80px;
    object-fit: contain;
    padding: 4px; /* Inner spacing */
}

/* Lightbox Animation */
#image-lightbox {
    transition: all 0.3s ease-in-out;
}
#lightbox-img {
    transition: transform 0.3s ease-out;
    cursor: zoom-out;
}
#image-lightbox.flex #lightbox-img {
    animation: zoomIn 0.3s ease-out forwards;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Admin Gallery Styling */
#product_gallery_container .product_gallery_list li:hover {
    border-color: #2271b1;
}
#product_gallery_container .product_gallery_list li img {
    max-width: 100%;
    max-height: 100%;
}
#product_gallery_container .remove-gallery-img:hover {
    background: #cc0000 !important;
}

.bg-gray-50.rounded-lg.p-10.mb-4.flex.items-center.justify-center.border.h-\[500px\] {
    position: relative;
}

/* Inner Page Banner Effects */
.inner-banner-title {
    text-shadow: 
        -1px -1px 0 #666666,  
         1px -1px 0 #666666,
        -1px  1px 0 #666666,
         1px  1px 0 #666666,
         0px 4px 12px rgba(0,0,0,0.6);
}

.inner-banner-subtitle {
    text-shadow: 
         0px 0px 0 #666666,  
         1px 0px 0 #666666,
         0px  1px 0 #666666,
         1px  1px 0 #666666,
         0px 2px 6px rgba(0,0,0,0.6);
}

.inner-banner-overlay-hidden {
    display: none !important;
}

/* Line Clamp Fallbacks */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Modal Content Formatting Fallbacks */
.prose h1, .prose h2, .prose h3, .prose h4 {
    color: #111827;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.2;
}
.prose h1 { font-size: 2.25em; }
.prose h2 { font-size: 1.5em; border-bottom: 1px solid #e5e7eb; padding-bottom: 0.3em; }
.prose h3 { font-size: 1.25em; }

.prose p {
    margin-top: 1em;
    margin-bottom: 1em;
    line-height: 1.75;
}

.prose strong, .prose b {
    font-weight: 700;
    color: #111827;
}

.prose ul, .prose ol {
    margin-top: 1em;
    margin-bottom: 1em;
    padding-left: 1.625em;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    line-height: 1.6;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2em 0;
}
