/* ==========================================================
   金福祥 官网 - 中文排版适配
   仅在此文件中覆盖模板原有的英文字体与字号，
   不修改 style.css 的任何原有规则。
   ========================================================== */

:root {
    --jfx-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
        "Source Han Sans SC", "Noto Sans SC", "WenQuanYi Micro Hei", sans-serif;
    --jfx-primary: #1d3557;
    --jfx-accent: #c25251;
}

/* ---------- 基础排版 ---------- */
body,
button,
input,
textarea,
select {
    font-family: var(--jfx-font) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-size: 16px;
    line-height: 1.75;
}

/* 模板 .row.gx-10 的负边距为 -25px，而 .container 内边距仅 15px，
   窄屏下每侧溢出 10px。这里把容器内边距补足到 25px，从根上消除横向溢出，
   不使用 overflow 裁剪，以免破坏 AOS 与页面滚动。 */
@media only screen and (max-width: 767px) {
    .container,
    .container-fluid {
        padding-left: 25px;
        padding-right: 25px;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--jfx-font);
    line-height: 1.4;
    letter-spacing: 0.01em;
}

p {
    line-height: 1.85;
}

/* 中文不宜使用斜体 */
i, em {
    font-style: normal;
}

/* ---------- 导航 ---------- */
.nav-menus-wrapper .nav-menu li a {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .nav-menus-wrapper .nav-menu li a {
        font-size: 16px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px),
    only screen and (max-width: 767px) {
    .nav-menus-wrapper .nav-menu li a {
        font-size: 16px;
    }
}

/* ---------- LOGO ---------- */
.desktop-logo img {
    width: 169px;
    height: auto;
}

/* ---------- 首屏轮播 ---------- */
.slider-content .title {
    font-size: 62px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.slider-content .title span::before {
    bottom: 6px;
    height: 14px;
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .slider-content .title {
        font-size: 50px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .slider-content .title {
        font-size: 44px;
    }
}

@media only screen and (max-width: 767px) {
    .slider-content .title {
        font-size: 34px;
    }
}

@media only screen and (max-width: 575px) {
    .slider-content .title {
        font-size: 28px;
    }
}

/* ---------- 页面横幅标题 ---------- */
.page-banner .title {
    font-size: 46px;
    letter-spacing: 0.06em;
}

.page-banner .title span::before {
    bottom: 4px;
    height: 14px;
}

@media only screen and (min-width: 992px) and (max-width: 1199px),
    only screen and (min-width: 768px) and (max-width: 991px) {
    .page-banner .title {
        font-size: 40px;
    }
}

@media only screen and (max-width: 767px) {
    .page-banner .title {
        font-size: 32px;
    }
}

@media only screen and (max-width: 575px) {
    .page-banner .title {
        font-size: 26px;
    }
}

/* ---------- 区块标题 ---------- */
.section-title .title {
    font-size: 42px;
    line-height: 1.35;
    letter-spacing: 0.02em;
}

.section-title .title span {
    padding: 0 3px;
}

.section-title .title span::before {
    bottom: 4px;
    height: 12px;
}

.section-title .sub-title {
    font-size: 15px;
    letter-spacing: 0.16em;
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .section-title .title {
        font-size: 36px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .section-title .title {
        font-size: 34px;
    }
}

@media only screen and (max-width: 767px) {
    .section-title .title {
        font-size: 28px;
    }
}

@media only screen and (max-width: 575px) {
    .section-title .title {
        font-size: 22px;
    }
}

/* ---------- 按钮 ---------- */
.btn {
    font-family: var(--jfx-font);
    letter-spacing: 0.06em;
}

/* ---------- 特色/服务卡片 ---------- */
.feature-box .content .title {
    font-size: 20px;
    letter-spacing: 0.02em;
}

.service-box .box-content .title {
    font-size: 20px;
    letter-spacing: 0.02em;
}

/* ---------- 数字统计 ---------- */
.single-counter .count,
.single-work .count {
    font-family: var(--jfx-font);
    font-size: 32px;
    letter-spacing: 0.02em;
}

.single-counter p {
    font-size: 17px;
}

.single-work .count {
    font-size: 34px;
}

/* ---------- 团队 ---------- */
.team-image .name {
    font-size: 22px;
    line-height: 1.4;
    letter-spacing: 0.04em;
}

.single-team .designation {
    font-size: 15px;
}

/* ---------- 客户评价 ---------- */
.single-client p {
    line-height: 1.9;
}

.client-info .name {
    font-size: 18px;
}

.client-info .designation {
    font-size: 14px;
}

/* ---------- 新闻列表 ---------- */
.blog-title {
    font-size: 20px;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

.single-blog .blog-content p {
    line-height: 1.8;
}

/* ---------- 案例 ---------- */
.portfolio-title {
    font-size: 20px;
    letter-spacing: 0.02em;
}

/* ---------- 页脚 ---------- */
.footer-widget p,
.footer-widget .widget-text {
    line-height: 1.85;
}

.footer-widget-title {
    font-size: 19px;
    letter-spacing: 0.06em;
}

.footer-link li a {
    font-size: 15px;
    letter-spacing: 0.01em;
}

.widget-info p {
    font-size: 15px;
    line-height: 1.9;
}

.copyright-text p {
    font-size: 14px;
    letter-spacing: 0.02em;
}

.copyright-text p a {
    color: #8d8d8d;
    transition: color 0.3s ease;
}

.copyright-text p a:hover {
    color: var(--jfx-accent);
}

/* ---------- 侧边栏 / 资讯 ---------- */
.widget-title,
.blog-sidebar .widget-title {
    letter-spacing: 0.04em;
}

.post-tags a,
.tag-cloud a {
    letter-spacing: 0.02em;
}

/* ---------- 表单 ---------- */
.single-form input,
.single-form textarea {
    font-family: var(--jfx-font);
    font-size: 15px;
}

.single-form input::placeholder,
.single-form textarea::placeholder {
    font-family: var(--jfx-font);
}

/* 浏览器中中文默认可拉伸，避免输入框高度塌陷 */
.single-form textarea {
    line-height: 1.8;
}

/* ---------- 团队卡片说明文字 ---------- */
.single-team .team-content .mail {
    display: block;
    font-size: 14px;
    color: #6b7a90;
    line-height: 1.7;
}
