/*
 * Teapplix Chinese Homepage — style-new-zh.css
 * Redesigned 2025
 *
 * Loaded exclusively by page-templates/page-home-zh.php.
 * All selectors are scoped under body.zh-home to prevent bleed
 * if this file is ever enqueued on other pages.
 *
 * Table of contents:
 *   1.  CSS Variables
 *   2.  Reset
 *   3.  Layout Utilities
 *   4.  Header / Navigation
 *   5.  Buttons
 *   6.  Hero Section
 *   7.  Stats Bar
 *   8.  Section Shared Styles
 *   9.  4 Pillars / Feature Cards
 *  10.  Marketplace Integration Grid
 *  11.  Carriers Section
 *  12.  API / Automation Section
 *  13.  ERP / 3PL Section
 *  14.  CTA Section
 *  15.  Footer
 *  16.  WeChat Widget
 *  17.  Scroll-up / Colored Line
 *  18.  Animations
 *  19.  Responsive Breakpoints
 */

/* ==========================================================================
   1. CSS Variables
   ========================================================================== */
:root {
    --zh-primary:        #1A56DB;
    --zh-primary-dark:   #1344B5;
    --zh-primary-light:  #EFF6FF;
    --zh-accent:         #0EA5E9;
    --zh-cta:            #FF6B35;
    --zh-cta-hover:      #E85A24;
    --zh-dark:           #0F172A;
    --zh-dark-2:         #1E293B;
    --zh-text:           #334155;
    --zh-text-muted:     #64748B;
    --zh-bg:             #F8FAFC;
    --zh-bg-2:           #F1F5F9;
    --zh-white:          #FFFFFF;
    --zh-success:        #10B981;
    --zh-border:         #E2E8F0;
    --zh-font:           'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    --zh-max-width:      1200px;
    --zh-radius:         12px;
    --zh-radius-sm:      8px;
    --zh-shadow:         0 4px 24px rgba(0, 0, 0, 0.08);
    --zh-shadow-hover:   0 8px 40px rgba(0, 0, 0, 0.14);
    --zh-transition:     0.2s ease;
    --zh-nav-height:     68px;
}

/* ==========================================================================
   2. Reset
   ========================================================================== */
body.zh-home *, body.zh-home *::before, body.zh-home *::after {
    box-sizing: border-box;
}

