/* ============================================================
   深圳市湖工大包装技术研究院 — 前台设计系统
   主题色取自官方 LOGO 印章主色：#840090（紫）
   ============================================================ */

:root {
  --brand: #840090;
  --brand-700: #6b0075;
  --brand-900: #3f0046;
  --brand-300: #b25cbd;
  --brand-100: #f3e6f5;
  --brand-50: #fbf5fc;
  --accent: #c9a227;
  --accent-soft: #fbf4de;
  --ink: #1c1420;
  --body: #4b4553;
  --muted: #8a8393;
  --line: #ebe6ee;
  --bg-soft: #f8f6fa;
  --radius-lg: 18px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(28, 20, 32, .05);
  --shadow: 0 14px 34px rgba(28, 20, 32, .09);
  --shadow-lg: 0 26px 60px rgba(63, 0, 70, .16);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --container: 1380px;
  --bs-primary: var(--brand);
}

* {
  scrollbar-color: var(--brand-300) #eee;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--body);
  background: #fff;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 布局容器 1380 ---------- */
site-container,
.site-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.container, .container-fluid {
  max-width: var(--container);
}

@media (min-width: 1450px) {
  .container {
    max-width: var(--container);
    width: var(--container);
    padding-inline: 0;
  }
}

@media (max-width: 1449px) {
  .container {
    width: 100%;
    padding-inline: 22px;
  }
}

img {
  max-width: 100%;
}

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

a:hover {
  color: var(--brand-700);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .2px;
}

::selection {
  background: var(--brand);
  color: #fff;
}

/* ---------- 通用工具 ---------- */
.text-brand { color: var(--brand) !important; }
.text-muted-2 { color: var(--muted) !important; }
.bg-soft { background: var(--bg-soft); }
.fw-7 { font-weight: 700; }
.nowrap { white-space: nowrap; }

.section {
  padding: 84px 0;
}

.section-tight { padding: 60px 0; }

/* 版块底色：浅灰与白色相间，用纯色而不是渐变，避免相邻版块在交界处糊成一片 */
.section-soft {
  background: var(--bg-soft);
}

/* 版块标题 */
.sec-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 44px;
}

.sec-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

.sec-head .eyebrow::before,
.sec-head .eyebrow::after {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--brand);
  display: inline-block;
}

.sec-head h2 {
  font-size: 34px;
  margin: 0;
}

.sec-head p {
  margin: 14px auto 0;
  color: var(--muted);
  max-width: 760px;
  font-size: 15px;
}

.sec-head .sec-more {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}

.sec-head .sec-more i { transition: transform .25s var(--ease); }
.sec-head .sec-more:hover { border-bottom-color: var(--brand); }
.sec-head .sec-more:hover i { transform: translateX(5px); }

@media (max-width: 767px) {
  .section { padding: 54px 0; }
  .sec-head { margin-bottom: 28px; }
  .sec-head h2 { font-size: 24px; }
  .sec-head .eyebrow::after { width: 18px; }
  .sec-head .eyebrow::before { width: 18px; }
}

/* ---------- 按钮 ---------- */
.btn-brand {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--brand-700);
  --bs-btn-hover-border-color: var(--brand-700);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--brand-900);
  --bs-btn-font-weight: 600;
  padding: .72rem 1.7rem;
  border-radius: 999px;
  letter-spacing: .4px;
}

.btn-brand-ghost {
  border: 1.5px solid rgba(255, 255, 255, .65);
  color: #fff;
  border-radius: 999px;
  padding: .72rem 1.7rem;
  font-weight: 600;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(4px);
  transition: all .25s var(--ease);
}

.btn-brand-ghost:hover {
  background: #fff;
  color: var(--brand);
  border-color: #fff;
}

.btn-outline-brand {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-hover-color: #fff;
  border-radius: 999px;
  padding: .72rem 1.7rem;
  font-weight: 600;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--brand);
}

