/* --- 基础重置和变量 --- */
:root {
    --tfbkw-primary-color: #000;
    --tfbkw-secondary-color: #6C6EE5;
    --tfbkw-text-dark: #222;
    --tfbkw-text-light: #666;
    --tfbkw-bg-light: #fff;
    --tfbkw-btn-primary-bg: #1A1A1A;
    --tfbkw-btn-primary-text: #fff;
}

/* 隐藏手机端的banner区域 */
@media (max-width: 767px) {
  .tfbkw-banner-container {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
  }
}

@media (min-width: 768px) {
  .tfbkw-banner-container {
    display: flex !important;
  }
}

/* --- 主要容器和布局 --- */
.tfbkw-banner-container {
    padding: 6vw 0; 
    min-height: 550px; /* 可任意修改此值 */
    max-height: 590px; /* 可任意修改此值 */
    position: relative;
    background: transparent;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.tfbkw-content-wrapper {
    max-width: 95%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 100%;
    width: 100%;
}

/* --- 左侧内容样式 --- */
.tfbkw-content-left {
    flex: 1;
    max-width: 55%;
    z-index: 10;
}

.tfbkw-tag-expert {
    display: inline-block;
    padding: 5px 12px;
    margin-bottom: 15px;
    background-color: var(--tfbkw-bg-light);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tfbkw-text-dark);
}

.tfbkw-content-left h1 {
    font-size: 64px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--tfbkw-text-dark);
    margin-bottom: 20px;
}

.tfbkw-content-left h1 span {
    color: #F55F98;
    display: inline-block;
    position: relative;
}

.tfbkw-content-left p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--tfbkw-text-light);
    margin-bottom: 30px;
}

/* --- 按钮样式 --- */
.tfbkw-cta-buttons a {
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.3s, color 0.3s;
    display: inline-flex;
    align-items: center;
}

.tfbkw-btn-primary {
    background-color: var(--tfbkw-btn-primary-bg);
    color: var(--tfbkw-btn-primary-text);
    margin-right: 15px;
}

.tfbkw-btn-primary:hover {
    background-color: #333;
}

.tfbkw-btn-secondary {
    background-color: transparent;
    color: var(--tfbkw-text-dark);
    border: 2px solid var(--tfbkw-text-dark);
    padding: 12px 25px;
}

.tfbkw-btn-secondary:after {
    content: '→';
    margin-left: 8px;
    font-size: 20px;
    line-height: 1;
}

/* --- 右侧视觉区域样式 (核心重构) --- */
.tfbkw-content-right {
    flex: 1;
    max-width: 45%;
    display: flex;
    justify-content: center;
    position: relative;
    height: 100%;
    overflow: hidden;
}

.tfbkw-image-area {
    position: relative;
    height: 100%; 
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2%;
    box-sizing: border-box;
}

.tfbkw-megaphone-img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    display: block;
    z-index: 5;
    position: relative;
    object-fit: contain;
}

.tfbkw-responsive-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- 浮动卡片通用样式 (核心重构) --- */
.tfbkw-card-clients,
.tfbkw-card-metrics-marketing,
.tfbkw-card-metrics-success {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 15;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    max-width: 35%;
    max-height: 40%;
    width: auto;
    height: auto;
    overflow: hidden;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    padding: clamp(8px, 1.5vw, 15px);
}