body.zh-home {
    margin: 0;
    padding: 0;
    font-family: var(--zh-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--zh-text);
    background: var(--zh-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.zh-home h1, body.zh-home h2, body.zh-home h3, body.zh-home h4, body.zh-home h5 {
    font-family: var(--zh-font);
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

body.zh-home a { text-decoration: none; }
body.zh-home img { max-width: 100%; height: auto; }
body.zh-home ul { list-style: none; margin: 0; padding: 0; }
body.zh-home p { margin: 0; }

/* ==========================================================================
   3. Layout Utilities
   ========================================================================== */
.zh-container {
    max-width: var(--zh-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   4. Header / Navigation
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--zh-white);
    border-bottom: 1px solid var(--zh-border);
    height: var(--zh-nav-height);
    transition: box-shadow var(--zh-transition);
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.10);
}

.header-inner {
    max-width: var(--zh-max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--zh-nav-height);
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Logo */
.header-logo {
    display: block;
    flex-shrink: 0;
    width: 160px;
    height: 44px;
    background: url('images/logo.png') left center no-repeat;
    background-size: contain;
}

/* Desktop nav */
.main-nav { flex: 1; }

.nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-item { position: relative; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--zh-dark-2);
    border-radius: var(--zh-radius-sm);
    transition: background var(--zh-transition), color var(--zh-transition);
    white-space: nowrap;
    font-family: var(--zh-font);
}

.nav-link:hover,
.nav-has-dropdown:hover > .nav-link {
    background: var(--zh-bg);
    color: var(--zh-primary);
}

.nav-arrow {
    font-size: 0.65rem;
    opacity: 0.55;
    transition: transform var(--zh-transition);
}

.nav-has-dropdown:hover .nav-arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 210px;
    background: var(--zh-white);
    border: 1px solid var(--zh-border);
    border-radius: var(--zh-radius);
    box-shadow: var(--zh-shadow);
    padding: 8px;
    z-index: 200;
}

.nav-has-dropdown:hover .nav-dropdown { display: block; }

.nav-dropdown li a {
    display: block;
    padding: 9px 14px;
    font-size: 0.875rem;
    font-family: var(--zh-font);
    color: var(--zh-text);
    border-radius: 6px;
    transition: background var(--zh-transition), color var(--zh-transition);
}

.nav-dropdown li a:hover {
    background: var(--zh-primary-light);
    color: var(--zh-primary);
}

/* Header right-side actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

.lang-switch {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}
.lang-switch li {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.lang-switch li + li::before {
    content: '/';
    color: var(--zh-border);
    padding: 0 3px;
    font-size: 0.75rem;
}
.lang-switch a {
    color: var(--zh-text-muted);
    padding: 3px 4px;
    font-family: var(--zh-font);
    font-size: 0.8rem;
    white-space: nowrap;
}
.lang-switch a.lang_current,
.lang-switch .current-lang a {
    color: var(--zh-primary);
    font-weight: 600;
}

.btn-login {
    font-size: 0.9rem;
    font-family: var(--zh-font);
    color: var(--zh-text);
    padding: 8px 14px;
    border-radius: var(--zh-radius-sm);
    font-weight: 500;
    transition: color var(--zh-transition), background var(--zh-transition);
}
.btn-login:hover {
    color: var(--zh-primary);
    background: var(--zh-bg);
}

.btn-trial {
    font-size: 0.875rem;
    font-family: var(--zh-font);
    font-weight: 700;
    color: var(--zh-white) !important;
    background: var(--zh-cta);
    padding: 9px 20px;
    border-radius: var(--zh-radius-sm);
    white-space: nowrap;
    transition: background var(--zh-transition), transform var(--zh-transition), box-shadow var(--zh-transition);
}
.btn-trial:hover {
    background: var(--zh-cta-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
}

/* Mobile hamburger button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
}

.mobile-menu-btn span {
    display: block;
    height: 2px;
    background: var(--zh-dark-2);
    border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel */
.mobile-nav {
    display: none;
    position: absolute;
    top: var(--zh-nav-height);
    left: 0;
    right: 0;
    background: var(--zh-white);
    border-bottom: 1px solid var(--zh-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    z-index: 998;
}
.mobile-nav.open { display: block; }

.mobile-nav-list { padding: 10px 0 16px; }

.mobile-nav-list li a {
    display: block;
    padding: 13px 24px;
    font-size: 1rem;
    font-family: var(--zh-font);
    color: var(--zh-text);
    font-weight: 500;
    transition: color var(--zh-transition), background var(--zh-transition);
}
.mobile-nav-list li a:hover {
    color: var(--zh-primary);
    background: var(--zh-bg);
}

.mobile-nav-divider {
    height: 1px;
    background: var(--zh-border);
    margin: 8px 0;
}

.mobile-nav-login { color: var(--zh-text-muted) !important; }

.mobile-nav-trial {
    color: var(--zh-cta) !important;
    font-weight: 700 !important;
}

/* ==========================================================================
   5. Buttons (used inside content blocks)
   ========================================================================== */
.zh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 10px;
    font-family: var(--zh-font);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--zh-transition), transform var(--zh-transition), box-shadow var(--zh-transition), border-color var(--zh-transition);
    white-space: nowrap;
    border: 2px solid transparent;
    text-decoration: none !important;
}

.zh-btn-primary {
    background: var(--zh-cta);
    color: var(--zh-white) !important;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
}
.zh-btn-primary:hover {
    background: var(--zh-cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.45);
}

.zh-btn-outline {
    background: transparent;
    color: var(--zh-white) !important;
    border-color: rgba(255, 255, 255, 0.45);
}
.zh-btn-outline:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.75);
}

.zh-btn-secondary {
    background: var(--zh-primary);
    color: var(--zh-white) !important;
    box-shadow: 0 4px 14px rgba(26, 86, 219, 0.25);
}
.zh-btn-secondary:hover {
    background: var(--zh-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 86, 219, 0.35);
}

.zh-btn-white {
    background: var(--zh-white);
    color: var(--zh-primary) !important;
    font-weight: 700;
}
.zh-btn-white:hover {
    background: rgba(255, 255, 255, 0.90);
    transform: translateY(-2px);
    color: var(--zh-primary-dark) !important;
}

