/**
 * ================================================
 * 文件：contact.css
 * 作用：联系我们页面专用样式
 * 说明：仅用于contact.html页面，风格与全站保持一致
 * ================================================
 */

/* ========== 页面容器 ========== */
.contact-center {
    background: #f5f7fa;
    padding: 40px 0 60px;
    min-height: 600px;
}

/* ========== 左侧导航高亮样式 ========== */
.sidebar-menu li.active a {
    background: var(--color-accent);
    border-left-color: var(--color-accent);
    color: #fff;
}
.sidebar-menu li.active a i { color: #fff; }

.sidebar-menu li a:hover {
    background: var(--color-accent);
    border-left-color: var(--color-accent);
    color: #fff;
}
.sidebar-menu li a:hover i { color: #fff; }

/* ========== 右侧内容区 ========== */
.contact-content-area {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 30px 40px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    min-height: 500px;
}

.contact-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-bg-light);
}
.contact-header h2 {
    font-size: 24px;
    color: var(--color-text);
    font-weight: bold;
    margin-bottom: 8px;
}
.contact-header p {
    font-size: 14px;
    color: #666;
}

/* ========== 联系方式卡片网格 ========== */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 25px 20px;
    background: #fafbfc;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    background: #fff;
    border-color: #e8edf2;
    box-shadow: 0 6px 20px rgba(23, 82, 166, 0.12);
    transform: translateY(-4px);
}

.info-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(23, 82, 166, 0.25);
}

.info-text h4 {
    font-size: 16px;
    color: var(--color-text);
    margin-bottom: 6px;
    font-weight: 600;
}

.info-text p,
.info-text a {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    transition: color 0.3s;
}
.info-text a:hover {
    color: var(--color-accent);
}

/* ========== 地图展示区 ========== */
.map-wrapper {
    margin-bottom: 35px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8edf2;
}

.map-container {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, #e8edf2 0%, #f5f7fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 15px;
    position: relative;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.map-tip {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ========== 在线留言表单 ========== */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-title {
    font-size: 20px;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
}
.form-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--color-accent);
    margin: 10px auto 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}
.form-group label .required {
    color: #e74c3c;
    margin-left: 3px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fafbfc;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-primary);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(23, 82, 166, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(244, 171, 16, 0.35);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ========== 响应式适配 ========== */
@media (max-width: 1024px) {
    .contact-content-area { padding: 25px 20px; }
    .contact-info-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .form-row { gap: 15px; }
}

@media (max-width: 768px) {
    .contact-center { padding: 20px 0 40px; }
    .contact-content-area { padding: 20px 15px; }
    .contact-header h2 { font-size: 20px; }
    
    .contact-info-grid { grid-template-columns: 1fr; gap: 12px; }
    .contact-info-item { padding: 20px 15px; }
    
    .map-container { height: 240px; }
    
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-title { font-size: 18px; }
    
    .submit-btn { padding: 12px; font-size: 14px; }
}

/* 容器：取消深蓝背景，改用极淡的灰蓝色或白色，增加清爽感 dxj */
.contact-info-panel {
    display: flex;
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 74, 141, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
	margin-top:20px;
}

.panel-section {
    padding: 40px 30px;
    flex: 1;
}

/* 左侧主要区域：通过深蓝色竖线强调品牌 */
.branch-primary {
    flex: 1.5;
    background: linear-gradient(to right, #fcfdfe, #ffffff);
    border-right: 1px dashed #e1e8ed;
}

.brand-tag {
    font-size: 12px;
    color: #004a8d;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.location-title {
    color: #333;
    font-size: 16px;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-title i {
    color: #004a8d;
    font-size: 14px;
}

.address-box p {
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* 中间联络矩阵：图标化 */
.contact-matrix {
    background: #fff;
    border-right: 1px dashed #e1e8ed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

.matrix-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.matrix-row i {
    width: 36px;
    height: 36px;
    background: rgba(0, 74, 141, 0.05);
    color: #004a8d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.matrix-row span {
    display: block;
    font-size: 12px;
    color: #999;
}

.matrix-row strong {
    display: block;
    font-size: 15px;
    color: #333;
    font-family: Arial, sans-serif;
}

/* 右侧海外分支：极简卡片感 */
.global-list {
    background: #f9fbff; /* 淡淡的底色区分海外部分 */
}

.global-item {
    margin-bottom: 20px;
}

.global-item h5 {
    color: #004a8d;
    font-size: 14px;
    margin: 0 0 5px 0;
    border-bottom: 2px solid rgba(0, 74, 141, 0.1);
    display: inline-block;
}

.global-item p {
    font-size: 12px;
    color: #777;
    margin: 5px 0 0 0;
    line-height: 1.4;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .contact-info-panel { flex-direction: column; }
    .panel-section { border-right: none; border-bottom: 1px solid #eee; }
}

.chindt-contact-panel {
    background: linear-gradient(135deg, #4fa2e4 0%, #4fa2e4 100%); /* 深蓝渐变色 */
    padding: 40px;
    border-radius: 4px; /* 匹配网页整体的方正感 */
    color: #fff;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
	margin-bottom: 30px;
}

/* 装饰背景，增加科技感 */
.chindt-contact-panel::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
}

.contact-row {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 25px;
}

.contact-row:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

/* 块级布局 */
.contact-block {
    display: flex;
    margin-bottom: 20px;
}

.c-icon {
    width: 24px;
    font-size: 18px;
    color: #00d2ff; /* 亮蓝色图标点缀 */
    margin-top: 3px;
}

.c-content {
    margin-left: 15px;
}

.c-header {
    font-size: 15px;
    margin-bottom: 5px;
}

.c-label {
    font-weight: bold;
    font-size: 16px;
}

.c-ename {
    font-style: italic;
    margin-left: 8px;
    opacity: 0.9;
}

.c-company {
    opacity: 0.8;
    font-size: 14px;
}

.c-detail {
    font-size: 14px;
    opacity: 0.85;
    margin: 5px 0 0 0;
}

/* 中间项目横排布局 */
.secondary-info {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.contact-item i {
    font-size: 14px;
    color: #00d2ff;
}

/* 海外分支三列布局 */
.global-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.global-block {
    display: flex;
    gap: 12px;
}

.global-block i {
    font-size: 14px;
    color: #00d2ff;
    margin-top: 4px;
}

.g-text strong {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

.g-text strong span {
    font-weight: normal;
    font-style: italic;
    font-size: 12px;
    opacity: 0.8;
}

.g-text p {
    font-size: 13px;
    margin: 0;
    opacity: 0.7;
    line-height: 1.4;
}

/* 手机端适配 */
@media (max-width: 768px) {
    .global-info { grid-template-columns: 1fr; }
    .secondary-info { flex-direction: column; gap: 15px; }
}