:root {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  color: #132a3e;
  background: #fff;
  line-height: 1.65;
  font-synthesis: none;
  --navy: #102a43;
  --blue: #145989;
  --teal: #8be0d2;
  --muted: #516679;
  --line: #dde7ee;
  --pale: #f2f7fa;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
img { display: block; max-width: 100%; }
button, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg { width: 22px; height: 22px; flex: none; }
h1, h2, h3, p { margin: 0; }
button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 3px solid #298ab5; outline-offset: 4px; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 20px; }
.wrap { width: min(var(--wrap), calc(100% - 88px)); margin-inline: auto; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { z-index: 5; width: auto; height: auto; clip-path: none; margin: 8px; padding: 8px 14px; background: white; }

.site-header { background: #fff; border-bottom: 1px solid #e5edf2; }
.head-row { min-height: 79px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 53px; height: 24px; object-fit: contain; }
.brand span { font-size: 1.11rem; font-weight: 800; line-height: 1.15; letter-spacing: .06em; }
.brand small { display: block; margin-top: 4px; font: 700 .66rem/1.1 Arial, sans-serif; letter-spacing: .15em; color: #536a7e; }
.head-row nav { display: flex; gap: clamp(20px, 3vw, 44px); align-items: center; }
.head-row nav a { font-size: .94rem; color: #354e62; text-decoration: none; white-space: nowrap; }
.head-row nav a:hover, .chat-header-actions > a:hover { color: #096999; text-decoration: underline; text-underline-offset: 5px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: .96rem; padding: 12px 20px; border: 1px solid transparent; border-radius: 8px; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.button-small { min-height: 43px; padding: 7px 14px; font-size: .9rem; }
.button-small svg { width: 17px; height: 17px; }
.button-outline { background: white; border-color: #b9d3e4; color: #135589; }
.button-outline:hover { background: #eaf5fb; border-color: #75a6c7; }
.button-primary { background: var(--teal); color: #0a3336; }
.button-primary:hover { background: #b3eedf; }
.button-on-dark { color: white; border-color: #a0bac7; background: #0d2939a0; }
.button-on-dark:hover { background: #254f64; border-color: white; }
.button-on-dark svg { width: 18px; height: 18px; }

.hero { min-height: 500px; position: relative; display: grid; align-items: center; color: white; background: #0d253d; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #081d34 0%, #091f35eb 23%, #0a243ca3 48%, #0c2c4811 78%), url("/assets/hero.jpg") center 54% / cover; }
.hero-content { padding-block: 63px 78px; }
.eyebrow { color: #94e6d5; font: 700 .82rem/1.5 Arial, sans-serif; letter-spacing: .24em; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.75rem); line-height: 1.19; letter-spacing: -.045em; font-weight: 800; }
.hero-summary { margin-top: 22px; color: #e1edf5; font-size: clamp(1rem, 1.85vw, 1.23rem); }
.hero-actions { margin-top: 29px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-caption { position: absolute; right: 22px; bottom: 16px; font-size: .78rem; color: #fff; padding: 3px 9px; background: #0a2139bb; border-radius: 4px; }

.contact-strip { background: #ecf5fa; color: var(--navy); }
.strip-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.strip-grid > div { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-left: 1px solid #d6e6ef; }
.strip-grid > div:first-child { border: 0; padding-left: 0; }
.strip-grid svg { height: 25px; width: 25px; color: var(--blue); }
.strip-grid span { display: grid; gap: 2px; }
.strip-grid small { font-size: .8rem; color: var(--muted); }
.strip-grid strong, .strip-grid a { font-weight: 750; text-decoration: none; }
.strip-grid a:hover { text-decoration: underline; }
.section { padding-block: 78px; }
.section-kicker { color: #176486; font-size: .91rem; font-weight: 750; letter-spacing: .12em; margin-bottom: 9px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.65rem); line-height: 1.27; letter-spacing: -.035em; }
.about { display: grid; grid-template-columns: .9fr 1.25fr; gap: 50px; align-items: center; }
.about-copy { color: #3e5567; font-size: 1.03rem; }
.about-copy p + p { margin-top: 13px; }
.business { background: #f2f7fa; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 26px; }
.product { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; }
.product > img { width: 100%; height: 158px; object-fit: cover; object-position: center; background: #dbe8f0; }
.product:first-child > img { object-position: 75% 70%; }
.product-copy { padding: 20px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.product-copy h3 { font-size: 1.19rem; line-height: 1.35; margin: 3px 0 9px; }
.product-copy p { color: #4b6274; margin-bottom: 16px; }
.product-copy .product-category { color: #186385; font-size: .88rem; margin: 0; }
.product-copy a { margin-top: auto; color: #135989; font-weight: 700; text-underline-offset: 4px; }
.certificate-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.certificate { display: block; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.certificate:hover { border-color: #78a2bb; }
.certificate-image { height: 146px; display: grid; place-items: center; background: #edf3f7; padding: 10px; overflow: hidden; }
.certificate-image img { max-height: 126px; object-fit: contain; width: auto; height: 100%; }
.certificate-label { min-height: 111px; display: grid; align-content: start; gap: 3px; padding: 14px 13px; }
.certificate-label small { color: #50697d; font-size: .8rem; }
.certificate-label strong { line-height: 1.4; }
.certificate-label span { color: #145989; font-size: .88rem; }
.certificate-scope { color: var(--muted); margin-top: 19px; max-width: 740px; font-size: .91rem; }
.contact-section { padding-block: 58px; color: #fff; background: #102b44; }
.contact-section .section-kicker { color: #98ded7; }
.contact-section h2 + p { margin-top: 12px; color: #d4e4ef; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; align-items: center; }
.contact-details { padding-left: 24px; border-left: 1px solid #6d899d; display: grid; gap: 4px; }
.contact-details span { color: #c3d9e6; font-size: .87rem; }
.contact-number { font: 750 clamp(1.75rem, 3vw, 2.4rem)/1.3 Arial, sans-serif; letter-spacing: .01em; margin-bottom: 9px; text-decoration: none; }
.contact-number:hover { text-decoration: underline; }
address { font-style: normal; }
.site-footer { padding-block: 22px; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-grid small { display: block; color: var(--muted); margin-top: 3px; font-size: .79rem; }
.footer-grid a { color: #155c8b; font-weight: 700; font-size: .9rem; }

dialog { border: 0; border-radius: 14px; padding: 0; width: min(900px, calc(100% - 28px)); max-height: calc(100dvh - 28px); color: var(--navy); box-shadow: 0 15px 65px #04182a66; }
dialog::backdrop { background: #0c2135bd; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 15px; background: #fff; border-bottom: 1px solid var(--line); }
.icon-button { background: #eff5f8; border: 0; color: var(--navy); border-radius: 7px; width: 42px; height: 42px; display: grid; place-items: center; }
dialog > img { margin: 0 auto; max-height: calc(100dvh - 95px); width: auto; object-fit: contain; }

.chat-page { min-height: 100dvh; background: radial-gradient(ellipse at 50% 14%, #e8f4fa, transparent 53%), #f8fbfd; }
.chat-header { border-bottom: 1px solid #dce9ee; background: #ffffffc9; }
.chat-head-row { width: min(1300px, calc(100% - 62px)); margin-inline: auto; height: 69px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.chat-header-actions { display: flex; align-items: center; gap: 20px; }
.chat-header-actions > a { font-size: .92rem; color: #34556d; text-decoration: none; white-space: nowrap; }
.chat-main { width: min(790px, calc(100% - 36px)); margin: 0 auto; min-height: calc(100dvh - 70px); display: flex; flex-direction: column; }
.welcome { text-align: center; padding: clamp(62px, 14vh, 144px) 0 30px; }
.welcome-logo { display: grid; place-items: center; width: 126px; height: 113px; margin: 0 auto 21px; border: 1px solid #dcecf2; border-radius: 28px; background: white; box-shadow: 0 12px 40px #0c3b5421; }
.welcome-logo img { width: 89px; height: auto; }
.welcome :is(h1, h2) { font-size: clamp(1.95rem, 4vw, 3.12rem); line-height: 1.22; letter-spacing: -.035em; }
.welcome p { font-size: 1.05rem; color: #496377; margin-top: 10px; }
.chat-dock { position: sticky; bottom: 0; background: #f8fbfdf8; padding: 7px 0 17px; z-index: 1; }
.welcome:not([hidden]) ~ .chat-dock { position: static; background: transparent; }
.prompt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 13px; }
.prompt-grid button { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: .9rem; font-weight: 650; color: #295672; min-height: 45px; padding: 8px 7px; border: 1px solid #d6e6ef; border-radius: 9px; background: #ffffffd9; }
.prompt-grid button:hover { background: #eaf6fa; border-color: #87b4c9; }
.prompt-grid svg { width: 17px; height: 17px; }
.composer { min-height: 86px; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 12px 13px; background: white; border: 1px solid #bcd6e4; border-radius: 16px; box-shadow: 0 8px 23px #143b5b12; }
.composer:focus-within { border-color: #5895b5; }
.composer textarea { resize: none; width: 100%; padding: 8px 4px 3px; color: var(--navy); border: none; border-radius: 4px; }
.composer textarea:focus { outline: 0; }
.composer textarea::placeholder { color: #5c7384; }
.send { width: 49px; height: 49px; display: grid; place-items: center; color: white; background: #105d87; border: 0; border-radius: 12px; }
.send:hover { background: #074065; }
.send:disabled { opacity: .52; cursor: wait; }
.chat-note { text-align: center; color: #4f6778; font-size: .82rem; margin-top: 10px; overflow-wrap: anywhere; }
.chat-note a { text-underline-offset: 3px; }
.chat-note > span { margin-inline: 2px; }
.messages { min-height: 0; flex: 1; padding: 26px 0 12px; }
.message { display: flex; margin-bottom: 19px; scroll-margin-top: 12px; scroll-margin-bottom: 110px; }
.message.user { justify-content: flex-end; }
.message-body { max-width: 95%; padding: 13px 16px; border: 1px solid #d7e5ee; border-radius: 12px; background: white; }
.user .message-body { max-width: 83%; border-color: #d0e5f1; background: #e5f1f8; }
.message-label { color: #245a79; font-weight: 750; font-size: .86rem; display: block; margin-bottom: 3px; }
.message-copy { overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.76; }
.loading .message-copy { color: var(--muted); }
.chat-cards { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chat-card { display: flex; align-items: center; gap: 9px; min-height: 70px; padding: 6px 9px; border: 1px solid #dbe7ed; border-radius: 8px; text-decoration: none; }
.chat-card:hover { background: #eff7fb; border-color: #8bb1c5; }
.chat-card img { width: 43px; height: 52px; object-fit: contain; }
.chat-card span { display: grid; line-height: 1.35; }
.chat-card strong { font-size: .87rem; }
.chat-card small { color: var(--muted); font-size: .75rem; margin-top: 3px; }
.chat-phone { display: inline-block; margin-top: 12px; color: #135989; font-weight: 700; }
.follow-ups { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.follow-ups button { border: 1px solid #c8e0ec; background: #f0f8fc; color: #174e70; font-size: .88rem; border-radius: 7px; padding: 5px 9px; overflow-wrap: anywhere; min-height: 36px; }
.follow-ups button:hover { background: #e0f2f9; }

.assistant-dialog { width: min(870px, calc(100% - 28px)); height: min(750px, calc(100dvh - 28px)); overflow: hidden; background: #f8fbfd; }
.assistant-dialog[open] { display: flex; flex-direction: column; }
body:has(.assistant-dialog[open]) { overflow: hidden; }
.assistant-dialog .chat-main { flex: 1; width: 100%; min-height: 0; padding-inline: clamp(12px, 4vw, 38px); overflow-y: auto; overscroll-behavior: contain; }
.assistant-dialog .welcome { padding-top: clamp(28px, 7vh, 65px); }
.assistant-dialog .messages { flex: 1 0 auto; }

@media (max-width: 850px) {
  .wrap { width: calc(100% - 48px); }
  .head-row { gap: 10px; }
  .head-row nav { gap: 17px; }
  .strip-grid > div { padding-inline: 13px; gap: 8px; }
  .product-grid { gap: 12px; }
  .product-copy { padding: 14px; }
  .certificate-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 630px) {
  .wrap { width: calc(100% - 34px); }
  .head-row { flex-wrap: wrap; padding-top: 12px; gap: 9px; }
  .head-row nav { order: 3; flex: 1 0 100%; justify-content: space-between; gap: 7px; padding-block: 8px 10px; border-top: 1px solid var(--line); }
  .head-row nav a { font-size: .86rem; }
  .hero { min-height: 405px; }
  .hero::before { background-position: center, 60% center; background-image: linear-gradient(90deg, #081e33f5, #081e337d 85%), url("/assets/hero.jpg"); }
  .hero-content { padding-block: 42px 54px; }
  .eyebrow { font-size: .72rem; margin-bottom: 13px; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 3.05rem); }
  .hero-summary { margin-top: 16px; }
  .hero-actions { margin-top: 23px; gap: 8px; }
  .hero-actions .button { padding-inline: 11px; font-size: .9rem; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .strip-grid > div { padding: 10px 0 10px 8px; gap: 6px; }
  .strip-grid > div:last-child { padding-left: 0; border-left: 0; border-top: 1px solid #d6e6ef; grid-column: 1 / -1; }
  .strip-grid svg { width: 18px; height: 18px; }
  .strip-grid a, .strip-grid strong { font-size: .86rem; }
  .section { padding-block: 49px; }
  .about { grid-template-columns: 1fr; gap: 17px; }
  .desktop-only { display: none; }
  .product-grid, .contact-grid { grid-template-columns: 1fr; }
  .product > img { height: 128px; }
  .certificate-image { height: 117px; }
  .certificate-image img { max-height: 96px; }
  .certificate-label { padding: 10px; }
  .certificate-label strong { font-size: .92rem; }
  .contact-section { padding-block: 39px; }
  .contact-grid { gap: 21px; }
  .contact-details { padding-left: 13px; }
  .footer-grid { flex-wrap: wrap; gap: 10px; }
  .chat-head-row { width: calc(100% - 24px); height: 62px; }
  .chat-header-actions { gap: 8px; }
  .chat-header-actions > a { font-size: .84rem; }
  .chat-header-actions .button { font-size: .82rem; min-height: 39px; padding: 5px 8px; }
  .chat-main { width: calc(100% - 22px); min-height: calc(100dvh - 63px); }
  .welcome { padding: 55px 0 25px; }
  .welcome p { font-size: .95rem; }
  .prompt-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .message-body { max-width: 100%; padding: 11px 12px; }
  .composer { min-height: 71px; padding: 7px 9px; }
  .send { width: 44px; height: 44px; }
  .assistant-dialog { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