.zh-btn-outline-white {
    background: transparent;
    color: var(--zh-white) !important;
    border-color: rgba(255, 255, 255, 0.50);
}
.zh-btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   6. Hero Section
   ========================================================================== */
.zh-hero {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 55%, #1A3A6E 100%);
    padding: 80px 0 0;
    text-align: center;
    color: var(--zh-white);
}

.zh-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: rgba(255, 255, 255, 0.88);
    padding: 6px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.06em;
    font-family: var(--zh-font);
}

.zh-hero-title {
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    font-weight: 900;
    color: var(--zh-white);
    line-height: 1.2;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
    font-family: var(--zh-font);
}

.zh-hero-sub {
    font-size: clamp(0.95rem, 1.6vw, 1.125rem);
    color: rgba(255, 255, 255, 0.72);
    margin: 0 auto 40px;
    max-width: 640px;
    line-height: 1.85;
    font-family: var(--zh-font);
}

.zh-hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* Trust strip at bottom of hero */
.zh-trust-strip {
    background: rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding: 18px 0;
}

.zh-trust-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 40px;
}

.zh-trust-items span {
    font-size: 0.875rem;
    font-family: var(--zh-font);
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
}

.zh-trust-items span::before {
    content: '✓  ';
    color: var(--zh-success);
    font-weight: 800;
}

/* ==========================================================================
   6b. Above-the-fold Section (compact hero: headline + search + EDI grid)
   ========================================================================== */
.zh-above-fold {
    background: linear-gradient(160deg, #EFF6FF 0%, #F8FAFC 50%, var(--zh-white) 100%);
    padding: 52px 0 40px;
    border-bottom: 1px solid var(--zh-border);
}

.zh-af-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 28px;
}

.zh-af-title-wrap {
    flex: 1;
    min-width: 0;
}

.zh-af-title {
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 900;
    font-family: var(--zh-font);
    color: var(--zh-dark-2);
    line-height: 1.2;
    margin-bottom: 16px !important;
    letter-spacing: -0.02em;
}

.zh-af-seo {
    font-size: 0.78rem;
    color: var(--zh-text-muted);
    line-height: 1.75;
    max-width: 560px;
    font-family: var(--zh-font);
}

.zh-af-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    flex-shrink: 0;
    padding-top: 4px;
}

.zh-btn-sm {
    padding: 10px 22px;
    font-size: 0.9rem;
    border-radius: var(--zh-radius-sm);
}

.zh-af-demo-link {
    font-size: 0.875rem;
    font-family: var(--zh-font);
    font-weight: 600;
    color: var(--zh-primary);
    white-space: nowrap;
    padding: 4px 0;
}
.zh-af-demo-link:hover { text-decoration: underline; }

/* Search row */
.zh-af-search {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--zh-bg);
    border: 1.5px solid var(--zh-border);
    border-radius: var(--zh-radius-sm);
    padding: 0 12px;
    margin-bottom: 18px;
    transition: border-color var(--zh-transition), box-shadow var(--zh-transition);
}
.zh-af-search:focus-within {
    border-color: var(--zh-primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.10);
    background: var(--zh-white);
}

.zh-af-search-icon {
    flex-shrink: 0;
    color: var(--zh-text-muted);
    margin-right: 8px;
}

.zh-af-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 11px 0;
    font-size: 0.9rem;
    font-family: var(--zh-font);
    color: var(--zh-text);
    outline: none;
    min-width: 0;
}
.zh-af-search input::placeholder { color: var(--zh-text-muted); }

.zh-af-search-tag {
    font-size: 0.7rem;
    font-family: var(--zh-font);
    font-weight: 700;
    color: var(--zh-primary);
    background: var(--zh-primary-light);
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
    margin-left: 8px;
    flex-shrink: 0;
}

/* Compact grid modifier — more tiles per row, smaller cells */
.zh-int-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 7px;
    margin-bottom: 14px;
}

.zh-int-grid--compact .int-item {
    height: 54px;
    padding: 9px 8px;
}

.zh-int-grid--compact .int-item img {
    max-width: 74px;
    max-height: 26px;
}

/* Loading placeholder inside grid */
.zh-grid-loading {
    grid-column: 1 / -1;
    color: var(--zh-text-muted);
    font-size: 0.85rem;
    font-family: var(--zh-font);
    padding: 20px 0;
    text-align: center;
}

