/* ===== Design Canvas: 2560 × 1440 ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --design-width: 2560px;
  --design-height: 1440px;
  --header-h: 67px;
  --footer-h: 108px;
  --hero-h: 502px;
  --home-body-h: 763px;
  --home-content-h: calc(var(--design-height) - var(--header-h) - var(--footer-h));
  --inner-body-h: 1265px;
  --content-w: 1396px;
  --content-w-process: 1826px;
  --side-pad: 200px;
  --color-primary: #1890ff;
  --color-nav-active: #5a3620;
  --color-text: #162234;
  --color-text-muted: #a1acbe;
  --color-text-light: #a5a5a5;
  --color-white: #ffffff;
  --font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: #c8d8e8;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: none;
}

ul {
  list-style: none;
}

/* ===== Scale Wrapper ===== */
#scale-root {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.design-wrapper {
  width: var(--design-width);
  min-height: var(--design-height);
  flex-shrink: 0;
  transform-origin: top center;
  background: #e8ebfa;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* 顶部区：导航 + Hero / 页头内容 */
.page-layout-top {
  flex-shrink: 0;
  position: relative;
}

/* 底部区：可拉伸背景 + 页脚 */
.page-layout-bottom {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
/* ===== Home content (index) ===== */
.home-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  position: relative;
  isolation: isolate;
  min-height: var(--home-content-h);
  overflow: hidden;
}

.home-content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../assets/home/background.png") center top / cover no-repeat;
  pointer-events: none;
}

.home-content > * {
  position: relative;
  z-index: 1;
}

html.is-scaled .home-content::before {
  background-size: 100% 100%;
  background-position: center top;
}
.layout-stretch {
  flex: 1;
  min-height: 0;
}

/* ===== Header ===== */
.site-header {
  height: var(--header-h);
  flex-shrink: 0;
  background: url("../assets/home/header.png") repeat-x center;
  background-size: auto var(--header-h);
}

html.is-scaled .site-header {
  background-size: 100% var(--header-h);
}