/* ---------- 主导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease);
}

.site-header.is-stuck { box-shadow: 0 8px 26px rgba(28, 20, 32, .09); }

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 86px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.brand-logo img {
  height: 52px;
  width: auto;
  display: block;
  border-radius: 50%;
  transition: height .3s var(--ease), padding .3s var(--ease), background-color .3s var(--ease);
}

.brand-logo .bt { display: block; }

.brand-logo .bt strong {
  display: block;
  font-size: 20px;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: .5px;
  white-space: nowrap;
}

.brand-logo .bt span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 2px;
}

@media (max-width: 575px) {
  .brand-logo img { height: 40px; }
  .brand-logo .bt strong { font-size: 16.5px; }
  .brand-logo .bt span { display: none; }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav > li {
  flex: none;
}

.main-nav > li > a {
  position: relative;
  display: block;
  padding: 10px 13px;
  font-size: 16px;
  font-weight: 600;
  color: #3b3444;
  white-space: nowrap;
  border-radius: 10px;
  transition: color .25s var(--ease), background-color .25s var(--ease);
}

.main-nav > li > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--brand);
  transform: translateX(-50%);
  transition: width .28s var(--ease);
}

.main-nav > li > a:hover { color: var(--brand); background: var(--brand-50); }
.main-nav > li > a:hover::after,
.main-nav > li > a.is-active::after { width: 24px; }
.main-nav > li > a.is-active { color: var(--brand); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.header-search {
  display: flex;
  align-items: center;
  height: 40px;
  padding-left: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  transition: all .22s var(--ease);
}

.header-search input {
  width: 196px;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0 10px;
  font-size: 14px;
  color: var(--body);
  outline: none;
}

.header-search input::placeholder { color: #a79fb0; }

.header-search button {
  flex: none;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--brand);
  font-size: 15px;
  cursor: pointer;
  transition: all .22s var(--ease);
}

.header-search button:hover { background: var(--brand); color: #fff; }
.header-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(132, 0, 144, .1); }

@media (max-width: 1199px) { .header-search input { width: 146px; } }
@media (max-width: 767px) {
  .header-search { height: 36px; }
  .header-search input { display: none; }
  .header-search button { width: 30px; height: 30px; }
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
}

/* 1386 = 1380 主框架宽度；窄于此值导航会贴到窗口右缘，直接收成汉堡菜单 */
@media (max-width: 1386px) {
  .nav-shell { min-height: 74px; }
  .main-nav {
    position: fixed;
    inset: 74px 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 22px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: all .26s var(--ease);
    max-height: calc(100vh - 74px);
    overflow: auto;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav > li > a { padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav > li > a::after { display: none; }
  .nav-toggle { display: grid; place-items: center; }
}

/* ---------- 悬浮页头：默认压在 Banner 上，滚动后恢复实底 ---------- */
.brand-logo .bt strong,
.brand-logo .bt span,
.header-search,
.nav-toggle {
  transition: color .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease);
}

.has-hero-top .site-header {
  position: fixed;
  inset: 0 0 auto 0;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.has-hero-top .site-header.is-stuck {
  background: rgba(255, 255, 255, .96);
  border-bottom-color: var(--line);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 8px 26px rgba(28, 20, 32, .09);
}

/* 悬浮态页头不绘制背景：压暗交给 Banner 顶部遮罩，避免底边出现一条接缝 */
.has-hero-top .site-header:not(.is-stuck) { background-image: none; }

.has-hero-top .site-header:not(.is-stuck) .brand-logo .bt strong { color: #fff; }
.has-hero-top .site-header:not(.is-stuck) .brand-logo .bt span { color: rgba(255, 255, 255, .72); }
.has-hero-top .site-header:not(.is-stuck) .brand-logo img {
  padding: 4px;
  background: rgba(255, 255, 255, .95);
}
.has-hero-top .site-header:not(.is-stuck) .main-nav > li > a { color: rgba(255, 255, 255, .92); }
.has-hero-top .site-header:not(.is-stuck) .main-nav > li > a:hover { color: #fff; background: rgba(255, 255, 255, .16); }
.has-hero-top .site-header:not(.is-stuck) .main-nav > li > a.is-active { color: #fff; }
.has-hero-top .site-header:not(.is-stuck) .main-nav > li > a::after { background: #fff; }
.has-hero-top .site-header:not(.is-stuck) .header-search {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .38);
}
.has-hero-top .site-header:not(.is-stuck) .header-search input { color: #fff; }
.has-hero-top .site-header:not(.is-stuck) .header-search input::placeholder { color: rgba(255, 255, 255, .72); }
.has-hero-top .site-header:not(.is-stuck) .header-search button { color: #fff; }
.has-hero-top .site-header:not(.is-stuck) .header-search button:hover { background: rgba(255, 255, 255, .24); color: #fff; }
/* 输入时转成白底，反白态下也能看清自己打的字 */
.has-hero-top .site-header:not(.is-stuck) .header-search:focus-within {
  background: rgba(255, 255, 255, .95);
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .22);
}
.has-hero-top .site-header:not(.is-stuck) .header-search:focus-within input { color: var(--body); }
.has-hero-top .site-header:not(.is-stuck) .header-search:focus-within input::placeholder { color: #a79fb0; }
.has-hero-top .site-header:not(.is-stuck) .header-search:focus-within button { color: var(--brand); }
.has-hero-top .site-header:not(.is-stuck) .header-search:focus-within button:hover { background: var(--brand); color: #fff; }
.has-hero-top .site-header:not(.is-stuck) .nav-toggle {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .38);
  color: #fff;
}

/* 折叠菜单展开时面板是白底，链接要回到深色 */
@media (max-width: 1386px) {
  .has-hero-top .site-header:not(.is-stuck) .main-nav.open > li > a,
  .has-hero-top .site-header:not(.is-stuck) .main-nav.open > li > a.is-active { color: #3b3444; }
  .has-hero-top .site-header:not(.is-stuck) .main-nav.open > li > a:hover { color: var(--brand); background: var(--brand-50); }
}

/* Banner 内的文字为页头让出空间 */
.has-hero-top .hero-copy { padding-top: 86px; }
.has-hero-top .page-hero .ph-in { padding-top: 140px; padding-bottom: 62px; }

@media (max-width: 1386px) {
  .has-hero-top .hero-copy { padding-top: 74px; }
  .has-hero-top .page-hero .ph-in { padding-top: 116px; padding-bottom: 46px; }
}

/* 顶部压暗画在 Banner 上（连续渐变，末端归零），反白导航才有对比 */
.has-hero-top .hero::before,
.has-hero-top .page-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  height: 320px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(34, 2, 40, .52) 0%, rgba(34, 2, 40, .26) 46%, rgba(34, 2, 40, 0) 100%);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: var(--brand-900);
}

.hero .carousel, .hero .carousel-inner, .hero-slide { height: min(900px, 94vh); min-height: 520px; }

@media (max-width: 1199px) {
  .hero .carousel, .hero .carousel-inner, .hero-slide { height: min(640px, 86vh); min-height: 440px; }
}

.hero-slide {
  position: relative;
  background-size: cover;
  background-position: center;
}

/* 首屏文案锚定在 1380 容器内，而不是整幅幻灯片 */
.hero .container {
  position: relative;
  height: 100%;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(34, 2, 40, .74) 0%, rgba(34, 2, 40, .4) 44%, rgba(34, 2, 40, .06) 80%),
    linear-gradient(180deg, rgba(34, 2, 40, .35) 0%, transparent 40%, rgba(34, 2, 40, .3) 100%);
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 3;
}

.hero-copy .inner {
  max-width: 880px;
  color: #fff;
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  margin-bottom: 18px;
}

.hero-copy .eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent);
}

.hero-copy h1 {
  color: #fff;
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.22;
  margin: 0 0 18px;
  text-wrap: balance;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .35);
}

.hero-copy .sub {
  font-size: clamp(15px, 1.2vw, 18px);
  color: rgba(255, 255, 255, .86);
  max-width: 640px;
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-actions .tel-line {
  color: #fff;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 8px;
}

.hero-actions .tel-line strong { font-size: 21px; letter-spacing: .5px; }

.hero-indicators { position: absolute; bottom: 26px !important; }

.hero .carousel-indicators [data-bs-target] {
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .5);
  border: 0;
}

.hero .carousel-indicators .active { background: var(--accent); }

/* 首屏数据玻璃条 */
.hero-stats {
  position: relative;
  z-index: 4;
  margin-top: -56px;
}

.hero-stats .glass {
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.hero-stats .gs {
  padding: 26px 24px;
  text-align: center;
  border-right: 1px solid var(--line);
  transition: background .25s var(--ease);
}

.hero-stats .gs:last-child { border-right: 0; }
.hero-stats .gs:hover { background: var(--brand-50); }

.hero-stats .gs .n {
  font-size: 34px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
  font-family: "DIN Alternate", "Bahnschrift", sans-serif;
}

.hero-stats .gs .n span { font-size: 16px; margin-left: 2px; }
.hero-stats .gs .l { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 6px; }
.hero-stats .gs .d { font-size: 12.5px; color: var(--muted); }

@media (max-width: 991px) {
  .hero .carousel, .hero .carousel-inner, .hero-slide { height: auto; min-height: 0; }
  .hero-slide { padding: 76px 0 92px; }
  .hero-slide::after { background: linear-gradient(90deg, rgba(34, 2, 40, .86), rgba(34, 2, 40, .5)); }
  .hero-copy { position: static; inset: auto; }
  .hero-stats { margin-top: -46px; }
  .hero-stats .glass { grid-template-columns: repeat(2, 1fr); }
  .hero-stats .gs:nth-child(2n) { border-right: 0; }
  .hero-stats .gs:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 575px) {
  .hero-copy .eyebrow { display: none; }
  .hero-stats .gs { padding: 18px 12px; }
  .hero-stats .gs .n { font-size: 26px; }
  .hero-stats .gs .d { display: none; }
}

/* ---------- 服务/方向卡片 ---------- */
.svc-card {
  position: relative;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.svc-card::before {
  content: "";
  position: absolute;
  inset: auto auto -40% -20%;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 24, 96, .09), transparent 70%);
  transition: transform .4s var(--ease);
  transform: scale(.6);
}

.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--brand-100);
}

.svc-card:hover::before { transform: scale(1.4); }

.svc-card .ic {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--brand-50);
  color: var(--brand);
  font-size: 26px;
  margin-bottom: 18px;
  transition: all .3s var(--ease);
}

