/* ==========================================================================
   message.html —— 在线留言页
   复用 modal.css 中的表单控件样式（.msg-field / .msg-input / .msg-submit 等）
   此处只补充页面级布局
   ========================================================================== */

.msg-page {
    display: flex;
    gap: 30px;
    padding: 30px 0 60px;
    align-items: flex-start;
}

/* ---------- 左侧表单卡片 ---------- */
.msg-page-main {
    flex: 1;
    min-width: 0;
}

.msg-card {
    padding: 32px 34px 34px;
    background: #fff;
    border: 1px solid #eef1f4;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
}

.msg-card-head {
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid #eef1f4;
}

.msg-card-title {
    position: relative;
    padding-left: 12px;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.msg-card-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 18px;
    margin-top: -9px;
    background: #167cba;
    border-radius: 2px;
}

.msg-card-sub {
    margin-top: 8px;
    padding-left: 12px;
    font-size: 13px;
    color: #8b95a1;
}

.msg-card-sub em {
    color: #e05a4a;
    font-style: normal;
}

/* ---------- 表单行布局 ---------- */
.msg-page-form .msg-row {
    display: flex;
    gap: 18px;
}

.msg-page-form .msg-row > .msg-field {
    flex: 1;
    min-width: 0;
}

.msg-page-form .msg-textarea {
    min-height: 150px;
}

.msg-page-form .msg-submit {
    margin-top: 8px;
    max-width: 220px;
}

.msg-page-form .msg-tip {
    margin-top: 4px;
}

/* ---------- 右侧联系卡片 ---------- */
.msg-page-side {
    flex: 0 0 340px;
    width: 340px;
}

.msg-side-card {
    padding: 26px 24px;
    background: #f8fafc;
    border-radius: 14px;
}

.msg-side-title {
    position: relative;
    padding-bottom: 14px;
    margin-bottom: 4px;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.msg-side-title .item-title-line {
    width: 46px;
    height: 3px;
    margin: 12px 0 0;
    background: #167cba;
}

.msg-contact-list li {
    display: flex;
    gap: 13px;
    padding: 15px 0;
    border-bottom: 1px dashed #e4e9ee;
}

.msg-contact-list li:last-child {
    border-bottom: none;
}

.msg-contact-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef6fc;
    border-radius: 10px;
    transition: all .3s ease;
}

.msg-contact-icon .layui-icon {
    font-size: 18px;
    color: #167cba;
}

.msg-contact-list li:hover .msg-contact-icon {
    background: #167cba;
}

.msg-contact-list li:hover .msg-contact-icon .layui-icon {
    color: #fff;
}

.msg-contact-body {
    flex: 1;
    min-width: 0;
}

.msg-contact-label {
    font-size: 12px;
    color: #9aa5b1;
    margin-bottom: 3px;
}

.msg-contact-value {
    font-size: 15px;
    color: #333;
    line-height: 1.55;
    word-break: break-all;
    text-decoration: none;
    transition: color .25s ease;
}

a.msg-contact-value:hover {
    color: #167cba;
}

/* 提示条 */
.msg-side-note {
    margin-top: 18px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.6;
    color: #7a8794;
    background: #fff;
    border-radius: 8px;
    border: 1px dashed #dde5ec;
}

.msg-side-note .layui-icon {
    color: #167cba;
    margin-right: 5px;
}

/* ---------- 响应式 ---------- */
@media screen and (max-width: 992px) {
    .msg-page {
        flex-direction: column;
        gap: 22px;
        padding: 22px 0 44px;
    }

    .msg-page-side {
        flex: 1 1 auto;
        width: 100%;
    }

    .msg-card {
        padding: 24px 20px 26px;
    }

    .msg-page-form .msg-row {
        flex-direction: column;
        gap: 0;
    }

    .msg-page-form .msg-submit {
        max-width: none;
    }
}

@media screen and (max-width: 768px) {
    .msg-card-title {
        font-size: 18px;
    }

    .msg-page-form .msg-textarea {
        min-height: 120px;
    }

    .msg-side-card {
        padding: 20px 18px;
    }
}
