/* ==========================================================================
   custom.css — loaded last, overrides the theme.

   Fixes three measured problems with the base template:

   1. FONTS. The theme declares only  font-family:"微软雅黑"  (Microsoft YaHei)
      with no fallback stack. That font ships on Chinese Windows and nowhere
      else, so on a Mac, on Western Windows or on Linux the browser falls back
      to its default — normally Times serif. That is why English body copy was
      rendering as a serif and reading like a 2005 word-processor document.
      Fixed with a native system stack that resolves on every platform and
      still renders Chinese correctly.

      Deliberately NOT a Google webfont: Google Fonts is blocked in mainland
      China, and this company's number is a mainland mobile. A webfont would
      hang for exactly the audience most likely to visit.

   2. FIXED WIDTH. .center was width:1400px with no max-width, so any window
      narrower than 1400px got a horizontal scrollbar and clipped content.
      That includes most 13" laptops and any non-maximised window.

   3. TYPE SCALE. Body copy was 14px with line-height:normal (~1.2). Small and
      tight by current standards; long-form service pages were hard to scan.
   ========================================================================== */

:root {
  --ink: #17263a;
  --ink-soft: #48586e;
  --rule: #dfe5ec;
  --brand: #2f5f96;
}

/* ---- 1. type ------------------------------------------------------------ */
html, body,
input, textarea, select, button,
.center, .top, .nav_pc, .news_list, .text, .bt, .p, div, p, span, a, li, td {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", "Noto Sans", Arial,
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .biaoti text, .biaoti p {
  letter-spacing: -0.012em;
  font-weight: 700;
  color: var(--ink);
}

/* ---- 2. responsive container -------------------------------------------- */
.center {
  width: 1400px;
  max-width: calc(100% - 56px);
  box-sizing: border-box;
}

html, body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

@media (max-width: 1460px) {
  .center { max-width: calc(100% - 40px); }
}

/* ---- 3. long-form readability ------------------------------------------- */
#DetailedSpan, .neirong, .content {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

#DetailedSpan p, .neirong p { margin: 0 0 1.05em; }

#DetailedSpan h2, .neirong h2 {
  font-size: 21px;
  line-height: 1.35;
  margin: 2em 0 .75em;
  padding-bottom: .5em;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}

#DetailedSpan ul, .neirong ul {
  margin: 0 0 1.4em;
  padding-left: 0;
  list-style: none;
}

#DetailedSpan ul li, .neirong ul li {
  position: relative;
  margin: 0 0 .85em;
  padding-left: 20px;
}

#DetailedSpan ul li::before, .neirong ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

#DetailedSpan strong, .neirong strong { color: var(--ink); font-weight: 650; }

#DetailedSpan p.lead, .neirong p.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  padding: 18px 22px;
  margin-bottom: 1.6em;
  background: #f4f7fa;
  border-left: 3px solid var(--brand);
}

#DetailedSpan p.lead strong { font-weight: 600; }

#DetailedSpan img, .neirong img {
  border-radius: 3px;
  margin: .4em 0 1.4em;
}

/* ---- polish ------------------------------------------------------------- */
.news_list .text, .text { line-height: 1.6; }

a { transition: color .15s ease, opacity .15s ease; }

input[type=text], textarea {
  font-size: 15px;
  padding: 9px 11px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input[type=text]:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 95, 150, .12);
}

.button_w1, .button_w2, input[type=submit], input[type=reset] {
  font-size: 15px;
  padding: 9px 22px;
  border-radius: 3px;
  cursor: pointer;
  transition: filter .15s ease;
}

.button_w1:hover, .button_w2:hover { filter: brightness(1.08); }

/* keep tap targets sane on phones */
@media (max-width: 768px) {
  body { font-size: 15.5px; }
  #DetailedSpan, .neirong { font-size: 16px; }
  #DetailedSpan h2, .neirong h2 { font-size: 19px; }
  #DetailedSpan p.lead, .neirong p.lead { font-size: 16.5px; padding: 15px 17px; }
  .center { max-width: calc(100% - 28px); }
}

/* ==========================================================================
   Hero slides.

   The theme shipped the carousel as flat <img> slides, which meant the
   headline was baked into a JPEG — soft on any retina screen, and stretched
   whenever the viewport was wider than the file. Now the photograph is a CSS
   background and the headline is real text, so type stays crisp at any pixel
   density and the image can never be upscaled past its own resolution.
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  aspect-ratio: 1920 / 480;
  min-height: 300px;
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
  overflow: hidden;
  text-decoration: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
              rgba(11, 26, 45, .93) 0%,
              rgba(11, 26, 45, .82) 34%,
              rgba(13, 32, 56, .44) 62%,
              rgba(16, 38, 66, .26) 100%);
}

.hero-in {
  position: relative;
  z-index: 2;
  display: block;
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
  box-sizing: border-box;
}

.hero-kick {
  display: inline-block;
  font-size: clamp(10px, .78vw, 13px);
  font-weight: 700;
  letter-spacing: .19em;
  color: #f0a63c;
  padding-bottom: 9px;
  margin-bottom: 15px;
  border-bottom: 2px solid #f0a63c;
}

.hero-head {
  display: block;
  margin-bottom: 14px;
  font-size: clamp(25px, 3.05vw, 55px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -.022em;
  color: #fff;
  text-shadow: 0 1px 22px rgba(0, 0, 0, .3);
}

.hero-head span { display: block; }

.hero-sub {
  display: block;
  max-width: 46ch;
  font-size: clamp(13.5px, 1.12vw, 18.5px);
  line-height: 1.55;
  color: #ccdcec;
}

.hero.hero-m {
  aspect-ratio: 750 / 520;
  min-height: 0;
  background-position: center 38%;
}

.hero.hero-m::after {
  background: linear-gradient(178deg,
              rgba(11, 26, 45, .58) 0%,
              rgba(11, 26, 45, .80) 55%,
              rgba(11, 26, 45, .93) 100%);
}

.hero.hero-m .hero-in { padding: 0 22px; }
.hero.hero-m .hero-head { font-size: clamp(21px, 6.2vw, 31px); }
.hero.hero-m .hero-sub { font-size: clamp(13px, 3.5vw, 16px); }

.swiper-pagination-bullet { opacity: .55; }
.swiper-pagination-bullet-active { opacity: 1; background: #f0a63c; }

/* ==========================================================================
   Header telephone block.

   Was a flat PNG with the numbers baked in as pixels — soft on retina, not
   selectable, not tappable, and impossible to update without regenerating the
   image. Now real text: crisp at any density, dials on tap, and readable by
   screen readers and search engines.
   ========================================================================== */

.hdr-tel {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 0;
  align-items: flex-end;
}

.hdr-tel-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  text-decoration: none;
  line-height: 1.15;
  white-space: nowrap;
}

.hdr-tel-flag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #7c8ca0;
  border: 1px solid #d6dee7;
  border-radius: 2px;
  padding: 2px 5px;
  line-height: 1;
}

.hdr-tel-num {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.015em;
  color: #17263a;
  font-variant-numeric: tabular-nums;
}

.hdr-tel-row:hover .hdr-tel-num { color: #2f5f96; }
.hdr-tel-row:hover .hdr-tel-flag { color: #2f5f96; border-color: #9fb6cd; }

@media (max-width: 1200px) {
  .hdr-tel-num { font-size: 19px; }
}