.svc-card:hover .ic { background: var(--brand); color: #fff; }

.svc-card h3 { font-size: 19px; margin-bottom: 10px; }
.svc-card p { font-size: 14.5px; color: var(--muted); margin: 0; }
.svc-card .no {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--brand-300);
}

/* ---------- 案例 / 产品卡片 ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

@media (max-width: 1199px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .case-grid { grid-template-columns: 1fr; gap: 18px; } }

.case-card {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .32s var(--ease), box-shadow .32s var(--ease);
}

.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.case-card .thumb {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--brand-50);
}

.case-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.case-card:hover .thumb img { transform: scale(1.07); }

.case-card .thumb .tagline {
  position: absolute;
  left: 14px;
  top: 14px;
  background: rgba(255, 255, 255, .92);
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.case-card .thumb .hov {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(58, 10, 46, .1), rgba(58, 10, 46, .72));
  opacity: 0;
  transition: opacity .3s var(--ease);
}

.case-card:hover .hov { opacity: 1; }

.case-card .hov span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 20px;
  transform: translateY(10px);
  transition: transform .3s var(--ease);
}

.case-card:hover .hov span { transform: none; }

/* .meta 是 span，必须显式块级，否则 padding 对内部的 h3/p 不生效 */
.case-card .meta { display: block; padding: 26px 28px 28px; }
.case-card .meta h3 { font-size: 17.5px; margin-bottom: 10px; line-height: 1.5; }
.case-card .meta p { font-size: 14px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.case-card .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 575px) {
  .case-card .meta { padding: 20px 20px 22px; }
  .case-card .foot { margin-top: 13px; padding-top: 12px; }
}

