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

/* ---------- Hero (已对齐全站高级风格) ---------- */
.pt-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    padding: 100px 20px;
    overflow: hidden;
    color: #fff;
    background: #0a1f3d;
}
.pt-hero-bg {
    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;
}
.pt-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;
}
.pt-hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* 标签小字 */
.pt-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;
}

/* 主标题 */
.pt-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;
}

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

/* 按钮组 */
.pt-hero-cta { 
    display: flex; 
    gap: 14px; 
    flex-wrap: wrap; 
}
.pt-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; 
}
.pt-hero-btn:hover { 
    background: #1557b8; 
    border-color: #1557b8; 
    transform: translateY(-2px); 
}
.pt-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; 
}
.pt-hero-btn-outline:hover { 
    background: rgba(255,255,255,0.1); 
    border-color: #fff; 
    transform: translateY(-2px); 
}

/* ---------- Common Label ---------- */
.pt-label { font-size: 12px; letter-spacing: 2px; color: var(--c-primary); font-weight: 700; margin-bottom: 12px; }

/* ==========================================
   Client Photo Wall
   ========================================== */
.pt-wall { padding: 90px 20px 80px; background: #ffffff; }
.pt-wall-header { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.pt-wall-header h2 { font-size: 38px; font-weight: 800; color: var(--c-dark); margin: 0 0 14px; line-height: 1.2; }
.pt-wall-header p { font-size: 15px; color: var(--c-text-muted); line-height: 1.7; margin: 0; }

.pt-wall-filters {
    max-width: 1200px;
    margin: 0 auto 36px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.pt-wall-filter {
    background: #f1f5f9;
    border: 1px solid var(--c-border);
    color: #475569;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.pt-wall-filter:hover {
    background: #e0f2fe;
    border-color: #bfdbfe;
    color: var(--c-primary);
}
.pt-wall-filter.active {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #ffffff;
}

.pt-wall-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.pt-wall-card {
    background: #ffffff;
    border: 1px solid var(--c-border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.pt-wall-card:hover {
    transform: translateY(-6px);
    border-color: #bfdbfe;
    box-shadow: 0 20px 40px -16px rgba(29, 111, 232, 0.18);
}
.pt-wall-card.hidden { display: none; }
.pt-wall-img { width: 100%; height: 220px; overflow: hidden; background: #f1f5f9; }
.pt-wall-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.pt-wall-card:hover .pt-wall-img img { transform: scale(1.05); }
.pt-wall-body { padding: 20px 22px 22px; }
.pt-wall-region {
    display: inline-block;
    background: #e0f2fe;
    color: var(--c-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.pt-wall-body h3 { font-size: 16px; font-weight: 700; color: var(--c-dark); margin: 0 0 8px; line-height: 1.35; }
.pt-wall-body p { font-size: 13.5px; color: var(--c-text-muted); line-height: 1.6; margin: 0; }

/* ==========================================
   Interactive World Map
   ========================================== */
.pt-map-section { padding: 90px 20px 80px; background: var(--c-bg-soft); }
.pt-map-header { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.pt-map-header h2 { font-size: 38px; font-weight: 800; color: var(--c-dark); margin: 0 0 16px; line-height: 1.2; }
.pt-map-header p { font-size: 15px; color: var(--c-text-muted); line-height: 1.7; margin: 0; }

.pt-map-wrap { position: relative; max-width: 1280px; margin: 0 auto; }
.pt-map { position: relative; width: 100%; height: 560px; background: transparent; }

.pt-popup {
    position: absolute;
    top: 0;
    left: 0;
    width: 260px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px -16px rgba(15,23,42,0.35);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -100%) translateY(-14px);
    transition: opacity 0.2s ease;
    z-index: 10;
    overflow: visible;
}
.pt-popup.show {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

.pt-popup-body { padding: 16px 18px 18px; }
.pt-popup-title { font-size: 15px; font-weight: 800; color: var(--c-dark); margin-bottom: 6px; }
.pt-popup-desc { font-size: 13px; color: #475569; line-height: 1.5; margin-bottom: 12px; }
.pt-popup-stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}
.pt-popup-stat-num { font-size: 22px; font-weight: 800; color: var(--c-primary); line-height: 1; }
.pt-popup-stat-label { font-size: 11.5px; color: var(--c-text-muted); letter-spacing: 0.5px; }

.pt-popup-arrow {
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    transform: translateX(-50%) rotate(45deg);
    box-shadow: 4px 4px 8px -4px rgba(15,23,42,0.25);
    z-index: -1;
}

.pt-popup-btn {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 10px 14px;
    background: var(--c-primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.pt-popup-btn:hover {
    background: var(--c-primary-hover);
    transform: translateY(-1px);
}

/* ---------- Stats ---------- */
.pt-stats { padding: 60px 20px; background: var(--c-dark); color: #fff; }
.pt-stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.pt-stat-num { font-size: 42px; font-weight: 800; color: var(--c-primary-light); line-height: 1; margin-bottom: 10px; }
.pt-stat-label { font-size: 13px; color: #cbd5e1; letter-spacing: 0.5px; text-transform: uppercase; }

/* ---------- Testimonials ---------- */
.pt-testimonials { padding: 100px 20px; background: #ffffff; }
.pt-testimonials-header { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.pt-testimonials-header h2 { font-size: 38px; font-weight: 800; color: var(--c-dark); margin: 0; }
.pt-testimonials-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.pt-testimonial {
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border);
    border-radius: 14px;
    padding: 30px 28px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.pt-testimonial:hover { transform: translateY(-5px); border-color: #cbd5e1; box-shadow: 0 12px 24px -10px rgba(15,42,74,0.08); }
.pt-quote {
    position: absolute;
    top: 16px; right: 24px;
    font-size: 46px;
    color: rgba(29,111,232,0.15);
    font-family: serif;
    line-height: 1;
}
.pt-quote-text {
    font-size: 14px;
    color: #334155;
    line-height: 1.7;
    margin: 0 0 24px;
    flex-grow: 1;
}
.pt-client { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--c-border); padding-top: 16px; }
.pt-avatar {
    width: 42px; height: 42px;
    background: #e0f2fe;
    color: var(--c-primary);
    border: 1px solid #bae6fd;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}
.pt-name { font-size: 14px; font-weight: 700; color: var(--c-dark); margin-bottom: 2px; }
.pt-title { font-size: 12px; color: var(--c-text-muted); }

/* ---------- CTA ---------- */
.pt-cta {
    padding: 80px 20px;
    background: linear-gradient(135deg, #0a2540 0%, #1e3c72 100%);
    color: #fff;
    text-align: center;
}
.pt-cta h2 { font-size: 36px; font-weight: 800; margin: 0 0 16px; }
.pt-cta p { font-size: 16px; color: #cbd5e1; margin: 0 auto 30px; max-width: 620px; line-height: 1.6; }
.pt-cta-btn {
    display: inline-block;
    background: var(--c-primary);
    color: #fff;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s;
}
.pt-cta-btn:hover { background: var(--c-primary-hover); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .pt-hero h1 { font-size: 42px; }
    .pt-map { height: 480px; }
    .pt-wall-grid { grid-template-columns: repeat(2, 1fr); }
    .pt-testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .pt-popup {
        width: auto;
        max-width: calc(100% - 24px);
    }
    .pt-popup-arrow { display: none; }
}
@media (max-width: 700px) {
    .pt-hero { min-height: 340px; padding: 60px 20px; }
    .pt-hero h1 { font-size: 34px; }
    .pt-hero p { font-size: 15px; }
    .pt-map-section { padding: 60px 20px; }
    .pt-map-header h2 { font-size: 26px; }
    .pt-map { height: 340px; }
    .pt-popup { width: auto; max-width: calc(100% - 24px); }
    .pt-wall { padding: 60px 20px; }
    .pt-wall-header h2 { font-size: 26px; }
    .pt-wall-grid { grid-template-columns: 1fr; }
    .pt-wall-filter { padding: 8px 16px; font-size: 13px; }
    .pt-stats-inner { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .pt-stat-num { font-size: 32px; }
    .pt-testimonials { padding: 60px 20px; }
    .pt-testimonials-header h2 { font-size: 26px; }
    .pt-testimonials-grid { grid-template-columns: 1fr; }
    .pt-cta h2 { font-size: 26px; }
    .pt-hero-cta { flex-direction: column; }
    .pt-hero-btn, .pt-hero-btn-outline { text-align: center; }
}

/* ==========================================
   Photo Lightbox（客户照片点击放大）
   ========================================== */
.pt-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 20, 35, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.pt-lightbox.open {
    display: flex;
    opacity: 1;
}

.pt-lightbox-inner {
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transform: scale(0.94);
    transition: transform 0.3s ease;
}
.pt-lightbox.open .pt-lightbox-inner {
    transform: scale(1);
}
.pt-lightbox-inner img {
    width: 100%;
    height: auto;
    max-height: calc(90vh - 100px);
    object-fit: contain;
    background: #f1f5f9;
    display: block;
}
.pt-lightbox-caption {
    padding: 18px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}
.pt-lightbox-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}
.pt-lightbox-desc {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.5;
}

.pt-lightbox-close,
.pt-lightbox-prev,
.pt-lightbox-next {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}
.pt-lightbox-close:hover,
.pt-lightbox-prev:hover,
.pt-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}
.pt-lightbox-close {
    top: 20px;
    right: 24px;
    font-size: 28px;
}
.pt-lightbox-prev {
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
}
.pt-lightbox-next {
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .pt-lightbox { padding: 60px 12px 20px; }
    .pt-lightbox-close,
    .pt-lightbox-prev,
    .pt-lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .pt-lightbox-close { top: 12px; right: 12px; }
    .pt-lightbox-prev { left: 12px; }
    .pt-lightbox-next { right: 12px; }
    .pt-lightbox-title { font-size: 14px; }
    .pt-lightbox-desc { font-size: 12.5px; }
    .pt-lightbox-caption { padding: 14px 16px; }
}