:root {
  --navy: #0a1a2f;
  --navy-2: #0f2440;
  --ink: #1d2733;
  --muted: #5f6b7a;
  --line: #e6eaf0;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --green: #078f3b;
  --lime: #8dc21f;
  --sky: #5cc3e8;
  --blue: #0a3f8a;
  --grad: linear-gradient(120deg, var(--lime), var(--green) 45%, var(--sky));
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 36, 64, .08);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.75; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer;
  font: 500 15px/1 var(--font); color: #fff; background: var(--grad);
  box-shadow: 0 8px 20px rgba(7, 143, 59, .25); transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(7, 143, 59, .32); }
.btn--ghost { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .45); box-shadow: none; backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .16); box-shadow: none; }
.btn--small { height: 38px; padding: 0 20px; font-size: 14px; }

/* 导航 */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav__inner { display: flex; align-items: center; height: 72px; gap: 32px; }
.nav__brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 19px; letter-spacing: 2px; }
.nav__brand img { width: 36px; height: auto; }
.nav__brand small { display: block; font-size: 9px; font-weight: 400; letter-spacing: 3px; opacity: .7; line-height: 1; margin-top: 2px; }
.nav__brand span { line-height: 1.2; }
.nav__links { display: flex; gap: 34px; margin-left: auto; }
.nav__links a { color: rgba(255, 255, 255, .85); font-size: 15px; position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--grad); transition: width .25s; }
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { width: 100%; }
.nav__toggle { display: none; }