/* ---------- 新闻 ---------- */
.news-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 34px;
  align-items: stretch;
}

@media (max-width: 991px) { .news-split { grid-template-columns: 1fr; } }

.news-feature {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  background: var(--brand-900);
}

.news-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .78;
  transition: transform .6s var(--ease), opacity .3s;
}

.news-feature:hover img { transform: scale(1.05); opacity: .86; }

.news-feature .fx {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  background: linear-gradient(180deg, transparent 30%, rgba(28, 6, 22, .88));
  color: #fff;
}

.news-feature .fx .cat {
  align-self: flex-start;
  background: var(--brand);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.news-feature .fx h3 { color: #fff; font-size: 23px; margin-bottom: 10px; }
.news-feature .fx p { color: rgba(255, 255, 255, .8); font-size: 14.5px; margin: 0; }
.news-feature .fx time { color: rgba(255, 255, 255, .62); font-size: 13px; margin-top: 12px; display: block; }

.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-item {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
  color: inherit;
}

.news-item:first-child { padding-top: 4px; }

.news-item .im {
  flex: none;
  width: 132px;
  height: 94px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--brand-50);
}

.news-item .im img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-item:hover .im img { transform: scale(1.08); }

.news-item .tx { flex: 1; min-width: 0; }
.news-item .tx h3 {
  font-size: 17px;
  margin-bottom: 7px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .22s;
}

.news-item:hover .tx h3 { color: var(--brand); }

.news-item .tx p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item .tx .st {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--brand-300);
  margin-top: 9px;
}

