/* ==========================================
   Equipment 页专属样式
   ========================================== */

/* ---------- Hero (已对齐全站高级风格) ---------- */
.eq-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    padding: 100px 20px;
    overflow: hidden;
    color: #fff;
    background: #0a1f3d;
}
.eq-hero-overlay {
    position: absolute; inset: 0;
    background: url('/images/banner/banner-heavy-duty-profile-cnc-machining.webp') center/cover no-repeat;
    opacity: 0.4;
    z-index: 1;
}
.eq-hero::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(15,42,74,0.92) 0%, rgba(15,42,74,0.6) 55%, rgba(15,42,74,0.35) 100%);
    z-index: 2;
}
.eq-hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* 标签小字 */
.eq-hero-label {
    display: inline-block;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    letter-spacing: 1.5px;
    margin-bottom: 22px;
    font-weight: 600;
    text-transform: uppercase;
}

/* 主标题 */
.eq-hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin: 0 0 20px;
    max-width: 820px;
    color: #fff;
}

/* 副标题 */
.eq-hero p {
    font-size: 17px;
    color: #cbd5e1;
    line-height: 1.7;
    max-width: 680px;
    margin: 0 0 32px;
}

/* 按钮组 */
.eq-hero-cta { 
    display: flex; 
    gap: 14px; 
    flex-wrap: wrap; 
}
.eq-hero-btn { 
    display: inline-block; 
    background: #1d6fe8; 
    color: #fff; 
    padding: 14px 30px; 
    border-radius: 6px; 
    text-decoration: none; 
    font-size: 15px; 
    font-weight: 600; 
    transition: all 0.25s; 
    border: 1px solid #1d6fe8; 
}
.eq-hero-btn:hover { 
    background: #1557b8; 
    border-color: #1557b8; 
    transform: translateY(-2px); 
}
.eq-hero-btn-outline { 
    display: inline-block; 
    background: transparent; 
    color: #fff; 
    padding: 14px 30px; 
    border-radius: 6px; 
    text-decoration: none; 
    font-size: 15px; 
    font-weight: 600; 
    border: 1px solid rgba(255,255,255,0.4); 
    transition: all 0.25s; 
}
.eq-hero-btn-outline:hover { 
    background: rgba(255,255,255,0.1); 
    border-color: #fff; 
    transform: translateY(-2px); 
}

/* ---------- Main ---------- */
.eq-main {
    padding: 50px 20px 80px;
    background: var(--c-bg-soft);
}

/* ---------- Filters (分类筛选按钮) ---------- */
.eq-filters {
    max-width: 1320px;
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.eq-filter-btn {
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}
.eq-filter-btn:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}
.eq-filter-btn.active {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(29,111,232,0.2);
}

/* ---------- Grid（2 列 × 3 行） ---------- */
.eq-grid {
    max-width: 1320px;
    margin: 0 auto 50px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ---------- Card ---------- */
.eq-card {
    background: #ffffff;
    border: 1px solid var(--c-border);
    border-radius: 14px;
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.eq-card:hover {
    transform: translateY(-6px);
    border-color: var(--c-primary);
    box-shadow: 0 20px 40px -16px rgba(29,111,232,0.18);
}
.eq-card h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--c-dark);
    line-height: 1.35;
    margin: 0 0 16px;
    min-height: 44px;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

/* ★ 设备图片：大图 */
.eq-img {
    width: 100%;
    height: 420px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.eq-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.eq-card:hover .eq-img img {
    transform: scale(1.04);
}

/* ---------- Specs ---------- */
.eq-specs {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}
.eq-specs li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    font-size: 13.5px;
    border-bottom: 1px solid #f1f5f9;
}
.eq-specs li:last-child { border-bottom: none; }
.eq-specs span {
    color: var(--c-text-muted);
    flex-shrink: 0;
    margin-right: 10px;
}
.eq-specs strong {
    color: var(--c-dark);
    font-weight: 600;
    text-align: right;
}

/* ---------- CTA ---------- */
.eq-cta {
    text-align: center;
    margin-top: 20px;
}
.eq-cta-btn {
    display: inline-block;
    background: var(--c-primary);
    color: #fff;
    padding: 16px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.25s, transform 0.25s;
    box-shadow: 0 10px 25px -8px rgba(29,111,232,0.5);
}
.eq-cta-btn:hover {
    background: var(--c-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -8px rgba(29,111,232,0.6);
}

/* ---------- Caption 图注样式 ---------- */
.eq-caption {
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 16px;
    padding: 0;
    font-style: italic;
}

/* ---------- Pagination (分页组件) ---------- */
.eq-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 40px;
}
.eq-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    background: #ffffff;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    color: var(--c-text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}
.eq-page-btn:hover:not(.disabled):not(.active) {
    border-color: var(--c-primary);
    color: var(--c-primary);
}
.eq-page-btn.active {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
    cursor: default;
}
.eq-page-btn.disabled {
    background: #f1f5f9;
    color: #cbd5e1;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

/* ==========================================
   图片灯箱
   ========================================== */
.eq-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 20, 35, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 60px 80px;
}
.eq-lightbox.open { opacity: 1; pointer-events: auto; }
.eq-lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: eqLbIn 0.3s ease;
}
@keyframes eqLbIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}
.eq-lightbox-close {
    position: absolute;
    top: 24px; right: 32px;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 28px; font-weight: 300;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}
.eq-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}
.eq-lightbox-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 40px; font-weight: 300;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
    line-height: 1;
}
.eq-lightbox-arrow:hover {
    background: rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}
.eq-lightbox-prev { left: 24px; }
.eq-lightbox-next { right: 24px; }
.eq-lightbox-caption {
    position: absolute;
    bottom: 24px; left: 50%;
    transform: translateX(-50%);
    padding: 10px 24px;
    background: rgba(15, 23, 42, 0.8);
    color: #cbd5e1;
    font-size: 14px;
    border-radius: 40px;
    max-width: 80%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Responsive 媒体查询 ---------- */
@media (max-width: 1100px) {
    .eq-hero h1 { font-size: 42px; }
    .eq-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
    .eq-img { height: 320px; }
}
@media (max-width: 900px) {
    .eq-grid { grid-template-columns: 1fr; gap: 20px; }
    .eq-img { height: 320px; }
}
@media (max-width: 700px) {
    .eq-hero { min-height: 340px; padding: 60px 20px; }
    .eq-hero h1 { font-size: 34px; }
    .eq-hero p { font-size: 15px; }
    .eq-main { padding: 40px 20px 50px; }
    .eq-card { padding: 18px; }
    .eq-card h3 { font-size: 14px; min-height: auto; }
    .eq-img { height: 240px; }
    .eq-caption { font-size: 12px; margin-bottom: 12px; }
    
    .eq-pagination { gap: 4px; flex-wrap: wrap; }
    .eq-page-btn { min-width: 36px; height: 36px; padding: 0 10px; font-size: 13px; }

    .eq-lightbox { padding: 40px 16px; }
    .eq-lightbox-arrow { width: 40px; height: 40px; font-size: 28px; }
    .eq-lightbox-prev { left: 8px; }
    .eq-lightbox-next { right: 8px; }
    .eq-lightbox-close { width: 40px; height: 40px; font-size: 22px; top: 16px; right: 16px; }
    .eq-lightbox-caption { font-size: 12px; padding: 8px 16px; bottom: 16px; }
    
    .eq-hero-cta { flex-direction: column; }
    .eq-hero-btn, .eq-hero-btn-outline { text-align: center; }
}