/* ==========================================================
   pmpcert.cn — 在线留言模块（留言页 / 报名页共用）
   前缀 ly- 避免与既有样式冲突  2026-09-28
   ========================================================== */

.ly-wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

.ly-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
}

.ly-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 34px 30px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, .07);
    border: 1px solid rgba(37, 99, 235, .07);
}

.ly-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
    letter-spacing: -.2px;
}

.ly-card .ly-sub {
    color: #94a3b8;
    font-size: 13.5px;
    margin: 0 0 26px;
}

.ly-field {
    margin-bottom: 20px;
}

.ly-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    letter-spacing: .2px;
}

.ly-field label .req {
    color: #ef4444;
    margin-left: 2px;
}

.ly-field input[type=text],
.ly-field input[type=tel],
.ly-field textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 10px;
    padding: 13px 15px;
    font-size: 15px;
    color: #1e293b;
    outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
    font-family: inherit;
    -webkit-appearance: none;
}

.ly-field input::placeholder,
.ly-field textarea::placeholder {
    color: #b6c2d2;
}

.ly-field input:focus,
.ly-field textarea:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}

.ly-field textarea {
    resize: vertical;
    min-height: 132px;
    line-height: 1.7;
}

.ly-code-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.ly-code-row input {
    flex: 1;
    min-width: 0;
}

.ly-code-row img {
    height: 50px;
    width: 128px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    background: #f1f5f9;
    flex-shrink: 0;
}

.ly-submit {
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 15px 0;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, opacity .2s;
    box-shadow: 0 8px 22px rgba(37, 99, 235, .28);
    font-family: inherit;
}

.ly-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, .34);
}

.ly-submit:active {
    transform: translateY(0);
    opacity: .92;
}

.ly-privacy {
    margin: 14px 0 0;
    font-size: 12.5px;
    color: #94a3b8;
    text-align: center;
    line-height: 1.7;
}

.ly-privacy i {
    color: #22c55e;
    margin-right: 4px;
}

/* 右侧联系方式 */
.ly-side .ly-card {
    padding: 30px 28px;
}

.ly-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed #eef2f7;
}

.ly-contact-item:last-of-type {
    border-bottom: 0;
}

.ly-contact-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(37, 99, 235, .09);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.ly-contact-txt b {
    display: block;
    font-size: 12.5px;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: .3px;
}

.ly-contact-txt span {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: .3px;
}

.ly-contact-txt span.ly-sm {
    font-size: 14px;
    font-weight: 600;
}

.ly-qr {
    text-align: center;
    padding-top: 22px;
    border-top: 1px dashed #eef2f7;
    margin-top: 6px;
}

.ly-qr img {
    width: 74%;
    max-width: 210px;
    border-radius: 10px;
}

.ly-qr p {
    margin: 10px 0 0;
    font-size: 13px;
    color: #64748b;
}

/* 信任条 */
.ly-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 34px;
}

.ly-trust-item {
    background: #fff;
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
    border: 1px solid rgba(37, 99, 235, .07);
    box-shadow: 0 6px 20px rgba(15, 23, 42, .04);
}

.ly-trust-item i {
    font-size: 20px;
    color: #2563eb;
    margin-bottom: 8px;
    display: block;
}

.ly-trust-item b {
    display: block;
    font-size: 14px;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 3px;
}

.ly-trust-item span {
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.6;
}

/* 留言须知 */
.ly-note {
    margin-top: 34px;
    background: rgba(37, 99, 235, .05);
    border-left: 3px solid #2563eb;
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
}

.ly-note h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
}

.ly-note ol {
    margin: 0;
    padding-left: 20px;
    color: #475569;
    font-size: 14px;
    line-height: 2;
}

/* 报名页内嵌版本：容器已有 container，网格更紧凑 */
.ly-embed .ly-grid {
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

@media (max-width: 992px) {
    .ly-grid,
    .ly-embed .ly-grid {
        grid-template-columns: 1fr;
    }
    .ly-trust {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .ly-card {
        padding: 26px 20px 22px;
        border-radius: 14px;
    }
    .ly-code-row img {
        width: 104px;
        height: 47px;
    }
    .ly-field input[type=text],
    .ly-field input[type=tel],
    .ly-field textarea {
        font-size: 16px; /* 防 iOS 自动缩放 */
    }
    .ly-note {
        padding: 16px 18px;
    }
}
