/* 首页样式修复文件 */

/* 修复首页顶部间距问题 */
.home-page {
    padding-top: 80px;
}

/* 修复服务板块布局问题 */
.services-row {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 20px;
}

/* 修复服务卡片样式 */
.service-card {
    flex: 1;
    min-width: 250px;
    max-width: 280px;
    margin-bottom: 0;
}

/* 修复特性板块文字样式 */
.feature-item h3 {
    font-weight: normal;
    color: black;
}

.feature-item.active h3 {
    font-weight: normal;
}

/* 修复客户见证板块背景色 */
.testimonials-section {
    background: var(--bg-secondary);
}

/* 修复立即询价板块背景色 */
.inquiry-section {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.25), rgba(245, 90, 155, 0.25));
}

/* 修复联系方式板块背景色 */
.contact-info-section {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.25), rgba(245, 90, 155, 0.25));
}

/* 响应式修复 */
@media (max-width: 992px) {
    .services-row {
        max-width: 100%;
        gap: 12px;
        padding: 0 8px;
        justify-content: space-between;
    }
    
    .service-card {
        max-width: calc(25% - 9px);
        min-width: auto;
        width: calc(25% - 9px);
    }
}

@media (max-width: 768px) {
    .services-row {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
        gap: 20px;
    }
    
    .service-card {
        min-width: 280px;
        max-width: calc(50% - 10px);
        width: auto;
    }
    
    .home-page {
        padding-top: 80px;
    }
}

@media (max-width: 640px) {
    .services-row {
        flex-direction: column;
        align-items: center;
    }
    
    .service-card {
        min-width: 280px;
        max-width: 100%;
        width: 90%;
    }
}

@media (max-width: 480px) {
    .service-card {
        min-width: 240px;
        width: 95%;
    }
}

/* 首页样式修复 - 针对用户提出的四个问题 */

/* 问题1: 新闻板块要展示6个卡片，并显示后台添加的新闻 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 30px;
    margin-bottom: 0;
}

/* 确保新闻板块响应式布局正确 */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* 首页服务板块背景色 - 设置为蓝粉渐变并减淡到25% */
.services-section {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.25), rgba(245, 90, 155, 0.25));
}

/* 精选案例板块背景色 - 设置为蓝粉渐变并减淡到25% */
.portfolio-section {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.25), rgba(245, 90, 155, 0.25)) !important;
}

/* 移除旧的combined-section样式，因为我们现在使用独立的板块 */

/* 问题3: 合作伙伴6个卡片要在一行显示 */
.partners-grid {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 20px 0;
    gap: 15px;
}

.partner-item {
    flex: 0 0 auto;
    width: calc(16.666% - 12.5px);
    min-width: 150px;
    max-width: 200px;
}

/* 确保在移动设备上依然有良好的显示效果 */
@media (max-width: 1200px) {
    .partner-item {
        width: calc(20% - 12px);
    }
}

@media (max-width: 992px) {
    .partner-item {
        width: calc(33.333% - 10px);
    }
}

@media (max-width: 768px) {
    .partner-item {
        width: calc(50% - 7.5px);
    }
}

@media (max-width: 576px) {
    .partner-item {
        width: 100%;
        max-width: none;
    }
}

/* 问题4: 底部样式修复 - 卡片式底部设计 */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    padding: 60px 0 30px;
}

/* 底部背景样式 */
.site-footer {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.25), rgba(245, 90, 155, 0.25));
}

.footer-content {
    margin-bottom: 40px;
}

.footer-section {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-subtle);
    height: 100%;
    transition: all 0.3s var(--ease-smooth);
    border: 2px solid transparent;
}

.footer-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-blue);
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-pink));
    border-radius: 3px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s var(--ease-smooth);
    display: inline-block;
    position: relative;
    padding-left: 15px;
}

.footer-links a:hover {
    color: var(--accent-blue);
    transform: translateX(5px);
}

.footer-links a::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: var(--accent-blue);
    transition: all 0.3s var(--ease-smooth);
}

.footer-links a:hover::before {
    transform: translateY(-50%) translateX(3px);
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact p i {
    color: var(--accent-blue);
    margin-right: 10px;
    margin-top: 4px;
    min-width: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-dark);
    transition: all 0.3s var(--ease-smooth);
}

.footer-social a:hover {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-pink));
    color: white;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--border-light);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 精选案例板块样式 - 添加4列网格布局 */
