/* ==========================================================================
   CONTACT PAGE (detail_contact.html)
   依赖：style.css（变量、头部、页脚）、partner.css（page-hero / page-breadcrumb）、
        honor.css（honor-hero 高度 / honor-tabs 页签）
   内容区最大宽度 1520px 居中，断点：1520 / 1200 / 992 / 768 / 576
   ========================================================================== */

/* ---------- 顶部：左联系信息 + 右询盘表单 ---------- */
.contact-main {
    padding: 70px 0 60px;
}
.contact-grid {
    display: grid;
    /* 列宽按设计比例 685:650 弹性收缩：固定像素列在容器含左右 15px 内边距时
       （1520px 视口可用宽度仅 1490px）会整体溢出浏览器右边界 */
    grid-template-columns: minmax(0, 685fr) minmax(0, 650fr);
    gap: 185px;
    align-items: start;
}
.contact-title {
    font-size: var(--fs-h3);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: var(--ink);
    margin-bottom: 10px;
}
.contact-desc {
    font-size: var(--fs-body);
    line-height: 1.75;
    color: #14191f;
}

/* 联系信息 */
.contact-sub {
    margin-top: 30px;
    font-size: var(--fs-h4);
    font-weight: 700;
    color: var(--ink);
}
.contact-list {
    margin-top: 25px;
}
.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 0;
}
.contact-list li + li {
    margin-top: 30px;
}
.contact-icon {
    flex: none;
    width: 26px;
    height: 26px;
}
.contact-label {
    font-size: var(--fs-h4);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
}
.contact-value {
    margin-top: 6px;
    font-size: var(--fs-body);
    line-height: 1.5;
    color: #3f3f3f;
}

/* ---------- 询盘表单 ---------- */
.contact-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap:20px 30px;
    margin-top: 25px;
}
.contact-field {
    position: relative;
}
.contact-field--full {
    grid-column: 1 / -1;
}
/* 红色必填星号：叠加在输入框左内侧，占位符不含 * 便于对齐 */
.contact-field > i {
    position: absolute;
    left: 14px;
    top: 0;
    display: flex;
    align-items: center;
    height: 48px;
    font-style: normal;
    font-size: var(--fs-xs);
    color: var(--red);
    pointer-events: none;
}
.contact-field input,
.contact-field textarea {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 0;
    background: #F7F8FA;
    font-size: var(--fs-xs);
    color: var(--ink);
    transition: box-shadow .2s ease;
}
.contact-field input {
    height: 48px;
    padding: 0 14px 0 26px;
}
.contact-field textarea {
    min-height: 112px;
    padding: 14px 14px 14px 26px;
    resize: vertical;
}
.contact-field--area > i {
    top: 14px;
    height: auto;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: #14191f;
    opacity: 1;
}
.contact-field input:focus,
.contact-field textarea:focus {
    outline: none;
    box-shadow: inset 0 0 0 1px var(--red);
    background: #fff;
}
.contact-msg {
    min-height: 22px;
    margin-top: 14px;
    font-size: var(--fs-xs);
    line-height: 1.5;
}
.contact-msg.is-ok { color: #1a9c4b; }
.contact-msg.is-err { color: var(--red); }
.contact-submit {
    display: block;
    width: 100%;
    height: 56px;
    margin-top: 4px;
    border: 0;
    border-radius: 0;
    background: var(--red);
    color: #fff;
    font-size: var(--fs-small);
    font-weight: 600;
    cursor: pointer;
    transition: opacity .25s ease;
}
.contact-submit:hover { opacity: .88; }
.contact-submit:disabled { opacity: .5; cursor: default; }

/* ---------- 底部双卡片 ---------- */
.contact-cards {
    padding-bottom: 70px;
}
.contact-cards-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) 650px;
    gap: 40px;
    align-items: stretch;
}
/* 左：浅灰服务卡片 */
.contact-card {
    background: #F7F8FA;
    padding: 55px 50px;
}
.contact-card-title {
    font-size: var(--fs-h3);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--ink);
    max-width: 520px;
}
.contact-card-desc {
    margin-top: 22px;
    font-size: var(--fs-body);
    line-height: 1.7;
    color: #14191f;
}
.contact-card-sub {
    margin-top: 30px;
    font-size: var(--fs-h3);
    font-weight: 700;
    color: var(--ink);
}
.contact-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 40px;
    margin-top: 22px;
}
.contact-services li {
    position: relative;
    padding-left: 22px;
    font-size: var(--fs-body);
    line-height: 1.5;
    color: #333;
}
.contact-services li a {
    color: inherit;
    transition: color .25s ease;
}
.contact-services li a:hover { color: var(--red); }
/* 红色圆点标记 */
.contact-services li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--red);
}
.contact-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 40px;
    margin-top: 30px;
}
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: var(--fs-body);
    font-weight: 700;
    color: var(--red);
    padding-left: 22px;
}
.contact-link span { transition: transform .25s ease; }
.contact-link:hover span { transform: translateX(5px); }

/* 右：深色咨询卡片 */
.contact-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
    background: var(--ink);
    color: #fff;
}
.contact-cta-title {
    font-size: var(--fs-h3);
    font-weight: 800;
    line-height: 1.25;
}
.contact-cta-desc {
    margin-top: 18px;
    font-size: var(--fs-small);
    color: rgba(255, 255, 255, .75);
}
.contact-cta-btn {
    display: inline-block;
    margin-top: 32px;
    padding: 14px 30px;
    border-radius: 6px;
    background: #fff;
    color: var(--red);
    font-size: var(--fs-xs);
    font-weight: 700;
    transition: transform .25s ease, box-shadow .25s ease;
}
.contact-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
    .contact-grid { gap: 50px; }
    .contact-title { font-size: 34px; }
    .contact-card { padding: 45px; }
    .contact-card-title { font-size: 28px; }
    .contact-cta-title { font-size: 26px; }
}

@media (max-width: 992px) {
    .contact-main { padding: 52px 0 62px; }
    .contact-grid { grid-template-columns: 1fr; gap: 50px; }
    .contact-cards-grid { grid-template-columns: 1fr; gap: 30px; }
    .contact-cards { padding-bottom: 62px; }
}

@media (max-width: 768px) {
    .contact-title { font-size: 28px; }
    .contact-sub { margin-top: 36px; font-size: 24px; }
    .contact-list li + li { margin-top: 30px; }
    .contact-fields { gap: 16px; margin-top: 22px; }
    .contact-card { padding: 34px 26px; }
    .contact-card-title { font-size: 24px; }
    .contact-services { gap: 16px 24px; }
    .contact-links { gap: 14px 24px; }
}

@media (max-width: 576px) {
    .contact-main { padding: 40px 0 50px; }
    .contact-title { font-size: 24px; }
    .contact-desc { font-size: 14px; }
    .contact-sub { font-size: 20px; }
    .contact-label { font-size: 17px; }
    .contact-value { font-size: 14px; }
    .contact-fields { grid-template-columns: 1fr; }
    .contact-submit { height: 50px; font-size: 16px; }
    .contact-cards { padding-bottom: 50px; }
    .contact-card-title { font-size: 20px; }
    .contact-services,
    .contact-links { grid-template-columns: 1fr; }
    .contact-cta { padding: 46px 24px; }
    .contact-cta-title { font-size: 22px; }
}
