/* 
   综合布线工程页面专用样式
   Wiring Page Styles
*/

/* ============================================
   1. 服务介绍区域
   ============================================ */
.wiring-intro {
    padding: 80px 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

/* 装饰性点缀 - 左下角 */
.wiring-intro::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at 30% 70%, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.1) 40%, rgba(139, 92, 246, 0.05) 70%, transparent 100%);
    border-radius: 50%;
    transform: translate(-40%, 40%);
    z-index: 0;
    filter: blur(25px);
    pointer-events: none;
}

/* 装饰性点缀 - 右下角 */
.wiring-intro::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle at 70% 70%, rgba(255, 182, 193, 0.2) 0%, rgba(255, 182, 193, 0.12) 40%, rgba(255, 182, 193, 0.06) 70%, transparent 100%);
    border-radius: 50%;
    transform: translate(40%, 40%);
    z-index: 0;
    filter: blur(30px);
    pointer-events: none;
}

/* 确保容器内容在装饰之上 */
.wiring-intro .container {
    position: relative;
    z-index: 1;
}

.wiring-intro-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* 介绍文字和图片布局 */
.wiring-intro-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 50px;
}

.wiring-intro-text {
    text-align: left;
}

.wiring-intro-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

.wiring-intro-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.wiring-intro-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.2);
}

.wiring-intro-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 核心优势卡片网格 */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.advantage-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.15);
    border-color: var(--primary-color);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
}

.advantage-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.advantage-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   2. 优势对比区域 - 左右两列布局，带VS标识
   ============================================ */
.comparison-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.comparison-title-image {
    text-align: center;
    margin: 40px 0 50px;
}

.comparison-title-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

/* 对比标题栏 */
.comparison-headers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 0;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.comparison-header-left {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: #fff;
    padding: 25px 30px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.comparison-header-right {
    background: #94a3b8;
    color: #fff;
    padding: 25px 30px;
    text-align: center;
}

.comparison-headers h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.comparison-content-wrapper {
    background: var(--bg-card);
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.comparison-items {
    padding: 30px;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-item {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.comparison-item-runman {
    border: 2px solid #e2e8f0;
    background: #F5E6FF;
}

.comparison-item-runman:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.15);
    transform: translateY(-3px);
}

.comparison-item-others {
    border: 2px solid #e2e8f0;
    background: #f8f9fa;
}

.comparison-item-others:hover {
    border-color: #94a3b8;
    background: #f1f3f5;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.comparison-item-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.comparison-item-runman .comparison-item-icon {
    background: var(--gradient-primary);
    color: #fff;
}

.comparison-item-icon-x {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    font-size: 2.5rem;
    margin: 0 auto 20px;
}

.comparison-item-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.comparison-item-desc {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.comparison-item-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.comparison-item-link:hover {
    color: var(--accent-color);
    gap: 10px;
}

.comparison-item-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.comparison-item-link:hover i {
    transform: translateX(4px);
}

/* VS 标识 */
.comparison-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    position: relative;
    z-index: 1;
    align-self: center;
}

/* ============================================
   3. 服务特色区域
   ============================================ */
.features-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.15);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
}

.feature-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    text-align: left;
}

.feature-list li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.feature-list li i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 0.8rem;
}

.feature-btn {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.feature-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
    color: #fff;
}

/* ============================================
   4. 施工流程区域
   ============================================ */
.process-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    margin-bottom: 80px; /* 增加与下方内容的间距 */
    position: relative;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 20px;
}

/* 连接线 - 在图标后面，使用伪元素遮挡 */
.process-steps::before {
    content: '';
    position: absolute;
    top: 60px; /* 图标中心位置 */
    left: 60px; /* 从第一个图标中心开始 */
    right: 60px; /* 到蕞后一个图标中心结束 */
    height: 2px;
    background: linear-gradient(to right, rgba(139, 92, 246, 0.3), rgba(255, 182, 193, 0.3));
    z-index: 0; /* 在图标后面 */
}

/* 在每个图标位置创建白色圆形遮挡，确保连接线不穿过图标 */
.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--bg-primary); /* 使用背景色遮挡连接线 */
    z-index: 1; /* 在连接线前面，但在图标后面 */
    pointer-events: none; /* 确保不阻挡点击事件 */
}