.news-item .tx .st i { margin-right: 4px; }

.no-thumb {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
  color: var(--brand-300);
  font-size: 26px;
  border-radius: var(--radius);
}

@media (max-width: 575px) {
  .news-item .im { width: 104px; height: 78px; }
  .news-item .tx h3 { font-size: 15.5px; }
  .news-item .tx p { display: none; }
}

/* 纯文字新闻行（列表页侧栏） */
.mini-news { list-style: none; margin: 0; padding: 0; }

.mini-news li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  align-items: baseline;
}

.mini-news li:last-child { border-bottom: 0; }

.mini-news .idx {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--brand-50);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  transform: translateY(3px);
}

.mini-news li:nth-child(-n+3) .idx { background: var(--brand); color: #fff; }
.mini-news a { color: var(--body); font-size: 14.5px; line-height: 1.6; }
.mini-news a:hover { color: var(--brand); }

/* ---------- 资讯列表页 ---------- */
.list-wrap {
  display: grid;
  grid-template-columns: 1fr 336px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 1199px) { .list-wrap { grid-template-columns: 1fr; } }

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-tabs a {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--body);
  font-size: 14.5px;
  background: #fff;
  transition: all .22s var(--ease);
}

.filter-tabs a:hover { border-color: var(--brand); color: var(--brand); }

.filter-tabs a.on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(120, 24, 96, .22);
}

.search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.search-form .form-control {
  border-radius: 999px;
  border-color: var(--line);
  padding: .68rem 1.2rem;
}

.search-form .form-control:focus {
  border-color: var(--brand-300);
  box-shadow: 0 0 0 .2rem rgba(120, 24, 96, .1);
}

.side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 24px 26px;
  margin-bottom: 24px;
}

.side-card h4 {
  font-size: 17px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
}

.side-card h4 i { color: var(--brand); }

/* 模板里两个 class 在同一元素上，必须用复合选择器，否则渐变底不生效→白底白字 */
.side-card.side-contact {
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-900) 100%);
  color: #fff;
  border: 0;
}