.portfolio-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 30px;
    margin-bottom: 0;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    transition: all 0.3s var(--ease-smooth);
    break-inside: avoid;
    display: block;
    background: white;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s var(--ease-smooth);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s var(--ease-smooth);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    color: white;
    margin-bottom: 10px;
    text-align: center;
}

.portfolio-overlay p {
    color: var(--text-muted);
    margin-bottom: 20px;
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .portfolio-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-container {
        grid-template-columns: 1fr;
    }
}

/* 为什么选择我们 - 文字联动图片视差效果 */
.parallax-container {
    display: flex;
    gap: 30px;
    align-items: stretch;
    margin-top: 50px;
    height: 500px; /* 设置整体高度与右侧图片一致 */
}

.parallax-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直居中 */
    gap: 30px;
}

/* 美化文字效果 - 去掉背景框，优化文字显示 */
.feature-item {
    text-align: left;
    padding: 0;
    background: transparent;
    border-radius: 0;
    transition: all 0.3s var(--ease-smooth);
    box-shadow: none;
    cursor: pointer;
    position: relative;
    padding-left: 65px; /* 再次增加10px间距 */
    padding-top: 5px;
    padding-bottom: 5px;
    margin-bottom: 50px; /* 增加项目之间的间距 */
}

/* 通用图标样式 */
.feature-item::before {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 24px; /* 图标大小 */
    color: black;
    transition: all 0.3s var(--ease-smooth);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 激活状态下的图标颜色变为指定橙色 */
.feature-item.active::before {
    color: #f07f47;
}

/* 根据标题文字设置不同图标 */
.feature-item[data-index="0"]::before {
    content: "\f0c0"; /* Font Awesome 用户组图标 - 专业团队 */
    color: #f07f47; /* 专业团队图标默认颜色 - 用户要求的橙色 */
}

.feature-item[data-index="1"]::before {
    content: "\f5fc"; /* Font Awesome 相机图标 - 一流设备 */
}

.feature-item[data-index="2"]::before {
    content: "\f017"; /* Font Awesome 时钟图标 - 按时交付 */
}

.feature-item[data-index="3"]::before {
    content: "\f0ed"; /* Font Awesome 文件文本图标 - 贴心服务 */
}

.feature-item:hover::before {
    transform: translateY(-50%) scale(1.1);
    color: #f07f47; /* 用户要求的橙色 */
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    font-size: 26px; /* 悬停时进一步变大 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 添加连接线 - 为每个项目之间添加单独的连接线 */
.parallax-text {
    position: relative;
    padding-left: 15px;
}

.feature-group {
    position: relative;
    padding-left: 15px;
}

/* 为每个feature-item之间添加单独的连接线，而不是贯穿整个区域的长线 */
.feature-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 30px; /* 精确对齐图标中心 */
    top: calc(50% + 22px); /* 从图标底部开始 */
    height: calc(100% - 44px); /* 连接到下一个图标的顶部 */
    width: 0;
    border-left: 2px dashed #d0d0d0; /* 使用虚线边框 */
    z-index: 0; /* 设置合适的z-index避免覆盖内容 */
}

/* 确保专业团队图标悬停颜色正确应用 */
.feature-item[data-index="0"]:hover::before {
    color: #f07f47 !important; /* 专业团队图标悬停颜色 */
}

.feature-item.active::before {
    transform: translateY(-50%) scale(1.1);
    color: #f07f47; /* 用户要求的橙色 */
    font-size: 28px; /* 激活状态下图标更大 */
}

/* 确保专业团队图标在active状态下也显示正确颜色 */
.feature-item[data-index="0"].active::before {
    color: #f07f47 !important; /* 专业团队图标active状态颜色 - 覆盖黄金色 */
}

.feature-item h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    font-weight: normal; /* 不要加粗 */
    color: black; /* 默认字体黑色 */
    transition: all 0.3s var(--ease-smooth);
    position: relative;
    line-height: 1.3;
    margin-top: 0; /* 确保与图标垂直对齐 */
}

.feature-item.active h3 {
    color: black;
    font-size: 1.8rem;
    font-weight: normal; /* 不要加粗 */
}

/* 确保h3悬停颜色生效 */
.feature-item:hover h3 {
    color: #f07f47 !important; /* 鼠标滑过字体变为指定颜色 */
    font-size: 1.8rem; /* 鼠标滑过时字体加大1号 */
    margin-top: 0;
    margin-bottom: 0;
    font-weight: bold; /* 鼠标滑过字体加粗 */
}

