
.contact-section {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}

.contact-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

.contact-main {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-form-section {
    flex: 7;
    display: flex;
    flex-direction: column;
}

.contact-info-section {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-form-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.1);
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.btn-submit {
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

.btn-submit:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-info-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    flex: 1;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.info-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.info-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    margin-right: 1rem;
}

.info-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-right: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.info-item-content {
    flex: 1;
}

.info-item-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
}

.info-item-detail {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

.map-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
    overflow: hidden;
}

.map-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.map-container {
    width: 100%;
    height: 400px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.1rem;
}

.working-hours {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
}

.hours-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hours-item:hover {
    background: rgba(0, 86, 179, 0.05);
}

.hours-day {
    font-weight: 600;
    color: #333;
}

.hours-time {
    color: #666;
}

.social-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.social-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 让联系方式链接继承原有文字颜色，去除下划线 */
.contact-link {
    color: inherit; /* 继承父元素的颜色 */
    text-decoration: none; /* 去除下划线 */
    transition: color 0.3s ease;
}

/* 鼠标悬停时变色，提示可点击 */
.contact-link:hover {
    color: #0d6efd; /* Bootstrap的默认主色，或者您可以改成 kaweei 的品牌色 */
    text-decoration: underline;
}

/* 新的紧凑型联系卡片样式 */
.contact-card-compact {
    background-color: #fff;
    border: 1px solid #eef0f3; /* 极淡的边框 */
    border-radius: 8px;
    display: flex;
    align-items: center; /* 垂直居中 */
    height: 100%; /* 保证同一行高度一致 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    padding: 1rem !important;
    transition: transform 0.2s;
}

.contact-card-compact:hover {
    transform: translateY(-3px); /* 悬停轻微上浮 */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

/* 图标区域 */
.icon-box {
    width: 50px;
    height: 50px;
    background-color: #f0f7ff; /* 浅蓝色背景 */
    color: #0d6efd; /* Bootstrap 主色 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-right: 15px; /* 图标和文字的间距 */
    flex-shrink: 0; /* 防止图标被挤压 */
}

/* 针对国旗图标微调 */
.icon-box .flag-icon {
    font-size: 1.2rem;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* 文字区域 */
.text-box h5 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    font-weight: 700;
    color: #333;
}

.text-box p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #555;
}

.text-box a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.text-box a:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.text-box small {
    font-size: 0.75rem;
    color: #999;
    display: block;
    margin-top: 2px;
}

.inquiry-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    border-top: 4px solid #0d6efd;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
}

.form-label {
    font-weight: 600;
    color: #444;
}

.btn-primary {
    padding: 12px 40px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

/* --- 联系卡片复刻版 --- */
.contact-card-blue {
    /* 主背景色：图片中的宝蓝色 */
    background-color: #004B8E;
    border-radius: 16px;
    padding: 30px 25px;
    position: relative;
    overflow: hidden; /* 确保右下角斜切不溢出 */
    color: #fff;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(43, 101, 217, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-card-blue:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(43, 101, 217, 0.4);
}

/* 针对新布局的微调 */
.inquiry-form-wrapper {
    height: 100%; /* 让表单填满高度，与右侧对齐 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.contact-card-compact .icon-box span {
    font-size: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 给国旗加一点阴影 */
    border-radius: 2px;
}

.contact-card-compact h5 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    font-weight: 700;
}

.contact-card-compact p {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.contact-card-compact small {
    font-size: 0.75rem;
}

#baidu-map iframe {
    display: block;
}

@media (max-width: 992px) {
    .contact-main {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-form-section, .contact-info-section {
        flex: 1;
        width: 100%;
    }

    .map-container {
        height: 300px;
    }
}

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

    .social-links {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
}
