/* ==========================================================================
   福建宇财科技有限公司 企业官网 - 样式表
   风格：简约大气 / 深蓝 + 金点缀
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --navy-900: #071b30;
  --navy-800: #0b2a45;
  --navy-700: #10405f;
  --blue-600: #1b6ca8;
  --blue-500: #2a86c9;
  --blue-050: #eef4fa;
  --gold-500: #c8a24a;
  --gold-400: #dcbc74;
  --green-600: #1e9e6a;

  --ink: #12212f;
  --ink-2: #3d5063;
  --ink-3: #6b7c8c;
  --line: rgba(16, 64, 95, 0.12);
  --line-2: rgba(16, 64, 95, 0.22);

  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --bg-mute: #eef3f8;

  --radius: 6px;
  --radius-lg: 10px;
  --shadow-s: 0 2px 10px rgba(11, 42, 69, 0.06);
  --shadow-m: 0 12px 32px rgba(11, 42, 69, 0.10);
  --shadow-l: 0 24px 60px rgba(11, 42, 69, 0.16);

  --wrap: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB",
    "Source Han Sans SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-2);
  background: var(--bg);
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 .5em;
  letter-spacing: .005em;
}

h1 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 700; }
h2 { font-size: clamp(24px, 2.8vw, 36px); }
h3 { font-size: clamp(18px, 1.5vw, 21px); }

p { margin: 0 0 1.1em; }

::selection { background: rgba(27, 108, 168, .16); }

/* ---------- 布局工具 ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 8vw, 120px) 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-top: clamp(48px, 5vw, 72px); }

.center { text-align: center; }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 4vw, 60px); }
.section-head.center { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue-600); font-weight: 600; margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--gold-500); display: block;
}
.section-head.center .eyebrow { justify-content: center; }

.lead { font-size: clamp(16px, 1.3vw, 17.5px); color: var(--ink-2); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border-radius: var(--radius);
  font-size: 15px; font-weight: 500; cursor: pointer;
  border: 1px solid transparent; background: var(--blue-600); color: #fff;
  transition: transform .25s var(--ease), background .25s var(--ease),
    box-shadow .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: var(--shadow-m); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn--line { background: transparent; border-color: var(--line-2); color: var(--navy-800); }
.btn--line:hover { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.btn--gold { background: var(--gold-500); }
.btn--gold:hover { background: #b48f35; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.site-header.is-solid { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(11, 42, 69, .07); }

.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; }
/* 品牌标识：logo PNG 自带约 4.5% 留白，所以显示尺寸比图标本体略大 */
.brand__mark { width: 44px; height: 44px; flex: 0 0 44px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-size: 18px; font-weight: 700; color: var(--navy-800); letter-spacing: .04em; }
.brand__sub { font-size: 11px; color: var(--ink-3); letter-spacing: .12em; }

.nav__menu { display: flex; align-items: center; gap: 34px; }
.nav__menu a {
  position: relative; font-size: 15px; color: var(--ink-2); padding: 6px 0;
}
.nav__menu a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold-500); transition: width .3s var(--ease);
}
.nav__menu a:hover { color: var(--navy-800); }
.nav__menu a:hover::after, .nav__menu a.is-active::after { width: 100%; }
.nav__menu a.is-active { color: var(--navy-800); font-weight: 600; }

.nav__cta { display: flex; align-items: center; gap: 16px; }
.nav__tel { font-size: 14px; color: var(--navy-800); font-weight: 600; white-space: nowrap; }
.nav__tel span { color: var(--ink-3); font-weight: 400; }
.nav__tel .placeholder { color: #b0553a; font-weight: 500; }

.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-2);
  background: transparent; border-radius: var(--radius); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__toggle i { display: block; width: 18px; height: 1.5px; background: var(--navy-800); position: relative; }
.nav__toggle i::before, .nav__toggle i::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--navy-800);
}
.nav__toggle i::before { top: -6px; }
.nav__toggle i::after { top: 6px; }

.nav__drawer {
  display: none; border-top: 1px solid var(--line); background: #fff;
  padding: 10px 24px 22px;
}
.nav__drawer a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.nav__drawer a.is-active { color: var(--blue-600); font-weight: 600; }

