/* ============================================================
   kfgrp.cn 前台补充样式
   原站 style.css 为 Bootstrap 3 + 主题变量体系，
   本文件仅补充新增元素所需的样式，不覆盖原有规则
   ============================================================ */

/* ---------- 跳转到主内容（无障碍） ---------- */
.skip-link{
    position:absolute; left:-9999px; top:0; z-index:9999;
    background:#1a6fd4; color:#fff; padding:10px 16px; border-radius:0 0 5px 0;
    font-size:14px; text-decoration:none;
}
.skip-link:focus{ left:0; }

/* ---------- 顶部导航（防止换行） ----------
   原站 .nav 默认 flex-wrap:wrap，当 Logo 变宽或视口变窄时，
   第 5 个菜单项会被挤到第二行，导致导航栏高度异常。
   这里显式禁止换行，并限制 Logo 尺寸，避免长 alt 文本撑开布局。 */
.header_area .navbar .menu_nav{ flex-wrap:nowrap; white-space:nowrap }
.header_area .navbar .logo_h{ max-width:220px; flex:0 0 auto }
.header_area .navbar .logo_h img{ max-width:100%; height:auto; display:block }
.header_area .navbar .brand-text{
    display:inline-block; font-size:19px; font-weight:700; color:#fff;
    line-height:1.3; max-width:220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.header_area .navbar .nav .nav-item{ flex:0 0 auto }
/* 桌面端下导航始终单行；移动端由 bootstrap 的 collapse 折叠为汉堡菜单 */
@media (min-width:992px){
    .header_area .navbar-collapse{ flex-wrap:nowrap }
    .header_area .navbar .nav-right{ flex:0 0 auto }
}

/* ---------- 首页 Hero 按钮 ---------- */
.hero-actions{margin-top:28px}
.hero-actions .button{
    display:inline-block; margin:0 6px; padding:12px 30px; border-radius:4px;
    font-size:15px; transition:all .25s ease;
}
.button-primary{ background:#1a6fd4; color:#fff; border:1px solid #1a6fd4 }
.button-primary:hover{ background:#1558ae; color:#fff; border-color:#1558ae }
.button-outline{ background:transparent; color:#1a6fd4; border:1px solid #1a6fd4 }
.button-outline:hover{ background:#1a6fd4; color:#fff }

/* ---------- 板块导航 ---------- */
.section-nav{
    background:#fff; border-bottom:1px solid #eceff3; position:sticky; top:0; z-index:100;
    box-shadow:0 1px 3px rgba(0,0,0,.04);
}
.section-nav-list{
    list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap;
}
.section-nav-list li{margin:0}
.section-nav-list a{
    display:block; padding:16px 24px; color:#4a5058; text-decoration:none;
    font-size:15px; border-bottom:2px solid transparent; transition:all .2s;
}
.section-nav-list a:hover{ color:#1a6fd4; border-bottom-color:#1a6fd4 }

/* ---------- 客户评价 ---------- */
.testimonial-item{
    background:#fff; border-radius:8px; padding:34px 28px;
    box-shadow:0 2px 14px rgba(0,0,0,.05); margin:0 12px;
}
.testimonial-avatar{
    width:80px; height:80px; border-radius:50%; object-fit:cover;
    margin:0 auto 18px; display:block; border:3px solid #f0f4f8;
}
.testimonial-content{
    font-size:15.5px; line-height:1.85; color:#4a5058; margin-bottom:14px; min-height:58px;
}
.testimonial-name{ font-size:16px; font-weight:600; margin:0 0 4px; color:#1a1d21 }
.testimonial-company{ font-size:13.5px; color:#8b95a3 }

/* ---------- 联系方式 ---------- */
.contact-info h3{ font-size:21px; margin-bottom:24px; font-weight:620 }
.contact-item{ display:flex; gap:16px; margin-bottom:26px }
.contact-item > i{
    font-size:22px; color:#1a6fd4; flex:0 0 auto; margin-top:2px; width:26px; text-align:center;
}
.contact-item h4{ font-size:15px; font-weight:600; margin:0 0 4px; color:#1a1d21 }
.contact-item p{ margin:0; color:#5a6472; font-size:14.5px; line-height:1.7 }
.contact-item a{ color:#1a6fd4; text-decoration:none }
.contact-item a:hover{ text-decoration:underline }

/* ---------- 表单 ---------- */
.contact-form-wrap{
    background:#fff; border-radius:8px; padding:32px 30px;
    box-shadow:0 2px 18px rgba(0,0,0,.05);
}
.contact-form-wrap h3{ font-size:20px; font-weight:620; margin-bottom:6px }
.form-hint{ color:#8b95a3; font-size:13.5px; margin-bottom:22px }
.contact-form-wrap .form-group{ margin-bottom:18px }
.contact-form-wrap label{ font-size:14px; font-weight:560; margin-bottom:6px; color:#1a1d21 }
.contact-form-wrap label .required{ color:#c0392b }
.contact-form-wrap .form-control{
    width:100%; padding:11px 14px; border:1px solid #ccd3dc; border-radius:5px;
    font-size:15px; font-family:inherit; background:#fff; color:#1a1d21; transition:border-color .2s, box-shadow .2s;
}
.contact-form-wrap .form-control:focus{
    outline:0; border-color:#1a6fd4; box-shadow:0 0 0 3px rgba(26,111,212,.13);
}
.contact-form-wrap textarea{ resize:vertical; min-height:110px }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px }
@media(max-width:640px){ .form-row{ grid-template-columns:1fr } }

.form-msg{ margin-top:14px; font-size:14px; min-height:20px }
.form-msg-success{ color:#1e7a4d }
.form-msg-error{ color:#c0392b }

/* ---------- 团队卡片 ---------- */
.team-card{
    background:#fff; border-radius:8px; overflow:hidden; margin-bottom:20px;
    box-shadow:0 2px 12px rgba(0,0,0,.05);
}
.team-card img{ width:100%; height:240px; object-fit:cover; display:block }

/* ---------- 无障碍与打印 ---------- */
@media (prefers-reduced-motion: reduce){
    *{ animation-duration:.01ms !important; transition-duration:.01ms !important; }
}
@media print{
    .header_area, .footer-area, .section-nav, .hero-actions{ display:none !important }
}
.visit-notes{ list-style:none; padding:0; margin:0 0 20px }
.visit-notes li{ position:relative; padding-left:22px; margin-bottom:10px; line-height:1.75 }
.visit-notes li::before{ content:"›"; position:absolute; left:4px; color:#0d6efd; font-weight:700 }
.visit-privacy{ font-size:13px; color:#6b7280; line-height:1.8; border-top:1px dashed #e2e6ea; padding-top:14px; margin:0 }
