/*
Theme Name: KFE
Description: 泉州凯岚流体设备有限公司官网主题 v2（2026-10-19 重做，视觉参考南方泵业）
Version: 2.0
Author: KFE
Text Domain: kfe
*/

/* ========== 基础 ========== */
:root {
    --blue: #014099;
    --sky: #009ad2;
    --ink: #222;
    --text: #393939;
    --muted: #888;
    --line: #e6e6e6;
    --bg: #f4f4f4;
    --header-h: 80px;
    --max: 1400px;
    --font: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body { margin: 0; min-width: 1200px; font-family: var(--font); font-size: 16px; line-height: 1.8; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 500; line-height: 1.3; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: 84%; max-width: var(--max); margin: 0 auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; padding: 8px 14px; background: #fff; color: var(--blue); }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.kfe-icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
main { padding-top: var(--header-h); }
.home main { padding-top: 0; }

/* ========== 导航栏 ========== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; color: var(--ink); background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06); transition: background .3s, color .3s, box-shadow .3s; }
.site-header__bar { position: relative; z-index: 2; height: var(--header-h); width: 90%; max-width: 1600px; margin: 0 auto; display: flex; align-items: center; }
.site-header.is-over-hero { color: #fff; background: transparent; box-shadow: none; }
.site-header.is-over-hero.is-scrolled { color: var(--ink); background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.site-header.is-mega, .site-header.is-searching { color: #fff; background: rgba(0,33,94,.9); box-shadow: none; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand__logo { height: 44px; width: auto; }
/* KFE 字标：Nunito ExtraBold（OFL 授权），只含 K F E 三个字母 */
@font-face { font-family: "KFE Brand"; src: url("assets/fonts/Nunito-ExtraBold-KFE.woff2") format("woff2"); font-weight: 800; font-display: block; }
.brand__name { font-family: "KFE Brand", var(--font, sans-serif); font-size: 30px; font-weight: 800; letter-spacing: .02em; line-height: 1; color: var(--blue); }
.site-header.is-over-hero:not(.is-scrolled) .brand__name, .site-header.is-mega .brand__name, .site-header.is-searching .brand__name { color: #fff; }
.main-nav { flex: 1; height: 100%; margin: 0 5%; }
.main-nav__list { height: 100%; max-width: 980px; margin: 0 auto; display: flex; justify-content: space-between; gap: 28px; white-space: nowrap; }
.main-nav__item { position: relative; height: 100%; display: flex; align-items: center; }
.main-nav__link { position: relative; height: 100%; display: flex; align-items: center; padding: 0 4px; font-size: 18px; white-space: nowrap; }
.main-nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; margin: auto; width: 0; height: 2px; background: var(--sky); transition: width .3s; }
.main-nav__item:hover > .main-nav__link::after, .main-nav__item.is-current > .main-nav__link::after { width: 100%; }
.site-header:not(.is-over-hero):not(.is-mega) .is-current > .main-nav__link, .site-header.is-scrolled:not(.is-mega) .is-current > .main-nav__link { color: var(--blue); }
.main-nav__sub { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: 22px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.main-nav__sub a { display: block; padding: 0 4px; line-height: 40px; font-size: 17px; color: #c8c8c8; white-space: normal; width: max-content; max-width: 230px; line-height: 1.35; padding: 8px 4px; margin: 0 auto; text-align: center; transition: color .2s; }
.main-nav__item--industries .main-nav__sub a { white-space: nowrap; max-width: none; }
.main-nav__sub a:hover, .main-nav__sub a:focus { color: #fff; }
.site-header.is-mega .main-nav__sub { opacity: 1; visibility: visible; }
.mega-panel { position: absolute; z-index: 1; top: var(--header-h); left: 0; right: 0; height: 0; background: rgba(0,33,94,.9); border-top: 1px solid rgba(255,255,255,.15); overflow: hidden; opacity: 0; transition: height .3s, opacity .3s; }
.site-header.is-mega .mega-panel { opacity: 1; }
.header-tools { display: flex; align-items: center; gap: 16px; flex: none; }
.header-tools__search { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: inherit; background: none; border: 0; cursor: pointer; font-size: 22px; }
.header-tools__divider { width: 1px; height: 16px; background: currentColor; opacity: .4; }
.lang-switch { position: relative; }
.lang-switch__current { padding: 4px; color: inherit; background: none; border: 0; font-size: 16px; cursor: pointer; }
.lang-switch__menu { position: absolute; right: 0; top: calc(100% + 16px); min-width: 180px; padding: 8px; background: #fff; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.12); opacity: 0; visibility: hidden; transition: .2s; }
.lang-switch.is-open .lang-switch__menu { opacity: 1; visibility: visible; }
.lang-switch__menu a, .lang-switch__menu span { display: flex; justify-content: space-between; gap: 10px; padding: 6px 12px; border-radius: 4px; color: var(--ink); font-size: 15px; }
.lang-switch__menu a.is-active { color: var(--blue); background: #eef3fb; }
.lang-switch__menu .is-pending { color: var(--muted); }
.lang-switch__menu small { font-size: 12px; }
.site-search { position: absolute; top: var(--header-h); left: 0; right: 0; padding: 34px 0; background: rgba(0,33,94,.9); border-top: 1px solid rgba(255,255,255,.15); }
.site-search__form { width: 60%; max-width: 800px; margin: 0 auto; display: flex; gap: 14px; }
.site-search__form input { flex: 1; height: 50px; padding: 0 24px; border: 0; border-radius: 25px; color: var(--ink); }
.site-search__form button { display: flex; align-items: center; gap: 6px; height: 50px; padding: 0 32px; border: 0; border-radius: 25px; color: var(--blue); background: #fff; cursor: pointer; }

/* ========== 页脚 ========== */
.site-footer { position: relative; overflow: hidden; color: rgba(255,255,255,.72); background: var(--blue); font-size: 15px; }
.site-footer::after { content: "KFE"; position: absolute; right: -1%; bottom: -14%; font-size: 340px; font-weight: 900; line-height: 1; color: rgba(255,255,255,.05); pointer-events: none; }
.site-footer__inner { position: relative; z-index: 1; width: 84%; max-width: 1200px; margin: 0 auto; padding-top: 64px; }
.site-footer__top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.25); }
.brand--footer .brand__logo { filter: brightness(0) invert(1); }
.brand--footer .brand__name { color: #fff; }
.site-footer__social { display: flex; gap: 14px; }
.site-footer__social a { display: grid; place-items: center; width: 40px; height: 40px; color: var(--blue); background: #fff; border-radius: 4px; font-size: 20px; transition: transform .2s; }
.site-footer__social a:hover { transform: translateY(-3px); }
.site-footer__cols { display: grid; grid-template-columns: 1fr 1fr 1fr 1.5fr; gap: 40px; padding: 44px 0 60px; }
.site-footer__col h2 { margin-bottom: 20px; color: #fff; font-size: 18px; font-weight: 700; }
.site-footer__col li { margin-bottom: 10px; }
.site-footer__col a:hover { color: #fff; }
.site-footer__contact a, .site-footer__contact p { display: block; margin: 0 0 10px; }
.site-footer__company { color: #fff; font-weight: 700; }
.site-footer__bottom { display: flex; justify-content: space-between; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; }
.site-footer__legal { display: flex; gap: 24px; }
.site-footer__legal a:hover { color: #fff; }

/* ========== 首屏（第 2 步细做） ========== */
.home-hero { position: relative; overflow: hidden; background: #dfe9f2; }
.home-hero img { width: 100%; aspect-ratio: 1920 / 998; object-fit: cover; }
/* 首屏上：照南方泵业，白色 30% 半透明条，深色字，蓝色 logo 字 */
:root { --header-h: 76px; }
.site-header.is-over-hero { color: var(--ink); background: rgba(255,255,255,.3); box-shadow: none; }
.site-header.is-over-hero:not(.is-scrolled):not(.is-mega):not(.is-searching) .brand__name { color: var(--blue); }
.site-header.is-over-hero:not(.is-mega) .is-current > .main-nav__link { color: var(--blue); }
