/* 企业官网前台样式：一种主色 + 中性色，系统字体栈，无外部资源 */
:root {
  --primary: #1d4f91;
  --primary-dark: #163c6f;
  --primary-soft: #eaf1fa;
  --text: #1f2937;
  --text-2: #4b5563;
  --text-3: #8a93a0;
  --line: #e5e8ed;
  --bg: #ffffff;
  --bg-muted: #f5f7fa;
  --radius: 6px;
  --container: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
          "Noto Sans CJK SC", "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.75; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { line-height: 1.4; margin: 0; font-weight: 600; color: var(--text); }
p { margin: 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 900px; }
.muted { color: var(--text-3); }
.small { font-size: 13px; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 24px;
  border-radius: var(--radius); font-size: 15px; font-weight: 500; border: 1px solid transparent;
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn-outline:hover { background: var(--primary-soft); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--primary-soft); color: var(--primary-dark); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-block { width: 100%; }

/* 页头 */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; height: 76px; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); flex-shrink: 0; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 8px; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-size: 22px; font-weight: 700;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-size: 19px; letter-spacing: .04em; }
.brand-text small { font-size: 12px; color: var(--text-3); }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { padding: 8px 14px; color: var(--text-2); font-size: 15px; border-radius: var(--radius); }
.main-nav a:hover { color: var(--primary); }
.main-nav a.active { color: var(--primary); font-weight: 600; background: var(--primary-soft); }
.header-phone { display: flex; flex-direction: column; line-height: 1.3; text-align: right; color: var(--text); }
.header-phone span { font-size: 12px; color: var(--text-3); }
.header-phone strong { font-size: 18px; color: var(--primary); letter-spacing: .02em; }
.nav-toggle { display: none; }

/* 首页主视觉 */
.hero { position: relative; overflow: hidden; background: var(--primary-dark); color: #fff; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,30,60,.72) 0%, rgba(10,30,60,.35) 55%, rgba(10,30,60,0) 100%);
}
.hero-inner { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 120px; }
.hero-eyebrow { font-size: 14px; letter-spacing: .12em; opacity: .85; margin-bottom: 16px; }
.hero h1 { color: #fff; font-size: 44px; font-weight: 700; max-width: 640px; letter-spacing: .02em; text-wrap: balance; }
.hero-sub { margin-top: 20px; max-width: 560px; font-size: 17px; line-height: 1.9; opacity: .92; }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

/* 主视觉轮播（2–3 组时） */
.hero-carousel::after { display: none; }
.hero-track { display: grid; }
.hero-slide { grid-area: 1 / 1; position: relative; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease, visibility 0s; }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,30,60,.72) 0%, rgba(10,30,60,.35) 55%, rgba(10,30,60,0) 100%);
}
.hero-slide .hero-inner { padding-bottom: 136px; }
.hero .hero-h { color: #fff; font-size: 44px; font-weight: 700; line-height: 1.4; max-width: 640px; letter-spacing: .02em; text-wrap: balance; }
.hero-dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 28px; display: flex; justify-content: center; gap: 10px; }
.hero-dots button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer;
  transition: width .3s ease, background-color .3s ease;
}
.hero-dots button[aria-current="true"] { width: 28px; border-radius: 5px; background: #fff; }
.hero-dots button:focus-visible, .hero-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero-arrow {
  position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); background: rgba(10,30,60,.25); color: #fff; font-size: 28px; line-height: 40px;
  cursor: pointer; padding: 0; transition: background-color .2s ease;
}
.hero-arrow:hover { background: rgba(10,30,60,.55); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide.is-active, .hero-dots button { transition: none; }
}

/* 区块 */
.section { padding: 80px 0; }
.section-muted { background: var(--bg-muted); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: 30px; }
.section-head h2::after {
  content: ""; display: block; width: 40px; height: 3px; background: var(--primary); margin: 14px auto 0;
}
.section-head p { margin-top: 14px; color: var(--text-2); }
.section-head.left { text-align: left; margin-bottom: 24px; }
.section-head.left h2::after { margin-left: 0; }
.section-head.row { display: flex; justify-content: space-between; align-items: flex-end; text-align: left; }
.section-head.row h2::after { margin-left: 0; }
.link-more { font-size: 15px; white-space: nowrap; }
.center-link { text-align: center; margin-top: 40px; }

