/**
 * EIZOO WordPress Theme - Custom CSS
 * All component styles matching reference site: http://zjyz.demo.93seo.cn/
 * Uses Flexbox layout (NOT Bootstrap navbar) for navigation
 */

/* ===== Bootstrap Override: fix container width ===== */
.container {
    max-width: 1200px;
}

/* ===== Animations ===== */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Layout Container ===== */
.eizoo-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Override Bootstrap container width */
.container {
    max-width: 1200px;
}

/* Prevent horizontal overflow globally */
body {
    overflow-x: hidden;
}

/* ===== Top Bar ===== */
.eizoo-top-bar {
    background: rgb(251,251,251);
    line-height: 49px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.eizoo-top-contact,
.eizoo-top-social {
    list-style: none;
    padding: 0;
    margin: 0;
}

.eizoo-top-contact li {
    display: inline;
    padding-right: 16px;
    padding-left: 16px;
    font-size: 13px;
    border-right: 1px solid rgb(229, 229, 229);
}

.eizoo-top-contact li span {
    color: rgba(102,102,102);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.eizoo-top-contact a {
    color: rgba(102,102,102);
    text-decoration: none;
}

.eizoo-top-contact a:hover {
    color: #42a5f5;
}

.eizoo-top-social {
    display: flex;
    gap: 0;
}

.eizoo-top-social li {
    margin-left: 14px;
     padding-right: 16px;
    padding-left: 16px;
    border-right: 1px solid rgb(229, 229, 229);
}

.eizoo-top-social li a {
    color: rgba(64,64,64);
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s;
}

.eizoo-top-social li a:hover {
    color: #42a5f5;
}

@media (max-width: 768px) {
    .eizoo-top-bar .eizoo-container {
        flex-direction: column;
        text-align: center;
    }
    .eizoo-top-contact,
    .eizoo-top-social {
        justify-content: center;
    }
    .eizoo-top-social {
        margin-top: 4px;
    }
    .eizoo-top-social li:first-child {
        margin-left: 0;
    }
}

/* ===== Navbar (Flexbox, NOT Bootstrap) ===== */
.eizoo-navbar {
    background: #fff;
    box-shadow: 0 2px 16px rgba(14, 40, 65, 0.06);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(21, 101, 192, 0.05);
}

.eizoo-navbar .eizoo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.eizoo-navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.eizoo-navbar-brand img {
    height: 70px;
    width: auto;
}

/* Nav links container */
.eizoo-navbar-collapse {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Nav list */
.eizoo-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.eizoo-nav > li {
    position: relative;
}

.eizoo-nav-link {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #0a1628;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.2s;
    position: relative;
    text-decoration: none;
    white-space: nowrap;
}

 

.eizoo-nav-link:hover,
.eizoo-nav-link.active {
    color: #1565c0;text-decoration: none;
}

.eizoo-nav-link:hover::after,
.eizoo-nav-link.active::after {
    transform: scaleX(1);
}

/* ===== Dropdown Menu ===== */

/* 顶级 li 定位基准（覆盖 Bootstrap 3 的任何 li 样式）*/
.eizoo-nav > li {
    position: relative !important;
}

/* ---- 下拉面板：默认隐藏 ---- */
/* Walker 输出 eizoo-dropdown；WP 原生回退输出 sub-menu；全部覆盖 */
.eizoo-nav > li > ul.eizoo-dropdown,
.eizoo-nav > li > ul.sub-menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 220px;
    background: #fff !important;
   
    box-shadow: 0 8px 28px rgba(14, 40, 65, 0.13);
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 9999 !important;
    float: none !important;
}

/* ---- 悬浮显示下拉 ---- */
.eizoo-nav > li:hover > ul.eizoo-dropdown,
.eizoo-nav > li:hover > ul.sub-menu {
    display: block !important;
}

/* ---- 子菜单每项 li ---- */
.eizoo-nav > li > ul.eizoo-dropdown > li,
.eizoo-nav > li > ul.sub-menu > li {
    display: block !important;
    float: none !important;
    border-bottom: 1px solid #f0f0f0;
    margin: 0 !important;
    padding: 0 !important;
}
.eizoo-nav > li > ul.eizoo-dropdown > li:last-child,
.eizoo-nav > li > ul.sub-menu > li:last-child {
    border-bottom: none;
}

/* ---- 子菜单链接 ---- */
.eizoo-nav > li > ul.eizoo-dropdown > li > a,
.eizoo-nav > li > ul.sub-menu > li > a {
    display: block !important;
    padding: 13px 22px !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #333 !important;
    text-decoration: none !important;
    white-space: nowrap;
    background: transparent;
    transition: background 0.18s, color 0.18s;
    letter-spacing: 0.2px;
    line-height: 1.5 !important;
}

.eizoo-nav > li > ul.eizoo-dropdown > li > a:hover,
.eizoo-nav > li > ul.eizoo-dropdown > li.current-menu-item > a,
.eizoo-nav > li > ul.sub-menu > li > a:hover,
.eizoo-nav > li > ul.sub-menu > li.current-menu-item > a {
    background: #f0f5ff !important;
    color: #1565c0 !important;
    text-decoration: none !important;
}

/* ---- 移动端：点击展开 ---- */
@media (max-width: 992px) {
    .eizoo-nav > li > ul.eizoo-dropdown,
    .eizoo-nav > li > ul.sub-menu {
        position: static !important;
        display: none !important;
        box-shadow: none !important;
        border-top: none !important;
        background: #f5f7fa !important;
        border-left: 3px solid #1565c0;
        margin: 0 0 4px 12px !important;
        min-width: auto;
    }
    .eizoo-nav > li:hover > ul.eizoo-dropdown,
    .eizoo-nav > li:hover > ul.sub-menu {
        display: none !important; /* 移动端取消 hover，改用 click */
    }
    .eizoo-nav > li.open > ul.eizoo-dropdown,
    .eizoo-nav > li.open > ul.sub-menu {
        display: block !important;
    }
    .eizoo-nav > li > ul.eizoo-dropdown > li > a,
    .eizoo-nav > li > ul.sub-menu > li > a {
        padding: 9px 16px !important;
        color: #555 !important;
    }
}

/* ===== Mobile toggle ===== */
.eizoo-navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.eizoo-navbar-toggle .icon-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #0e2841;
    margin: 5px 0;
    transition: all 0.3s;
}

/* ===== Search ===== */
.eizoo-module-search {
    margin-left: 16px;
    position: relative;
}

.eizoo-search-icon {
    cursor: pointer;
    font-size: 14px;
    color: #6b7280;
    padding: 6px;
    transition: color 0.2s;
}

.eizoo-search-icon:hover {
    color: #1565c0;
}

.eizoo-search-box {
    position: absolute;
    right: 0;
    top: 100%;
    width: 280px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 12px;
    display: none;
    z-index: 100;
}

.eizoo-search-box.active {
    display: block;
}

.eizoo-search-box form {
    display: flex;
    align-items: stretch;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.eizoo-search-box form:focus-within {
    border-color: #1565c0;
}

.eizoo-search-box input[type="text"] {
    flex: 1;
    border: none;
    border-radius: 0;
    padding: 9px 14px;
    font-size: 13px;
    outline: none;
    background: transparent;
    min-width: 0;
}

.eizoo-search-box input[type="text"]:focus {
    border-color: transparent;
    outline: none;
}

.eizoo-search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    background: #1565c0;
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.eizoo-search-submit:hover {
    background: #0d47a1;
}

.eizoo-search-submit i {
    line-height: 1;
}

/* ===== Navbar responsive ===== */
@media (max-width: 992px) {
    .eizoo-navbar .eizoo-container {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 15px;
    }
    .eizoo-navbar-brand {
        /* brand stays on left */
    }
    .eizoo-navbar-toggle {
        display: block;
        margin-left: auto;
    }
    .eizoo-navbar-collapse {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
        flex-direction: column;
        align-items: stretch;
    }
    .eizoo-navbar-collapse.active {
        max-height: 600px;
        padding-top: 12px;
    }
    .eizoo-nav {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    .eizoo-nav > li > a {
        padding: 10px 0;
        border-bottom: 1px solid #f3f4f6;
    }
    .eizoo-nav-link::after {
        display: none;
    }
    .eizoo-module-search {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
    }
    .eizoo-search-box {
        position: static;
        width: 100%;
        box-shadow: none;
        padding: 0;
        margin-top: 4px;
        display: block;
    }
    .eizoo-search-box form {
        border-radius: 4px;
    }
}

@media (max-width: 768px) {
    .eizoo-navbar-brand img {
        height: 50px;
    }
}

/* ===== Section Headers ===== */
.pmx-header {
    text-align: center;
    margin-bottom: 72px;
    position: relative;
    z-index: 1;
}

.pmx-title {
    font-size: 40px;
    font-weight: 900;
    color: #0a1628;
    margin-bottom: 14px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.pmx-subtitle {
    font-size: 15px;
    color: #6b7280;
    max-width: 920px;
    margin: 0 auto 22px;
    line-height: 1.75;
}

.pmx-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1565c0, #42a5f5);
    margin: 0 auto;
    border-radius: 2px;
}

.cases-header,
.partners-header,
.pillars-header {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cases-header { margin-bottom: 64px; }
.partners-header { margin-bottom: 36px; }
.pillars-header { margin-bottom: 68px; }

.cases-label,
.cases-line,
.partners-label,
.partners-line,
.pillars-label,
.pillars-line {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.cases-label,
.partners-label,
.pillars-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #1565c0;
    background: rgba(21, 101, 192, 0.07);
    padding: 7px 22px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.cases-title,
.partners-title,
.pillars-title {
    font-size: 38px;
    font-weight: 900;
    color: #0a1628;
    margin-bottom: 14px;
    line-height: 1.15;
    letter-spacing: -0.8px;
}

.cases-subtitle {
    font-size: 15px;
    color: #6b7280;
    max-width: 520px;
    margin: 0 auto 22px;
    line-height: 1.7;
}

.partners-subtitle {
    font-size: 16px;
    color: #6b7280;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.cases-line,
.partners-line,
.pillars-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1565c0, #42a5f5);
    margin: 0 auto;
    border-radius: 2px;
}

.cases-tag-wrap {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.cases-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1565c0;
    background: rgba(21, 101, 192, 0.08);
    border: 1px solid rgba(21, 101, 192, 0.18);
    padding: 5px 14px;
    border-radius: 6px;
}

.cases-methods {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.cases-method-tag {
    font-size: 12px;
    font-weight: 600;
    color: #1565c0;
    background: rgba(21, 101, 192, 0.07);
    border: 1px solid rgba(21, 101, 192, 0.15);
    padding: 5px 14px;
    border-radius: 6px;
}

/* ===== Download Section ===== */
.eizoo-download-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8f9fc 0%, #fff 100%);
}

.eizoo-download-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(21, 101, 192, 0.07);
    box-shadow: 0 2px 12px rgba(14, 40, 65, 0.04);
    margin-bottom: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.eizoo-download-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(21, 101, 192, 0.1);
}

.eizoo-download-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.08), rgba(66, 165, 245, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1565c0;
    font-size: 20px;
    flex-shrink: 0;
}

.eizoo-download-name {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #0a1628;
}

.eizoo-download-btn {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #1565c0, #1976d2);
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.eizoo-download-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(21, 101, 192, 0.3);
}

/* ===== Product List Layout (shared: page-products.php + search.php) ===== */

/* ===== 页面标题区 ===== */
.pl-page-header {
    position: relative;
    padding: 70px 0 50px; 
    background: linear-gradient(135deg, #0d1b3e, #1a3a6e, #1565c0);
    overflow: hidden;
}
.pl-page-header::before {
    content: "";
    position: absolute; inset: 0;
    background: var(--pl-hero-bg, url('images/hero-bg.jpg')) center/cover no-repeat;
    opacity: 0.25;
}
.pl-page-header .container { position: relative; z-index: 2; }
.pl-page-header h1 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.pl-breadcrumb { margin: 0; padding: 0; list-style: none; }
.pl-breadcrumb li { display: inline; font-size: 13px; color: rgba(255,255,255,0.6); }
.pl-breadcrumb li + li::before { content: " / "; color: rgba(255,255,255,0.4); }
.pl-breadcrumb li a { color: rgba(255,255,255,0.85); text-decoration: none; }
.pl-breadcrumb li a:hover { color: #fff; }

/* ===== 主体布局 ===== */
.pl-section {
    padding: 60px 0 80px;
    background: #f4f6f9;
}
.pl-body {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 36px;
    align-items: flex-start;
}

/* ===== 左侧型号导航 ===== */
.pl-sidebar {
    position: sticky;
}
.pl-nav-widget {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.pl-nav-heading {
    background: linear-gradient(135deg, #1565c0, #1976d2);
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pl-nav-heading h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
}
.pl-nav-heading svg {
    flex-shrink: 0;
    opacity: 0.7;
}
.pl-nav-list {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}
.pl-nav-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 22px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
    border-left: 3px solid transparent;
}
.pl-nav-list li a:hover {
    background: #f0f5ff;
    color: #1565c0;
    padding-left: 28px;
}
.pl-nav-list li a.active {
    background: linear-gradient(90deg,#e3f2fd,#bbdefb);
    color: #1565c0;
    font-weight: 600;
    border-left: 3px solid #1565c0;
}
.pl-nav-group-title {
    padding: 12px 20px 6px;
    font-size: 12px;
    font-weight: 700;
    color: #1565c0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    pointer-events: none;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.pl-nav-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(21,101,192,0.15), transparent);
    margin: 10px 16px;
    pointer-events: none;
}
.pl-nav-name {
    font-size: 13px;
    color: #555;
    line-height: 1.3;
}
.pl-nav-list li a:hover .pl-nav-name,
.pl-nav-list li a.active .pl-nav-name {
    color: #1565c0;
}

/* ===== 右侧产品网格 — 3列上图文下文 ===== */
.pl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.pl-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    transition: transform 0.35s cubic-bezier(.25,.8,.25,1), box-shadow 0.35s cubic-bezier(.25,.8,.25,1);
    display: flex;
    flex-direction: column;
}
.pl-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(21,101,192,0.13);
}

/* 上方图片区 */
.pl-card-img {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: linear-gradient(135deg, #0e2841, #1565c0);
}
.pl-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}
.pl-card:hover .pl-card-img img {
    transform: scale(1.08);
}

/* 下方文字区 */
.pl-card-body {
    padding: 22px 20px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pl-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #0a1628;
    margin: 0 0 10px;
    line-height: 1.4;
}
.pl-card-title a {
    color: inherit;
    text-decoration: none;
}
.pl-card-title a:hover { color: #1565c0; }
.pl-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1565c0;
    text-decoration: none;
    margin-top: auto;
    transition: gap 0.2s, color 0.2s;
}
.pl-card-link:hover { gap: 10px; color: #0d47a1; }
.pl-card-link svg { flex-shrink: 0; }

/* ===== 产品列表页响应式 ===== */
@media (max-width: 1024px) {
    .pl-body { grid-template-columns: 220px 1fr; gap: 24px; }
    .pl-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 768px) {
    .pl-body { grid-template-columns: 1fr; }
    .pl-sidebar { position: static; }
    .pl-nav-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 18px; }
    .pl-nav-list li a { padding: 8px 14px; border-radius: 8px; border-left: none; }
    .pl-nav-list li a:hover { padding-left: 14px; }
    .pl-nav-list li a.active { border-left: none; background: #e8f0fe; }
    .pl-grid { grid-template-columns: 1fr; }
    .pl-card-img { height: 200px; }
    .pl-page-header { padding: 55px 0 40px; }
}
@media (max-width: 640px) {
    .pl-card-body { padding: 18px; }
    .pl-page-header h1 { font-size: 26px; }
}

/* ===== Responsive Utilities ===== */
@media (max-width: 768px) {
    .cases-title { font-size: 28px; }
    .pmx-title { font-size: 28px; }
    .partners-title { font-size: 26px; }
    .pillars-title { font-size: 28px; }
}
/* ===== Mobile: Cases Section ===== */
@media (max-width: 768px) {
    /* Cases body: 两栏改单栏，文字在上图片在下 */
    .cases-body,
    .cases-body[style] {
        display: flex !important;
        flex-direction: column !important;
        gap: 28px !important;
    }

    .cases-info {
        width: 100%;
    }

    /* 图片网格：主图全宽，副图两张并排一行 */
    .cases-photo-grid,
    .cases-photo-grid[style] {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: 220px 150px !important;
        height: auto !important;
        gap: 10px !important;
        width: 100%;
    }

    /* 主图跨两列 */
    .cases-photo.photo-main {
        grid-column: 1 / 3 !important;
        grid-row: 1 / 2 !important;
        border-radius: 14px;
        overflow: hidden;
    }

    /* 副图各占一列，并排在第二行 */
    .cases-photo.photo-sub {
        grid-row: 2 / 3 !important;
        border-radius: 12px;
        overflow: hidden;
    }

    /* 副图1（grid第2个子元素）→ 左列 */
    .cases-photo-grid .cases-photo:nth-child(2) {
        grid-column: 1 / 2 !important;
    }

    /* 副图2（grid第3个子元素）→ 右列 */
    .cases-photo-grid .cases-photo:nth-child(3) {
        grid-column: 2 / 3 !important;
    }

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

    .cases-photo-caption {
        display: none;
    }

    /* Cases 文字区间距 */
    .cases-name {
        font-size: 22px !important;
        line-height: 1.3;
    }

    .cases-desc {
        font-size: 14px;
        line-height: 1.7;
    }

    .cases-header { margin-bottom: 40px; }
}