@font-face {
  font-family: "HarmonyOS_Sans_SC";
  src: url("../fonts/HarmonyOS_Sans_SC_Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HarmonyOS_Sans_SC_Medium";
  src: url("../fonts/HarmonyOS_Sans_SC_Medium.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HarmonyOS_Sans_SC_Bold";
  src: url("../fonts/HarmonyOS_Sans_SC_Bold.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --red: #da2915;
  --red-dark: #c02012;
  --text: #333333;
  --text-2: #666666;
  --muted: #999999;
  --line: #eeeeee;
  --bg: #f7f7f7;
  --dark: #2c2c2c;
  --darker: #222222;
  --white: #ffffff;
  --header-h: 90px;
  --radius: 4px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  --font: "HarmonyOS_Sans_SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-m: "HarmonyOS_Sans_SC_Medium", "HarmonyOS_Sans_SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-b: "HarmonyOS_Sans_SC_Bold", "HarmonyOS_Sans_SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  font-size: 15px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
.section-title,
.case-card p strong,
.article-body .lead,
.contact-card strong {
  font-family: var(--font-b);
  font-weight: 400;
}

.nav a,
.btn,
.header-contact,
.more-link,
.tab-bar a,
.section-head .tabs a,
.footer-info-item,
.biz-consult,
.article-meta,
.pagination a,
.pagination span,
.contact-card small,
.case-meta,
.news-card .date,
.breadcrumb {
  font-family: var(--font-m);
  font-weight: 400;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s, background 0.25s, border-color 0.25s, opacity 0.25s, box-shadow 0.25s;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

.container {
  width: 76.25%;
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section--gray {
  background: var(--bg);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  position: relative;
}

.section-head--center {
  justify-content: center;
  text-align: center;
}

.section-title {
  font-size: 32px;
  font-family: var(--font-b);
  font-weight: 400;
  line-height: 1.3;
  color: #1a1a1a;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 12px;
  background: var(--red);
}

.section-title--center::after {
  margin-left: auto;
  margin-right: auto;
}

.more-link {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  padding-bottom: 4px;
}

.more-link:hover {
  color: var(--red);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 28px;
  border-radius: var(--radius);
  font-family: var(--font-m);
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
  transition: 0.25s;
}

.btn-red {
  background: var(--red);
  color: #fff;
}

.btn-red:hover {
  background: var(--red-dark);
}

.btn-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-ico img,
.btn-ico svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 56px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
  flex: 1;
  justify-content: center;
}

.nav a {
  font-family: var(--font-m);
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}

.nav a:hover,
.nav a.is-active {
  color: var(--red);
}

.header-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius);
  font-family: var(--font-m);
  font-size: 15px;
  font-weight: 400;
  flex-shrink: 0;
}

.header-contact:hover {
  background: var(--red-dark);
}

.header-contact img {
  width: 16px;
  height: 16px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  position: relative;
  z-index: 102;
  border-radius: var(--radius);
  transition: background 0.25s;
}

.nav-toggle:hover {
  background: rgba(0, 0, 0, 0.04);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  position: relative;
  border-radius: 1px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), top 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s, opacity 0.25s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.nav-toggle.is-active span {
  background: transparent;
}

.nav-toggle.is-active span::before {
  top: 0;
  transform: rotate(45deg);
  background: var(--red);
}

.nav-toggle.is-active span::after {
  top: 0;
  transform: rotate(-45deg);
  background: var(--red);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(17, 17, 17, 0.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.nav-open {
  overflow: hidden;
}

/* Page banner */
.page-banner {
  position: relative;
  height: 17.7vw;
  min-height: 220px;
  background: #333 center / cover no-repeat;
  display: flex;
  align-items: center;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.08));
}

.page-banner .container {
  position: relative;
  z-index: 1;
  color: #fff;
}

.page-banner h1 {
  font-family: var(--font);
  font-size: 45px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 14px;
}

.page-banner p {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  opacity: 0.92;
  max-width: 720px;
}

/* Footer */
.site-footer {
  background: #333333;
  color: #fff;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 0;
}

.footer-left {
  flex: 1;
  min-width: 0;
}

.footer-top {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-bottom: 24px;
}

.footer-logo {
  flex-shrink: 0;
}

.footer-logo img {
  height: 56px;
  width: auto;
}

.footer-info {
  display: flex;
  align-items: center;
  gap: 40px;
  flex: 1;
}

.footer-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-m);
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
}

.footer-info-item .ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.footer-info-item .ico img {
  width: 16px;
  height: 16px;
}

.footer-qr {
  flex-shrink: 0;
}

.footer-qr-box {
  width: 110px;
  background: #fff;
  padding: 8px 8px 6px;
  text-align: center;
}

.footer-qr-box img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto;
}