.process-step {
    flex: 1;
    min-width: 120px;
    text-align: center;
    position: relative;
    z-index: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.process-step-number {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(255, 182, 193, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2; /* 确保图标在遮挡层和连接线前面 */
}

.process-step-number i {
    position: relative;
    z-index: 1;
    font-size: 2.2rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

/* 悬停效果 */
.process-step:hover .process-step-number {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

/* 激活状态 - 更鲜艳的渐变背景 */
.process-step.active .process-step-number {
    background: var(--gradient-primary);
    transform: scale(1.1);
    box-shadow: 0 10px 35px rgba(139, 92, 246, 0.5);
}

/* 激活状态的图标也需要遮挡连接线 */
.process-step.active::before {
    background: var(--bg-primary); /* 保持背景色遮挡 */
    transform: translateX(-50%) scale(1.1); /* 跟随图标放大 */
}

.process-step.active .process-step-number i {
    color: #fff;
}

.process-step.active h4 {
    color: var(--primary-color);
    font-weight: 600;
}

.process-step h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    padding-top: 5px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}


/* ============================================
   5. 应用场景区域
   ============================================ */
.scenarios-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.scenario-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.scenario-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.15);
    text-decoration: none;
}

.scenario-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.scenario-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.scenario-card:hover .scenario-image img {
    transform: scale(1.1);
}

.scenario-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(139, 92, 246, 0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scenario-card:hover .scenario-overlay {
    opacity: 1;
}

.scenario-content {
    padding: 25px;
    text-align: center;
}

.scenario-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.scenario-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   6. 成功案例区域
   ============================================ */
.cases-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.case-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.case-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-primary);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.case-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.case-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.case-meta-item i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* 新的案例信息结构样式 */
.case-info {
    margin-bottom: 15px;
}

.case-info-item {
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.case-info-item:last-child {
    margin-bottom: 0;
}

.case-info-item strong {
    color: var(--text-primary);
    font-weight: 600;
    margin-right: 8px;
    display: inline-block;
    min-width: 80px;
}

.case-info-item span {
    color: var(--text-secondary);
}

.case-info-item.case-overview {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.case-info-item.case-overview strong {
    display: block;
    margin-bottom: 8px;
    min-width: auto;
}

.case-info-item.case-overview p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    flex: 1;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap; /* 防止文字和图标换行 */
    flex-shrink: 0; /* 防止链接被压缩 */
}

.case-link:hover {
    color: var(--accent-color);
    gap: 12px;
}

.cases-more {
    text-align: center;
    margin-top: 50px;
}

/* ============================================
   7. 服务保障区域
   ============================================ */
.guarantee-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

/* 自定义标题区域 */
.guarantee-header {
    text-align: center;
    margin-bottom: 60px;
}

.guarantee-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    line-height: 1.3;
}

.guarantee-title-brand {
    color: #2563eb;
    font-weight: 700;
}

.guarantee-title-separator {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 1.8rem;
}

.guarantee-title-service {
    color: #f97316;
    font-weight: 700;
}

.guarantee-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    font-weight: 500;
    text-transform: uppercase;
}

.guarantee-divider {
    width: 100%;
    max-width: 800px;
    height: 1px;
    background: #e2e8f0;
    margin: 0 auto;
}

/* 2行4列网格布局 - 第一行：文字+图片+文字+图片，第二行：图片+文字+图片+文字 */
.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 0;
    margin-top: 50px;
    border: 1px solid #e5e7eb;
}

/* 通用块样式 */
.guarantee-block {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
}

/* 第一行的块 - 淡色边框 */
.guarantee-row-1 {
    border: 1px solid #e5e7eb;
}

/* 第二行的块 - 淡色边框 */
.guarantee-row-2 {
    border: 1px solid #e5e7eb;
}

/* 悬停效果 */
.guarantee-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    z-index: 1;
}

.guarantee-text-block {
    transition: background-color 0.3s ease;
}

.guarantee-text-block:hover {
    background: rgba(255, 182, 193, 0.15);
}

.guarantee-image-block:hover {
    background: #f5f5f5;
}

.guarantee-image-block:hover .guarantee-image {
    transform: scale(1.05);
}

/* 文字块样式 */
.guarantee-text-block {
    padding: 40px 35px;
    text-align: left;
}

.guarantee-text-block h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.guarantee-text-block:hover h4 {
    color: var(--primary-color);
}