.nav.is-scrolled { background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav.is-scrolled .nav__brand { color: var(--ink); }
.nav.is-scrolled .nav__links a { color: var(--muted); }
.nav.is-scrolled .nav__links a:hover { color: var(--ink); }

/* 首屏 */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--navy); }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center 60%; transform: scale(1.05); animation: heroZoom 18s ease-out forwards; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 26, 47, .94) 0%, rgba(10, 26, 47, .78) 45%, rgba(10, 26, 47, .45) 100%); }
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(92, 195, 232, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(92, 195, 232, .07) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(90deg, #000 0%, transparent 70%); -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%); }
.hero__content { position: relative; padding: 120px 0 80px; }
.hero__eyebrow { font-size: 13px; letter-spacing: 4px; color: var(--sky); margin-bottom: 18px; }
.hero h1 { font-size: clamp(32px, 5.2vw, 60px); font-weight: 700; letter-spacing: 4px; line-height: 1.25; }
.hero h1::after { content: ""; display: block; width: 72px; height: 4px; border-radius: 2px; background: var(--grad); margin: 28px 0; }
.hero__lead { font-size: clamp(15px, 1.6vw, 18px); color: rgba(255, 255, 255, .78); max-width: 640px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.hero__scroll { position: absolute; left: 50%; bottom: 32px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scrollDot 1.8s infinite; }
@keyframes heroZoom { to { transform: scale(1); } }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* 通用区块 */
.section { padding: 110px 0; }
.section--alt { background: var(--bg-alt); }
.section__eyebrow { font-size: 13px; letter-spacing: 4px; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section__title { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; letter-spacing: 2px; margin: 6px 0 22px; }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section__desc { color: var(--muted); }

/* 公司简介 */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.about__text > p { color: var(--muted); margin-bottom: 14px; text-align: justify; }
.stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.stats strong { display: block; font-size: 24px; color: var(--green); letter-spacing: 1px; }
.stats span { font-size: 13px; color: var(--muted); }
.about__media { position: relative; }
.about__media > img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }
.about__media::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border-radius: var(--radius); background: var(--grad); opacity: .15; z-index: -1; }

/* 业务卡片 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { position: relative; padding: 36px 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s, box-shadow .3s, border-color .3s; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; color: var(--green); background: linear-gradient(135deg, rgba(141, 194, 31, .16), rgba(92, 195, 232, .16)); }
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--muted); }

/* 公司环境 */
/* 左半：前台；右上：荣誉墙；右下：两间会议室 */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 260px 260px; gap: 18px; }
.gallery__item { position: relative; border-radius: var(--radius); overflow: hidden; }
.gallery__item--main { grid-column: 1 / 3; grid-row: 1 / 3; }
.gallery__item--top { grid-column: 3 / 5; grid-row: 1; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery__item:hover img { transform: scale(1.06); }

/* 联系我们 */
.contact { position: relative; padding: 110px 0; color: #fff; background: radial-gradient(1000px 500px at 85% 0%, rgba(92, 195, 232, .18), transparent 60%), radial-gradient(800px 400px at 0% 100%, rgba(141, 194, 31, .14), transparent 60%), var(--navy); }
.section__head--light .section__title { color: #fff; }
.contact__layout { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; align-items: stretch; }
.contact__grid { display: grid; gap: 14px; }
.contact__item { display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; align-items: center; padding: 20px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); transition: background .3s, border-color .3s; }
.contact__item:hover { background: rgba(255, 255, 255, .07); border-color: rgba(92, 195, 232, .4); }
.contact__icon { grid-row: 1 / 3; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; }
.contact__icon svg { width: 24px; height: 24px; }
.contact__item h3 { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .6); }
.contact__item p { font-size: 16.5px; line-height: 1.6; }

/* 高德地图 */
.map { position: relative; min-height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); background: linear-gradient(rgba(92, 195, 232, .08) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, rgba(92, 195, 232, .08) 1px, transparent 1px) 0 0 / 40px 40px, radial-gradient(circle at 50% 45%, rgba(92, 195, 232, .16), transparent 60%), var(--navy-2); }
.map__canvas { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.map.is-loaded .map__canvas { opacity: 1; }
.map.is-loaded .map__fallback { display: none; }
.map__fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px; text-align: center; }
.map__fallback strong { font-size: 18px; letter-spacing: 1px; }
.map__fallback span { color: rgba(255, 255, 255, .6); font-size: 14px; }
.map__pin { position: relative; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; }
.map__pin svg { width: 30px; height: 30px; }
.map__pin::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--sky); animation: pulse 2s infinite; }
@keyframes pulse { to { transform: scale(1.9); opacity: 0; } }
.map__open { position: absolute; right: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 13.5px; color: #fff; background: rgba(10, 26, 47, .75); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(6px); transition: background .2s, border-color .2s; }
.map__open:hover { background: rgba(10, 26, 47, .9); border-color: var(--sky); }
.map__open svg { width: 15px; height: 15px; }
.map__marker { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--ink); background: #fff; border-radius: 999px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); position: relative; }
.map__marker::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #fff; }
.map__marker img { width: 26px; height: 26px; object-fit: contain; }
.contact__item a { border-bottom: 1px dashed rgba(255, 255, 255, .4); }
.contact__item a:hover { color: var(--sky); border-color: var(--sky); }

/* 页脚 */
.footer { background: #071322; color: rgba(255, 255, 255, .55); font-size: 13.5px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer__brand { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .85); }
.footer__brand img { width: 26px; }
.footer a:hover { color: #fff; }

/* 弹窗 */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(7, 19, 34, .55); backdrop-filter: blur(4px); animation: fadeIn .2s; }
.modal__box { position: relative; width: min(400px, 100%); padding: 40px 32px 32px; text-align: center; background: #fff; border-radius: 18px; box-shadow: 0 30px 60px rgba(7, 19, 34, .3); animation: popIn .25s cubic-bezier(.2, .9, .3, 1.2); }
.modal__icon { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; color: var(--green); background: linear-gradient(135deg, rgba(141, 194, 31, .18), rgba(92, 195, 232, .18)); }
.modal__icon svg { width: 30px; height: 30px; }
.modal__box h3 { font-size: 20px; margin-bottom: 8px; }
.modal__box p { color: var(--muted); font-size: 14.5px; margin-bottom: 26px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.9) translateY(10px); } }

/* 滚动出现 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* 响应式 */
@media (max-width: 1024px) {
  .about { gap: 48px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact__layout { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
  .map { min-height: 360px; }
}
@media (max-width: 820px) {
  .nav__cta { display: none; }
  .nav__toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; margin-left: auto; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; }
  .nav__toggle span { display: block; height: 2px; width: 22px; margin: 0 auto; background: #fff; transition: transform .25s; }
  .nav.is-scrolled .nav__toggle span, .nav.is-open .nav__toggle span { background: var(--ink); }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__links { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 20px 16px; background: #fff; box-shadow: 0 12px 24px rgba(15, 36, 64, .1); display: none; }
  .nav.is-open { background: #fff; }
  .nav.is-open .nav__brand { color: var(--ink); }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a, .nav.is-scrolled .nav__links a { color: var(--ink); padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .section, .contact { padding: 80px 0; }
  .about { grid-template-columns: 1fr; }
  .about__media::before { inset: 16px -10px -16px 10px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 200px 160px; gap: 12px; }
  .gallery__item--main { grid-column: 1 / 3; grid-row: 1; }
  .gallery__item--top { grid-column: 1 / 3; grid-row: 2; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .cards, .contact__grid { grid-template-columns: 1fr; }
  .map { min-height: 300px; }
  .stats strong { font-size: 19px; }
  .hero h1 { letter-spacing: 2px; }
  .hero__eyebrow { font-size: 11px; letter-spacing: 2px; }
  .footer__inner { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