.footer-qr-box span {
  display: block;
  margin-top: 4px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  color: #999;
  line-height: 1.4;
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
}

/* Pagination — CMS outputs bare <li>; static demo uses <a>/<span> */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
  padding: 0;
  list-style: none;
}

.pagination ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination li {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination a,
.pagination span {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 15px;
  color: var(--text-2);
  white-space: nowrap;
  line-height: 1;
}

.pagination a:hover {
  color: var(--red);
}

.pagination .is-active,
.pagination li.active a,
.pagination .active > a {
  background: var(--red);
  color: #fff;
}

/* Case card */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.case-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  padding: 32px 36px;
  box-shadow: none;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.case-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #ececec;
}

.case-card h3 {
  font-family: var(--font-b);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 10px;
  line-height: 1.4;
  color: #000;
  transition: color 0.25s;
}

.case-card:hover h3 {
  color: var(--red);
}

.case-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

.case-meta svg {
  width: 14px;
  height: 14px;
  fill: var(--muted);
}

.case-card p {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  color: #000;
  line-height: 1.9;
  margin-bottom: 0;
}

.case-card p strong {
  font-family: var(--font-b);
  color: #000;
  font-weight: 400;
}

/* News card */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.news-card {
  background: transparent;
  transition: color 0.25s;
}

.news-card:hover {
  transform: none;
}

.news-card .thumb {
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 348 / 211;
  background: #eee;
}

.news-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}

.news-card:hover .thumb img {
  transform: scale(1.03);
}

.news-card .body {
  padding: 14px 0 0;
}

.news-card .date {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 8px;
}

.news-card h3 {
  font-family: var(--font-b);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 8px;
  color: #000;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px;
  transition: color 0.25s;
}

.news-card:hover h3 {
  color: var(--red);
}

.news-card p {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tabs */
.tab-bar {
  background: #fff;
  border-bottom: 1px solid #dddddd;
}

.tab-bar .container {
  display: flex;
  align-items: stretch;
}

.tab-bar a {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 8px;
  font-family: var(--font-m);
  font-size: 16px;
  font-weight: 400;
  color: #000;
  text-align: center;
  white-space: nowrap;
}

.tab-bar a.is-active,
.tab-bar a:hover {
  color: var(--red);
}

.tab-bar a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--red);
}

.section-head .tabs {
  display: flex;
  align-items: center;
  gap: 40px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.section-head .tabs a {
  position: relative;
  font-family: var(--font-m);
  font-size: 16px;
  font-weight: 400;
  color: #000;
  padding-bottom: 8px;
}

.section-head .tabs a.is-active,
.section-head .tabs a:hover {
  color: var(--red);
}

.section-head .tabs a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
}

@media (max-width: 1500px) {
  .nav {
    gap: 28px;
  }
}