/* "View all" footnote below the grid */
.zh-af-view-all {
    font-size: 0.8rem;
    font-family: var(--zh-font);
    color: var(--zh-text-muted);
    text-align: center;
    margin: 0;
}
.zh-af-view-all a {
    color: var(--zh-primary);
    font-weight: 600;
}
.zh-af-view-all a:hover { text-decoration: underline; }

/* ==========================================================================
   6c. EDI Logo Strip (legacy — kept for reference)
   ========================================================================== */
.zh-edi-strip {
    background: var(--zh-white);
    padding: 36px 0 28px;
    border-bottom: 1px solid var(--zh-border);
    text-align: center;
}

.zh-edi-strip-label {
    font-size: 0.78rem;
    font-family: var(--zh-font);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--zh-text-muted);
    margin: 0 0 20px;
}

.zh-edi-strip-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.zh-edi-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--zh-bg);
    border: 1px solid var(--zh-border);
    border-radius: var(--zh-radius-sm);
    padding: 12px 16px;
    height: 60px;
    min-width: 100px;
    transition: box-shadow var(--zh-transition), border-color var(--zh-transition);
}
.zh-edi-logo-item:hover {
    box-shadow: var(--zh-shadow);
    border-color: #C7D9F7;
}
.zh-edi-logo-item img {
    max-width: 90px;
    max-height: 30px;
    object-fit: contain;
}

.zh-edi-strip-more {
    font-size: 0.85rem;
    font-family: var(--zh-font);
    color: var(--zh-text-muted);
    margin: 0;
}
.zh-edi-strip-more a {
    color: var(--zh-primary);
    font-weight: 600;
}
.zh-edi-strip-more a:hover { text-decoration: underline; }

/* EDI workflow flow diagram */
.zh-edi-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding: 28px 32px;
    background: var(--zh-bg);
    border: 1px solid var(--zh-border);
    border-radius: var(--zh-radius);
}

.zh-edi-flow-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--zh-white);
    border: 1px solid var(--zh-border);
    border-radius: var(--zh-radius-sm);
}

.zh-edi-flow-num {
    font-size: 1rem;
    font-weight: 900;
    color: var(--zh-primary);
    background: var(--zh-primary-light);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--zh-font);
}

.zh-edi-flow-text {
    font-size: 0.8rem;
    font-family: var(--zh-font);
    color: var(--zh-text);
    line-height: 1.5;
    text-align: left;
}
.zh-edi-flow-text strong {
    display: block;
    font-weight: 700;
    color: var(--zh-dark-2);
    font-size: 0.875rem;
}

.zh-edi-flow-arrow {
    font-size: 1.25rem;
    color: var(--zh-text-muted);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .zh-edi-flow { flex-direction: column; align-items: stretch; }
    .zh-edi-flow-arrow { transform: rotate(90deg); align-self: center; }
    .zh-edi-strip-logos { gap: 8px; }
    .zh-edi-logo-item { min-width: 80px; padding: 10px 12px; }
}

/* ==========================================================================
   7. Stats Bar
   ========================================================================== */
.zh-stats {
    background: var(--zh-white);
    padding: 56px 0;
    border-bottom: 1px solid var(--zh-border);
}

.zh-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.zh-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    border-right: 1px solid var(--zh-border);
}
.zh-stat:last-child { border-right: none; }

.zh-stat-num {
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 900;
    color: var(--zh-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-family: var(--zh-font);
}

.zh-stat-label {
    font-size: 0.875rem;
    font-family: var(--zh-font);
    color: var(--zh-text-muted);
    margin-top: 8px;
    font-weight: 500;
}

/* ==========================================================================
   8. Section Shared Styles
   ========================================================================== */
.zh-section {
    padding: 80px 0;
    background: var(--zh-white);
}

.zh-section--gray  { background: var(--zh-bg); }
.zh-section--dark  { background: var(--zh-dark); color: var(--zh-white); }
.zh-section--white { background: var(--zh-white); }

.zh-section-header {
    text-align: center;
    margin-bottom: 56px;
}

.zh-section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-family: var(--zh-font);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--zh-primary);
    margin-bottom: 12px;
}