.feature-item p {
    font-size: 1rem; /* 字体小一号 */
    line-height: 1.7;
    color: var(--text-light); /* 默认字体灰色 */
    margin-bottom: 0;
    transition: all 0.3s var(--ease-smooth);
    padding-left: 5px;
    opacity: 0; /* 默认状态下隐藏p元素 */
    height: 0;
    overflow: hidden;
}

.feature-item.active p {
    color: black;
    font-size: 1.2rem;
}

.feature-item:hover p {
    color: #666666; /* 鼠标滑过字体变为灰色 */
    font-size: 0.9rem; /* 鼠标滑过字体缩小一号 */
    opacity: 1; /* 鼠标滑过显示p元素 */
    height: auto;
    overflow: visible;
}

/* 确保所有图片没有背景颜色 */
img {
    background-color: transparent !important;
    border: none !important; /* 确保没有边框 */
}

.parallax-images {
    flex: 1;
    height: 500px;
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.image-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s var(--ease-smooth);
}

.image-item.active {
    opacity: 1;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .parallax-container {
        flex-direction: column;
        height: auto;
    }
    
    .parallax-images {
        height: 400px;
    }
    
    .parallax-text {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .parallax-images {
        height: 300px;
    }
    
    .feature-item h3 {
        font-size: 1.4rem;
    }
    
    .feature-item.active h3 {
        font-size: 1.6rem;
    }
    
    .feature-item p {
        font-size: 1rem;
    }
    
    .feature-item.active p {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
}

    /* 修复：正确的响应式悬停样式 */
    .feature-item:hover::before {
        color: #f07f47 !important; /* 图标悬停颜色 - 重要提示：不要修改这个颜色 */
    }
    
    .feature-item:hover h3 {
        color: #f07f47 !important; /* 保持与全局样式一致 */
        font-size: 1.8rem; /* 适当调整移动端大小 */
    }
    
    .feature-item:hover p {
        color: black;
        font-size: 0.9rem;
    }

/* 首页视频展示板块样式 */
.homepage-video-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

/* 高特异性的首页视频展示板块背景样式，解决CSS重叠问题 */
.homepage-video-section {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.25), rgba(245, 90, 155, 0.25)) !important;
}

.homepage-video-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.homepage-video-section .section-header h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.homepage-video-section .section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.video-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.video-wrapper {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.video-wrapper::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 响应式视频容器 */
@media (max-width: 992px) {
    .homepage-video-section {
        padding: 80px 0;
    }
    
    .homepage-video-section .section-header h2 {
        font-size: 1.8rem;
    }
    
    .homepage-video-section .section-header p {
        font-size: 1rem;
    }
    
    .video-wrapper {
        border-radius: 12px;
    }
}

@media (max-width: 768px) {
    .homepage-video-section {
        padding: 60px 0;
    }
    
    .homepage-video-section .section-header {
        margin-bottom: 30px;
    }
    
    .homepage-video-section .section-header h2 {
        font-size: 1.6rem;
    }
    
    .video-wrapper {
        border-radius: 10px;
    }
}

@media (max-width: 576px) {
    .homepage-video-section {
        padding: 50px 0;
    }
    
    .homepage-video-section .section-header h2 {
        font-size: 1.5rem;
    }
    
    .homepage-video-section .section-header p {
        font-size: 0.9rem;
    }
    
    .video-wrapper {
        border-radius: 8px;
    }
}

/* 联系方式板块样式 */
.contact-info-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.25), rgba(245, 90, 155, 0.25)); /* Changed to more transparent blue-pink gradient (25% opacity) */
}

.contact-info-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-info-section .section-header h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-info-section .section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.contact-item {
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s var(--ease-smooth);
    box-shadow: var(--shadow-subtle);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.contact-icon i {
    font-size: 24px;
    color: white;
}

.contact-item h3 {
    font-size: 1.125rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.contact-item p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* 底部询价表单样式 */
.footer-inquiry-form {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow-subtle);
    margin-top: 20px;
}

.footer-inquiry-form .section-header {
    margin-bottom: 20px;
    text-align: center;
}

.footer-inquiry-form .section-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-inquiry-form .form-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-inquiry-form input,
.footer-inquiry-form select {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-medium);
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s var(--ease-smooth);
}

.footer-inquiry-form input:focus,
.footer-inquiry-form select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(92, 219, 211, 0.2);
}

.footer-inquiry-form .captcha-group {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.footer-inquiry-form .captcha-group input {
    flex: 1;
}
