/* 首页版式：传统企业官网风格，红白配色、直角卡片、大图横幅 */
* { margin: 0; padding: 0; box-sizing: border-box; }

.container { max-width: 1200px; margin: 0 auto; }

/* 1. 首页横幅 */
#homeBanner {
    position: relative;
    height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(120deg, #f7f9fc 0%, #e9eef5 55%, #dfe6ef 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 有图时压一层浅色蒙版，保证深色标题可读 */
#homeBanner.has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .74) 46%, rgba(255, 255, 255, .32) 100%);
}

/* 无图时的几何装饰，纯 CSS 斜向块，避免额外图片请求 */
#homeBanner:not(.has-image)::before,
#homeBanner:not(.has-image)::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 48%;
    pointer-events: none;
}

#homeBanner:not(.has-image)::before {
    background: linear-gradient(115deg, transparent 40%, rgba(214, 19, 24, .10) 40%, rgba(214, 19, 24, .10) 66%, transparent 66%);
}

#homeBanner:not(.has-image)::after {
    background: linear-gradient(115deg, transparent 58%, rgba(17, 24, 39, .07) 58%, rgba(17, 24, 39, .07) 86%, transparent 86%);
}

#homeBanner .container { position: relative; z-index: 1; width: 100%; padding: 0 20px; }
.banner-inner { max-width: 720px; }
#homeBanner h1 { font-size: 44px; font-weight: 700; color: #111; line-height: 1.25; margin-bottom: 18px; }
#homeBanner p { font-size: 26px; font-weight: 300; color: #333; line-height: 1.6; margin-bottom: 32px; }
.banner-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.banner-highlights { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px; }

.banner-highlights span {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    color: #333;
}

.banner-highlights span::before {
    content: '';
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--primary);
}

/* 2. 走进我们：三列图文卡片 */
#homeIntro { padding: 64px 20px; background: var(--background-secondary); }
.intro-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.intro-card { display: flex; flex-direction: column; background: #fff; border-radius: 0; box-shadow: var(--shadow-card); }
.intro-card-head { padding: 14px; text-align: center; font-size: 18px; font-weight: 700; color: #111; }
.intro-card-media { height: 170px; overflow: hidden; }
.intro-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.intro-card-media--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d61318, #8a0c10);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .06em;
}

.intro-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px; }
.intro-list { list-style: none; display: grid; gap: 10px; margin-bottom: 18px; }

