/* Contact Page Styles */
.contact-page .l-wrap {
    display: block;
    margin: 80px auto;
    max-width: 1400px;
    padding: 0 20px;
}

/* legacy contact cards */
.contact-info-list{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:30px;
    margin-bottom:80px;
}
.contact-item{
    flex:1 1 23%;
    min-width:280px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 5px 20px rgba(0,0,0,0.05);
    border:1px solid #f0f0f0;
    transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    padding:24px;
    display:flex;
    align-items:flex-start;
    box-sizing:border-box;
}
.contact-item:hover{
    transform:translateY(-6px);
    box-shadow:0 20px 40px rgba(0,0,0,0.1);
    border-color:var(--color);
}
.contact-icon{
    width:54px;
    height:54px;
    border-radius:50%;
    background:var(--color);
    color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    margin-right:16px;
    flex-shrink:0;
    box-shadow:0 6px 16px rgba(254,115,38,.25);
}
.contact-icon .iconfont{
    font-size:24px;
    color:#fff;
}
.contact-text h3{
    font-size:20px;
    color:#333;
    font-weight:700;
    margin-bottom:6px;
}
.contact-text p{
    color:#555;
    line-height:1.6;
    font-size:15px;
}
.contact-text a{
    color:#555;
    text-decoration:none;
}
.contact-text a:hover{
    color:var(--color);
    text-decoration:underline;
}
@media (max-width: 768px){
    .contact-info-list{
        gap:16px;
    }
    .contact-item{
        min-width:100%;
        flex:1 1 100%;
        padding:18px;
    }
    .contact-icon{
        width:48px;height:48px;
    }
}
/* 1. General Info (Address) */
.contact-general {
    display: flex;
    justify-content: center;
    margin-bottom: 80px;
}
.general-card {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 40px 60px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid #f5f5f5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 900px;
    width: 100%;
}
.general-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
}
.general-card .icon-box {
    width: 80px;
    height: 80px;
    background: var(--color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 40px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(254, 115, 38, 0.3); /* Based on var(--color) approx */
}
.general-card .icon-box .iconfont {
    font-size: 36px;
    color: #fff;
}
.general-card .text-box h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #333;
    font-weight: 700;
}
.general-card .text-box p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
}
.general-card .text-box .zip {
    margin-top: 8px;
    color: #888;
    font-size: 16px;
}

/* 2. Section Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-size: 32px;
    color: #333;
    font-weight: 700;
    margin-bottom: 15px;
}
.section-header .line {
    width: 60px;
    height: 4px;
    background: var(--color);
    margin: 0 auto 20px;
    border-radius: 2px;
}
.section-header p {
    color: #777;
    font-size: 16px;
}

/* 3. Sales Team List */
.sales-team-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 80px;
}
.sales-card {
    flex: 1;
    min-width: 300px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.sales-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--color);
}

/* Card Head */
.sales-card .card-head {
    padding: 30px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    transition: background 0.3s;
}
.sales-card:hover .card-head {
    background: #fff;
}
.sales-card .avatar-icon {
    width: 60px;
    height: 60px;
    background: #e0e0e0;
    color: #fff;
    border-radius: 50%;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    transition: background 0.3s;
}
.sales-card:hover .avatar-icon {
    background: var(--color);
}
.sales-card .name-info h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 700;
}
.sales-card .name-info .role {
    color: var(--color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Card Body */
.sales-card .card-body {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.sales-card .info-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #555;
    font-size: 15px;
}
.sales-card .info-row:last-child {
    margin-bottom: 0;
}
.sales-card .info-row .iconfont {
    font-size: 20px;
    color: #bbb;
    margin-right: 15px;
    width: 24px;
    text-align: center;
    transition: color 0.3s;
}
.sales-card:hover .info-row .iconfont {
    color: var(--color);
}
.sales-card .info-row a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
    word-break: break-all;
}
.sales-card .info-row a:hover {
    color: var(--color);
    text-decoration: underline;
}

/* Map Styles */
.contact-map-wrap {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 50px;
    padding: 10px;
    height: 420px !important;
    box-sizing: border-box;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    display: block !important;
}

/* Force the map container to exact height */
.contact-map-wrap .map,
#dituContent01 {
    width: 100% !important;
    height: 400px !important;
    max-height: 400px !important;
    min-height: 400px !important;
    overflow: hidden !important;
    position: relative !important;
    display: block !important;
    border-radius: 8px;
}

/* Force AMap internal container */
.amap-container {
    height: 400px !important;
}

/* Fix AMap internal images */
.contact-map-wrap .map img {
    max-width: none !important;
    height: auto !important;
}

/* Responsive */
@media (max-width: 992px) {
    .sales-team-list {
        flex-direction: column;
    }
    .general-card {
        padding: 30px;
        flex-direction: column;
        text-align: center;
    }
    .general-card .icon-box {
        margin-right: 0;
        margin-bottom: 20px;
    }
}
@media (max-width: 768px) {
    .contact-page .l-wrap {
        margin: 40px auto;
    }
    .section-header h2 {
        font-size: 26px;
    }
    .sales-card {
        min-width: 100%;
    }
    .contact-map-wrap {
        height: 320px !important;
    }
    .contact-map-wrap .map, #dituContent01 {
        height: 300px !important;
        max-height: 300px !important;
        min-height: 300px !important;
    }
    .amap-container {
        height: 300px !important;
    }
}
