:root {
  --blue: #0872d7;
  --deep-blue: #0062c7;
  --royal: #2e65f3;
  --ink: #23262b;
  --muted: #777f8c;
  --line: #e8edf4;
  --soft: #f2f5fd;
  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

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

.site-header { background: #fff; }

.header-inner {
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img { width: 430px; height: auto; }

.hotline {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #3d434d;
  font-size: 13px;
  line-height: 1.45;
}

.hotline b, .hotline small { display: block; font-weight: 500; }
.hotline small { font-size: 13px; }
.phone-icon { color: #2588ed; font-size: 34px; line-height: 1; transform: rotate(-18deg); }

.main-nav { height: 56px; background: linear-gradient(90deg, #0668c7, #0066cd); }
.nav-inner { height: 100%; display: flex; justify-content: center; }
.nav-inner a {
  min-width: 150px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 17px;
  transition: background .2s ease;
}
.nav-inner a:hover, .nav-inner a.active { background: rgba(255, 255, 255, .14); }

.menu-toggle { display: none; width: 42px; height: 40px; padding: 8px; border: 0; background: transparent; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: #136ece; }

.hero { position: relative; height: 452px; overflow: hidden; background: #173c85; }
.hero > img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-dots { position: absolute; bottom: 24px; left: 50%; display: flex; gap: 10px; transform: translateX(-50%); }
.hero-dots span { width: 34px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.55); }
.hero-dots span.active { background: #fff; }

.section { padding: 70px 0 76px; }
.section-heading { margin: 0 0 34px; text-align: center; }
.section-heading h2 { position: relative; display: inline-block; margin: 0; font-size: 29px; line-height: 1.35; font-weight: 700; }
.section-heading h2::after { content: ""; position: absolute; left: 50%; bottom: -13px; width: 62px; height: 4px; border-radius: 2px; background: var(--royal); transform: translateX(-50%); }
.heading-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.heading-row .more { justify-self: end; color: var(--blue); font-size: 14px; font-weight: 600; }
.section-heading.light .more { color: rgba(255, 255, 255, .92); }
.section-heading.light .more:hover { color: #fff; }

.news-section { background: var(--soft); }
.news-tabs { width: 572px; margin: 0 auto 28px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #4a76e7; border-radius: 7px; overflow: hidden; }
.news-tabs button { height: 38px; border: 0; border-right: 1px solid #4a76e7; color: #677081; background: #fff; cursor: pointer; }
.news-tabs button:last-child { border-right: 0; }
.news-tabs button.active { color: #fff; background: #3265ee; }

.news-board { display: grid; grid-template-columns: 1fr 1.04fr; min-height: 480px; background: #fff; box-shadow: 0 2px 12px rgba(30, 66, 130, .04); }
.news-featured-panels, .news-list-panels { min-width: 0; }
.featured-news { min-width: 0; height: 100%; display: flex; flex-direction: column; background: #0874d9; color: #fff; }
.featured-news[hidden] { display: none; }
.featured-media { display: block; }
.featured-media img { width: 100%; aspect-ratio: 572 / 323; object-fit: cover; }
.featured-copy { flex: 1; padding: 22px 24px 17px; }
.featured-copy h3 { margin: 0 0 7px; font-size: 21px; line-height: 1.4; }
.featured-copy p { margin: 0; color: rgba(255,255,255,.76); font-size: 14px; }
.featured-copy time { display: block; margin-top: 14px; font-size: 13px; }
.featured-empty { margin: auto; padding: 40px 20px; color: rgba(255,255,255,.8); text-align: center; }

.news-list { padding: 17px 20px; }
.news-list[hidden] { display: none; }
.news-list article { min-height: 108px; display: grid; grid-template-columns: 82px 1fr; gap: 20px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.news-list article:last-child { border-bottom: 0; }
.news-list time { height: 82px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #f5f7fa; color: #9ba1ab; line-height: 1.25; }
.news-list time b { color: #343840; font-size: 27px; }
.news-list time span { font-size: 12px; }
.news-list h3 { margin: 0 0 6px; font-size: 15px; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-list p { margin: 0; color: #a0a6b0; font-size: 13px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.experts-section { background: #fff; }
.experts-grid {
  display: flex;
  gap: 18px;
  padding: 5px 0 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.experts-grid::-webkit-scrollbar { display: none; }
.expert-card {
  flex: 0 0 calc((100% - 72px) / 5);
  min-width: 0;
  border: 1px solid #e3e5e9;
  background: #fff;
  scroll-snap-align: start;
  transition: transform .25s ease, box-shadow .25s ease;
}
.expert-card:hover { transform: translateY(-5px); box-shadow: 0 12px 24px rgba(32,58,93,.12); }
.expert-card img { width: 100%; aspect-ratio: 180 / 246; object-fit: cover; object-position: top center; }
.expert-card__body { min-width: 0; padding: 12px 12px 14px; text-align: center; }
.expert-card h3 { margin: 0 0 5px; font-size: 15px; font-weight: 500; }
.expert-card .desc { margin: 0; overflow: hidden; color: #8a9099; font-size: 13px; line-height: 1.5; white-space: nowrap; text-overflow: ellipsis; }

.companies-section { position: relative; overflow: hidden; padding: 48px 0 60px; background: url("../images/ceramic.jpg") center 42% / cover no-repeat; }
.companies-section .container { position: relative; }
.section-heading.light { color: #fff; }
.section-heading.light h2::after { background: #fff; }
.companies-slider { position: relative; padding-inline: 44px; }
.companies-grid {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.companies-grid::-webkit-scrollbar { display: none; }
.companies-grid a {
  position: relative;
  flex: 0 0 calc((100% - 104px) / 5);
  min-width: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  box-shadow: 0 5px 14px rgba(0,0,0,.16);
  scroll-snap-align: start;
}
.companies-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.companies-grid a:hover img { transform: scale(1.06); }
.companies-grid span { position: absolute; inset: auto 0 0; padding: 17px 8px 11px; color: #fff; text-align: center; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.companies-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 38px;
  height: 38px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 5px 14px rgba(0,0,0,.22);
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity .2s ease, transform .2s ease;
}
.companies-nav:hover { transform: translateY(-50%) scale(1.08); }
.companies-nav:disabled { opacity: .35; cursor: default; }
.companies-nav:disabled:hover { transform: translateY(-50%); }
.companies-nav img { width: 100%; height: 100%; }
.companies-prev { left: 0; }
.companies-next { right: 0; }

.about-section { padding-top: 70px; }
.about-card { display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; align-items: center; padding: 32px; background: #f5f7fc; }
.about-copy { padding-left: 16px; }
.about-copy h3 { margin: 0 0 30px; padding-left: 16px; border-left: 3px solid #ff5870; font-size: 24px; }
.about-copy .about-introduction { margin: 0 0 20px; color: #777f89; font-size: 14px; line-height: 1.95; text-align: justify; }
.about-copy p { margin: 0 0 20px; color: #777f89; font-size: 14px; line-height: 1.95; text-align: justify; }
.about-card > img { width: 100%; max-height: 290px; object-fit: cover; }

.services-section { background: var(--soft); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); color: #fff; }
.service-card { min-height: 176px; display: grid; grid-template-columns: 42px 1fr; gap: 8px; padding: 24px 22px; }
.service-card.blue { background: #4776f5; }
.service-card.red { background: #df2b37; }
.service-card.cyan { background: #0475d5; }
.service-card.dark { background: #292929; }
.service-icon { font-size: 27px; line-height: 1.2; }
.service-card h3 { margin: 0 0 8px; font-size: 18px; }
.service-card p { margin: 0; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.9); }

.site-footer { padding: 32px 0 22px; color: #929292; background: #1e1e1e; }
.footer-grid { display: grid; grid-template-columns: 1.45fr 1.55fr 1fr; gap: 65px; align-items: center; padding-bottom: 38px; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; color: #fff; }
.footer-brand__row { display: grid; grid-template-columns: 5em minmax(0, 1fr); align-items: start; font-size: 14px; line-height: 1.7; }
.footer-brand__row strong { color: #fff; white-space: nowrap; }
.footer-brand__content p { margin: 0; font-size: 14px; line-height: 1.5;}
.footer-brand__content p + p { margin-top: 8px; }
.site-footer h2, .site-footer h3 { margin: 0 0 0; color: #fff; font-size: 14px; font-weight: 500; }
.footer-links > div { display: flex; flex-wrap: wrap; gap: 8px 17px; }
.footer-links a { font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-contact { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.footer-contact__details { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer-contact p { width: 100%; margin: 0; overflow-wrap: anywhere; font-size: 14px; line-height: 1.7; }
.footer-contact img { width: 74px; height: 74px; margin-top: 14px; padding: 4px; background: #fff; }
.copyright { padding-top: 20px; border-top: 1px solid #3b3b3b; font-size: 12px; }

.back-top { position: fixed; right: 24px; bottom: 24px; width: 42px; height: 42px; border: 0; border-radius: 50%; color: #fff; background: rgba(20,104,211,.85); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; }
.back-top.visible { opacity: 1; pointer-events: auto; }

@media (max-width: 1100px) {
  .nav-inner a { min-width: 0; flex: 1; }
  .expert-card { flex-basis: calc((100% - 36px) / 3); }
  .companies-grid { gap: 14px; }
  .companies-grid a { flex-basis: calc((100% - 42px) / 4); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { gap: 30px; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, var(--container)); }
  .header-inner { height: 74px; }
  .brand img { width: min(320px, calc(100vw - 92px)); }
  .hotline { display: none; }
  .menu-toggle { display: block; }
  .main-nav { height: auto; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .main-nav.open { max-height: 420px; }
  .nav-inner { width: 100%; display: block; }
  .nav-inner a { height: 48px; justify-content: flex-start; padding-inline: 22px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .hero { height: clamp(250px, 46vw, 340px); }
  .hero > img { width: auto; max-width: none; transform: translateX(-125px); }
  .section { padding: 50px 0; }
  .section-heading { margin-bottom: 31px; }
  .section-heading h2 { font-size: 25px; }
  .news-tabs { width: 100%; }
  .news-tabs button { font-size: 13px; }
  .news-board { grid-template-columns: 1fr; }
  .featured-copy h3 { font-size: 18px; }
  .news-list { padding: 10px 15px; }
  .news-list article { grid-template-columns: 68px 1fr; gap: 12px; }
  .news-list time { height: 68px; }
  .news-list h3 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .experts-grid { gap: 12px; }
  .expert-card { flex-basis: calc((100% - 12px) / 2); }
  .companies-slider { padding-inline: 32px; }
  .companies-grid { gap: 12px; }
  .companies-grid a { flex-basis: calc((100% - 12px) / 2); }
  .companies-nav { width: 28px; height: 28px; }
  .about-card { grid-template-columns: 1fr; gap: 22px; padding: 24px 20px; }
  .about-copy { padding: 0; }
  .about-copy h3 { font-size: 20px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 150px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-contact { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
/* 动态 CMS 导航与状态 */
.nav-item { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.nav-item > a { display: flex; align-items: center; justify-content: center; }
.nav-item.active > a { color: #fff; background: #0872d7; font-weight: 700; }
.nav-dropdown { position: absolute; z-index: 30; top: 100%; left: 0; display: none; min-width: 180px; padding: 8px 0; background: #176dce; box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.nav-dropdown a { display: block; padding: 10px 18px; color: #fff; white-space: nowrap; }
.nav-dropdown a:hover { background: rgba(255,255,255,.14); }
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown, .nav-item.open .nav-dropdown { display: block; }
.hero-slide { display: none; width: 100%; }
.hero-slide.active { display: block; }
.hero-slide img, .hero-slide picture { width: 100%; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; }
.hero-dots button.active { background: #fff; }
.empty-state { width: 100%; padding: 40px 0; color: #8b929b; text-align: center; }
.pagination-wrap .pagination { display: flex; justify-content: center; margin-top: 35px; }
.form-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; }
.form-result { min-height: 22px; color: #176dce; }
.captcha-field > span:last-child { display: flex; gap: 12px; align-items: center; }
.captcha-field input { max-width: 180px; }
.captcha-field img { height: 42px; cursor: pointer; }
.service-card-0 { background: #3276ca; }
.service-card-1 { background: #cf4a55; }
.service-card-2 { background: #24a3ac; }
.service-card-3 { background: #33445c; }
.page-cover { max-width: 100%; margin: 0 auto 25px; }
@media (max-width: 760px) {
  .nav-item { display: block; }
  .nav-dropdown { position: static; display: block; min-width: 0; padding: 0 0 0 18px; box-shadow: none; background: transparent; }
  .nav-dropdown a { padding: 8px 15px; }
}
