/* ==========================================================================
   MCMS 企业站 · 现代商务科技风设计系统
   配色: 深海军蓝 + 靛蓝主色 + 琥珀强调色 / 中性灰阶
   ========================================================================== */

:root {
  --brand: #1D4ED8;
  --brand-600: #1E40AF;
  --brand-100: #E3EBFD;
  --navy: #0C1B3D;
  --navy-2: #13264F;
  --accent: #F59E0B;
  --accent-600: #D97706;
  --ink: #17203A;
  --body: #4B5563;
  --muted: #8A94A6;
  --line: #E6E9F0;
  --bg: #F6F7FB;
  --white: #FFFFFF;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .10);
  --shadow-md: 0 8px 24px rgba(13, 27, 62, .10);
  --shadow-lg: 0 16px 44px rgba(13, 27, 62, .16);
  --container: 1180px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .2s ease; }
ul, ol { list-style: none; }
img { max-width: 100%; border: 0; vertical-align: middle; }

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

/* SEO 隐藏标题 */
.seo-h1 {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.clearblank { clear: both; }

/* --------------------------------------------------------------------------
   按钮
   -------------------------------------------------------------------------- */
.btn, .bth-text, .con-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-primary, .con-btn {
  background: var(--accent);
  color: var(--navy) !important;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(245, 158, 11, .35);
}
.btn-primary:hover, .con-btn:hover {
  background: var(--accent-600);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(245, 158, 11, .45);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .45);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .8); transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   顶部导航
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(13, 27, 62, .08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .01em;
}
.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--navy) 100%);
  position: relative;
  flex: none;
}
.logo-mark::after {
  content: "";
  position: absolute;
  left: 8px; top: 8px; right: 8px; bottom: 8px;
  border-radius: 4px;
  background: var(--accent);
}

.main-nav ul { display: flex; align-items: center; gap: 6px; }
.main-nav li a {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  color: var(--ink);
  border-radius: 8px;
  position: relative;
  transition: color .2s ease, background .2s ease;
}
.main-nav li a:hover { color: var(--brand); background: var(--brand-100); }
.main-nav li.active a { color: var(--brand); font-weight: 600; }
.main-nav li.active a::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 2px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

/* 移动端汉堡按钮(桌面隐藏) */
#mnavh { display: none; cursor: pointer; width: 40px; height: 40px; position: relative; }
#mnavh .navicon,
#mnavh .navicon::before,
#mnavh .navicon::after {
  content: "";
  position: absolute;
  left: 8px;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}
#mnavh .navicon { top: 19px; }
#mnavh .navicon::before { left: 0; top: -7px; }
#mnavh .navicon::after { left: 0; top: 7px; }
#mnavh.open .navicon { background: transparent; }
#mnavh.open .navicon::before { transform: translateY(7px) rotate(45deg); }
#mnavh.open .navicon::after { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   首页 Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(720px 420px at 82% 18%, rgba(59, 130, 246, .35), transparent 65%),
    radial-gradient(560px 380px at 12% 85%, rgba(245, 158, 11, .16), transparent 60%),
    linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 48%, var(--brand-600) 100%);
  color: var(--white);
}
.hero::before {
  /* 几何网格纹理 */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 88%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 88%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 108px 24px 120px;
  max-width: 860px;
}
.hero-title {
  font-size: 42px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 20px;
  color: var(--white);
  max-width: 720px;
  text-wrap: balance;
}
.hero-sub {
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .78);
  max-width: 640px;
  margin-bottom: 14px;
  text-wrap: balance;
}
.hero-sub .hl-tel {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .02em;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* 装饰光斑 */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}
.hero-orb-1 {
  width: 340px; height: 340px;
  right: 6%; top: 16%;
  border: 1px solid rgba(255, 255, 255, .16);
}
.hero-orb-1::after {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .22);
}
.hero-orb-2 {
  width: 14px; height: 14px;
  right: 24%; top: 62%;
  background: var(--accent);
  box-shadow: 0 0 24px rgba(245, 158, 11, .9);
}
.hero-orb-3 {
  width: 10px; height: 10px;
  right: 12%; top: 30%;
  background: rgba(255, 255, 255, .85);
}

/* --------------------------------------------------------------------------
   区块节奏 & 标题
   -------------------------------------------------------------------------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg); }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-size: 30px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.section-head .head-text { min-width: 0; }
.more-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand);
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  transition: all .2s ease;
}
.more-link:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}
.section-head.light { border-bottom-color: rgba(255, 255, 255, .18); }
.section-head.light .section-title { color: var(--white); }
.section-head.light .eyebrow { color: var(--accent); }

/* --------------------------------------------------------------------------
   首页 · 关于我们
   -------------------------------------------------------------------------- */