/* 客户数卡片 */
.tfbkw-card-clients {
    top: 15%;
    right: 8%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.tfbkw-card-clients span {
    font-weight: 600;
    color: var(--tfbkw-text-dark);
    margin-bottom: 5px;
    font-size: clamp(12px, 1.2vw, 14px);
}

.tfbkw-client-avatars img {
    width: clamp(25px, 4vw, 35px);
    height: clamp(25px, 4vw, 35px);
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -5px;
    object-fit: cover;
}

.tfbkw-client-avatars img:first-child {
    margin-left: 0;
}

/* 营销数据卡片 */
.tfbkw-card-metrics-marketing {
    bottom: 16%;
    left: 2%;
    text-align: left;
}

.tfbkw-card-metrics-marketing .tfbkw-metric-title {
    font-size: clamp(12px, 1.2vw, 14px);
    color: var(--tfbkw-text-light);
    display: block;
}

.tfbkw-card-metrics-marketing .tfbkw-metric-percent {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 800;
    color: var(--tfbkw-text-dark);
    display: block;
    margin-bottom: 5px;
}

.tfbkw-chart-placeholder {
    margin-top: 5px;
}

.tfbkw-line-chart {
    width: 100%;
    height: auto;
    max-height: 40px;
}

/* 成功率卡片 */
.tfbkw-card-metrics-success {
    bottom: 18%;
    right: 2%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tfbkw-success-rate-icon {
    font-size: clamp(20px, 2.5vw, 30px);
    margin-bottom: 3px;
}

.tfbkw-card-metrics-success .tfbkw-metric-percent {
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 800;
    color: var(--tfbkw-text-dark);
}

.tfbkw-card-metrics-success .tfbkw-metric-label {
    font-size: clamp(12px, 1.2vw, 14px);
    color: var(--tfbkw-text-light);
}

/* --- 底部 Logo 滑动区域样式 --- */
.tfbkw-trust-bar-wrapper {
    max-width: 1300px;
    margin: 40px auto 0;
    padding-top: 40px;
    padding-left: 40px;
    padding-right: 40px;
    text-align: center;
    border-top: 1.5px solid rgba(244, 67, 54, 0.3);
}

.tfbkw-trust-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--tfbkw-text-dark);
    margin-bottom: 15px;
}

.tfbkw-logo-slider {
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.tfbkw-logo-track {
    display: flex;
    width: 200%;
    animation: tfbkw-slide-logos 30s linear infinite;
}

.tfbkw-logo-slider:hover .tfbkw-logo-track {
    animation-play-state: paused;
}

@keyframes tfbkw-slide-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.tfbkw-logo-item {
    max-height: 35px;
    width: 10%;
    flex-shrink: 0;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: opacity 0.3s, filter 0.3s;
    display: block;
    object-fit: contain;
}

.tfbkw-logo-item:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* --- 响应式设计 --- */
@media (max-width: 1450px) {
    .tfbkw-content-wrapper,
    .tfbkw-trust-bar-wrapper {
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .tfbkw-banner-container {
        padding: 8vw 0;
        min-height: 400px;
        max-height: 700px;
    }

    .tfbkw-content-wrapper {
        flex-direction: column;
        text-align: center;
        height: 100%;
    }

    .tfbkw-content-left,
    .tfbkw-content-right {
        max-width: 100%;
        margin-bottom: 40px;
        height: auto;
    }

    .tfbkw-content-left {
        padding-top: 20px;
    }

    .tfbkw-content-left h1 {
        font-size: 40px;
    }

    .tfbkw-content-left p {
        font-size: 16px;
    }

    .tfbkw-cta-buttons {
        justify-content: center;
        display: flex;
    }

    /* 平板端卡片适配 */
    .tfbkw-card-clients,
    .tfbkw-card-metrics-marketing,
    .tfbkw-card-metrics-success {
        max-width: 45%;
        max-height: 35%;
    }
    
    .tfbkw-card-metrics-marketing .tfbkw-metric-percent {
        font-size: clamp(16px, 1.8vw, 20px);
    }
    
    .tfbkw-card-metrics-success .tfbkw-metric-percent {
        font-size: clamp(18px, 2vw, 24px);
    }

    .tfbkw-trust-bar-wrapper {
        margin-top: 30px;
    }

    .tfbkw-logo-item {
        width: 10%;
    }

    .tfbkw-image-area {
        min-height: 70%;
    }
}

@media (max-width: 600px) {
    .tfbkw-banner-container {
        padding: 10vw 0;
        min-height: 350px;
        max-height: 500px;
    }

    .tfbkw-cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .tfbkw-cta-buttons a {
        width: 80%;
        margin: 0 auto;
    }

    .tfbkw-card-metrics-marketing,
    .tfbkw-card-metrics-success {
        position: static;
        margin: 10px auto;
        width: 90%;
        max-width: 90%;
        max-height: none;
    }

    .tfbkw-image-area {
        min-height: auto;
    }

    .tfbkw-logo-item {
        width: 10%;
    }
}