/* ---------- 首页主视觉 ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  padding: 150px 0 clamp(56px, 7vw, 96px);
  color: #fff; overflow: hidden; background: var(--navy-900);
}
.hero__bg {
  position: absolute; inset: 0;
  background-image: url("../assets/img/hero-entrance.jpg");
  background-size: cover; background-position: center 62%;
  transform: scale(1.02); animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1.08); } }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 27, 48, .72) 0%, rgba(7, 27, 48, .48) 38%, rgba(7, 27, 48, .82) 100%),
    linear-gradient(90deg, rgba(7, 27, 48, .78) 0%, rgba(7, 27, 48, .12) 68%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 16em; margin-bottom: 20px; }
.hero__sub {
  font-size: clamp(16px, 1.6vw, 20px); color: rgba(255, 255, 255, .92);
  max-width: 44em; margin-bottom: 10px; font-weight: 500;
}
.hero__desc { color: rgba(255, 255, 255, .78); max-width: 46em; margin-bottom: 30px; }

.hero__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.tag {
  font-size: 13px; padding: 7px 15px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .34); color: rgba(255, 255, 255, .94);
  background: rgba(255, 255, 255, .07);
}
.tag--dark { border-color: var(--line-2); color: var(--ink-2); background: var(--bg-soft); }
.tag--gold { border-color: rgba(200, 162, 74, .5); color: #8a6a1c; background: rgba(200, 162, 74, .1); }

.hero__rule {
  position: absolute; left: 0; right: 0; bottom: 0; height: 5px; z-index: 3;
  background: linear-gradient(90deg, var(--gold-500) 0 22%, var(--blue-600) 22% 100%);
}

/* ---------- 关键板块条 ---------- */
.pillars { background: var(--bg); border-bottom: 1px solid var(--line); }
.pillars__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line); margin: 0;
}
.pillar {
  background: var(--bg); padding: clamp(26px, 3vw, 40px) clamp(20px, 2.4vw, 32px);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.pillar:hover { background: var(--blue-050); }
.pillar__icon { width: 34px; height: 34px; margin-bottom: 16px; color: var(--blue-600); }
.pillar h3 { margin-bottom: 8px; font-size: 18px; }
.pillar p { font-size: 14.5px; color: var(--ink-3); margin: 0; line-height: 1.78; }

/* ---------- 业务板块卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px 30px 30px; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--gold-500); transition: width .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); border-color: var(--line-2); }
.card:hover::before { width: 100%; }
.card__no {
  font-size: 12px; letter-spacing: .2em; color: var(--gold-500); font-weight: 700;
  display: block; margin-bottom: 14px;
}
.card h3 { margin-bottom: 12px; }
.card p { font-size: 15px; margin-bottom: 16px; }
.card ul { margin: 0; padding: 0; list-style: none; }
.card ul li {
  font-size: 14px; color: var(--ink-3); padding-left: 16px; position: relative; margin-bottom: 7px;
}
.card ul li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 1.5px; background: var(--blue-500);
}
.card__icon { width: 30px; height: 30px; color: var(--blue-600); margin-bottom: 18px; }

/* ---------- 图文分栏 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-m);
}
.split__media--tall img { max-height: 620px; object-fit: cover; }
.split__media::after {
  content: ""; position: absolute; right: -14px; bottom: -14px; width: 42%; height: 42%;
  border-right: 2px solid var(--gold-500); border-bottom: 2px solid var(--gold-500);
  border-radius: 0 0 var(--radius-lg) 0; z-index: -1;
}
.split__body h2 { margin-bottom: 18px; }
.checklist { list-style: none; margin: 22px 0 26px; padding: 0; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 12px; font-size: 15px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 8px;
  border-left: 2px solid var(--green-600); border-bottom: 2px solid var(--green-600);
  transform: rotate(-45deg);
}

/* ---------- 图集 ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery__item {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: var(--bg-mute); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3;
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease), filter .5s var(--ease);
}
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item .gallery__cap {
  display: block; position: absolute; inset: auto 0 0 0; padding: 34px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(7, 27, 48, .82));
  color: #fff; font-size: 14px; text-align: left;
  transform: translateY(6px); opacity: 0; transition: all .35s var(--ease);
}
.gallery__item:hover .gallery__cap,
.gallery__item:focus-visible .gallery__cap { transform: translateY(0); opacity: 1; }
.gallery__item:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }

/* ---------- 横幅 ---------- */
.band {
  position: relative; color: #fff; padding: clamp(72px, 9vw, 130px) 0; overflow: hidden;
  background: var(--navy-900);
}
.band__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: .34; transform: scale(1.04);
}
.band .wrap { position: relative; z-index: 2; }
.band h2 { color: #fff; }
.band p { color: rgba(255, 255, 255, .8); max-width: 52em; }
.band__facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .16);
  margin-top: clamp(32px, 4vw, 52px); border: 1px solid rgba(255, 255, 255, .16);
}
.band__facts--5 { grid-template-columns: repeat(5, 1fr); }
.band__fact { background: rgba(9, 32, 55, .72); padding: 28px 26px; }
.band__fact strong { display: block; color: var(--gold-400); font-size: 14px; letter-spacing: .08em; margin-bottom: 8px; }
.band__fact span { color: rgba(255, 255, 255, .86); font-size: 15px; }