.about-grid {
  display: flex;
  gap: 64px;
  align-items: center;
}
.about-main { flex: 1 1 0; min-width: 0; }
.about-text {
  margin: 22px 0 30px;
  font-size: 15px;
  line-height: 2;
  color: var(--body);
}
/* .about-grid-single 不再单独限宽，跟随 .container 与首页其他区块同宽 */
.about-section .bth-text, .about-main .bth-text {
  background: var(--brand);
  color: var(--white) !important;
  box-shadow: 0 6px 18px rgba(29, 78, 216, .3);
}
.about-section .bth-text:hover, .about-main .bth-text:hover {
  background: var(--brand-600);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   资讯 / 常见问题 卡片列表
   -------------------------------------------------------------------------- */
.news-list.cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.news-list.cards > li > a {
  display: flex;
  align-items: stretch;
  gap: 24px;
  padding: 22px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.news-list.cards > li > a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(29, 78, 216, .35);
}
.date-badge {
  flex: none;
  width: 76px;
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, var(--brand-100), #F0F5FF);
  color: var(--brand);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
  font-size: 12px;
  line-height: 1.4;
}
.date-badge b { font-size: 26px; font-weight: 700; line-height: 1.1; }
.news-card-body { min-width: 0; flex: 1; }
.news-card-body h2, .news-card-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 6px;
  transition: color .2s ease;
}
.news-list.cards > li > a:hover h2,
.news-list.cards > li > a:hover h3 { color: var(--brand); }
.news-card-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 空状态(数据为空时 ul 内无任何节点, 纯 CSS 兜底) */
.news-list:empty {
  display: block;
  padding: 56px 24px;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.news-list:empty::before {
  content: "";
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background:
    linear-gradient(var(--brand-100), var(--brand-100));
  -webkit-mask: none;
  position: relative;
}
.news-list:empty::after {
  content: "暂无内容，敬请期待";
  display: block;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: .04em;
}
.page-case-list:empty {
  display: block;
  padding: 56px 24px;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.page-case-list:empty::after {
  content: "暂无内容，敬请期待";
  display: block;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: .04em;
}

/* --------------------------------------------------------------------------
   首页 · 联系我们横幅
   -------------------------------------------------------------------------- */
.contact-band {
  background:
    radial-gradient(600px 300px at 88% 0%, rgba(59, 130, 246, .28), transparent 60%),
    linear-gradient(115deg, var(--navy) 0%, var(--navy-2) 60%, var(--brand-600) 130%);
  color: var(--white);
}
.contact-band .section-title { color: var(--white); }
.contact-band .eyebrow { color: var(--accent); }
.contact-list {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}
.contact-card { flex: 1 1 0; }
.contact-card > a {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 100%;
  padding: 24px 28px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  transition: background .25s ease, transform .25s ease, border-color .25s ease;
}
.contact-card > a:hover {
  background: rgba(255, 255, 255, .13);
  border-color: rgba(255, 255, 255, .3);
  transform: translateY(-3px);
}
.c-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(245, 158, 11, .4);
}
.c-icon img { width: 26px; height: 26px; }
.c-label {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, .62);
  margin-bottom: 2px;
  letter-spacing: .04em;
}
.contact-card p {
  font-size: 19px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   子页面页眉 (面包屑 + 页面标题)
   -------------------------------------------------------------------------- */
.page-hero {
  background:
    radial-gradient(560px 260px at 85% 0%, rgba(59, 130, 246, .3), transparent 60%),
    linear-gradient(115deg, var(--navy) 0%, var(--navy-2) 70%, var(--brand-600) 140%);
  color: var(--white);
  padding: 44px 0 46px;
}
.list-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin-top: 14px;
}

/* 面包屑 */
.breadcrumb-nav .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}
.breadcrumb li { display: flex; align-items: center; color: rgba(255, 255, 255, .62); }
.breadcrumb li + li::before {
  content: "›";
  margin: 0 10px;
  color: rgba(255, 255, 255, .4);
}
.breadcrumb a { color: rgba(255, 255, 255, .78); }
.breadcrumb a:hover { color: var(--accent); }

/* 兼容旧 list-bg(不再使用时隐藏) */
.list-bg { display: none; }

/* --------------------------------------------------------------------------
   单页 / 详情正文
   -------------------------------------------------------------------------- */
.page-about, .page-info {
  padding: 56px 0 88px;
}
.article-body, .content {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 44px 48px;
  margin-top: -40px;
  position: relative;
  z-index: 3;
  font-size: 15px;
  line-height: 2;
  color: var(--body);
}
.page-about .content p, .page-info .content p { margin-bottom: 14px; }

