/*=============================================================================
   酷耕科技 · 联系我们 页面专属样式 contact.css
   设计 token / 通用组件(.section/.section-head/.btn/.reveal) 见 common.css
   所有规则限定在 .contact-page 作用域下, 不污染全站
=============================================================================*/

.contact-page .contact-profile { background: #fff; padding-bottom: 88px; }

/* ==================== 后台单页正文 (沿用 about-text 排版) ==================== */
.contact-page .contact-text { max-width: 960px; margin: 0 auto 72px; text-align: center; }
.contact-page .contact-text h1 { display: none; }   /* 与区块标题重复, 隐藏 */
.contact-page .contact-text p {
    font-size: 16.5px !important;
    color: #44566c;
    line-height: 2.1;
    margin-bottom: 22px;
    text-align: center !important;
}
.contact-page .contact-text span { font-size: 16.5px !important; line-height: 2.1; }
.contact-page .contact-text strong { color: var(--navy); font-weight: 700; }
.contact-page .contact-text a { color: var(--blue); }
.contact-page .contact-text img {
    display: block !important;
    width: 100% !important;
    max-width: 480px !important;
    height: auto !important;
    margin: 26px auto 0 !important;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ==================== 联系方式卡片 ==================== */
.contact-page .contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.contact-page .contact-card {
    position: relative;
    text-align: center;
    padding: 40px 22px 34px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .5s var(--ease), box-shadow .5s, background .5s;
}
.contact-page .contact-card::before {
    content: "";
    position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--navy), var(--cyan));
    transform: scaleX(0); transform-origin: left;
    transition: transform .6s var(--ease);
}
.contact-page .contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    background: #fff;
}
.contact-page .contact-card:hover::before { transform: scaleX(1); }
.contact-page .cc-ico {
    width: 60px; height: 60px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(22,132,221,.12), rgba(53,195,232,.12));
    display: flex; align-items: center; justify-content: center;
    color: var(--blue);
}
.contact-page .cc-ico svg { width: 27px; height: 27px; }
.contact-page .cc-ico .fa { font-size: 26px; line-height: 60px; }
.contact-page .cc-label {
    font-size: 13px; color: var(--text-light);
    letter-spacing: 3px; margin-bottom: 8px;
}
.contact-page .cc-value {
    font-size: 18px; font-weight: 700; color: var(--navy-deep);
    line-height: 1.5; word-break: break-all;
}
.contact-page a.contact-card .cc-value { transition: color .3s; }
.contact-page a.contact-card:hover .cc-value { color: var(--blue); }