.card-grid { display: grid; gap: 24px; }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--primary-soft); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.service-card, .news-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.service-card:hover, .news-card:hover { border-color: #c9d6e8; box-shadow: 0 6px 20px rgba(20,50,90,.08); color: var(--text); }
.service-body, .news-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.service-body h3, .news-body h3 { font-size: 18px; margin: 8px 0 10px; }
.service-body p, .news-body p { color: var(--text-2); font-size: 14.5px; line-height: 1.8; flex: 1; }
.tag {
  align-self: flex-start; font-size: 12px; color: var(--primary); background: var(--primary-soft);
  padding: 1px 10px; border-radius: 999px;
}
.more { margin-top: 16px; font-size: 14px; color: var(--primary); }
.meta { display: flex; gap: 14px; font-size: 13px; color: var(--text-3); }
.news-body h3 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-body p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 数字亮点 */
.stats { background: var(--primary); color: #fff; padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-size: 44px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-num small { font-size: 18px; font-weight: 500; margin-left: 4px; }
.stat-label { margin-top: 6px; font-size: 15px; opacity: .85; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.18); }

/* 首页关于 */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-img img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.about-text p { color: var(--text-2); margin-bottom: 28px; line-height: 1.95; }

/* 行动号召 */
.cta { background: var(--primary-dark); color: #fff; padding: 52px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.cta h2 { color: #fff; font-size: 24px; }
.cta p { margin-top: 8px; opacity: .82; }
.cta-actions { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.cta-phone { color: #fff; font-size: 26px; font-weight: 700; letter-spacing: .02em; }
.cta-phone:hover { color: #fff; }

/* 内页标题 */
.page-head { background: var(--bg-muted); border-bottom: 1px solid var(--line); padding: 44px 0 40px; }
.page-head h1, .page-head .page-title { font-size: 30px; margin-top: 10px; font-weight: 600; line-height: 1.4; color: var(--text); }
.page-head p { margin-top: 10px; color: var(--text-2); max-width: 760px; }
.crumbs { font-size: 13px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--text-3); }
.crumbs a:hover { color: var(--primary); }
.crumbs em { font-style: normal; color: var(--text-2); }

/* 正文排版 */
.prose { font-size: 16px; line-height: 1.9; color: var(--text); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 22px; margin-top: 1.8em; padding-left: 12px; border-left: 3px solid var(--primary); line-height: 1.3; }
.prose h3 { font-size: 18px; margin-top: 1.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 0; }
.prose li + li { margin-top: .4em; }
.prose blockquote {
  margin-left: 0; margin-right: 0; padding: 16px 20px; background: var(--primary-soft);
  border-left: 3px solid var(--primary); color: var(--primary-dark); border-radius: 0 var(--radius) var(--radius) 0;
}
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-muted); font-weight: 600; }
.prose td:first-child { white-space: nowrap; }
.prose img { border-radius: var(--radius); }

/* 关于我们页 */
.about-page { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
.about-side img { border-radius: var(--radius); margin-bottom: 24px; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.side-card + .side-card { margin-top: 20px; }
.side-card h3 { font-size: 16px; margin-bottom: 10px; }
.side-card p { font-size: 14px; color: var(--text-2); margin-bottom: 12px; }
.side-phone { font-size: 22px !important; font-weight: 700; color: var(--primary) !important; margin-bottom: 6px !important; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { border-top: 1px dashed var(--line); }
.side-list li:first-child { border-top: 0; }
.side-list a { display: block; padding: 10px 0; color: var(--text-2); font-size: 14.5px; }
.side-list a:hover { color: var(--primary); }

/* 详情页 */
.detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: start; }
.detail-cover { margin-bottom: 32px; }
.detail-cover img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.detail-actions { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; gap: 12px; flex-wrap: wrap; }
.detail-side { position: sticky; top: 100px; }

/* 新闻列表 */
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li + li { border-top: 1px solid var(--line); }
.news-row { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 28px 0; color: var(--text); }
.news-row .thumb { border-radius: var(--radius); }
.news-row h3 { font-size: 19px; margin: 6px 0 10px; }
.news-row:hover h3 { color: var(--primary); }
.news-row p { color: var(--text-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text-2); }
.pager .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 新闻正文 */
.article-head { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 24px; }
.article-head h1 { font-size: 28px; line-height: 1.45; }
.article-head .meta { margin-top: 14px; }
.article-lead { color: var(--text-2); background: var(--bg-muted); padding: 16px 20px; border-radius: var(--radius); margin-bottom: 28px; line-height: 1.85; }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14.5px; }
.prev-next div:last-child { text-align: right; }
.prev-next span { display: block; color: var(--text-3); font-size: 13px; margin-bottom: 4px; }
.prev-next a { color: var(--text-2); }
.prev-next a:hover { color: var(--primary); }

/* 联系我们 */
.contact-layout { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.contact-info h2, .contact-form h2 { font-size: 22px; margin-bottom: 24px; }
.info-list { margin: 0 0 24px; }
.info-list div { display: grid; grid-template-columns: 88px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list dt { color: var(--text-3); font-size: 14px; }
.info-list dd { margin: 0; font-size: 15px; }
.info-list dd.strong { font-size: 20px; font-weight: 700; color: var(--primary); line-height: 1.4; }
.map-placeholder { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-placeholder img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.map-pin {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -100%); background: var(--primary); color: #fff;
  font-size: 13px; padding: 4px 12px; border-radius: 4px; white-space: nowrap;
}
.map-pin::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  border: 6px solid transparent; border-bottom: 0; border-top-color: var(--primary);
}
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 6px; }
.field em { color: #c0392b; font-style: normal; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid #d5dae1;
  border-radius: var(--radius); background: #fff; color: var(--text);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field textarea { resize: vertical; min-height: 140px; }
.err { display: block; color: #c0392b; font-size: 13px; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14.5px; }
.alert-ok { background: #ecf7ef; color: #1e6b37; border: 1px solid #c8e6d0; }
.alert-error { background: #fdf0ee; color: #a5361f; border: 1px solid #f2cfc7; }

.empty { color: var(--text-3); text-align: center; padding: 40px 0; }
.error-box { text-align: center; padding: 40px 0; }
.error-code { font-size: 64px; font-weight: 700; color: var(--primary); line-height: 1; }
.error-box h1 { margin: 16px 0 10px; }
.error-box p { color: var(--text-2); margin-bottom: 28px; }

/* 页脚 */
.site-footer { background: #111c2b; color: #aab4c2; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 48px; padding-top: 56px; padding-bottom: 44px; }
.footer-brand { color: #fff; font-size: 18px; font-weight: 600; }
.footer-slogan { margin-top: 10px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li + li, .footer-contact li + li { margin-top: 8px; }
.footer-links a { color: #aab4c2; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: grid; grid-template-columns: 44px 1fr; }
.footer-contact span { color: #6f7b8c; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: 13px; color: #7d8898; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* 平板 */
@media (max-width: 1080px) {
  .header-phone { display: none; }
  .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .about-page { grid-template-columns: 260px 1fr; gap: 40px; }
  .detail-layout { grid-template-columns: 1fr 260px; gap: 40px; }
}

/* 手机 */
@media (max-width: 760px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .header-inner { height: 60px; gap: 12px; }
  .brand-mark { width: 36px; height: 36px; font-size: 19px; }
  .brand-text strong { font-size: 17px; }
  .brand-text small { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto;
    width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 0 10px;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 60px; background: #fff; flex-direction: column;
    border-bottom: 1px solid var(--line); padding: 8px 16px 16px; gap: 0; box-shadow: 0 8px 16px rgba(0,0,0,.06);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a.active { background: none; }

  .hero-inner { padding-top: 64px; padding-bottom: 64px; }
  .hero::after { background: linear-gradient(180deg, rgba(10,30,60,.55), rgba(10,30,60,.72)); }
  .hero h1, .hero .hero-h { font-size: 28px; }
  .hero-slide .hero-inner { padding-bottom: 88px; }
  .hero-arrow { display: none; }
  .hero-dots { bottom: 22px; }
  .hero-sub { font-size: 15px; margin-top: 14px; }
  .hero-actions { margin-top: 26px; }
  .hero-actions .btn { flex: 1; padding: 0 12px; }

  .section { padding: 52px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head h2 { font-size: 24px; }
  .card-grid.cols-4, .card-grid.cols-3 { grid-template-columns: 1fr; gap: 16px; }
  .card-grid.cols-4 .service-card { flex-direction: row; }
  .card-grid.cols-4 .service-card .thumb { width: 116px; flex-shrink: 0; aspect-ratio: auto; }
  .card-grid.cols-4 .service-body { padding: 14px 16px; }
  .card-grid.cols-4 .service-body h3 { font-size: 16px; margin: 6px 0 4px; }
  .card-grid.cols-4 .service-body p { font-size: 13.5px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card-grid.cols-4 .more { display: none; }

  .stats { padding: 36px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .stat + .stat { border-left: 0; }
  .stat-num { font-size: 34px; }
  .about-split, .about-page, .detail-layout, .contact-layout { grid-template-columns: 1fr; gap: 28px; }
  .detail-side { position: static; }
  .section-head.row { align-items: flex-end; }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .cta h2 { font-size: 20px; }
  .cta-actions { width: 100%; justify-content: space-between; }
  .cta-phone { font-size: 22px; }
  .page-head { padding: 28px 0 26px; }
  .page-head h1, .page-head .page-title { font-size: 24px; }
  .news-row { grid-template-columns: 112px 1fr; gap: 14px; padding: 20px 0; }
  .news-row .thumb { aspect-ratio: 4 / 3; }
  .news-row h3 { font-size: 16px; margin: 2px 0 6px; }
  .news-row p { font-size: 13.5px; }
  .article-head h1 { font-size: 22px; }
  .prev-next { grid-template-columns: 1fr; }
  .prev-next div:last-child { text-align: left; }
  .form-row.two { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 22px 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 32px; }
  .prose table { font-size: 14px; }
  .prose th, .prose td { padding: 8px 10px; }
}