.guarantee-text-block p {
    color: var(--text-secondary);
    line-height: 1.9;
    margin: 0;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.guarantee-text-block:hover p {
    color: var(--text-primary);
}

/* 图片块样式 */
.guarantee-image-block {
    padding: 0;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guarantee-image {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* ============================================
   8. 客户见证轮播区域
   ============================================ */
.testimonials-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.testimonials-carousel {
    position: relative;
    margin-top: 50px;
}

.testimonials-wrapper {
    overflow: hidden;
    position: relative;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-quote {
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.testimonial-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.testimonial-link {
    margin-left: auto;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.testimonial-link:hover {
    color: var(--accent-color);
    gap: 12px;
}

.testimonials-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.testimonial-dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

.testimonials-arrows {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.testimonial-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.testimonial-arrow:hover {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    transform: scale(1.1);
}

/* ============================================
   9. FAQ常见问题区域
   ============================================ */
.faq-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.faq-container {
    max-width: 900px;
    margin: 50px auto 0;
}

.faq-item {
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background: rgba(139, 92, 246, 0.05);
}

.faq-question h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.faq-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 30px 25px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
    font-size: 0.95rem;
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.faq-answer a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1200px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .process-steps {
        flex-wrap: wrap;
        gap: 30px;
        justify-content: center;
    }
    
    .process-steps::before {
        display: none;
    }
    
    .process-step {
        flex: 0 0 calc(33.333% - 20px);
        min-width: 120px;
    }
    
    .process-step-number {
        margin-bottom: 20px; /* 平板端保持足够间距 */
    }
    
    .process-step h4 {
        padding-top: 5px; /* 平板端增加上边距 */
    }
    
    .comparison-row {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 25px 0;
    }
    
    .comparison-vs {
        margin: 10px auto;
        order: 2;
    }
    
    .comparison-item-runman {
        order: 1;
    }
    
    .comparison-item-others {
        order: 3;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .wiring-intro-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .wiring-intro-text {
        text-align: center;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid,
    .scenarios-grid {
        grid-template-columns: 1fr;
    }
    
    .guarantee-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 0;
    }
    
    .guarantee-block {
        min-height: 250px;
    }
    
    .guarantee-text-block {
        padding: 30px 25px;
    }
    
    .guarantee-text-block h4 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .guarantee-image {
        min-height: 250px;
    }
    
    .guarantee-title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .guarantee-title-separator {
        display: none;
    }
    
    .guarantee-subtitle {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-link {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }
}

@media (max-width: 576px) {
    .wiring-intro,
    .comparison-section,
    .features-section,
    .process-section,
    .scenarios-section,
    .cases-section,
    .guarantee-section,
    .testimonials-section,
    .faq-section {
        padding: 60px 0;
    }
    
    .advantage-card,
    .feature-card,
    .guarantee-card {
        padding: 30px 20px;
    }
    
    .process-step-number {
        width: 100px;
        height: 100px;
        font-size: 2rem;
        margin-bottom: 25px; /* 移动端增加间距 */
    }
    
    .process-step-number i {
        font-size: 1.8rem;
    }
    
    .process-step h4 {
        font-size: 0.9rem;
        padding-top: 8px; /* 移动端增加上边距 */
        margin-top: 0;
    }
    
    .process-steps {
        gap: 20px; /* 移动端增加步骤之间的间距 */
        padding: 0 10px;
    }
    
    /* 移动端调整遮挡层大小 */
    .process-step::before {
        width: 100px;
        height: 100px;
    }
    
    .process-step.active::before {
        transform: translateX(-50%) scale(1.1);
    }
}

/* ============================================
   施工现场轮播区域样式 - Swiper.js
   ============================================ */
.construction-site-section {
    padding: 80px 0;
    background-color: #f8fafc;
}

/* Swiper.js 轮播容器 */
.construction-swiper {
    position: relative;
    padding: 0 70px; /* 减少左右padding，给图片更多空间 */
    overflow: hidden; /* 隐藏超出容器的部分，确保只显示完整图片 */
    max-width: 100%;
}

.construction-swiper .swiper-wrapper {
    align-items: stretch;
}

.construction-swiper .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
    padding: 0 12px; /* 增加padding，让图片有更多空间 */
}

/* 图片卡片样式 - 使用16:10横向宽屏比例 */
.construction-image-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    /* 使用padding-bottom技巧实现16:10比例 (10/16 = 62.5%) */
    padding-bottom: 62.5%;
    height: 0;
}

/* 现代浏览器使用aspect-ratio */
@supports (aspect-ratio: 16 / 10) {
    .construction-image-card {
        padding-bottom: 0;
        height: auto;
        aspect-ratio: 16 / 10; /* 强制16:10横向宽屏比例 */
    }
}

.construction-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.construction-image-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important; /* 强制宽度100% */
    height: 100% !important; /* 强制高度100% */
    object-fit: cover; /* 覆盖整个容器，保持16:10比例 */
    object-position: center;
    border-radius: 8px;
    display: block;
    /* 移除Bootstrap类可能的影响 */
    max-width: none !important;
}

/* Swiper.js 导航箭头样式 */
.construction-swiper .swiper-button-next,
.construction-swiper .swiper-button-prev {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: #333;
    font-size: 16px;
    margin-top: 0;
    top: 50%;
    transform: translateY(-50%);
}

.construction-swiper .swiper-button-next::after,
.construction-swiper .swiper-button-prev::after {
    display: none;
}

.construction-swiper .swiper-button-next i,
.construction-swiper .swiper-button-prev i {
    font-size: 16px;
}

.construction-swiper .swiper-button-next:hover,
.construction-swiper .swiper-button-prev:hover {
    background: var(--primary-color, #8b5cf6);
    border-color: var(--primary-color, #8b5cf6);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    color: white;
}

.construction-swiper .swiper-button-prev {
    left: 10px; /* 按钮在容器内部左侧 */
    z-index: 10;
}

.construction-swiper .swiper-button-next {
    right: 10px; /* 按钮在容器内部右侧 */
    z-index: 10;
}

.construction-swiper .swiper-button-next:focus,
.construction-swiper .swiper-button-prev:focus {
    outline: none;
}

/* Swiper.js 轮播指示器样式 */
.construction-swiper .swiper-pagination {
    position: relative;
    margin-top: 30px;
    bottom: 0;
}

.construction-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #cbd5e1;
    opacity: 1;
    transition: all 0.3s ease;
    margin: 0 4px;
}

.construction-swiper .swiper-pagination-bullet:hover {
    background: var(--primary-color, #8b5cf6);
    transform: scale(1.2);
}

.construction-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color, #8b5cf6);
    width: 32px;
    border-radius: 6px;
}

/* 响应式样式 */
@media (max-width: 992px) {
    .construction-swiper {
        padding: 0 60px; /* 平板端保持足够的padding */
    }
    
    .construction-swiper .swiper-button-prev {
        left: 10px;
    }
    
    .construction-swiper .swiper-button-next {
        right: 10px;
    }
    
    .construction-swiper .swiper-button-next,
    .construction-swiper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .construction-swiper .swiper-button-next i,
    .construction-swiper .swiper-button-prev i {
        font-size: 14px;
    }
    
    .construction-image-card {
        padding-bottom: 62.5%; /* 平板端16:10比例 */
    }
    
    @supports (aspect-ratio: 16 / 10) {
        .construction-image-card {
            padding-bottom: 0;
            height: auto;
            aspect-ratio: 16 / 10;
        }
    }
}

@media (max-width: 768px) {
    .construction-site-section {
        padding: 60px 0;
    }
    
    .construction-swiper {
        padding: 0 50px; /* 移动端减少padding */
    }
    
    .construction-swiper .swiper-button-prev {
        left: 5px;
    }
    
    .construction-swiper .swiper-button-next {
        right: 5px;
    }
    
    .construction-swiper .swiper-button-next,
    .construction-swiper .swiper-button-prev {
        width: 35px;
        height: 35px;
        background: rgba(255, 255, 255, 0.9);
    }
    
    .construction-swiper .swiper-button-next i,
    .construction-swiper .swiper-button-prev i {
        font-size: 12px;
    }
    
    .construction-image-card {
        padding-bottom: 62.5%; /* 移动端16:10比例 */
    }
    
    @supports (aspect-ratio: 16 / 10) {
        .construction-image-card {
            padding-bottom: 0;
            height: auto;
            aspect-ratio: 16 / 10;
        }
    }
    
    .construction-site-section h2 {
        font-size: 1.5rem !important;
    }
    
    .construction-site-section p {
        font-size: 0.8rem !important;
    }
    
    .construction-swiper .swiper-pagination {
        margin-top: 20px;
    }
    
    .construction-swiper .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
    
    .construction-swiper .swiper-pagination-bullet-active {
        width: 24px;
    }
}