.side-card.side-contact h4 { color: #fff; border-color: rgba(255, 255, 255, .18); }
.side-card.side-contact h4 i { color: var(--accent); }
.side-card.side-contact .row-i { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding: 7px 0; color: rgba(255, 255, 255, .88); }
.side-card.side-contact .row-i i { color: rgba(255, 255, 255, .6); margin-top: 4px; }
/* 排除 .btn，否则这条更高优先级的白字会盖掉幽灵按钮 hover 时的紫色 */
.side-card.side-contact a:not(.btn) { color: #fff; font-weight: 600; }
.side-card.side-contact a:not(.btn):hover { color: var(--accent); }

/* 分页 */
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.pager a, .pager span {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: inline-grid;
  place-items: center;
  color: var(--body);
  font-size: 14.5px;
  background: #fff;
  transition: all .2s var(--ease);
}

.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.pager .dis { color: #cfc9d4; background: #faf9fb; }
.pager .gap { border: 0; background: none; color: var(--muted); min-width: 20px; }

/* ---------- 内页页头 ---------- */
.page-hero {
  position: relative;
  min-height: 470px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(40, 8, 32, .86) 0%, rgba(40, 8, 32, .62) 46%, rgba(40, 8, 32, .24) 100%);
}

.page-hero .ph-in { position: relative; z-index: 2; color: #fff; padding: 54px 0; width: 100%; }
.page-hero h1 { color: #fff; font-size: clamp(26px, 3vw, 40px); margin: 0 0 10px; }
.page-hero .en { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255, 255, 255, .62); margin-bottom: 16px; }
.page-hero .lead { color: rgba(255, 255, 255, .86); font-size: 16px; max-width: 720px; margin: 0; }

@media (max-width: 767px) {
  .page-hero { min-height: 330px; }
  .has-hero-top .page-hero .ph-in { padding-top: 104px; padding-bottom: 36px; }
}

.crumb {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .72);
  margin-bottom: 18px;
}

.crumb a { color: rgba(255, 255, 255, .86); }
.crumb a:hover { color: #fff; }
.crumb .sep { opacity: .5; }
.crumb.fallback { color: var(--muted); }
.crumb.fallback a { color: var(--muted); }

/* ---------- 正文排版 ---------- */
.article-body {
  font-size: 17px;
  line-height: 2;
  color: #3a3442;
  word-break: break-word;
}

.article-body > *:first-child { margin-top: 0; }
.article-body p { margin: 0 0 1.35em; text-align: justify; }
.article-body h2, .article-body h3, .article-body h4 { margin: 1.9em 0 .9em; }
.article-body h2 { font-size: 24px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.article-body h3 { font-size: 21px; padding-left: 14px; border-left: 4px solid var(--brand); }
.article-body h4 { font-size: 18.5px; }
.article-body img { border-radius: var(--radius); margin: 18px 0; box-shadow: var(--shadow-sm); }
.article-body ul, .article-body ol { padding-left: 1.6em; margin-bottom: 1.4em; }
.article-body li { margin-bottom: .5em; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 14px; }
.article-body th { background: var(--brand-50); color: var(--brand); font-weight: 700; }
/* 窄屏下正文表格改为横向滚动，避免三列以上的表撑破文章列宽 */
@media (max-width: 767px) {
  .article-body table { display: block; max-width: 100%; overflow-x: auto; font-size: 14px; }
  .article-body th, .article-body td { padding: 8px 10px; }
}
.article-body blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  background: var(--bg-soft);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--body);
}
.article-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* seed 内容里的结构化版块 */
.article-body .stat-card,
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  height: 100%;
  transition: all .28s var(--ease);
}

.stat-card:hover { border-color: var(--brand-100); box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.stat-card .stat-num { font-size: 34px; font-weight: 800; color: var(--brand); line-height: 1.1; }
.stat-card .stat-num span { font-size: 16px; }
.stat-card .stat-label { font-size: 14px; color: var(--muted); margin-top: 6px; }

.article-body .feature-card,
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  height: 100%;
  transition: all .3s var(--ease);
}

.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); border-color: var(--brand-100); }
.feature-card i { font-size: 28px; color: var(--brand); }
.feature-card h4 { font-size: 17.5px; margin: 14px 0 8px; }
.feature-card p { font-size: 14px; color: var(--muted); margin: 0; }

.article-body .biz-card,
.biz-card {
  background: linear-gradient(180deg, #fff, var(--brand-50));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  height: 100%;
}

.biz-card i { font-size: 30px; color: var(--brand); }
.biz-card h3 { font-size: 19px; margin: 12px 0 10px; }
.biz-card p { font-size: 14.5px; color: var(--body); margin: 0; }

.article-body .mode-card,
.mode-card {
  border: 1px dashed var(--brand-300);
  border-radius: var(--radius);
  padding: 22px;
  height: 100%;
  background: #fff;
}

.mode-card h4 { font-size: 17px; color: var(--brand); margin-bottom: 8px; }
.mode-card p { font-size: 14px; color: var(--muted); margin: 0; }

.article-body .step-row,
.step-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 8px 0 4px;
}

@media (max-width: 991px) { .step-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .step-row { grid-template-columns: 1fr; } }

.step-item {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  overflow: hidden;
}

.step-item::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--brand-100);
  border-right: 2px solid var(--brand-100);
  transform: translateY(-50%) rotate(45deg);
}

.step-item:last-child::after { display: none; }
.step-item span { font-size: 26px; font-weight: 800; color: var(--brand-100); letter-spacing: 1px; }
.step-item h5 { font-size: 16.5px; margin: 6px 0 6px; }
.step-item p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------- 详情页 ---------- */
.detail-head h1 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.4; margin-bottom: 16px; }

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  font-size: 13.5px;
  color: var(--muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}

