/* ==========================================================================
   GXGZS 官网样式（主题色由后台注入 CSS 变量）
   ========================================================================== */
:root {
  --primary: #4f46e5;
  --accent: #06b6d4;
  --dark: #0b1220;
  --radius: 18px;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e7e9f2;
  --soft: #f6f7fb;
  --white: #ffffff;
  --container: 1160px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 6px 18px rgba(15, 23, 42, .05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, textarea { font: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section:nth-of-type(even) { background: var(--soft); }

/* ------------------------------ 按钮 ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: .22s ease; white-space: nowrap;
}
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, var(--accent)));
  color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 28%, transparent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px color-mix(in srgb, var(--primary) 38%, transparent); }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .5); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .26); }
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }

/* ------------------------------ 顶部导航 ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 24px rgba(15, 23, 42, .07); border-bottom-color: var(--line); background: rgba(255, 255, 255, .94); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 17px; letter-spacing: .04em; }
.brand-text i { font-style: normal; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.brand-light .brand-text b, .brand-light .brand-text i { color: #fff; }

.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a {
  position: relative; padding: 9px 14px; border-radius: 9px; font-size: 15px; color: var(--ink-2);
  transition: color .18s ease, background .18s ease;
}
.nav a:hover { color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, transparent); }
.nav a.active { color: var(--primary); font-weight: 600; }
.nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, var(--primary), var(--accent));
}
.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; padding: 11px 10px; }
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink); margin: 4px 0; transition: .2s; }

/* ------------------------------ Hero ------------------------------ */
.hero { position: relative; overflow: hidden; background: #101a30; color: #fff; isolation: isolate; }
.hero.has-image { background-image: var(--hero-img); background-size: cover; background-position: center; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 15% 10%, rgba(10, 16, 32, .15) 0%, rgba(6, 10, 22, .92) 78%),
              linear-gradient(120deg, rgba(8, 13, 28, .9), rgba(8, 13, 28, .55));
}
.hero-inner { position: relative; padding: 132px 24px 142px; max-width: 860px; margin: 0 auto; }
.hero-center .hero-inner { text-align: center; max-width: 900px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .24);
  font-size: 13px; letter-spacing: .06em; color: rgba(255, 255, 255, .92); backdrop-filter: blur(6px);
}
.hero h1 { font-size: clamp(34px, 5.4vw, 62px); font-weight: 800; letter-spacing: -0.02em; margin-top: 22px; }
.hero-lead { margin-top: 22px; font-size: clamp(16px, 1.6vw, 19px); color: rgba(255, 255, 255, .82); max-width: 640px; }
.hero-center .hero-lead { margin-left: auto; margin-right: auto; }
.hero-actions { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-center .hero-actions { justify-content: center; }
.hero-inner > * { animation: rise .7s cubic-bezier(.22, 1, .36, 1) both; }
.hero-inner > *:nth-child(2) { animation-delay: .06s; }
.hero-inner > *:nth-child(3) { animation-delay: .12s; }
.hero-inner > *:nth-child(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ------------------------------ 内页头部 ------------------------------ */
.page-head {
  position: relative; color: #fff; background: #131c31 center/cover no-repeat;
  padding: 96px 0 84px; overflow: hidden;
}
.page-head-shade {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(8, 13, 28, .93), rgba(10, 16, 34, .62)),
              radial-gradient(90% 120% at 85% 0%, color-mix(in srgb, var(--primary) 55%, transparent), transparent 60%);
}
.page-head-inner { position: relative; max-width: 780px; }
.page-head h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.page-head p { margin-top: 16px; color: rgba(255, 255, 255, .8); font-size: 17px; }

/* ------------------------------ 通用区块标题 ------------------------------ */
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* ------------------------------ 数据条 ------------------------------ */
.stats { background: var(--dark); color: #fff; padding: 68px 0; }
.stats .section-head h2 { color: #fff; }
.stats .section-head p { color: rgba(255, 255, 255, .66); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.stat { padding: 16px 10px; border-right: 1px solid rgba(255, 255, 255, .12); }
.stat:last-child { border-right: 0; }
.stat-value { display: flex; align-items: baseline; justify-content: center; gap: 3px; font-weight: 800; letter-spacing: -0.03em; }
.stat-num { font-size: clamp(34px, 4.4vw, 52px); background: linear-gradient(120deg, #fff, color-mix(in srgb, var(--accent) 80%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-suffix { font-size: 20px; color: color-mix(in srgb, var(--accent) 85%, #fff); font-weight: 700; }
.stat-label { margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, .7); letter-spacing: .04em; }

/* ------------------------------ 卡片 ------------------------------ */
.card-grid { display: grid; gap: 22px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 30%, var(--line)); }
.card-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-weight: 800; font-size: 17px; color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, #fff); border: 1px solid color-mix(in srgb, var(--primary) 18%, #fff);
  margin-bottom: 18px;
}
.card h3 { font-size: 19px; font-weight: 700; }
.card p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.75; }

/* ------------------------------ 图文分栏 ------------------------------ */
.split-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split-right .split-inner { grid-template-columns: 1fr 1.05fr; }
.split-right .split-media { order: 2; }
.split-media img, .media-fallback {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, .16);
}
.media-fallback { background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 18%, #eef1ff), color-mix(in srgb, var(--accent) 18%, #eef1ff)); }
.split-body h2 { font-size: clamp(25px, 3vw, 36px); font-weight: 800; margin-bottom: 18px; }
.split-body .btn { margin-top: 26px; }

/* ------------------------------ 富文本 ------------------------------ */
.prose { color: var(--ink-2); font-size: 16.5px; line-height: 1.9; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 26px; font-weight: 750; color: var(--ink); margin-top: 1.9em; }
.prose h3 { font-size: 20px; font-weight: 700; color: var(--ink); margin-top: 1.6em; }
.prose a { color: var(--primary); border-bottom: 1px solid color-mix(in srgb, var(--primary) 35%, transparent); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 0; padding: 6px 0 6px 20px; border-left: 3px solid var(--primary); color: var(--muted); }
.prose img { border-radius: 14px; }
.prose-section .container { max-width: 820px; }
.prose-section .prose { padding: 4px 0; }

/* ------------------------------ 案例 ------------------------------ */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shot { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.shot img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.shot:hover img { transform: scale(1.05); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 18px 14px; color: #fff; font-size: 14px;
  background: linear-gradient(transparent, rgba(8, 12, 24, .78));
}

/* ------------------------------ 新闻 ------------------------------ */
.news-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.news-item {
  display: flex; align-items: center; gap: 26px; padding: 26px 6px; border-bottom: 1px solid var(--line);
  transition: background .2s ease, padding .2s ease;
}
a.news-item:hover { background: color-mix(in srgb, var(--primary) 4%, transparent); padding-left: 16px; }
.news-thumb { flex: 0 0 132px; }
.news-thumb img { width: 132px; height: 92px; object-fit: cover; border-radius: 12px; }
.news-main { flex: 1; min-width: 0; }
.news-main time { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.news-main h3 { margin-top: 6px; font-size: 18.5px; font-weight: 700; }
.news-main p { margin-top: 7px; color: var(--muted); font-size: 14.5px; }
.news-arrow { color: var(--primary); font-size: 20px; opacity: .55; transition: .2s; }
a.news-item:hover .news-arrow { opacity: 1; transform: translateX(4px); }

/* ------------------------------ CTA ------------------------------ */
.cta { position: relative; color: #fff; background: var(--dark) center/cover no-repeat; overflow: hidden; padding: 84px 0; }
.cta-shade {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(9, 14, 30, .95) 15%, rgba(9, 14, 30, .55) 65%, color-mix(in srgb, var(--primary) 45%, transparent));
}
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; }
.cta p { margin-top: 12px; color: rgba(255, 255, 255, .78); font-size: 17px; }

/* ------------------------------ 联系 ------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info h2 { font-size: clamp(25px, 3vw, 34px); font-weight: 800; }
.contact-sub { margin-top: 12px; color: var(--muted); }
.contact-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ci {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--primary) 9%, #fff); color: var(--primary); font-size: 16px;
}
.contact-list b { display: block; font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.contact-list a, .contact-list span { font-size: 16px; color: var(--ink); word-break: break-all; }
.contact-list a:hover { color: var(--primary); }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  padding: 34px; box-shadow: var(--shadow-sm); display: grid; gap: 16px;
}
.contact-form h3 { font-size: 20px; font-weight: 700; }
.contact-form label { display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfe;
  font-size: 15px; color: var(--ink); transition: border-color .18s, box-shadow .18s; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent); background: #fff;
}
.contact-form .btn { justify-self: start; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: 13px; color: var(--muted); }
.form-done { font-size: 14px; color: #059669; font-weight: 600; }
.contact-form.is-error .btn { background: #dc2626; }

/* ------------------------------ 页脚 ------------------------------ */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .72); padding: 66px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 48px; }
.footer-brand p { margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, .55); max-width: 320px; }
.footer-col h4 { font-size: 14px; color: #fff; letter-spacing: .06em; margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; font-size: 14.5px; color: rgba(255, 255, 255, .66); margin-bottom: 10px; transition: color .18s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 52px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255, 255, 255, .45);
}
.footer-meta { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-meta a:hover { color: #fff; }
.admin-link { opacity: .5; }
.admin-link:hover { opacity: 1; }

/* ------------------------------ 404 ------------------------------ */
.notfound { padding: 120px 0 140px; text-align: center; }
.nf-code {
  font-size: clamp(90px, 16vw, 160px); font-weight: 900; letter-spacing: -0.05em; line-height: 1;
  background: linear-gradient(120deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound h1 { margin-top: 8px; font-size: 30px; }
.notfound p { margin: 14px 0 32px; color: var(--muted); }

/* ------------------------------ 预览条 ------------------------------ */
.is-preview { padding-top: 0; }
.preview-bar {
  position: sticky; top: 0; z-index: 100; background: #f59e0b; color: #422006; text-align: center;
  font-size: 13.5px; padding: 9px 16px; font-weight: 600;
}
.preview-bar a { text-decoration: underline; }

/* ------------------------------ 响应式 ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-inner > * { animation: none !important; }
  .shot img, .btn { transition: none !important; }
}

@media (max-width: 1024px) {
  .section { padding: 76px 0; }
  .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .split-inner, .split-right .split-inner { grid-template-columns: 1fr; gap: 36px; }
  .split-right .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .header-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 74px; left: 0; right: 0; margin: 0; padding: 12px 18px 18px;
    background: rgba(255, 255, 255, .98); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(15, 23, 42, .1);
    flex-direction: column; align-items: stretch; gap: 4px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav a.active::after { display: none; }
  .hero-inner { padding: 92px 24px 100px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat:nth-child(2) { border-right: 0; }
  .card-grid.cols-3, .card-grid.cols-2 { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 620px) {
  .section { padding: 60px 0; }
  .card-grid.cols-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .news-thumb { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-form { padding: 24px; }
  .page-head { padding: 66px 0 56px; }
}