/* 分页 */
.pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}
.pages a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 14px;
  color: var(--body);
  transition: all .2s ease;
}
.pages a:hover { border-color: var(--brand); color: var(--brand); }
.pages .pagecount {
  border: none;
  background: transparent;
  font-weight: 600;
  color: var(--ink);
  cursor: default;
}
.pages .pagecount:hover { color: var(--ink); }

/* 列表页容器 */
.news.box, .case.box, .page-contact.box { padding: 48px 0 88px; }
/* 模板实际使用 container 类：只补垂直间距，保留 .container 左右 24px 内边距 */
.news.container, .case.container, .page-contact.container { padding-top: 48px; padding-bottom: 88px; }
/* 联系页主内容区加高 */
.page-contact.container { padding-top: 72px; padding-bottom: 128px; min-height: 460px; }
.list-page-title { display: none; }

/* 案例/产品卡片网格(有数据时) */
.page-case-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.page-case-list > li {
  flex: 0 0 calc(33.333% - 14px);
  max-width: calc(33.333% - 14px);
}
.page-case-list > li > a {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.page-case-list > li > a:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.page-case-list i { display: block; overflow: hidden; }
.page-case-list img { width: 100%; height: 190px; object-fit: cover; }
.page-case-list h3 { font-size: 16px; color: var(--ink); padding: 16px 20px 4px; }
.page-case-list p {
  font-size: 13px; color: var(--muted); padding: 0 20px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.page-case-list span { display: block; font-size: 12px; color: var(--muted); padding: 8px 20px 18px; }

/* 联系页卡片 */
.contact-cards {
  display: flex;
  gap: 20px;
  margin-top: -40px;
  position: relative;
  z-index: 3;
}
.contact-info-card {
  flex: 1 1 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px 32px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.contact-info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-info-card h2 {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.contact-info-card .ci-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.contact-info-card .ci-bar {
  width: 36px; height: 4px; border-radius: 2px;
  background: var(--accent);
  margin-bottom: 16px;
}
.contact-note {
  margin-top: 24px;
  padding: 26px 32px;
  background: var(--brand-100);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--brand-600);
}
.tell { margin-top: 0; }
.tell-tit p { margin-top: 0; }

/* 旧版 case.html 详情模板的最小兼容样式(该模板当前无数据渲染) */
.right-box { display: none; }
.left-box .content { margin-top: 0; }
.news-info { margin-top: 28px; padding: 22px 26px; background: var(--bg); border-radius: var(--radius); font-size: 14px; }
.news-info i { display: block; margin-bottom: 10px; }
.news-info img { width: 120px; }
.nextinfo ul { display: flex; gap: 16px; margin-top: 20px; }
.nextinfo li { flex: 1; }
.nextinfo a {
  display: block; padding: 14px 20px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14px; transition: all .2s ease;
}
.nextinfo a:hover { border-color: var(--brand); color: var(--brand); }

/* --------------------------------------------------------------------------
   兼容区 · 原模板遗留结构（case.html 等未重写页面使用）
   -------------------------------------------------------------------------- */
.page-nav { margin-bottom: 14px; }

/* case.html 侧栏「为你推荐」 */
.tjnews {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 26px;
}
.tjnews h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.tjnews ul { margin: 0; padding: 0; list-style: none; }
.tjnews li { margin-bottom: 10px; }
.tjnews li:last-child { margin-bottom: 0; }
.tjnews a {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .2s ease;
}
.tjnews a:hover { color: var(--brand); }

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .72);
  margin-top: 0;
}
.footer-grid {
  display: flex;
  gap: 56px;
  padding: 64px 24px 48px;
}
.f-col { min-width: 0; }
.f-brand { flex: 1.2 1 0; }
.f-nav, .f-contact { flex: 1 1 0; }
.f-logo { margin-bottom: 18px; }
.f-logo .logo-link { color: var(--white); font-size: 20px; }
.f-desc { font-size: 14px; line-height: 1.9; color: rgba(255, 255, 255, .56); max-width: 340px; }
.f-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 18px;
  padding-bottom: 12px;
  position: relative;
}
.f-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 26px; height: 3px;
  border-radius: 2px;
  background: var(--accent);
}
.end-nav li, .f-contact li { margin-bottom: 10px; }
.end-nav a, .f-contact a { font-size: 14px; color: rgba(255, 255, 255, .66); }
.end-nav a:hover, .f-contact a:hover { color: var(--accent); }
.f-contact .f-tel {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}
.copyright {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
}
.copyright a { color: rgba(255, 255, 255, .6); }
.copyright a:hover { color: var(--accent); }

/* 旧浮动客服(已整合进页脚, 若残留结构则隐藏) */
.jinni8_kefu_style { display: none; }