.zh-section-title {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 800;
    color: var(--zh-dark-2);
    margin: 0 0 16px !important;
    line-height: 1.25;
    letter-spacing: -0.02em;
    font-family: var(--zh-font);
}

.zh-section--dark .zh-section-title { color: var(--zh-white); }

.zh-section-sub {
    font-size: 1rem;
    font-family: var(--zh-font);
    color: var(--zh-text-muted);
    margin: 0 auto;
    line-height: 2.5;
}

.zh-section--dark .zh-section-sub { color: rgba(255, 255, 255, 0.60); }

/* ==========================================================================
   9. 4 Pillars / Feature Cards
   ========================================================================== */
.zh-pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.zh-pillar-card {
    background: var(--zh-white);
    border: 1.5px solid var(--zh-border);
    border-radius: var(--zh-radius);
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow var(--zh-transition), transform var(--zh-transition), border-color var(--zh-transition);
}

.zh-pillar-card:hover {
    box-shadow: var(--zh-shadow-hover);
    transform: translateY(-3px);
    border-color: #C7D9F7;
}

.zh-pillar-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.zh-pillar-icon--blue   { background: #EFF6FF; color: var(--zh-primary); }
.zh-pillar-icon--green  { background: #ECFDF5; color: var(--zh-success); }
.zh-pillar-icon--orange { background: #FFF7ED; color: #F97316; }
.zh-pillar-icon--purple { background: #F5F3FF; color: #7C3AED; }

.zh-pillar-title {
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--zh-font);
    color: var(--zh-dark-2);
    line-height: 1.35;
}

.zh-pillar-desc {
    font-size: 0.9rem;
    font-family: var(--zh-font);
    color: var(--zh-text-muted);
    line-height: 1.75;
    flex: 1;
}

.zh-pillar-link {
    font-size: 0.875rem;
    font-family: var(--zh-font);
    font-weight: 600;
    color: var(--zh-primary);
    margin-top: 4px;
    transition: text-decoration var(--zh-transition);
}
.zh-pillar-link:hover { text-decoration: underline; }

/* ==========================================================================
   10. Marketplace Integration Grid
   ========================================================================== */
.zh-int-search {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.zh-int-search input {
    width: 100%;
    max-width: 380px;
    padding: 10px 18px;
    border: 1.5px solid var(--zh-border);
    border-radius: var(--zh-radius-sm);
    font-family: var(--zh-font);
    font-size: 0.9rem;
    color: var(--zh-text);
    outline: none;
    transition: border-color var(--zh-transition), box-shadow var(--zh-transition);
    background: var(--zh-white);
}

.zh-int-search input:focus {
    border-color: var(--zh-primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.10);
}

.zh-int-section-label {
    font-size: 0.78rem;
    font-family: var(--zh-font);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--zh-text-muted);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--zh-border);
}

.zh-int-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 44px;
}

.int-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--zh-white);
    border: 1px solid var(--zh-border);
    border-radius: var(--zh-radius-sm);
    padding: 14px 10px;
    height: 68px;
    transition: box-shadow var(--zh-transition), border-color var(--zh-transition);
}

.int-item:hover {
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
    border-color: #C7D9F7;
}

.int-item img {
    max-width: 90px;
    max-height: 36px;
    object-fit: contain;
}

/* ==========================================================================
   11. Carriers Section
   ========================================================================== */
.zh-carriers-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.zh-carrier-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.zh-carrier-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--zh-white);
    border: 1px solid var(--zh-border);
    border-radius: var(--zh-radius-sm);
    padding: 14px 10px;
    height: 64px;
    transition: box-shadow var(--zh-transition), border-color var(--zh-transition);
}
.zh-carrier-logo:hover {
    box-shadow: var(--zh-shadow);
    border-color: #C7D9F7;
}
.zh-carrier-logo img {
    max-width: 80px;
    max-height: 32px;
    object-fit: contain;
}