.detail-meta .mi { display: inline-flex; align-items: center; gap: 6px; }
.detail-meta .mi i { color: var(--brand-300); }

.detail-cover { margin: 0 0 26px; }
.detail-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.detail-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.detail-tags a {
  font-size: 13px;
  color: var(--body);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
}

.detail-tags a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 40px;
}

@media (max-width: 767px) { .prevnext { grid-template-columns: 1fr; } }

.pn-box {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: #fff;
  transition: all .25s var(--ease);
}

.pn-box:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.pn-box .lb { font-size: 12.5px; color: var(--muted); letter-spacing: 1px; }
.pn-box .tt { font-size: 15.5px; color: var(--ink); font-weight: 600; margin-top: 6px; line-height: 1.55; }
.pn-box.next { text-align: right; }
.pn-box.dis { opacity: .55; pointer-events: none; }

/* 图集 */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 6px;
}

@media (max-width: 767px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.gallery a {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  background: var(--brand-50);
  cursor: zoom-in;
}

.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery a:hover img { transform: scale(1.08); }

/* ---------- 图集灯箱 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 76px;
  background: rgba(20, 2, 26, .86);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s var(--ease), visibility .24s var(--ease);
}

.lightbox.open { opacity: 1; visibility: visible; }
body.lightbox-open { overflow: hidden; }

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .46);
  transform: scale(.96);
  transition: transform .26s var(--ease);
}

.lightbox.open img { transform: none; }

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 19px;
  cursor: pointer;
  transition: all .2s var(--ease);
}

.lightbox-btn:hover { background: #fff; color: var(--brand); border-color: #fff; }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-btn[hidden] { display: none; }

.lightbox-x {
  position: absolute;
  top: 18px;
  right: 20px;
  transform: none;
}

.lightbox-cap {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(760px, 88vw);
  font-size: 13.5px;
  color: rgba(255, 255, 255, .82);
  text-align: center;
}

.lightbox-cap .no {
  flex: none;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 767px) {
  .lightbox { padding: 56px 14px 74px; }
  .lightbox img { max-height: 66vh; }
  .lightbox-btn { width: 38px; height: 38px; font-size: 16px; top: auto; bottom: 18px; transform: none; }
  .lightbox-prev { left: 18px; }
  .lightbox-next { right: 18px; }
  .lightbox-cap { bottom: 68px; font-size: 12.5px; }
}

.spec-table { width: 100%; border-collapse: collapse; margin: 0 0 26px; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 13px 18px; font-size: 15px; text-align: left; }
.spec-table th { width: 140px; background: var(--bg-soft); color: var(--ink); font-weight: 600; }

/* ---------- 合作伙伴 LOGO 墙 ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.partner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 116px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}

/* 用 flex 而不是 grid：grid 行高会跟着图片自身撑开，max-height:100% 形成循环约束收不住图 */
.partner img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.partner:hover { transform: translateY(-4px); border-color: var(--brand-100); box-shadow: var(--shadow); }

@media (max-width: 1199px) { .partner-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 991px) { .partner-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px) {
  .partner-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .partner { height: 96px; padding: 12px; }
}

/* ---------- CTA 条 ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(120deg, var(--brand-900) 0%, var(--brand) 62%, #a021ab 100%);
  color: #fff;
  padding: 46px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-band::before, .cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}

.cta-band::before { width: 260px; height: 260px; right: -60px; top: -110px; }
.cta-band::after { width: 170px; height: 170px; right: 180px; bottom: -90px; }
.cta-band h3 { color: #fff; font-size: 26px; margin: 0 0 8px; position: relative; z-index: 2; }
.cta-band p { color: rgba(255, 255, 255, .82); margin: 0; font-size: 15px; position: relative; z-index: 2; }
.cta-band .cta-act { position: relative; z-index: 2; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* ---------- 联系页 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 34px;
  align-items: start;
}

@media (max-width: 1199px) { .contact-grid { grid-template-columns: 1fr; } }

.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  height: 100%;
}

.info-card h3 { font-size: 19px; margin-bottom: 18px; }

.office-list { display: grid; gap: 14px; }

.office-item {
  display: flex;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  transition: all .25s var(--ease);
}

.office-item:hover { background: #fff; border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.office-item .oc {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.office-item h4 { font-size: 16.5px; margin: 0 0 6px; }
.office-item p { margin: 0 0 4px; font-size: 14px; color: var(--body); }
.office-item .note { font-size: 12.5px; color: var(--muted); }
.office-item a { font-weight: 600; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form-card .form-label { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-card .form-label .req { color: #d03b3b; margin-left: 3px; }

.form-card .form-control, .form-card .form-select {
  border-radius: var(--radius-sm);
  border-color: #e2dce6;
  padding: .72rem 1rem;
  font-size: 15px;
  background-color: #fdfcfe;
}

.form-card .form-control:focus, .form-card .form-select:focus {
  border-color: var(--brand-300);
  box-shadow: 0 0 0 .2rem rgba(120, 24, 96, .1);
  background-color: #fff;
}

.form-card textarea.form-control { min-height: 128px; resize: vertical; }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.captcha-row { display: flex; gap: 12px; align-items: center; }
.captcha-row img { height: 46px; width: 148px; border-radius: var(--radius-sm); border: 1px solid var(--line); cursor: pointer; background: #fff; }
.captcha-tip { font-size: 12.5px; color: var(--muted); }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #170a1c;
  color: rgba(255, 255, 255, .66);
  padding: 66px 0 0;
  font-size: 14.5px;
}

.site-footer .ft-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr .9fr;
  gap: 40px;
  padding-bottom: 44px;
}

@media (max-width: 1199px) { .site-footer .ft-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 575px) { .site-footer .ft-grid { grid-template-columns: 1fr; } }

.site-footer .ft-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.site-footer .ft-logo img {
  height: 58px;
  width: 58px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 5px;
}
.site-footer .ft-logo span { color: #fff; font-size: 17px; font-weight: 700; }
.site-footer p { color: rgba(255, 255, 255, .58); font-size: 14px; margin-bottom: 0; }
.site-footer h5 { color: #fff; font-size: 16px; margin-bottom: 18px; font-weight: 700; }
.site-footer a { color: rgba(255, 255, 255, .66); }
.site-footer a:hover { color: #fff; }

.ft-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.ft-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.ft-contact li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.7; }
.ft-contact li i { color: var(--brand-300); margin-top: 5px; }
.ft-qr { text-align: left; }
.ft-qr img { width: 124px; border-radius: 10px; background: #fff; padding: 6px; }
.ft-qr .cap { font-size: 12.5px; color: rgba(255, 255, 255, .5); margin-top: 8px; }

.ft-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .46);
}

.ft-bottom a { color: rgba(255, 255, 255, .6); }

/* ---------- 悬浮工具 ---------- */
.float-tools {
  position: fixed;
  right: 22px;
  bottom: 30px;
  z-index: 1025;
  display: grid;
  gap: 10px;
}

.float-tools a, .float-tools button {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 0;
  background: #fff;
  color: var(--brand);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  font-size: 20px;
  transition: all .25s var(--ease);
  position: relative;
}

.float-tools a:hover, .float-tools button:hover { background: var(--brand); color: #fff; transform: translateY(-3px); }

.float-tools .tip {
  position: absolute;
  right: 58px;
  top: 50%;
  transform: translateY(-50%) ;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.float-tools a:hover .tip { opacity: 1; }
#backTop { display: none; }
#backTop.show { display: grid; }

@media (max-width: 767px) {
  .float-tools { right: 14px; bottom: 18px; }
  .float-tools a, .float-tools button { width: 42px; height: 42px; font-size: 17px; }
  .float-tools .tip { display: none; }
}

/* ---------- 404 ---------- */
.err-wrap { text-align: center; padding: 110px 0 130px; }
.err-wrap .code { font-size: 118px; font-weight: 800; color: var(--brand); line-height: 1; letter-spacing: -4px; }
.err-wrap h1 { font-size: 28px; margin: 18px 0 12px; }
.err-wrap p { color: var(--muted); margin-bottom: 28px; }

/* ---------- 动效 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 富文本正文里的图片自适应 ---------- */
.article-body img:not([width]) { max-width: 100%; height: auto; }