@media (max-width: 1100px) {
  :root {
    --header-h: 72px;
  }

  .container {
    width: calc(100% - 48px);
  }

  .logo img {
    height: 44px;
  }

  .header-inner {
    gap: 16px;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 101;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    flex: none;
    margin: 0;
    padding: 8px 0 20px;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    display: block;
    padding: 14px 24px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateX(-12px);
    transition: color 0.25s, background 0.25s, opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .nav a:hover,
  .nav a.is-active {
    background: rgba(218, 41, 21, 0.06);
    color: var(--red);
  }

  .nav a.is-active {
    border-left: 3px solid var(--red);
    padding-left: 21px;
  }

  .nav.is-open a {
    opacity: 1;
    transform: translateX(0);
  }

  .nav.is-open a:nth-child(1) { transition-delay: 0.04s; }
  .nav.is-open a:nth-child(2) { transition-delay: 0.08s; }
  .nav.is-open a:nth-child(3) { transition-delay: 0.12s; }
  .nav.is-open a:nth-child(4) { transition-delay: 0.16s; }
  .nav.is-open a:nth-child(5) { transition-delay: 0.2s; }
  .nav.is-open a:nth-child(6) { transition-delay: 0.24s; }
  .nav.is-open a:nth-child(7) { transition-delay: 0.28s; }
  .nav.is-open a:nth-child(8) { transition-delay: 0.32s; }

  .nav-toggle {
    display: grid;
    margin-left: 0;
    order: 3;
  }

  .header-contact {
    order: 2;
    margin-left: auto;
  }

  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    flex-wrap: wrap;
    gap: 28px;
  }

  .footer-top {
    flex-wrap: wrap;
    gap: 20px;
  }

  .footer-info {
    flex-wrap: wrap;
    gap: 16px 28px;
  }

  .footer-info-item {
    white-space: normal;
  }

  .tab-bar .container {
    flex-wrap: wrap;
  }

  .tab-bar a {
    flex: 1 1 46%;
    white-space: normal;
    padding: 16px 8px;
  }

  .section-head {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
  }

  .section-head .tabs {
    position: static;
    transform: none;
    flex-wrap: wrap;
    gap: 16px;
  }

  .page-banner {
    height: 240px;
    min-height: 180px;
  }

  .page-banner h1 {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .container {
    width: calc(100% - 32px);
  }

  .logo img {
    height: 40px;
  }

  .section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 24px;
  }

  .section-title::after {
    width: 36px;
    height: 3px;
    margin-top: 10px;
  }

  .page-banner {
    height: 200px;
    min-height: 160px;
  }

  .page-banner h1 {
    font-size: 28px;
  }

  .page-banner p {
    font-size: 14px;
  }

  /* 手机脚部：左 Logo+电话/地址，右二维码，底 copyright */
  .footer-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "main qr"
      "copy copy";
    align-items: start;
    gap: 20px 16px;
    padding: 28px 0 24px;
  }

  .footer-left {
    display: contents;
  }

  .footer-top {
    grid-area: main;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 0;
  }

  .footer-logo img {
    height: 40px;
  }

  .footer-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }

  .footer-info-item {
    font-size: 13px;
    line-height: 1.5;
    gap: 10px;
    align-items: flex-start;
  }

  .footer-info-item .ico {
    width: 28px;
    height: 28px;
    margin-top: 1px;
  }

  .footer-info-item .ico img {
    width: 13px;
    height: 13px;
  }

  .footer-qr {
    grid-area: qr;
    align-self: center;
  }

  .footer-qr-box {
    width: 88px;
    padding: 6px 6px 4px;
  }

  .footer-qr-box span {
    font-size: 11px;
  }

  .footer-copy {
    grid-area: copy;
    font-size: 12px;
    line-height: 1.7;
    width: 100%;
  }

  .pagination {
    gap: 8px;
    margin-top: 36px;
  }
}

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

  .header-contact span {
    display: none;
  }

  .header-contact {
    padding: 0 12px;
    height: 38px;
  }

  .nav a {
    padding: 15px 16px;
    font-size: 15px;
  }

  .nav a.is-active {
    padding-left: 13px;
  }

  .tab-bar a {
    flex: 1 1 100%;
    padding: 14px 10px;
    font-size: 14px;
  }
}
