/* ============================================================
   南通优企保安服务有限公司 — 自建官网 v2（精致版）
   ============================================================ */
:root {
  --navy: #0b3b71;
  --navy-deep: #06244a;
  --navy-light: #1d5a9e;
  --gold: #d4af37;
  --gold-soft: #f0d57a;
  --ink: #1a2238;
  --gray: #5a6a85;
  --gray-light: #8898b1;
  --line: #e8ecf3;
  --bg: #f6f8fc;
  --white: #ffffff;
  --shadow-sm: 0 4px 14px rgba(11, 59, 113, .08);
  --shadow: 0 10px 32px rgba(11, 59, 113, .10);
  --shadow-lg: 0 24px 56px rgba(11, 59, 113, .14);
  --radius: 10px;
  --maxw: 1600px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 通用动画 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 头部 ---------- */
.header { background: rgba(255,255,255,.96); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 100; transition: box-shadow .25s; }
.header.scrolled { box-shadow: 0 4px 20px rgba(11,59,113,.10); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 12px; padding: 0; }
.logo { display: flex; align-items: center; flex-shrink: 0; cursor: default; user-select: none; }
.logo .brand { font-size: 18px; font-weight: 900; color: var(--navy); letter-spacing: .5px; white-space: nowrap; }
.logo .tag { font-size: 14px; font-weight: 400; color: var(--gray); letter-spacing: .5px; white-space: nowrap; }

.nav { flex: 1; display: flex; justify-content: flex-end; overflow: visible; }
.nav > ul { display: flex; align-items: center; gap: 0; }
.nav li { position: relative; flex-shrink: 0; }
.nav > ul > li > a {
  display: block; padding: 0 11px; height: 72px; line-height: 72px;
  font-size: 15px; color: var(--ink); position: relative; font-weight: 500;
  white-space: nowrap;
}
.nav > ul > li > a::after {
  content: ""; position: absolute; left: 50%; bottom: 20px; width: 0; height: 2px;
  background: var(--gold); transition: width .25s, left .25s;
}
.nav > ul > li > a:hover::after, .nav li.active > a::after { width: calc(100% - 22px); left: 11px; }
.nav > ul > li > a:hover, .nav li.active > a { color: var(--navy); }
.nav li.has-sub:hover > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu {
  opacity: 0; visibility: hidden; transform: translateY(8px);
  position: absolute; top: 72px; left: 50%; transform-origin: top center;
  min-width: 150px; background: var(--white); border-top: 2px solid var(--gold);
  box-shadow: var(--shadow); border-radius: 0 0 8px 8px; overflow: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
  margin-left: -75px;
}
.submenu a { display: block; padding: 12px 18px; font-size: 13px; color: var(--ink); border-bottom: 1px solid var(--line); white-space: nowrap; }
.submenu a:last-child { border-bottom: none; }
.submenu a:hover { background: var(--bg); color: var(--navy); padding-left: 24px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 6px; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .25s; }

/* ---------- OA 外部链接（与其他导航项一致） ---------- */
.nav li.nav-ext > a {
  background: transparent;
  color: var(--navy) !important;
  padding: 0 18px;
  margin-top: 0;
  height: auto;
  line-height: 72px;
  font-size: 14px;
  border-radius: 0;
}

/* ---------- 管理员登录入口（导航栏右侧） ---------- */
.admin-login {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 16px;
  background: linear-gradient(135deg, #f5b915, #d99e0e);
  color: #0b3b71 !important;
  font-size: 13px;
  font-weight: 700;
  border-radius: 18px;
  box-shadow: 0 2px 6px rgba(245,185,21,.4);
  transition: all .2s;
  white-space: nowrap;
}
.admin-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(245,185,21,.55);
}
@media (max-width: 900px) {
  .admin-login { font-size: 12px; padding: 0 12px; }
}
@media (max-width: 768px) {
  .admin-login { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 600px; overflow: hidden; background-color: #0b3b71; background-image: url('/assets/img/hero-guard-salute.jpg?v=99'); background-size: cover; background-position: 75% 30%; background-repeat: no-repeat; }
.hero .overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(6,36,74,.92) 0%, rgba(6,36,74,.58) 50%, rgba(6,36,74,.20) 78%),
    linear-gradient(to top left, rgba(6,36,74,.88) 0%, transparent 55%);
  display: flex; align-items: center;
}
.hero .hero-text { color: #fff; max-width: 660px; }
.hero .hero-text .eyebrow {
  display: inline-block; color: var(--gold); letter-spacing: 5px; font-size: 13px; font-weight: 600;
  margin-bottom: 18px; padding-bottom: 10px; position: relative;
}
.hero .hero-text .eyebrow::after { content: ""; position: absolute; left: 0; bottom: 0; width: 38px; height: 2px; background: var(--gold); }
.hero .hero-text h1 { font-size: 50px; line-height: 1.22; margin-bottom: 20px; font-weight: 700; text-shadow: 0 2px 14px rgba(0,0,0,.25); }
.hero .hero-text h1 em { color: var(--gold); font-style: normal; }
.hero .hero-text p { font-size: 18px; opacity: .92; margin-bottom: 32px; line-height: 1.8; }
.hero .badges { position: absolute; right: 8%; bottom: 36px; display: flex; gap: 12px; }
.hero .badge {
  background: rgba(255,255,255,.10); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.25);
  color: #fff; padding: 14px 20px; border-radius: 8px; font-size: 13px; min-width: 130px;
}
.hero .badge strong { display: block; font-size: 22px; color: var(--gold); font-weight: 700; margin-bottom: 2px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 32px; border-radius: 6px; font-size: 15px; font-weight: 600;
  background: var(--gold); color: #2a1d00; transition: transform .18s, box-shadow .18s, background .18s;
  border: none; cursor: pointer; letter-spacing: .5px;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(212,175,55,.38); background: var(--gold-soft); }
.btn.ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.6); color: #fff; margin-left: 14px; }
.btn.ghost:hover { background: rgba(255,255,255,.12); box-shadow: 0 8px 20px rgba(255,255,255,.15); border-color: #fff; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- 信任条 ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); padding: 26px 24px; gap: 20px; }
.trust .item { display: flex; align-items: center; gap: 14px; }
.trust .item .ic {
  width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  display: flex; align-items: center; justify-content: center; color: var(--white); flex-shrink: 0;
}
.trust .item h4 { font-size: 15px; color: var(--navy); margin-bottom: 2px; }
.trust .item p { font-size: 13px; color: var(--gray); }

/* ---------- 数据条 ---------- */
.stats { background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%); color: #fff; position: relative; overflow: hidden; }
.stats::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><circle cx='1' cy='1' r='1' fill='%23ffffff' fill-opacity='0.05'/></svg>"); }
.stats .container { display: flex; flex-wrap: wrap; justify-content: space-around; text-align: center; padding: 58px 20px; position: relative; }
.stat .num { font-size: 52px; font-weight: 700; color: var(--gold); line-height: 1; letter-spacing: 1px; }
.stat .num small { font-size: 22px; margin-left: 2px; }
.stat .label { margin-top: 12px; font-size: 15px; color: #c8d4e6; letter-spacing: 1px; }

/* ---------- 通用 section ---------- */
.section { padding: 90px 0; }
.section.bg-white { background: var(--white); }
.section-title { text-align: center; margin-bottom: 56px; }
.section-title .eyebrow { display: block; color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: 4px; margin-top: 8px; margin-bottom: 12px; }
.section-title h2 { font-size: 34px; color: var(--navy); font-weight: 700; display: block; margin-bottom: 0; }
.section-title .title-line { width: 60px; height: 3px; background: var(--gold); border-radius: 2px; margin: 0 auto 16px; }
.section-title p { color: var(--gray); margin-top: 0; font-size: 15px; }

/* ---------- 关于简介 ---------- */
.intro-text { max-width: 900px; margin: 0 auto; }
.intro-text h3 { color: var(--navy); font-size: 28px; margin-bottom: 18px; font-weight: 700; text-align: center; }
.intro-text .lead { color: var(--gray-light); margin-bottom: 18px; font-size: 16px; text-align: center; }
.intro-text p { color: var(--gray); margin-bottom: 16px; }
.intro-mini-stats { display: flex; gap: 30px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); justify-content: center; }
.intro-mini-stats .ms { text-align: center; }
.intro-mini-stats .ms .n { color: var(--gold); font-size: 28px; font-weight: 700; }
.intro-mini-stats .ms .l { color: var(--gray); font-size: 13px; }

/* ---------- 首页：关于简介（视频 + 文字双栏） ---------- */
.intro-wrap { display: grid; grid-template-columns: 1.08fr 1fr; gap: 48px; align-items: center; }
.intro-media { position: relative; }
.video-frame { position: relative; border-radius: 12px; padding: 8px; background: var(--white);
  box-shadow: var(--shadow); border: 1px solid var(--line); }
.video-frame video { position: relative; z-index: 1; display: block; width: 100%; border-radius: 8px;
  background: #000; aspect-ratio: 16 / 9; object-fit: cover; }
.video-frame .video-tag { position: absolute; z-index: 2; left: 20px; top: 20px;
  background: rgba(11, 59, 113, .82); color: #fff; font-size: 12px; letter-spacing: 1px;
  padding: 5px 14px; border-radius: 20px; backdrop-filter: blur(4px); }
.intro-wrap .intro-text { max-width: none; }
.intro-wrap .intro-text h3 { text-align: left; margin-bottom: 14px; position: relative; padding-bottom: 14px; }
.intro-wrap .intro-text h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px; background: var(--gold); border-radius: 2px; }
.intro-wrap .intro-text .lead { text-align: left; }
.intro-wrap .intro-text p { text-align: justify; }
.intro-wrap .intro-mini-stats { justify-content: flex-start; gap: 40px; }
@media (max-width: 900px) {
  .intro-wrap { grid-template-columns: 1fr; gap: 36px; }
  .intro-wrap .intro-text h3, .intro-wrap .intro-text .lead { text-align: center; }
  .intro-wrap .intro-text h3::after { left: 50%; transform: translateX(-50%); }
  .intro-wrap .intro-mini-stats { justify-content: center; gap: 30px; }
}

/* ---------- 服务范围 (6 卡片) ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-card {
  background: var(--white); border-radius: var(--radius); padding: 36px 30px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s, border-color .3s; position: relative; overflow: hidden;
}
.svc-card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--gold); transition: width .35s; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.svc-card:hover::before { width: 100%; }
.svc-card .ic {
  width: 60px; height: 60px; border-radius: 12px; background: linear-gradient(135deg, #f8f4e3, #f0d57a);
  display: flex; align-items: center; justify-content: center; color: var(--navy); margin-bottom: 18px;
}
.svc-card h4 { color: var(--navy); font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.svc-card .en { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 3px; margin-bottom: 10px; }
.svc-card .line { width: 36px; height: 2px; background: var(--gold); margin-bottom: 14px; transition: width .35s; }
.svc-card:hover .line { width: 60px; }
.svc-card p { color: var(--gray); font-size: 14px; line-height: 1.8; }

/* ---------- 价值观 (4 卡片) ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card {
  background: var(--white); border-radius: var(--radius); padding: 36px 26px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s; text-align: left;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-card .num-tag { display: inline-block; color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: 2px; margin-bottom: 10px; }
.value-card h4 { color: var(--navy); font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.value-card p { color: var(--gray); font-size: 14px; line-height: 1.8; }

/* ---------- 画廊 (风采/办公) ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery figure {
  overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: #fff;
  cursor: pointer; position: relative; margin: 0;
}
.gallery figure .img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure .overlay {
  position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11,59,113,.75));
  opacity: 0; transition: opacity .3s; display: flex; align-items: flex-end; padding: 14px; color: #fff; font-size: 13px;
}
.gallery figure:hover img { transform: scale(1.08); }
.gallery figure:hover .overlay { opacity: 1; }
.gallery figcaption { padding: 14px; text-align: center; font-size: 14px; color: var(--navy); font-weight: 500; }

/* ---------- 保安风采跑马灯 ---------- */
.bafc-marquee .marquee-track { animation: marquee-scroll 60s linear infinite; }
.bafc-marquee figure {
  flex-shrink: 0; width: 300px; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: #fff;
  cursor: pointer; position: relative; margin: 0;
}
.bafc-marquee figure .img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.bafc-marquee figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bafc-marquee figure .overlay {
  position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11,59,113,.75));
  opacity: 0; transition: opacity .3s; display: flex; align-items: flex-end; padding: 14px; color: #fff; font-size: 13px;
}
.bafc-marquee figure:hover img { transform: scale(1.08); }
.bafc-marquee figure:hover .overlay { opacity: 1; }
.bafc-marquee figcaption { padding: 14px; text-align: center; font-size: 14px; color: var(--navy); font-weight: 500; }

