/* contact.css - 联系我们页面样式 */

:root {
    --primary-color: #002878;
    --secondary-color: #f2f2f2;
    --accent-color: #00aaff;
    --text-color: #333;
    --text-secondary: #666;
    --light-gray: #f9f9f9;
    --dark-gray: #666;
    --gradient-blue: linear-gradient(135deg, #0066cc, #003d7a);
    --border-radius: 8px;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-heavy: 0 8px 40px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 100px;
}

/* 顶部信息栏 */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
    z-index: 1001; /* 高于导航栏 */
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left span {
    color: rgba(255, 255, 255, 0.9);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.top-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.top-phone i {
    font-size: 1rem;
}

.top-phone span {
    color: white;
}



/* 页面主体内容上边距调整 */
body {
    padding-top: 40px; /* 为顶部信息栏留出空间 */
}

/* 页面头部横幅 */
.page-hero {
    position: relative;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    margin-top: 0; /* 确保紧贴导航栏 */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/public/static/img/contact.jpg');
    background-size: cover;
    background-position: center;
    animation: zoom-in 10s ease-out forwards;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 51, 102, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fade-in-up 1s ease-out;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.page-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
}

/* 留言表单区域 */
.message-form-section {
    background: #f8f9fa;
    padding: 80px 0;
}

/* 标签页导航 */
.form-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 40px;
    border-bottom: none;
}

.tab-button {
    flex: 1;
    padding: 18px 30px;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    background: #e0e0e0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}


.tab-button:nth-child(2) {
    background: #e0e0e0;
}

.tab-button:last-child {
    background: #e0e0e0;
}

.tab-button.active {
    color: white;
    font-weight: 600;
}

.tab-button:first-child.active {
    background: var(--primary-color);
}

.tab-button:nth-child(2).active {
    background: var(--primary-color);
}

.tab-button:last-child.active {
    background: var(--primary-color);
}

/* 表单内容 */
.form-content {
    background: white;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* 表单样式 */
.contact-form {
    max-width: 100%;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    flex: 1;
    width: 100%;
}

.form-group.half {
    flex: 1;
}

.form-group.quarter {
    flex: 1;
}

.form-group label {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.required {
    color: #d32f2f;
    margin-right: 3px;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* 验证码组 */
.captcha-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.captcha-input {
    flex: 1;
    max-width: 200px;
}

.captcha-image {
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

/* 复选框标签 */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* 提交按钮 */
.form-submit {
    margin-top: 30px;
}

.submit-btn {
    background: linear-gradient(135deg, #002878, #01359f);
    color: white;
    border: none;
    padding: 15px 60px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #01359f, #0046d2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 191, 165, 0.3);
}

/* 联系我们主内容区域 */
.contact-main-section {
    position: relative;
    min-height: 700px;
    padding: 0;
    overflow: hidden;
}

/* 地图背景通栏 */
.map-background-full {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.contact-main-section .container {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 700px;
}

/* 内容包装器 */
.contact-content-wrapper {
    display: flex;
    align-items: center;
    min-height: 700px;
    padding: 80px 0;
}

/* 左侧联系信息面板 */
.contact-info-panel {
    background: white;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    gap: 35px;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.company-name h2 {
    font-size: 1.8rem;
    font-weight: 700;
    
    line-height: 1.5;
    margin-bottom: 20px;
}

/* 联系项目 */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.4rem;
}

.contact-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.contact-details p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 二维码区域 */
.qr-codes-section {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.qr-code-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.qr-code-placeholder {
    width: 100px;
    height: 100px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qr-code-placeholder img {
    width: 100%;
    height: 100%;
    max-width: 100px;
    object-fit: cover;
}

.qr-code-placeholder i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.qr-code-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
}

/* 地图标记 */
.map-marker {
    position: absolute;
    top: 60%;
    right: 26%;
    transform: translateY(-50%);
    z-index: 3;
}

.marker-pin {
    background: var(--primary-color);
    color: white;
    padding: 20px 30px;
    box-shadow: 0 8px 30px rgb(0 40 120);
    position: relative;
    min-width: 350px;
}
/*
.marker-pin::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-right: 20px solid #d32f2f;
}
*/
.pin-icon {
    position: absolute;
    top: -15px;
    left: 30px;
    width: 40px;
    height: 40px;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pin-icon i {
    font-size: 1.3rem;
}

.pin-info {
    padding-top: 20px;
}

.pin-info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.pin-info p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

/* 动画效果 */
@keyframes zoom-in {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .container {
        padding: 0 60px;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
    
    .contact-info-panel {
        padding: 50px 40px;
    }
    
    .marker-pin {
        min-width: 300px;
        padding: 18px 25px;
    }
    
    .map-marker {
        right: 10%;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .contact-info-panel {
        padding: 60px 40px;
    }
    
    .map-container {
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    /* 顶部信息栏响应式 */
    .top-bar {
        padding: 8px 0;
        font-size: 0.85rem;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .top-bar-left {
        display: none; /* 小屏幕隐藏欢迎语 */
    }
    
    /* 导航栏位置调整 */
    .navbar {
        top: 35px !important; /* 小屏幕顶部信息栏高度较小 */
    }
    
    body {
        padding-top: 35px; /* 调整页面上边距 */
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    /* 留言表单响应式 */
    .message-form-section {
        padding: 60px 0;
    }
    
    .form-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        padding: 15px 20px;
        font-size: 0.95rem;
    }
    
    .form-content {
        padding: 30px 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group.quarter {
        width: 100%;
    }
    
    .captcha-input {
        max-width: 150px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 15px 30px;
    }
    
    .contact-info-panel {
        padding: 40px 30px;
        gap: 30px;
    }
    
    .company-name h2 {
        font-size: 1.5rem;
    }
    
    .qr-codes-section {
        flex-direction: column;
        gap: 20px;
    }
    
    .qr-code-item {
        flex-direction: row;
        gap: 15px;
    }
    
    .qr-code-placeholder {
        width: 80px;
        height: 80px;
    }
    
    .qr-code-placeholder i {
        font-size: 2rem;
    }
    
    .map-container {
        min-height: 400px;
    }
    
    .marker-pin {
        min-width: 250px;
        padding: 15px 20px;
    }
    
    .pin-info h4 {
        font-size: 1.1rem;
    }
    
    .pin-info p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    /* 顶部信息栏响应式 */
    .top-phone {
        font-size: 0.85rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .contact-info-panel {
        padding: 30px 20px;
    }
    
    .company-name h2 {
        font-size: 1.3rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon i {
        font-size: 1.2rem;
    }
    
    .contact-details h3 {
        font-size: 1rem;
    }
    
    .contact-details p {
        font-size: 0.9rem;
    }
    
    .marker-pin {
        min-width: 200px;
        padding: 12px 15px;
    }
    
    .pin-icon {
        width: 35px;
        height: 35px;
        top: -12px;
        left: 15px;
    }
    
    .pin-icon i {
        font-size: 1.1rem;
    }
    
    .pin-info h4 {
        font-size: 1rem;
    }
    
    .pin-info p {
        font-size: 0.85rem;
    }
}

