/* ============================================================
   2026-11-18 联系我们单页卡片化（ct 前缀）
   作用于 pages_contact.html 的正文：两张地址卡 + 一张留言表单卡。
   独立前缀，与现有 sol / pro / news 前缀完全解耦；
   删 base.html 的引入行即可整体回退。
   ============================================================ */
.ct-wrap {
    width: 1080px;
    max-width: calc(100% - 30px);
    margin: 0 auto;
    font-family: "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
    color: #1b2a20
}

.ct-wrap *,
.ct-wrap *::before,
.ct-wrap *::after {
    box-sizing: border-box
}

/* 地址卡片：两列 */
.ct-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px
}

.ct-card {
    display: flex;
    align-items: stretch;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e8efe9;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(31, 74, 46, .06);
    transition: transform .3s ease, box-shadow .3s ease
}

.ct-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(31, 74, 46, .11)
}

.ct-media {
    position: relative;
    flex: 0 0 132px;
    width: 132px;
    /* 固定正方形：不再随卡片高度拉伸；源图为 150x150，cover 裁切不变形 */
    height: 132px;
    align-self: flex-start;
    border-radius: 8px;
    overflow: hidden;
    background: #eef2ee
}

.ct-media img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block
}

.ct-info {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 4px
}

.ct-name {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: #1b2a20
}

.ct-name::after {
    content: "";
    display: block;
    width: 34px;
    height: 2px;
    margin-top: 9px;
    background: #69b77a;
    border-radius: 2px
}

.ct-line {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.65;
    color: #5d6b62
}

.ct-line:last-child {
    margin-bottom: 0
}

.ct-line .glyphicon {
    display: inline-block;
    width: 20px;
    margin-right: 6px;
    color: #5aa468;
    font-size: 13px
}

/* 留言表单卡片 */
.ct-form-card {
    padding: 40px 46px 44px;
    background: #fff;
    border: 1px solid #e8efe9;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(31, 74, 46, .06)
}

.ct-form-head {
    margin: 0 0 30px;
    text-align: center
}

.ct-form-kicker {
    display: block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.6px;
    text-transform: uppercase;
    color: #69b77a
}

.ct-form-title {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    color: #1b2a20
}

.ct-form-lead {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: #7c8a81
}

.ct-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px
}

.ct-form-col {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.ct-form input[type="text"],
.ct-form textarea {
    width: 100%;
    padding: 13px 16px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    color: #1b2a20;
    background: #fbfcfb;
    border: 1px solid #dfe8e1;
    border-radius: 8px;
    outline: none;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease
}

.ct-form textarea {
    min-height: 175px;
    height: 100%;
    resize: vertical
}

.ct-form input[type="text"]::placeholder,
.ct-form textarea::placeholder {
    color: #a4aea7
}

.ct-form input[type="text"]:focus,
.ct-form textarea:focus {
    background: #fff;
    border-color: #69b77a;
    box-shadow: 0 0 0 3px rgba(105, 183, 122, .14)
}

.ct-form-actions {
    margin-top: 24px;
    text-align: center
}

.ct-form input[type="submit"] {
    min-width: 168px;
    padding: 12px 30px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .5px;
    color: #fff;
    background: #5aa468;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease
}

.ct-form input[type="submit"]:hover {
    background: #3f8d51;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(63, 141, 81, .25)
}

/* 响应式：≤1080 两列改一列；≤640 表单单列、内边距收紧 */
@media screen and (max-width: 1080px) {
    .ct-grid {
        grid-template-columns: 1fr
    }
}

@media screen and (max-width: 640px) {
    .ct-card {
        gap: 14px;
        padding: 16px
    }
    .ct-media {
        flex: 0 0 96px;
        width: 96px;
        height: 96px
    }
    .ct-name {
        font-size: 16px
    }
    .ct-line {
        font-size: 13px
    }
    .ct-form-card {
        padding: 28px 20px 32px
    }
    .ct-form-title {
        font-size: 22px
    }
    .ct-form-row {
        grid-template-columns: 1fr
    }
    .ct-form textarea {
        min-height: 140px
    }
}