/* ---------- 客户单位（跑马灯滚动） ---------- */
.client-desc { text-align: center; color: var(--gray); font-size: 14px; line-height: 1.9; max-width: 860px; margin: -10px auto 32px; }

.marquee { overflow: hidden; position: relative; width: 100%; padding: 10px 0; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, #fff, transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, #fff, transparent); }
.marquee-track {
  display: flex; gap: 20px; width: max-content;
  animation: marquee-scroll 40s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee .client {
  flex-shrink: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  width: 260px; height: 180px;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.marquee .client img { max-height: 140px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(30%); opacity: .88; transition: filter .3s, opacity .3s; }
.marquee .client:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--gold); }
.marquee .client:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- 管理团队（跑马灯） ---------- */
.team-marquee .marquee-track { animation: marquee-scroll 35s linear infinite; gap: 22px; }
.team-card {
  flex-shrink: 0; width: 200px; margin: 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s, border-color .25s;
}
.team-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: var(--gold); }
.team-photo { aspect-ratio: 3 / 4; overflow: hidden; background: #eef2f7; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.team-card:hover .team-photo img { transform: scale(1.06); }
.team-card figcaption {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 14px 10px; text-align: center;
}
.team-card .t-dept { font-size: 12px; color: var(--gold); letter-spacing: 1px; }
.team-card .t-name { font-size: 16px; color: var(--navy); font-weight: 600; }
@media (max-width: 600px) {
  .team-card { width: 150px; }
}

/* ---------- 管理团队（静态网格页） ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
.team-grid-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.team-grid-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.team-grid-photo { aspect-ratio: 3 / 4; overflow: hidden; background: #eef2f7; }
.team-grid-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.team-grid-card:hover .team-grid-photo img { transform: scale(1.06); }
.team-grid-info { padding: 16px 12px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.team-grid-dept { font-size: 12px; color: var(--gold); letter-spacing: 1px; }
.team-grid-name { font-size: 17px; color: var(--navy); font-weight: 600; }
@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 24px 16px; }
}
@media (max-width: 600px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
}

/* ---------- 荣誉资质（网格页） ---------- */
.honor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.honor-grid-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.honor-grid-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.honor-grid-photo { aspect-ratio: 4 / 3; overflow: hidden; background: #eef2f7;
  display: flex; align-items: center; justify-content: center; padding: 16px; }
.honor-grid-photo img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; }
.honor-grid-card:hover .honor-grid-photo img { transform: scale(1.05); }
.honor-grid-name { padding: 12px 14px; text-align: center; font-size: 14px; color: var(--navy);
  font-weight: 500; line-height: 1.5; min-height: 42px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 900px) {
  .honor-grid { grid-template-columns: repeat(3, 1fr); gap: 22px 14px; }
}
@media (max-width: 600px) {
  .honor-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 10px; }
  .honor-grid-name { font-size: 13px; min-height: 38px; }
}