/* ==================== 地图位置 ==================== */
.contact-page .contact-location {
    background: var(--bg-soft);
}
.contact-page .loc-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 26px;
    align-items: stretch;
}
.contact-page .loc-map {
    position: relative;
    width: 100%;
    height: 100%;       /* 桌面端与右侧面板 stretch 等高 */
    min-height: 420px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: #e8eef5;
    aspect-ratio: 49 / 40;   /* 单列(无面板撑高)时的高度兜底 */
}
/* 高德 JSAPI 原生容器, 随外盒自适应, 无需缩放 hack */
.contact-page .company-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
/* 地图加载前的占位提示 */
.contact-page .loc-map.is-loading::after {
    content: "地图加载中…";
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    color: #8aa0b6;
    font-size: 14px;
    letter-spacing: 1px;
    z-index: 1;
}
/* 高德自带 logo/版权贴边, 避免被圆角裁切得太死 */
.contact-page .loc-map .amap-logo,
.contact-page .loc-map .amap-copyright {
    border-bottom-left-radius: var(--radius);
    opacity: .85;
}
.contact-page .loc-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 34px 26px 30px;
    display: flex;
    flex-direction: column;
}
.contact-page .lp-name { padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.contact-page .lp-name h3 { font-size: 22px; color: var(--navy-deep); font-weight: 800; letter-spacing: 1px; margin-bottom: 6px; }
/* 英文名单行不折行, 字号/字距按中文公司名(22px/10字≈230px)等宽校准 */
.contact-page .lp-name p { font-size: 9.5px; color: var(--text-light); letter-spacing: .5px; white-space: nowrap; }
.contact-page .lp-rows { flex: 1 1 auto; }
.contact-page .lp-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.contact-page .lp-row:last-child { margin-bottom: 0; }
.contact-page .lp-ico {
    flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px;
    background: var(--bg-soft);
    display: flex; align-items: center; justify-content: center;
    color: var(--blue);
}
.contact-page .lp-ico svg { width: 18px; height: 18px; }
.contact-page .lp-ico .fa { font-size: 18px; line-height: 38px; }
.contact-page .lp-row dl { flex: 1 1 auto; min-width: 0; }
.contact-page .lp-row dt { font-size: 12.5px; color: var(--text-light); letter-spacing: 2px; margin-bottom: 2px; }
.contact-page .lp-row dd {
    font-size: 15px; color: var(--text); line-height: 1.65;
    word-break: break-all;
}
.contact-page .lp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.contact-page .lp-actions .btn { padding: 12px 10px; font-size: 14.5px; border-radius: 10px; justify-content: center; }
/* 主按钮与登录页 .btn-login 同款: 科技蓝→青渐变(全站 .btn-primary 同一配色语言) */
.contact-page .lp-actions .btn-dark {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 10px 20px rgba(22, 132, 221, .28);
}
.contact-page .lp-actions .btn-dark:hover {
    box-shadow: 0 14px 28px rgba(53, 195, 232, .42);
}
/* 次按钮与登录页 .btn-secondary 同款: 白底蓝字蓝边 */
.contact-page .btn-line {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff;
    border: 1.5px solid var(--blue);
    color: var(--blue);
    transition: all .3s var(--ease);
}
.contact-page .btn-line:hover { background: rgba(22,132,221,.06); transform: translateY(-2px); }
.contact-page .lp-actions .btn svg { width: 16px; height: 16px; }

/* ==================== 在线留言 (与其他区块统一: 白底区块 + bg-soft 柔和卡片) ==================== */
.contact-page .contact-message { background: #fff; }
.contact-page .cm-sub {
    text-align: center;
    font-size: 15px;
    color: var(--text-gray);
    letter-spacing: 1px;
    margin-top: 16px;
}
.contact-page .msg-card {
    max-width: 900px;
    margin: 52px auto 0;
    padding: 40px 40px 34px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.contact-page .msg-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 0; /* 字段自身 margin-bottom 提供行间距 */
}
.contact-page .msg-field { margin-bottom: 20px; }
.contact-page .msg-field > label {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--navy-deep);
    margin-bottom: 10px;
}
.contact-page .msg-field > label em {
    color: #ff5722;
    font-style: normal;
    margin-left: 2px;
}
/* 输入框/验证码/聚焦红光/成功弹窗等基础规格直接复用全局 auth.css:
   .input-wrap > .layui-input (44px/9px 圆角/浅灰底/聚焦蓝光)、.captcha-wrap/.captcha-img、
   .form-actions/.btn-login/.btn-secondary、.layui-form-danger，此处仅补充留言页差异 */
/* 多行文本: 左图标置顶, 输入区纵向撑开 */
.contact-page .msg-textarea-wrap { align-items: flex-start; }
.contact-page .msg-textarea-wrap > .layui-icon { top: 14px; transform: none; }
.contact-page textarea.msg-input {
    height: 132px;
    min-height: 96px;
    padding-top: 11px;
    padding-bottom: 11px;
    line-height: 1.7;
    resize: vertical;
}
/* 验证码行与按钮行统一收窄、居中、同宽(避免验证码输入框横贯整张卡片) */
.contact-page .msg-captcha,
.contact-page .msg-actions {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
/* 按钮行沿用 .form-actions, 微调与上方验证码间距 */
.contact-page .msg-actions { margin-top: 8px; }
/* 验证码图片固定宽, 与输入框同高(auth.css 已定 44px 高/9px 圆角) */
.contact-page .msg-captcha .captcha-img { width: 120px; }
/* 旧站 style.css / bootstrap 全局占用了 .btn-secondary(灰底白字),
   在留言作用域内提升权重, 覆盖回登录页次按钮规格(白底蓝字蓝边) */
.contact-page .msg-actions .btn-secondary {
    height: 46px;
    line-height: 44px;
    font-size: 15px;
    letter-spacing: 1px;
    border-radius: var(--radius-button);
    border: 1px solid var(--color-primary);
    background: #fff;
    color: var(--color-primary);
    cursor: pointer;
    transition: background var(--transition-fast);
}
.contact-page .msg-actions .btn-secondary:hover { background: #f2f5ff; }

/* ==================== 响应式 ==================== */
/* ≤1100 提前单列: 此宽度下双栏两列都过挤(地图<680), 堆叠更舒展 */
@media (max-width: 1100px) {
    .contact-page .loc-grid { grid-template-columns: 1fr; }
    .contact-page .loc-map { aspect-ratio: 16 / 10; min-height: 0; }
}
@media (max-width: 1024px) {
    .contact-page .contact-cards { grid-template-columns: repeat(2, 1fr); }
    .contact-page .loc-panel { padding: 32px 28px 28px; }
}
@media (max-width: 768px) {
    .contact-page .contact-text p,
    .contact-page .contact-text span { font-size: 15px !important; }
    .contact-page .contact-cards { grid-template-columns: 1fr; gap: 16px; }
    .contact-page .loc-map { aspect-ratio: 4 / 3; }
    .contact-page .msg-card { padding: 30px 20px 26px; margin-top: 40px; }
    .contact-page .msg-row { grid-template-columns: 1fr; gap: 0; }
    .contact-page .msg-actions { flex-direction: column; }
    .contact-page .msg-actions .layui-btn { width: 100%; }
}
