/* ============================================================
   询价留言表单 + 最新活动（/seo/ /au/ /ca/ search_map 区块共用）
   2026-10-26b：左列不溢出、双列等高、称呼/电话/邮箱一行三列、
               最新活动单行向上滚动
   提交通道：EyouCMS 后台 表单-联系我们 (form_id=1)
   注意：本文件在 country_homepage.css 之前加载，
        覆盖其规则需加 !important 或更高特异度
   ============================================================ */

/* ---------- 区块布局：flex 双列等高，宽度跟随容器不溢出 ---------- */
.search_map {
    width: 100% !important;
    max-width: 1200px;
    margin: 20px 0 0 !important;
    display: flex !important;
    align-items: stretch !important;   /* 两列等高 */
    gap: 24px;
}
.search_left {
    float: none !important;
    width: auto !important;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.map_right { float: none !important; flex: 0 0 543px; max-width: 543px; }

/* 表单卡撑满左列剩余空间（与右列等高） */
.search_left .inq-form { flex: 1 1 auto; display: flex; flex-direction: column; }
.search_left .inq-form form { display: flex; flex-direction: column; flex: 1 1 auto; }
.search_left .inq-form .inq-item-desc { flex: 1 1 auto; display: flex; flex-direction: column; }
.search_left .inq-form .inq-item-desc .inq-textarea { flex: 1 1 auto; min-height: 64px; }
.search_left .inq-form .inq-tip { margin-top: auto; padding-top: 8px; }

/* ---------- 现代留言表单 ---------- */
.inq-form { padding: 16px 18px 16px; background: #fff; border: 1px solid #ececec; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.05); box-sizing: border-box; }
.inq-item { margin-bottom: 12px; }
.inq-item:last-of-type { margin-bottom: 0; }
.inq-row3 { display: flex; gap: 12px; }
.inq-row3 .inq-item { flex: 1 1 0; min-width: 0; margin-bottom: 12px; }
.inq-label { display: block; font-size: 14px; line-height: 1.4; color: #333; margin-bottom: 6px; font-weight: 700; }
.inq-label i { font-style: normal; color: #be1421; margin-left: 2px; font-weight: 400; }
.inq-input,
.inq-textarea {
    display: block; width: 100%; box-sizing: border-box;
    height: 40px; padding: 0 12px;
    border: 1px solid #ddd; border-radius: 6px;
    background: #fff; font-size: 14px; color: #333;
    outline: none; float: none !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.inq-textarea { height: auto; min-height: 60px; padding: 9px 12px; line-height: 1.6; resize: vertical; }
.inq-input::placeholder,
.inq-textarea::placeholder { color: #b5b5b5; }
.inq-input:focus,
.inq-textarea:focus { border-color: #be1421; box-shadow: 0 0 0 3px rgba(190,20,33,.08); }
.inq-submit {
    display: block; width: 100%; margin-top: 2px;
    height: 42px; border: 0; border-radius: 6px;
    background: #be1421; color: #fff; font-size: 16px; font-weight: 700;
    letter-spacing: 2px; cursor: pointer;
    transition: background .15s ease;
}
.inq-submit:hover { background: #d01826; }
.inq-tip { margin: 9px 0 0; font-size: 12px; color: #999; line-height: 1.5; text-align: center; }
.inq-tip a { color: #be1421; text-decoration: none; font-weight: 700; }

/* EyouCMS 表单提交后的系统提示 */
.inq-form .alert, .inq-form .Validform_checktip { font-size: 13px; }

/* ---------- 最新活动：单行向上滚动 ---------- */
.search_left .month_act {
    display: flex; align-items: center;
    margin-top: 14px; background: #f3f3f3;
    padding: 9px 10px 9px 0;
    flex: 0 0 auto;
}
.search_left .month_act > b {
    flex: 0 0 auto; width: 78px; text-align: center;
    border-right: 1px dotted #ccc;
    height: 28px; line-height: 28px;
    font-weight: 400; font-size: 15px; color: #333;
}
.search_left .month_act .act_scroll_wrap {
    flex: 1 1 auto; min-width: 0;
    height: 28px; overflow: hidden;
    margin: 0 12px;
}
.search_left .month_act .act_scroll_body ul { margin: 0; padding: 0; list-style: none; }
.search_left .month_act .act_scroll_body ul li { height: 28px; line-height: 28px; overflow: hidden; list-style: none; }
.search_left .month_act .act_scroll_body ul li a {
    display: block; height: 28px; line-height: 28px;
    color: #333; font-size: 13px; text-decoration: none; white-space: nowrap;
}
.search_left .month_act .act_scroll_body ul li a:hover { color: #be1421; }
.search_left .month_act .act_address {
    display: inline-block; max-width: 68%; vertical-align: top;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search_left .month_act .act_time { float: right; color: #999; font-size: 12px; line-height: 28px; }
.search_left .month_act .act_bm {
    flex: 0 0 auto; display: block;
    width: 96px; height: 30px; line-height: 30px; margin: 0;
    text-align: center; background: #be1421; color: #fff !important;
    font-size: 13px; text-decoration: none;
}
.search_left .month_act .act_bm:hover { background: #d01826; color: #fff !important; }

/* ---------- 地图 ---------- */
.map_right b { display: block; font-size: 16px; margin-bottom: 6px; }
.country_map { width: 543px; height: 301px; position: relative; background-size: 100% 100%; }
.map_right .aus_map { height: 244px; }
.country_map a { color: #333; font-size: 12px; font-family: "微软雅黑"; font-weight: bolder; }
.country_map a:hover { text-decoration: underline; color: #bd1321; }
/* 城市标签：灰底白边圆角；坐标用百分比，随地图等比缩放 */
.country_map .abs { z-index: 2; }
.country_map .abs a {
    display: inline-block; padding: 2px 8px;
    background: #e8e8e8; border: 1px solid #fff; border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,.15);
    line-height: 18px; white-space: nowrap;
}
/* 移动端城市胶囊（替代绝对定位标签） */
.map-chips { display: none; }

/* ---------- 移动端 ---------- */
@media (max-width: 768px) {
    .search_map { flex-direction: column !important; gap: 0 !important; margin: 14px 0 0 !important; }
    .search_left { flex: 0 0 auto !important; width: 100% !important; }
    .inq-form { padding: 13px 12px 14px; border-radius: 6px; }
    .inq-input, .inq-textarea { font-size: 16px; } /* 防 iOS 聚焦缩放 */
    .inq-row3 { gap: 8px; }

    .search_left .month_act { padding: 8px 8px 8px 0; }
    .search_left .month_act > b { width: 66px; font-size: 14px; }
    .search_left .month_act .act_scroll_wrap { margin: 0 8px; }
    .search_left .month_act .act_scroll_body ul li a { font-size: 12px; }
    .search_left .month_act .act_address { max-width: 60%; }
    .search_left .month_act .act_bm { width: 78px; font-size: 12px; }

    /* 地图：小屏隐藏绝对定位标签版，改为城市胶囊列表 */
    .map_right { flex: 0 0 auto !important; max-width: 100% !important; margin-top: 14px; }
    .map_right b { font-size: 15px; }
    .country_map { display: none; }
    .map-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 6px; }
    .map-chips a {
        display: inline-block; padding: 6px 14px;
        background: #f5f5f5; border: 1px solid #e5e5e5; border-radius: 16px;
        color: #555; font-size: 13px; text-decoration: none;
    }
    .map-chips a:link, .map-chips a:visited { color: #555; }
    .map-chips a:hover { color: #be1421; border-color: #be1421; }
}