/* ---------- 新闻 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-card .img-wrap { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.news-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .img-wrap img { transform: scale(1.06); }
.news-card .tag {
  position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.95); color: var(--navy);
  font-size: 12px; padding: 4px 12px; border-radius: 20px; font-weight: 600;
}
.news-card .body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; }
.news-card .date { color: var(--gold); font-size: 13px; margin-bottom: 8px; font-weight: 500; }
.news-card h4 { font-size: 18px; color: var(--navy); margin-bottom: 10px; line-height: 1.55; font-weight: 600; }
.news-card p { color: var(--gray); font-size: 14px; flex: 1; }
.news-card .more { margin-top: 14px; color: var(--navy); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.news-card .more::after { content: "→"; transition: transform .2s; }
.news-card:hover .more::after { transform: translateX(4px); }

.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-row {
  display: grid; grid-template-columns: 280px 1fr; gap: 28px; background: #fff;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .25s;
}
.news-row:hover { box-shadow: var(--shadow); }
.news-row .img-wrap { aspect-ratio: 4/3; overflow: hidden; }
.news-row img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-row:hover img { transform: scale(1.05); }
.news-row .body { padding: 26px; display: flex; flex-direction: column; justify-content: center; }
.news-row .meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.news-row .meta .tag { background: var(--bg); color: var(--navy); font-size: 12px; padding: 3px 12px; border-radius: 20px; }
.news-row .meta .date { color: var(--gold); font-size: 13px; font-weight: 500; }
.news-row h4 { color: var(--navy); font-size: 20px; margin-bottom: 10px; font-weight: 600; }
.news-row p { color: var(--gray); font-size: 14px; }

/* ---------- 文章详情 ---------- */
.article { max-width: 860px; margin: 0 auto; background: #fff; border-radius: var(--radius); padding: 50px 60px; box-shadow: var(--shadow-sm); }
.article .tag { display: inline-block; background: var(--bg); color: var(--navy); font-size: 12px; padding: 4px 14px; border-radius: 20px; margin-bottom: 14px; }
.article h1 { color: var(--navy); font-size: 30px; margin-bottom: 12px; line-height: 1.45; font-weight: 700; }
.article .meta-line { color: var(--gray); font-size: 14px; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); display: flex; gap: 18px; flex-wrap: wrap; }
.article .meta-line span::before { content: ""; display: inline-block; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.article p { margin-bottom: 18px; color: #333; font-size: 16px; line-height: 1.95; }
.article p:first-letter { }
.article .cover { border-radius: var(--radius); margin-bottom: 28px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; color: var(--navy); font-weight: 600; }
.back-link:hover { color: var(--gold); }

/* ---------- 内页横幅 / 面包屑 ---------- */
.page-banner {
  background: linear-gradient(105deg, var(--navy-deep), var(--navy));
  color: #fff; padding: 70px 0; position: relative; overflow: hidden;
}
.page-banner::before { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.page-banner::after { content: ""; position: absolute; right: 40px; bottom: -100px; width: 200px; height: 200px; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; }
.page-banner h1 { font-size: 34px; margin-bottom: 10px; font-weight: 700; position: relative; }
.page-banner .banner-sub { font-size: 15px; color: rgba(255,255,255,.78); max-width: 680px; line-height: 1.7; position: relative; margin-top: 8px; }
.page-banner .crumb { font-size: 14px; color: #a9bbd4; position: relative; }
.page-banner .crumb a:hover { color: var(--gold); }
.page-banner .crumb .sep { margin: 0 8px; opacity: .5; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy-light));
  color: #fff; text-align: center; padding: 80px 0 20px; position: relative; overflow: hidden;
}
.cta::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><path d='M0 30 L60 30 M30 0 L30 60' stroke='%23ffffff' stroke-opacity='0.04'/></svg>"); }
.cta h2 { font-size: 32px; margin-bottom: 14px; font-weight: 700; position: relative; }
.cta h2 em { color: var(--gold); font-style: normal; }
.cta p { opacity: .88; margin-bottom: 32px; font-size: 16px; position: relative; }
.btn-back-home {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 30px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.35);
  transition: background .2s, border-color .2s;
  position: relative;
}
.btn-back-home:hover {
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.6);
}