.zh-carriers-features {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.zh-feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.zh-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--zh-primary-light);
    color: var(--zh-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.zh-feature-text h4 {
    font-size: 0.975rem;
    font-family: var(--zh-font);
    font-weight: 700;
    color: var(--zh-dark-2);
    margin: 0 0 4px;
}

.zh-feature-text p {
    font-size: 0.875rem;
    font-family: var(--zh-font);
    color: var(--zh-text-muted);
    line-height: 1.65;
}

/* ==========================================================================
   12. API / Automation Section
   ========================================================================== */
.zh-api-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.zh-code-block {
    background: #0D1117;
    border-radius: var(--zh-radius);
    padding: 44px 28px 28px;
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 0.82rem;
    line-height: 1.85;
    color: #94A3B8;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.30);
    position: relative;
    overflow: hidden;
}

/* Fake toolbar bar */
.zh-code-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 38px;
    background: #161B22;
    border-radius: var(--zh-radius) var(--zh-radius) 0 0;
}

.zh-code-dots {
    position: absolute;
    top: 12px;
    left: 16px;
    display: flex;
    gap: 7px;
    z-index: 1;
}
.zh-code-dots span {
    width: 12px; height: 12px;
    border-radius: 50%;
}
.zh-code-dots span:nth-child(1) { background: #EF4444; }
.zh-code-dots span:nth-child(2) { background: #F59E0B; }
.zh-code-dots span:nth-child(3) { background: #10B981; }

.zh-code-content { display: flex; flex-direction: column; }
.zh-code-line    { white-space: pre; }
.zh-code-key     { color: #93C5FD; }
.zh-code-str     { color: #86EFAC; }
.zh-code-num     { color: #FCA5A5; }
.zh-code-comment { color: #475569; }

/* ==========================================================================
   13. ERP / 3PL Section
   ========================================================================== */
.zh-erp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.zh-erp-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--zh-radius);
    padding: 28px 20px;
    text-align: center;
    transition: background var(--zh-transition), border-color var(--zh-transition), transform var(--zh-transition);
}
.zh-erp-card:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.24);
    transform: translateY(-2px);
}

.zh-erp-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.zh-erp-card h4 {
    font-size: 0.9rem;
    font-family: var(--zh-font);
    font-weight: 700;
    color: var(--zh-white);
    margin: 0 0 8px;
}

.zh-erp-card p {
    font-size: 0.8rem;
    font-family: var(--zh-font);
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.65;
}

/* ==========================================================================
   14. CTA Section
   ========================================================================== */
.zh-cta-section {
    background: linear-gradient(135deg, #1344B5 0%, #1A56DB 45%, #0EA5E9 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--zh-white);
}

.zh-cta-title {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 800;
    font-family: var(--zh-font);
    color: var(--zh-white);
    margin: 0 0 16px !important;
    letter-spacing: -0.02em;
}

.zh-cta-sub {
    font-size: 1rem;
    font-family: var(--zh-font);
    color: rgba(255, 255, 255, 0.78);
    margin: 0 auto 36px;
    line-height: 2.5;
}

.zh-cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   15. Footer
   ========================================================================== */
.site-footer {
    background: var(--zh-dark);
    color: rgba(255, 255, 255, 0.60);
    padding: 48px 0 28px;
    font-size: 0.875rem;
    font-family: var(--zh-font);
}

.footer-inner {
    max-width: var(--zh-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   16. WeChat Floating Widget
   ========================================================================== */
.wechat-widget {
    position: fixed;
    bottom: 32px;
    right: 28px;
    z-index: 900;
}

.wechat-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #07C160;
    color: var(--zh-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(7, 193, 96, 0.45);
    transition: transform var(--zh-transition), box-shadow var(--zh-transition);
}
.wechat-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(7, 193, 96, 0.58);
}

.wechat-popup {
    display: none;
    position: absolute;
    bottom: 66px;
    right: 0;
    background: var(--zh-white);
    border-radius: var(--zh-radius);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    padding: 20px;
    text-align: center;
    width: 176px;
}
.wechat-popup.open {
    display: block;
    animation: zh-fade-up 0.2s ease;
}

.wechat-popup-title {
    font-size: 0.875rem;
    font-family: var(--zh-font);
    font-weight: 700;
    color: var(--zh-dark-2);
    margin: 0 0 12px;
}

.wechat-qr-placeholder { margin-bottom: 10px; }
.wechat-qr-placeholder img { border-radius: 6px; }

.wechat-qr-dummy {
    width: 132px;
    height: 132px;
    border: 2px dashed var(--zh-border);
    border-radius: var(--zh-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-family: var(--zh-font);
    color: var(--zh-text-muted);
    margin: 0 auto;
    line-height: 1.6;
}

.wechat-popup-sub {
    font-size: 0.75rem;
    font-family: var(--zh-font);
    color: var(--zh-text-muted);
    margin: 0;
}

/* ==========================================================================
   17. Scroll-up / Colored Line
   ========================================================================== */
.scroll-up {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 96px;
    right: 30px;
    width: 36px;
    height: 36px;
    background: rgba(30, 41, 59, 0.70);
    color: var(--zh-white);
    border-radius: 50%;
    font-size: 0.75rem;
    z-index: 899;
    transition: background var(--zh-transition), opacity var(--zh-transition);
    opacity: 0.7;
}
.scroll-up:hover { background: var(--zh-dark); opacity: 1; color: var(--zh-white); }

.colored-line {
    height: 4px;
    background: linear-gradient(90deg, var(--zh-primary) 0%, var(--zh-cta) 50%, var(--zh-accent) 100%);
}

.contact-zh-form .form-item,
.contact-zh-form .form-item p {
    display: flex;
}

.contact-zh-form .form-item .wpcf7-form-control-wrap {
    margin-left: 4px;
}

.contact-zh-form .form-item .wpcf7-form-control-wrap input,
.contact-zh-form .form-item .wpcf7-form-control-wrap textarea,
.contact-zh-form .form-item .wpcf7-form-control-wrap select {
    max-width: 270px;
    width: 270px;
}

.contact-zh-form .form-item .wpcf7-form-control-wrap input,
.contact-zh-form .form-item .wpcf7-form-control-wrap select {
    height: 21px;
    line-height: 21px;
}

.contact-zh-form .form-item br {
    display: none;
}

/* ==========================================================================
   18. Animations
   ========================================================================== */
@keyframes zh-fade-up {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   19. Responsive Breakpoints
   ========================================================================== */

/* Tablet — 1024px and below */
@media (max-width: 1024px) {
    .zh-carriers-layout,
    .zh-api-layout {
        gap: 36px;
    }
    .zh-erp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .zh-pillars-grid {
        gap: 16px;
    }
}

/* Tablet portrait — 768px and below */
@media (max-width: 768px) {
    /* Nav: hide desktop nav, show hamburger */
    .main-nav { display: none; }
    .btn-login { display: none; }
    .mobile-menu-btn { display: flex; }

    /* Stats: 2×2 grid */
    .zh-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }
    .zh-stat {
        border-right: none;
        border-bottom: 1px solid var(--zh-border);
        padding: 20px 16px;
    }
    .zh-stat:nth-child(odd)  { border-right: 1px solid var(--zh-border); }
    .zh-stat:nth-child(3),
    .zh-stat:nth-child(4)    { border-bottom: none; }

    /* Pillars: single column */
    .zh-pillars-grid { grid-template-columns: 1fr; }

    /* Carriers / API: stack */
    .zh-carriers-layout,
    .zh-api-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* ERP: 2 columns */
    .zh-erp-grid { grid-template-columns: repeat(2, 1fr); }

    /* Above-fold: stack title and CTA vertically */
    .zh-af-header {
        flex-direction: column;
        gap: 20px;
    }
    .zh-af-cta {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
    .zh-af-search-tag { display: none; }

    /* Hero actions: stack */
    .zh-hero-actions,
    .zh-cta-actions {
        flex-direction: column;
        align-items: center;
    }

    /* Integration grid: smaller tiles */
    .zh-int-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }

    /* Carrier logos: keep 3 cols but smaller */
    .zh-carrier-logos { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile — 480px and below */
@media (max-width: 480px) {
    .zh-container { padding: 0 16px; }
    .zh-section   { padding: 56px 0; }

    .zh-pillar-card { padding: 24px 18px; }
    .zh-pillar-card:hover { transform: none; }

    .zh-carrier-logos { grid-template-columns: repeat(2, 1fr); }

    .zh-erp-grid { grid-template-columns: 1fr; }

    .zh-stats-grid { grid-template-columns: 1fr; }
    .zh-stat { border-right: none !important; padding: 18px 0 !important; }

    .zh-code-block { font-size: 0.75rem; padding: 44px 16px 20px; }

    .wechat-widget { bottom: 20px; right: 16px; }
    .scroll-up     { bottom: 80px; right: 18px; }
}
