/* ==========================================================================
   CLIENTS & TESTIMONIALS PAGE STYLES
========================================================================== */

.clients-page-wrapper { background: #ffffff; color: var(--text-main); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
.section-header { margin-bottom: 4rem; }
.section-header.center { text-align: center; }
.section-header h2 { font-size: 2.8rem; font-weight: 900; letter-spacing: -1px; color: var(--text-main); margin-bottom: 1rem; line-height: 1.2; }
.section-header p { font-size: 1.15rem; color: var(--text-muted); max-width: 700px; line-height: 1.6; }
.section-header.center p { margin: 0 auto; }

/* 实现点击后平滑滚动 */
html { scroll-behavior: smooth; }

/* ==========================================================================
   1. HERO SECTION
========================================================================== */
.clients-hero {
    background: linear-gradient(180deg, #050a16 0%, #030612 100%);
    color: #ffffff;
    padding: 9rem 0 7rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.hero-kicker { 
    display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; 
    font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; 
    color: #94a3b8; margin-bottom: 1.5rem; 
    background: rgba(255,255,255,0.03); padding: 6px 16px; 
    border-radius: 99px; border: 1px solid rgba(255,255,255,0.08); 
}
.hero-kicker .dot { width: 6px; height: 6px; background: var(--primary-orange); border-radius: 50%; }
.clients-hero h1 { font-size: 4rem; font-weight: 900; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 1.5rem; color: #f8fafc; max-width: 900px; margin-inline: auto; }
.clients-hero .lead { font-size: 1.25rem; color: rgba(148, 163, 184, 0.9); max-width: 800px; margin: 0 auto 4rem; line-height: 1.6; }

.hero-stats-grid { display: flex; justify-content: center; gap: 5rem; flex-wrap: wrap; padding-top: 3rem; border-top: 1px solid rgba(255,255,255,0.08); max-width: 800px; margin: 0 auto;}
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 3rem; font-weight: 900; color: #ffffff; line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.9rem; font-weight: 700; color: var(--primary-orange); text-transform: uppercase; letter-spacing: 1px; }

/* ==========================================================================
   2. FEATURED TESTIMONIALS (S-Class)
========================================================================== */
.featured-stories { padding: 8rem 0; background: #f8fafc; border-bottom: 1px solid var(--line); }
.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

.feat-card { background: #ffffff; padding: 3rem; border-radius: 20px; border: 1px solid var(--line); display: flex; flex-direction: column;}
.feat-card.highlight-card { border: 1px solid rgba(249, 115, 22, 0.4); box-shadow: 0 20px 40px rgba(249, 115, 22, 0.08); }
.feat-badge { background: rgba(249, 115, 22, 0.1); color: var(--primary-orange); font-size: 0.85rem; font-weight: 800; padding: 6px 14px; border-radius: 6px; display: inline-block; width: fit-content; margin-bottom: 1.5rem; text-transform: uppercase;}

.feat-quote { font-size: 1.25rem; font-weight: 500; color: var(--text-main); line-height: 1.7; margin-bottom: 3rem; font-style: italic; flex-grow: 1;}
.feat-author { display: flex; align-items: center; gap: 1.2rem; }
.feat-author .testi-avatar { width: 54px; height: 54px; border-radius: 50%; background: #f1f5f9; display: flex; align-items: center; justify-content: center; color: var(--text-muted); flex-shrink: 0;}
.feat-author h4 { font-size: 1.05rem; font-weight: 850; color: var(--bg-navy); margin: 0 0 2px; }
.feat-author p { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; margin: 0; }

/* ==========================================================================
   3. INDUSTRY NAV & MATRIX ROSTER
========================================================================== */
.industry-matrix { padding: 8rem 0; background: #ffffff; }

/* 🔥 行业快捷导航栏样式 */
.industry-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 4rem; /* 稍微拉开与下方内容的间距 */
    position: sticky;
    top: 70px; /* 悬浮在顶部，留出 Header 的空间 */
    z-index: 100; /* 确保悬浮在最高层 */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.industry-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 99px;
    background: var(--section-bg-light);
    border: 1px solid var(--line);
    transition: all 0.2s ease;
}
.industry-nav a:hover {
    color: #fff;
    background: var(--bg-navy);
    border-color: var(--bg-navy);
    transform: translateY(-2px);
}

.roster-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 4rem 3rem; 
}
.roster-category {
    /* 🚨 极其关键：防止锚点跳转时被顶部导航栏遮挡标题 */
    scroll-margin-top: 140px; 
}
.roster-category h3 { 
    display: flex; align-items: center; gap: 10px; 
    font-size: 1.15rem; font-weight: 850; color: var(--bg-navy); 
    margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--line);
}
.roster-category h3 i { width: 20px; height: 20px; color: var(--primary-orange); }
.roster-category ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.roster-category li { 
    font-size: 0.9rem; font-weight: 600; color: #475569; 
    position: relative; padding-left: 14px; line-height: 1.4;
}
.roster-category li::before { 
    content: "•"; position: absolute; left: 0; top: -2px; 
    color: #cbd5e1; font-size: 1.2rem; 
}

/* 🔥 折叠按钮样式 */
.toggle-list-btn {
    background: transparent;
    border: none;
    color: var(--primary-orange);
    font-size: 0.95rem;
    font-weight: 800;
    padding: 0;
    margin-top: 1.2rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}
.toggle-list-btn:hover {
    color: var(--orange-hover);
    text-decoration: underline;
}

/* 🔥 展开时的下拉动画 */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   4. WALL OF LOVE (Masonry Layout)
========================================================================== */
.wall-of-love { padding: 8rem 0; background: #f8fafc; border-top: 1px solid var(--line); }

/* Pure CSS Masonry Magic */
.masonry-grid {
    column-count: 3; /* Desktop: 3 columns */
    column-gap: 1.5rem;
    width: 100%;
}

.masonry-card {
    break-inside: avoid; /* Prevents cards from breaking across columns */
    background: #ffffff;
    border: 1px solid var(--line);
    padding: 2.2rem;
    border-radius: 16px;
    margin-bottom: 1.5rem; /* Vertical gap between cards */
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s;
}
.masonry-card:hover { transform: translateY(-4px); border-color: #cbd5e1; }

.masonry-card p { font-size: 1.05rem; font-weight: 500; color: #334155; line-height: 1.7; margin-bottom: 1.8rem; }
.m-author { font-size: 0.9rem; color: #64748b; line-height: 1.5; border-top: 1px solid #f1f5f9; padding-top: 1.2rem;}
.m-author strong { color: var(--bg-navy); font-weight: 800; font-size: 0.95rem;}

/* ==========================================================================
   RESPONSIVE DESIGN
========================================================================== */
@media (max-width: 992px) {
    .clients-hero h1 { font-size: 3rem; }
    .hero-stats-grid { gap: 3rem; }
    .featured-grid { grid-template-columns: 1fr; }
    .masonry-grid { column-count: 2; } /* Tablet: 2 columns */
}
@media (max-width: 768px) {
    .clients-hero h1 { font-size: 2.5rem; }
    .hero-stats-grid { flex-direction: column; gap: 2rem; }
    .roster-grid { grid-template-columns: 1fr; gap: 3rem; }
    .masonry-grid { column-count: 1; } /* Mobile: 1 column */
}