.cta-copyright { font-size: 11px; color: rgba(255,255,255,.45); margin-top: 20px; margin-bottom: 0; letter-spacing: 1px; position: relative; }
.site-footer { background: #04182f; color: rgba(255,255,255,.45); text-align: center; padding: 14px 16px; font-size: 12px; letter-spacing: 1px; }
.site-footer a { color: rgba(255,255,255,.55); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info { display: flex; flex-direction: column; }
.contact-info h3 { color: var(--navy); font-size: 22px; margin-bottom: 6px; font-weight: 700; }
.contact-info .lead { color: var(--gray); margin-bottom: 24px; }
.contact-info .item { display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-start; }
.contact-info .item .ic {
  width: 46px; height: 46px; border-radius: 10px; background: linear-gradient(135deg, #f8f4e3, var(--gold-soft));
  color: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info .item h4 { color: var(--navy); font-size: 15px; margin-bottom: 4px; font-weight: 600; }
.contact-info .item p { color: var(--gray); font-size: 14px; line-height: 1.6; }
.form-box { background: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.form-box h3 { color: var(--navy); margin-bottom: 22px; font-size: 20px; font-weight: 700; }
.form-box label { display: block; font-size: 13px; color: var(--gray); margin-bottom: 6px; font-weight: 500; }
.form-box input, .form-box textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 6px;
  font-size: 15px; font-family: inherit; margin-bottom: 18px; transition: border-color .2s, box-shadow .2s; background: #fafbfd;
}
.form-box input:focus, .form-box textarea:focus {
  outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(212,175,55,.15);
}
.form-box textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--gray-light); margin-top: 10px; }
.form-ok { background: #e8f6ec; color: #1d7a3f; padding: 12px 16px; border-radius: 6px; margin-bottom: 18px; display: none; border-left: 3px solid #1d7a3f; }

/* ---------- 页脚 ---------- */
.footer { background: var(--navy-deep); color: #a8b9d1; padding: 64px 0 24px; position: relative; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; font-weight: 600; position: relative; padding-bottom: 10px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--gold); }
.footer p, .footer li { font-size: 14px; line-height: 2; }
.footer a:hover { color: var(--gold-soft); }
.footer .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer .brand img { height: 46px; border-radius: 6px; }
.footer .brand .n { color: #fff; font-weight: 700; font-size: 17px; }
.footer .qr { display: flex; gap: 14px; margin-top: 18px; }
.footer .qr div { width: 84px; height: 84px; background: rgba(255,255,255,.06); border: 1px dashed rgba(255,255,255,.18); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #6f84a3; text-align: center; padding: 4px; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; text-align: center; font-size: 13px; color: #6f84a3; }
.footer .bottom a { color: var(--gold-soft); }

/* ---------- 悬浮联系按钮 ---------- */
.floating {
  position: fixed; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 90;
}
.floating .fab {
  width: 50px; height: 50px; border-radius: 50%; background: var(--gold); color: #2a1d00;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  cursor: pointer; transition: transform .2s, background .2s; border: none;
}
.floating .fab:hover { transform: scale(1.08); background: var(--gold-soft); }
.floating .fab.gold-border { background: var(--navy); color: var(--gold); border: 1.5px solid var(--gold); }
.floating .fab.gold-border:hover { background: var(--navy-deep); }

/* ---------- 灯箱 ---------- */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(6,36,74,.92); z-index: 999; align-items: center; justify-content: center; padding: 30px; }
.lightbox img { max-width: 92%; max-height: 88%; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox .close { position: absolute; top: 24px; right: 30px; color: #fff; font-size: 42px; cursor: pointer; line-height: 1; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.1); }
.lightbox .close:hover { background: rgba(255,255,255,.2); }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .values { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .bafc-marquee figure { width: 260px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .trust .container { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 40px; }
  .hero .badges { display: none; }
  .article { padding: 30px 24px; }
}
@media (max-width: 768px) {
  .topbar { font-size: 12px; }
  .topbar .tb-left span, .topbar .tb-right span { margin: 0 6px; }
  .hero { height: 460px; }
  .hero .hero-text h1 { font-size: 30px; }
  .hero .hero-text p { font-size: 15px; }
  .section { padding: 60px 0; }
  .section-title h2 { font-size: 26px; }
  .nav-toggle { display: flex; }
  .nav { position: absolute; top: 80px; left: 0; right: 0; background: #fff; max-height: 0; overflow: hidden; transition: max-height .35s ease; box-shadow: var(--shadow); }
  .nav.open { max-height: 75vh; overflow: auto; }
  .nav > ul { flex-direction: column; }
  .nav > ul > li > a { height: auto; line-height: 1.4; padding: 16px 24px; border-bottom: 1px solid var(--line); }
  .nav > ul > li > a::after { display: none; }
  .submenu { opacity: 1; visibility: visible; transform: none; position: static; box-shadow: none; border-top: none; margin: 0; background: var(--bg); display: none; }
  .nav li.has-sub.open .submenu { display: block; }
  .submenu a { padding-left: 40px; }
  .gallery, .news-grid, .services, .values { grid-template-columns: repeat(2, 1fr); }
  .marquee .client { width: 200px; height: 150px; }
  .bafc-marquee figure { width: 240px; }
  .marquee .client { width: 200px; height: 150px; }
  .bafc-marquee figure { width: 240px; }
  .stats .container { gap: 30px; }
  .stat { flex: 1 1 40%; }
  .news-row { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
  .trust .container { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
}
@media (max-width: 480px) {
  .gallery, .news-grid, .services, .values { grid-template-columns: 1fr; }
  .marquee .client { width: 160px; height: 130px; }
  .bafc-marquee figure { width: 200px; }
  .marquee .client { width: 160px; height: 130px; }
  .bafc-marquee figure { width: 200px; }
  .hero h1 { font-size: 26px; }
  .header .container { height: 64px; }
  .logo .brand { font-size: 15px; }
  .logo .tag { font-size: 12px; letter-spacing: .5px; }
  .nav { top: 64px; }
  .nav > ul > li > a { padding: 14px 18px; }
}