.intro-list li {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.intro-list strong { font-weight: 600; color: #111; }
.intro-news { list-style: none; display: grid; gap: 12px; margin-bottom: 18px; }

.intro-news li {
    font-size: 14px;
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.intro-news li::before { content: '▸'; color: var(--primary); margin-right: 8px; }
.intro-news a { color: #444; text-decoration: none; }
.intro-news a:hover { color: var(--primary); }
.intro-empty { font-size: 14px; color: #999; margin-bottom: 18px; }

.intro-card-more {
    align-self: flex-end;
    margin-top: auto;
    min-height: 34px;
    padding: 0 16px;
    font-size: 13px;
    border-radius: var(--radius-md);
}

/* 3. 指标与场景 */
#trust { padding: 64px 20px; background: #fff; }
.trust-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 32px; }
.trust-metric-card { padding: 24px 20px; text-align: center; border-right: 1px solid var(--border); }
.trust-metric-card:last-child { border-right: 0; }
.trust-metric-card strong { display: block; font-size: 36px; font-weight: 700; line-height: 1.1; color: var(--primary); margin-bottom: 10px; }
.trust-metric-card span { font-size: 14px; color: #666; }
.trust-content { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.trust-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0;
}

.trust-panel h3 { font-size: 18px; font-weight: 700; color: #111; margin-bottom: 18px; }
.trust-tags { display: flex; flex-wrap: wrap; gap: 12px; }

.trust-tags span {
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0;
    font-size: 14px;
    color: #333;
    transition: all .2s ease;
}

.trust-tags span:hover { border-color: var(--primary); color: var(--primary); }
.trust-panel--summary p { font-size: 15px; line-height: 1.9; color: #555; margin-bottom: 20px; }
.trust-panel--summary .button { margin-top: auto; }

/* 4. 优势 */
#advantages { padding: 64px 20px; background: var(--background-secondary); }
.advantages-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.advantage-card {
    padding: 32px 28px;
    background: #fff;
    border-top: 3px solid transparent;
    border-radius: 0;
    box-shadow: var(--shadow-card);
    transition: all .25s ease;
}

.advantage-card:hover { transform: translateY(-6px); border-top-color: var(--primary); box-shadow: var(--shadow-hover); }
.advantage-index { display: block; font-size: 20px; font-weight: 700; color: var(--primary); letter-spacing: .06em; margin-bottom: 14px; }
.advantage-card h3 { font-size: 18px; font-weight: 700; color: #111; margin-bottom: 12px; }
.advantage-card p { font-size: 15px; line-height: 1.85; color: #666; }

/* 5. 解决方案：仿咨询产品卡片 */
#solutions { padding: 64px 20px; background: #fff; }
.solutions-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.solution-card { display: flex; flex-direction: column; background: var(--background-secondary); border-radius: 0; overflow: hidden; }
.solution-band { height: 150px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #d61318, #8a0c10); }
.solution-band span { font-size: 56px; font-weight: 700; color: rgba(255, 255, 255, .42); letter-spacing: .06em; }
.solution-body { display: flex; flex-direction: column; align-items: center; flex: 1; padding: 24px 22px 28px; text-align: center; }
.solution-body h3 { font-size: 18px; font-weight: 700; color: #111; margin-bottom: 14px; }

.solution-body p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 22px;
}

.solution-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    min-height: 38px;
    padding: 0 20px;
    background: #fff;
    border: 1px solid #999;
    border-radius: var(--radius-md);
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: all .25s ease;
}

.solution-more:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* 6. 合作流程 */
#process { padding: 64px 20px; background: #fff; }
.process-steps { display: flex; flex-wrap: nowrap; justify-content: center; align-items: flex-start; }
.step { max-width: 200px; padding: 0 12px; text-align: center; }
.step-number { width: 56px; height: 56px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; background: var(--primary); border-radius: 50%; color: #fff; font-size: 20px; font-weight: 700; }
.step h3 { font-size: 17px; font-weight: 700; color: #111; margin-bottom: 10px; }
.step p { font-size: 14px; line-height: 1.7; color: #666; }
.connector { flex: 0 0 auto; width: 40px; margin-top: 28px; border-top: 2px dashed var(--border); }

/* 7. 客户 Logo 墙 */
#logoWall { padding: 64px 20px 24px; background: var(--background-secondary); }
.logo-wall-header { margin-bottom: 34px; }
.trust-logo-marquee--multi { display: grid; gap: 18px; overflow: hidden; }
.trust-logo-track { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.trust-logo-track--moving { display: flex; width: max-content; gap: 18px; animation: trust-logo-scroll-left 32s linear infinite; }
.trust-logo-track--moving .trust-logo-card { width: 164px; flex: 0 0 164px; }
.trust-logo-track--moving:hover { animation-play-state: paused; }
.trust-logo-track--row-0,
.trust-logo-track--row-2 { animation-name: trust-logo-scroll-right; }

@keyframes trust-logo-scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes trust-logo-scroll-right {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .trust-logo-track--moving { animation: none; transform: none; }
}

.trust-logo-card { min-height: 124px; padding: 14px; background: #fff; border: 1px solid #eee; border-radius: 0; }
.trust-logo-card a { display: block; color: inherit; text-decoration: none; }
.trust-logo-visual { height: 96px; display: flex; align-items: center; justify-content: center; }
.trust-logo-visual img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* 响应式 */
@media screen and (max-width: 1024px) {
    .intro-grid,
    .advantages-grid,
    .solutions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trust-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trust-metric-card:nth-child(2n) { border-right: 0; }
}

@media screen and (max-width: 768px) {
    #homeBanner { height: 360px; }
    #homeBanner h1 { font-size: 28px; }
    #homeBanner p { font-size: 18px; margin-bottom: 24px; }
    .process-steps { flex-direction: column; align-items: center; }
    .connector { width: 0; height: 40px; margin: 8px auto; border-top: 0; border-left: 2px dashed var(--border); }
}

@media screen and (max-width: 640px) {
    .intro-grid,
    .advantages-grid,
    .solutions-grid,
    .trust-content,
    .trust-metrics { grid-template-columns: 1fr; }
    .trust-metric-card { border-right: 0; border-bottom: 1px solid var(--border); }
    .trust-metric-card:last-child { border-bottom: 0; }
    .trust-logo-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trust-logo-marquee--multi .trust-logo-track--moving { display: flex; grid-template-columns: none; }
}
