/* 联系我们页面特定样式 */

/* 品牌宣语区域样式 - 从certificate.css复制 */
.brand-slogan {
    text-align: center;
    padding: 0;
    background-color: #111;
    position: relative;
    height: 31.25rem;
    background-image: url('../images/contactUs-banner.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-slogan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.brand-slogan .container {
    position: relative;
    z-index: 2;
}

.brand-slogan h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 300;
    letter-spacing: 2px;
    position: relative;
    opacity: 1;
    transform: none;
    animation: none;
}

.brand-slogan p {
    font-size: 1.8rem;
    color: #ffffff;
    letter-spacing: 4px;
    opacity: 1;
    transform: none;
    animation: none;
}

/* 联系我们内容区域 - 黑色底色 */
.contact-content {
    background-color: #000;
    padding: 60px 0;
    min-height: 100vh;
}

/* 联系信息包装器 - 使用flex布局确保左右两侧高度齐平 */
.contact-wrapper {
    display: flex;
    gap: 2rem;
    align-items: stretch;
}

/* 左侧地图区域 - 占2/3宽度 */
.map-section {
    flex: 0 0 66.67%; /* 占2/3空间 */
    position: relative;
}

.map-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 37.5rem; /* 设置最小高度确保良好显示 */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(0 0 0);
}

.map-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    max-height: 100%;
}

.baidu-map-link {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(140, 110, 74, 0.9);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.baidu-map-link:hover {
    background-color: #8c6e4a;
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 5px 15px rgba(140, 110, 74, 0.3);
}

/* 右侧联系信息区域 - 占1/3宽度，确保高度与左侧图片齐平 */
.contact-info {
    flex: 0 0 33.33%; /* 占1/3空间 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    height: 100%;
}

/* 单个信息项 */
.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    align-items: center;
}

.info-item:hover {
    background-color: rgba(140, 110, 74, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(140, 110, 74, 0.2);
}

.info-item i {
    font-size: 1.5rem;
    color: #8c6e4a;
    flex-shrink: 0;
}

.info-text {
    flex: 1;
}

.info-text h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.info-text p {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.6;
    margin: 0;
}

/* 二维码容器 - 去掉i和h3标签，只展示图片 */
.qrcode-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wechat-qrcode {
    width: 100%;
    height: auto;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #fff;
    padding: 0.5rem;
    border-radius: 4px;
}

/* 公司信息区域 - 带滚动渐出和悬停效果 */
.company-info {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.3s;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

/* 滚动渐出动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 公司信息悬停效果 */
.company-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(140, 110, 74, 0.15);
    background-color: rgba(140, 110, 74, 0.08);
}

/* 添加装饰线效果 */
.company-info::before,
.company-info::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8c6e4a, transparent);
    transition: width 0.5s ease;
}

.company-info::before {
    top: 0;
}

.company-info::after {
    bottom: 0;
}

/* 悬停时显示装饰线 */
.company-info:hover::before,
.company-info:hover::after {
    width: 80%;
}

/* 公司信息文字样式 */
.company-info p {
    margin: 0.8rem 0;
    font-size: 1.1rem;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
    display: block;
}

/* 中文名称样式 */
.company-info p:first-child {
    font-size: 1.3rem;
    font-weight: 600;
    color: #222;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 英文名称样式 */
.company-info p:last-child {
    font-size: 1rem;
    color: #666;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* 文字悬停效果 */
.company-info:hover p:first-child {
    color: #8c6e4a;
    transform: scale(1.05);
}

.company-info:hover p:last-child {
    color: #8c6e4a;
    letter-spacing: 1px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .company-info {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    .company-info p:first-child {
        font-size: 1.1rem;
    }
    
    .company-info p:last-child {
        font-size: 0.9rem;
        letter-spacing: 0.3px;
    }
    
    .company-info:hover {
        transform: translateY(-3px);
    }
    
    .company-info:hover::before,
    .company-info:hover::after {
        width: 60%;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 移动端品牌宣语区域调整 */
    .brand-slogan {
        height: 20rem;
    }
    
    .brand-slogan h1 {
        font-size: 2rem;
    }
    
    .brand-slogan p {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    /* 移动端联系信息区域调整 - 垂直堆叠 */
    .contact-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .map-section,
    .contact-info {
        flex: 0 0 100%; /* 移动端各占100%宽度 */
    }
    
    .map-container {
        min-height: 20rem;
    }
    
    .baidu-map-link {
        bottom: 1rem;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .info-item {
        gap: 1rem;
        padding: 1rem;
    }
    
    .info-item i {
        font-size: 1.2rem;
    }
    
    .info-text h3 {
        font-size: 1.1rem;
    }
    
    .wechat-qrcode {
        max-width: 10rem;
    }
    
    .company-info {
        margin-top: 1.5rem;
        padding: 1rem;
    }
    
    .company-info p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .brand-slogan {
        height: 16rem;
    }
    
    .brand-slogan h1 {
        font-size: 1.8rem;
    }
    
    .contact-content {
        padding: 30px 0;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .info-text p {
        font-size: 0.85rem;
    }
    
    .wechat-qrcode {
        max-width: 8rem;
    }
}

/* 添加触摸反馈效果 */
.info-item,
.baidu-map-link {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* 平滑过渡动画 */
* {
    transition: background-color 0.3s ease, color 0.3s ease;
}