.header-inner {
  width: 100%;
  height:100%;
  padding: 0 var(--side-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  width: 63px;
  height: 45px;
  object-fit: contain;
  mix-blend-mode: screen;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 63px;
  padding: 0 18px;
  font-size: 23px;
  color: var(--color-white);
  border-radius: 4px;
  white-space: nowrap;
  transition: color 0.2s;
}

.main-nav a:hover {
  opacity: 0.85;
}

.main-nav a.active {
  color: var(--color-nav-active);
  background: url("../assets/home/selected-button.png") center / 100% 100% no-repeat;
}

/* ===== Footer ===== */
.site-footer {
  height: var(--footer-h);
  flex-shrink: 0;
  background: url("../assets/home/footer.png") repeat-x center;
  background-size: auto var(--footer-h);
}

html.is-scaled .site-footer {
  background-size: 100% var(--footer-h);
}

.footer-inner {
  width: 100%;
  height: 100%;
  padding: 0 var(--side-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copyright {
  font-size: 20px;
  color: var(--color-white);
  line-height: 1;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 20px;
  color: var(--color-white);
  line-height: 1;
}

/* ===== Home ===== */
.hero {
  position: relative;
  height: var(--hero-h);
  flex-shrink: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-inner {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
  z-index: 2;
}

.hero-left {
  position: relative;
  width: 560px;
  flex-shrink: 0;
}

.hero-badge img {
  width: 504px;
  height: 121px;
}

.hero-title {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.5;
}

.hero-subtitle {
  margin-top: 14px;
  font-size: 21px;
  color: var(--color-text-light);
  line-height: 1.4;
  max-width: 520px;
}

.hero-stats {
  position: relative;
  width: 820px;
  height: 360px;
  margin-top: 24px;
  flex-shrink: 0;
}

.hero-stat {
  position: absolute;
}

.hero-stat--projects {
  left: 0;
  top: 0;
  width: 297px;
  height: 159px;
}

.hero-stat--clients {
  left: 420px;
  top: 10px;
  width: 334px;
  height: 181px;
}

.hero-stat--years {
  left: 60px;
  top: 155px;
  width: 281px;
  height: 172px;
}

.hero-stat--satisfaction {
  left: 440px;
  top: 165px;
  width: 359px;
  height: 174px;
}

.home-body {
  flex: 0 0 0;
  min-height: 0;
  height: 0;
  overflow: hidden;
}

/* ===== Inner Pages ===== */
.page-body {
  min-height: var(--inner-body-h);
  background: url("../assets/common-background.png") center top / cover no-repeat;
}

html.is-scaled .page-body {
  background-size: 100% 100%;
  background-position: center;
}

.page-body.about-page {
  background: url("../assets/about/background.png") center top / cover no-repeat;
}

html.is-scaled .page-body.about-page {
  background-size: 100% 100%;
  background-position: center;
}

.page-body.about-page .page-section {
  width: 1466px;
}

.page-section {
  width: var(--content-w);
  margin: 0 auto;
  padding: 13px 0 80px;
}

.page-section--wide {
  width: var(--content-w-process);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title-img img {
  margin: 0 auto;
  height: auto;
}

.section-title-img--core img { width: 244px; }
.section-title-img--case img { width: 241px; }
.section-title-img--process img { width: 231px; }
.section-title-img--service img { width: 266px; }
.section-title-img--about img { width: 276px; }

.section-heading {
  margin-top: 20px;
  font-size: 40px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.section-desc {
  margin-top: 12px;
  font-size: 24px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== 4-Card Grid (core / case) ===== */
.card-grid-4 {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.card-grid-4 .card-item {
  width: 319px;
  flex-shrink: 0;
}

.card-grid-4 .card-item img {
  width: 319px;
  height: 389px;
  object-fit: contain;
}

/* ===== 5-Card Process ===== */
.process-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.process-card {
  width: 341px;
  flex-shrink: 0;
}

.process-card img {
  width: 341px;
  height: 419px;
  object-fit: contain;
}

/* ===== 3-Card Service ===== */
.service-grid {
  width: var(--content-w);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.service-grid .card-item {
  flex-shrink: 0;
}

.service-grid .card-item img {
  object-fit: contain;
}

.service-grid .card-item--basic img,
.service-grid .card-item--enterprise img {
  width: 341px;
  height: 444px;
}

.service-grid .card-item--pro img {
  width: 419px;
  height: 546px;
}

/* ===== About ===== */
.about-content {
  width: 1560 px;
  margin: 0 auto 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.about-text-card {
  width: 620px;
  flex-shrink: 0;
  background: var(--color-white);
  border-radius: 10px;
  padding: 36px 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border-top: 5px solid #f9c851;
}

.about-text-card p {
  font-size: 20px;
  color: #555;
  line-height: 2.2;
  margin-bottom: 18px;
}

.about-text-card p:last-child {
  margin-bottom: 0;
}

.about-stats {
  width: 910px;
  flex-shrink: 0;
}

.about-stats img {
  width: 910px;
  height: 519px;
  object-fit: contain;
}

.contact-section {
  text-align: center;
}

.contact-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 28px;
}

.contact-card {
  position: relative;
  width:  1319px;
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 1466 / 386;
  overflow: hidden;
}

.contact-card > img {
  position: relative;
  z-index: 0;
  width: 1319px;
  height: 347px;
  object-fit: fill;
  display: block;
}

.contact-grid {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 1319px;
  height: 347px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 60px 40px 40px;
  transform: translate(-50%, -50%) scale(var(--contact-scale, 1));
  transform-origin: center center;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  height: 100%;
  padding: 0 8px;
  border-right: 1px solid #e0e0e0;
}

.contact-item:last-child {
  border-right: none;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--color-white);
}

.contact-icon--phone { background: #ff8c42; }
.contact-icon--email { background: #4a9fd4; }
.contact-icon--wechat { background: #52c41a; }
.contact-icon--address { background: #ff4d4f; }

.contact-label {
  font-size: 24px;
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.contact-value {
  font-size: 23px;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
  max-width: 100%;
}

.contact-value a {
  color: inherit;
  text-decoration: none;
}

.contact-value a:hover {
  color: var(--color-primary);
}

.contact-value--copy {
  cursor: pointer;
}

/* ===== Chat Widget (preview 1:1) ===== */
.chat-widget {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 9999;
  width: 340px;
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-widget:not(.collapsed) {
  transform: scale(1.2);
  transform-origin: bottom right;
}

.chat-widget.collapsed {
  width: max-content;
  max-width: calc(100vw - 24px);
  background: transparent;
  box-shadow: none;
  transform: none;
}

.chat-widget.collapsed .chat-body,
.chat-widget.collapsed .chat-footer {
  display: none;
}

.chat-widget.collapsed .chat-header {
  justify-content: flex-start;
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(24, 144, 255, 0.35);
  padding: 10px 16px;
}

.chat-widget.collapsed .chat-header-right {
  display: none;
}

.chat-widget.collapsed .chat-header-info {
  white-space: nowrap;
}

.chat-header {
  background: #1890ff;
  color: var(--color-white);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-header-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.chat-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #52c41a;
  flex-shrink: 0;
}

.chat-status-dot.is-offline {
  background: #faad14;
}

.chat-status-text {
  font-size: 12px;
  opacity: 0.92;
}

.chat-header-right {
  text-align: right;
  flex-shrink: 0;
}

.chat-hotline-label {
  font-size: 11px;
  opacity: 0.85;
  line-height: 1.3;
}

.chat-hotline-num {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
  line-height: 1.3;
  display: block;
}

.chat-hotline-num:hover {
  opacity: 0.9;
}

.chat-body {
  padding: 14px 14px 10px;
  max-height: 340px;
  overflow-y: auto;
  flex: 1;
  background: var(--color-white);
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 12px;
}

.chat-msg-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.chat-msg-row--visitor {
  flex-direction: row-reverse;
}

.chat-msg-row--system {
  justify-content: center;
}

.chat-msg-row--system .chat-msg-content {
  max-width: 90%;
  align-items: center;
  display: flex;
  flex-direction: column;
}

.chat-msg-row--system .chat-bubble {
  border-radius: 10px;
  text-align: center;
}

.chat-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1890ff;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-msg-content {
  max-width: calc(100% - 40px);
}

.chat-msg-row--visitor .chat-msg-content {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
}

.chat-bubble {
  background: #f5f5f5;
  border-radius: 0 10px 10px 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: #333;
  line-height: 1.65;
  word-break: break-word;
}

.chat-msg-row--visitor .chat-bubble {
  background: #e6f4ff;
  border-radius: 10px 0 10px 10px;
}

.chat-bubble--system {
  background: #fffbe6;
  color: #ad6800;
}

.chat-time {
  font-size: 11px;
  color: #bbb;
  margin-top: 4px;
  padding: 0 2px;
}

.chat-quick-replies {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.chat-quick-replies button {
  background: var(--color-white);
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  padding: 7px 8px;
  font-size: 11px;
  color: #333;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  line-height: 1.4;
}

.chat-quick-replies button:hover {
  border-color: #1890ff;
  color: #1890ff;
  background: #f0f8ff;
}

.chat-footer {
  padding: 0 14px 12px;
  background: var(--color-white);
  flex-shrink: 0;
}

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f5f5;
  border-radius: 22px;
  padding: 4px 4px 4px 14px;
}

.chat-input-area input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 0;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  color: #333;
}

.chat-input-area input::placeholder {
  color: #bbb;
}

.chat-send-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #1890ff;
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.chat-send-btn:hover {
  background: #096dd9;
}

.chat-security {
  text-align: center;
  font-size: 10px;
  color: #bbb;
  margin-top: 8px;
  line-height: 1.4;
}

/* ===== Mobile Nav Toggle (hidden on desktop) ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Fluid Layout (mobile < 768px) ===== */
html.is-fluid #scale-root {
  height: auto !important;
  overflow: visible;
}

html.is-fluid .design-wrapper {
  width: 100%;
  min-height: auto;
  transform: none !important;
}

html.is-fluid img {
  max-width: 100%;
  height: auto;
}

html.is-fluid .header-inner {
  padding: 0 clamp(16px, 4vw, 80px);
}

html.is-fluid .footer-inner {
  padding: 0 clamp(16px, 4vw, 80px);
}

html.is-fluid .home-content::before {
  background-position: center top;
}

html.is-fluid .home-content {
  flex: none;
  justify-content: center;
  min-height: auto;
}

html.is-fluid .home-body {
  min-height: 0;
  height: 0;
}

html.is-fluid .hero {
  height: auto;
  min-height: clamp(360px, 50vw, 502px);
  padding: clamp(32px, 5vw, 72px) clamp(20px, 5vw, 80px);
}

html.is-fluid .hero-inner {
  flex-direction: column;
  align-items: center;
  width: 100%;
}

html.is-fluid .hero-left {
  width: min(560px, 100%);
}

html.is-fluid .hero-badge img {
  width: min(504px, 100%);
  height: auto;
}

html.is-fluid .hero-subtitle {
  max-width: 100%;
}

html.is-fluid .hero-stats {
  width: min(820px, 100%);
  height: auto;
  margin-top: clamp(20px, 4vw, 40px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 2vw, 24px);
}

html.is-fluid .hero-stat {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: 100% !important;
  height: auto !important;
}

html.is-fluid .page-layout-bottom {
  flex: none;
}

html.is-fluid .layout-stretch {
  flex: none;
}

html.is-fluid .page-body {
  min-height: auto;
}

html.is-fluid .page-section,
html.is-fluid .page-section--wide,
html.is-fluid .page-body.about-page .page-section {
  width: min(var(--content-w), 100%);
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

html.is-fluid .page-section--wide {
  width: min(var(--content-w-process), 100%);
}

html.is-fluid .card-grid-4 {
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 3vw, 40px);
}

html.is-fluid .card-grid-4 .card-item,
html.is-fluid .card-grid-4 .card-item img {
  width: min(319px, 100%);
  height: auto;
}

html.is-fluid .process-grid {
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 2vw, 30px);
}

html.is-fluid .process-card,
html.is-fluid .process-card img {
  width: min(341px, 100%);
  height: auto;
}

html.is-fluid .service-grid {
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 3vw, 40px);
}

html.is-fluid .service-grid .card-item--basic img,
html.is-fluid .service-grid .card-item--enterprise img {
  width: min(341px, 100%);
  height: auto;
}

html.is-fluid .service-grid .card-item--pro img {
  width: min(419px, 100%);
  height: auto;
}

html.is-fluid .about-content {
  width: 100%;
  flex-direction: column;
  align-items: center;
}

html.is-fluid .about-text-card {
  width: 100%;
  max-width: 600px;
}

html.is-fluid .about-stats,
html.is-fluid .about-stats img {
  width: 100%;
  max-width: 910px;
  height: auto;
}

html.is-fluid .contact-card {
  width: 100%;
  max-width: 1466px;
  aspect-ratio: 4 / 3.2;
}

html.is-fluid .contact-card > img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

html.is-fluid .contact-grid {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  padding: 8% 5% 6%;
  align-items: center;
}

html.is-fluid .contact-item {
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  padding: 4px 6px;
  height: auto;
}

html.is-fluid .contact-item:nth-child(2n) {
  border-right: none;
}

html.is-fluid .contact-item:nth-child(n + 3) {
  border-bottom: none;
}

html.is-fluid .contact-icon {
  width: clamp(28px, 9vw, 48px);
  height: clamp(28px, 9vw, 48px);
  font-size: clamp(16px, 4.5vw, 32px);
}

html.is-fluid .contact-label {
  font-size: clamp(11px, 3.2vw, 24px);
}

html.is-fluid .contact-value {
  font-size: clamp(10px, 3vw, 23px);
}

html.is-fluid .section-heading {
  font-size: clamp(26px, 4vw, 40px);
}

html.is-fluid .section-desc {
  font-size: clamp(16px, 2.5vw, 24px);
}

/* ===== Tablet (≤ 1199px) ===== */
@media (max-width: 1199px) {
  html.is-fluid .main-nav a {
    min-width: 80px;
    padding: 0 12px;
    font-size: clamp(16px, 2vw, 20px);
    height: 48px;
  }

  html.is-fluid .card-grid-4 .card-item {
    flex: 0 1 calc(50% - 20px);
    max-width: 319px;
  }

  html.is-fluid .process-card {
    flex: 0 1 calc(33.333% - 20px);
    max-width: 341px;
  }

}

/* ===== Mobile (≤ 767px) ===== */
@media (max-width: 767px) {
  html.is-fluid .site-header {
    height: auto;
    min-height: var(--header-h);
  }

  html.is-fluid .header-inner {
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 8px;
    position: relative;
  }

  html.is-fluid .nav-toggle {
    display: flex;
    order: 2;
    margin-left: auto;
  }

  html.is-fluid .logo {
    order: 1;
  }

  html.is-fluid .logo img {
    width: 50px;
    height: 36px;
  }

  html.is-fluid .main-nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0 4px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
  }

  html.is-fluid .main-nav.is-open {
    display: flex;
  }

  html.is-fluid .main-nav a {
    width: 100%;
    min-width: 0;
    height: 44px;
    font-size: 16px;
    justify-content: flex-start;
    padding: 0 16px;
  }

  html.is-fluid .site-footer {
    height: auto;
    min-height: var(--footer-h);
  }

  html.is-fluid .footer-inner {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    text-align: center;
  }

  html.is-fluid .footer-copyright,
  html.is-fluid .footer-links a {
    font-size: 12px;
  }

  html.is-fluid .home-content::before {
    background-position: 70% top;
  }

  html.is-fluid .hero {
    min-height: auto;
    padding: 24px 16px 32px;
  }

  html.is-fluid .hero-left {
    text-align: left;
  }

  html.is-fluid .hero-title {
    font-size: clamp(20px, 5.5vw, 28px);
  }

  html.is-fluid .hero-subtitle {
    font-size: clamp(14px, 3.8vw, 18px);
  }

  html.is-fluid .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  html.is-fluid .card-grid-4 .card-item,
  html.is-fluid .process-card,
  html.is-fluid .service-grid .card-item {
    flex: 0 1 100%;
    max-width: 360px;
  }

  html.is-fluid .service-grid {
    align-items: center;
  }

  html.is-fluid .process-card {
    max-width: 360px;
  }

  html.is-fluid .section-header {
    margin-bottom: 32px;
  }

  html.is-fluid .section-title-img--core img,
  html.is-fluid .section-title-img--case img,
  html.is-fluid .section-title-img--process img,
  html.is-fluid .section-title-img--service img,
  html.is-fluid .section-title-img--about img {
    width: min(240px, 70vw);
  }

  html.is-fluid .about-text-card p {
    font-size: 14px;
  }

  html.is-fluid .contact-title {
    font-size: 24px;
  }

  /* Chat widget */
  .chat-widget {
    right: 12px;
    bottom: 80px;
  }

  .chat-widget:not(.collapsed) {
    width: calc(100vw - 24px);
    max-width: 340px;
  }

  .chat-widget.collapsed {
    width: max-content;
  }

  .chat-body {
    max-height: min(50vh, 320px);
  }

  .chat-quick-replies {
    grid-template-columns: 1fr;
  }

  .chat-quick-replies button {
    font-size: 12px;
    white-space: normal;
  }

  .chat-hotline-num {
    font-size: 15px;
  }
}

/* ===== Small phones (≤ 374px) ===== */
@media (max-width: 374px) {
  html.is-fluid .hero-stats {
    grid-template-columns: 1fr;
  }

  .chat-widget:not(.collapsed) .chat-header-right {
    display: none;
  }

  .chat-widget:not(.collapsed) .chat-header-title {
    font-size: 14px;
  }
}

/* ===== PC scaled mode ===== */
html.is-scaled body {
  overflow-x: hidden;
}

html.is-scaled #scale-root {
  width: 100%;
  justify-content: center;
}