/* ---------- 内页页头 ---------- */
.page-head {
  position: relative; padding: 168px 0 clamp(56px, 7vw, 92px); color: #fff;
  background: var(--navy-800); overflow: hidden;
}
.page-head__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: .3;
}
.page-head__veil {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(7, 27, 48, .92) 0%, rgba(7, 27, 48, .6) 60%, rgba(7, 27, 48, .85) 100%);
}
.page-head .wrap { position: relative; z-index: 2; }
.page-head h1 { color: #fff; margin-bottom: 14px; }
.page-head p { color: rgba(255, 255, 255, .82); max-width: 46em; margin: 0; }

.crumb { font-size: 13px; color: rgba(255, 255, 255, .62); letter-spacing: .06em; margin-bottom: 18px; }
.crumb a:hover { color: #fff; }

/* ---------- 通用列表 / 表格 ---------- */
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li {
  position: relative; padding: 12px 0 12px 20px; border-bottom: 1px dashed var(--line);
  font-size: 15px;
}
.plain-list li::before {
  content: ""; position: absolute; left: 0; top: 22px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--gold-500);
}

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.info-cell { background: #fff; padding: 24px 26px; }
.info-cell dt { font-size: 13px; letter-spacing: .12em; color: var(--ink-3); margin-bottom: 8px; }
.info-cell dd { margin: 0; font-size: 16px; color: var(--ink); font-weight: 500; }

.note {
  border-left: 3px solid var(--gold-500); background: var(--bg-soft);
  padding: 18px 22px; font-size: 14.5px; color: var(--ink-2); border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---------- 联系我们 ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list .cl-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--blue-600); margin-top: 5px; }
.contact-list dt { font-size: 13px; color: var(--ink-3); letter-spacing: .1em; margin-bottom: 4px; }
.contact-list dd { margin: 0; font-size: 16px; color: var(--ink); }
.contact-list dd a:hover { color: var(--blue-600); }

/* 信息未填写时由 JS 打上的提示样式（留作备用） */
.placeholder { color: #b0553a; border-bottom: 1px dashed rgba(176, 85, 58, .5); }

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(5, 18, 32, .94);
  display: none; align-items: center; justify-content: center; padding: 4vh 4vw;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: var(--radius); box-shadow: var(--shadow-l); }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: 3vh; text-align: center; color: rgba(255, 255, 255, .86); font-size: 14px; }
.lightbox__close {
  position: absolute; top: 22px; right: 26px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; font-size: 20px; cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .14); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .7); padding: clamp(56px, 6vw, 84px) 0 0; font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: clamp(28px, 4vw, 60px); }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: .1em; margin-bottom: 20px; }
.site-footer a:hover { color: #fff; }
.site-footer .brand__mark { width: 52px; height: 52px; flex: 0 0 52px; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__sub { color: rgba(255, 255, 255, .5); }
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin-bottom: 10px; }
.footer__meta { display: grid; gap: 10px; }
.footer__meta span { display: block; color: rgba(255, 255, 255, .62); }
.footer__meta b { color: rgba(255, 255, 255, .9); font-weight: 500; }
.footer__bottom {
  margin-top: clamp(40px, 4vw, 60px); border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 22px 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 13px; color: rgba(255, 255, 255, .5);
}

/* ---------- 动效（仅在 JS 可用时启用，避免脚本失效导致内容不可见） ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .pillars__grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .band__facts, .band__facts--5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav__menu, .nav__cta .btn, .nav__tel { display: none; }
  .nav__toggle { display: inline-flex; }
  .hero { min-height: 88vh; padding-top: 130px; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media::after { display: none; }
  .band__facts, .band__facts--5 { grid-template-columns: 1fr; }
  .page-head { padding-top: 140px; }
}

@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .pillars__grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; gap: 18px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .footer__grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .hero__tags { gap: 8px; }
  .tag { font-size: 12px; padding: 6px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 打印 ---------- */
@media print {
  .site-header, .nav__drawer, .lightbox { display: none !important; }
  .hero { min-height: auto; }
}
