:root {
  --brand-1: #f2f7ff;
  --brand-2: #d6e4ff;
  --brand-4: #85b4ff;
  --brand-6: #3388ff;
  --brand-7: #2170d9;
  --brand-8: #125ab3;
  --ink: #26364a;
  --muted: #748399;
  --line: #e5ebf3;
  --surface: #f7f9fc;
  --white: #fff;
  --shadow: 0 10px 30px rgba(26, 73, 132, 0.1);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
}

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

a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand-4);
  outline-offset: 3px;
}

.container {
  width: min(1190px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(229, 235, 243, 0.9);
  box-shadow: 0 2px 12px rgba(31, 69, 110, 0.05);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 220px;
  color: var(--brand-8);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 56px;
  height: 48px;
  object-fit: contain;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 9px 13px;
  border-radius: 4px;
  color: #43536a;
  font-size: 14px;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand-8);
  background: var(--brand-1);
}

.site-menu-toggle {
  display: none;
  border: 0;
  padding: 8px;
  color: var(--brand-8);
  background: transparent;
  cursor: pointer;
}

.site-menu-toggle svg { width: 24px; height: 24px; }

.hero {
  position: relative;
  min-height: clamp(260px, 42vw, 532px);
  overflow: hidden;
  background: #dbeaff;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 600ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(4, 31, 66, 0.62), rgba(4, 31, 66, 0.05) 62%, rgba(4, 31, 66, 0));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: clamp(260px, 42vw, 532px);
  color: var(--white);
}

.hero-content .eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(28px, 4.5vw, 54px);
  line-height: 1.25;
  letter-spacing: 0.06em;
}

.hero-content > p:not(.eyebrow) {
  margin: 13px 0 25px;
  font-size: clamp(15px, 2vw, 20px);
}

.button--light { border-color: var(--white); color: var(--white); background: transparent; }

.button--light:hover { color: var(--brand-8); background: var(--white); }

.hero-dots {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 24px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid var(--white);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.hero-dot.is-active { background: var(--white); }

.section { padding: 76px 0; }

.section--muted { background: var(--surface); }

.section-heading {
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--brand-7);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading--left { text-align: left; margin-left: 0; }

.section-intro {
  max-width: 740px;
  margin: -12px auto 34px;
  color: var(--muted);
  text-align: center;
}

.page-main { min-height: 58vh; }

.page-banner {
  background:
    linear-gradient(135deg, rgba(242, 247, 255, 0.98), rgba(234, 242, 255, 0.94)),
    url("../images/hero-01.webp") center / cover;
}

.page-content { padding: 76px 0; }

.detail-story {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: center;
}

.detail-story img {
  width: 100%;
  max-height: 390px;
  object-fit: cover;
}

.detail-story h2 { margin: 0 0 13px; font-size: 25px; font-weight: 600; }

.detail-story p { margin: 0 0 15px; color: var(--muted); }

.detail-story--reverse img { order: 2; }

.page-content .section-heading { margin-bottom: 34px; }

.page-content .section-heading h1,
.page-content .section-heading h2 { font-size: 28px; }

.card-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card-grid--six { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card-image--compact { height: 175px; }

.card-image--portrait { height: 240px; }

.card-body .card-note { min-height: 44px; }

.service-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
}

.service-points li {
  padding: 18px;
  border-left: 3px solid var(--brand-6);
  background: var(--brand-1);
  color: var(--ink);
  font-size: 14px;
}

.service-points strong { display: block; margin-bottom: 5px; color: var(--brand-8); }

.article-row--card { align-items: start; }

.article-row--card h2 { margin-top: 3px; }

.article-row--card .article-copy { padding: 5px 0; }

.contact-detail { align-items: stretch; }

.contact-detail > img { height: 100%; min-height: 320px; object-fit: cover; }

.branch-grid { margin-top: 66px; }

.branch-grid .card-image { height: 170px; }

.branch-grid .card-body { text-align: center; }

.breadcrumb { margin: 0 0 10px; color: var(--brand-7); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 3px 14px rgba(31, 69, 110, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 204px;
  overflow: hidden;
  background: #f3f6fb;
}

.card-image img { width: 100%; height: 100%; object-fit: cover; }

.card-image--contain img { object-fit: contain; padding: 12px; }

.card-body { padding: 17px 18px 20px; }

.card-body h3 { margin: 0; color: var(--ink); font-size: 16px; font-weight: 600; }

.card-body p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }

.card-body time { color: var(--brand-7); font-size: 12px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 42px;
  padding: 8px 20px;
  border: 1px solid var(--brand-7);
  border-radius: 2px;
  color: var(--brand-8);
  background: var(--white);
  font-size: 14px;
  transition: color 160ms ease, background 160ms ease;
}

.button:hover { color: var(--white); background: var(--brand-7); }

.section-action { display: flex; justify-content: center; margin-top: 34px; }

.company-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
}

.company-layout img,
.contact-layout > img {
  width: 100%;
  max-height: 390px;
  object-fit: cover;
}

.company-copy { color: var(--muted); font-size: 15px; }

.company-copy p { margin: 0 0 22px; }

.contact-panel {
  padding: 31px;
  border: 1px solid var(--line);
  background: var(--white);
}

.contact-panel h3 { margin: 0 0 19px; font-size: 22px; font-weight: 600; }

.contact-list { padding: 0; margin: 0; list-style: none; color: var(--muted); }

.contact-list li { padding: 9px 0; border-bottom: 1px solid var(--line); }

.contact-list strong { display: inline-block; min-width: 70px; color: var(--ink); font-weight: 500; }

.contact-list a { color: var(--brand-7); }

.page-banner {
  padding: 70px 0 58px;
  background: linear-gradient(135deg, var(--brand-1), #eaf2ff);
  text-align: center;
}

.page-banner h1 { margin: 0; color: var(--brand-8); font-size: 36px; font-weight: 600; }

.page-banner p { margin: 8px 0 0; color: var(--muted); font-size: 13px; letter-spacing: 0.14em; }

.article-list { display: grid; gap: 18px; }

.article-row {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 26px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--white);
}

.article-row img { width: 230px; height: 145px; object-fit: cover; }

.article-row h2 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }

.article-row p { margin: 0; color: var(--muted); font-size: 14px; }

.branches { margin-top: 60px; }

.site-footer {
  padding: 34px 0;
  color: #7a8797;
  background: #f4f6f9;
  font-size: 13px;
}

.footer-inner { display: flex; justify-content: space-between; gap: 30px; }

.footer-brand { color: var(--brand-8); font-size: 18px; font-weight: 600; }

.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

.footer-links a:hover { color: var(--brand-7); }

.footer-meta { margin-top: 12px; }

.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 10;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--brand-7);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 180ms ease;
}

.back-to-top.is-visible { opacity: 1; pointer-events: auto; }

@media (max-width: 900px) {
  .header-inner { min-height: 68px; }
  .site-menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 10px 24px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: grid; gap: 2px; }
  .site-nav a { padding: 10px 12px; }
  .card-grid, .card-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid--four, .card-grid--six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-layout, .contact-layout { gap: 32px; }
  .detail-story { gap: 32px; }
  .service-points { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 30px, 1190px); }
  .brand { min-width: 0; font-size: 15px; }
  .brand img { width: 45px; height: 40px; }
  .section { padding: 52px 0; }
  .page-banner { padding: 49px 0 40px; }
  .page-banner h1 { font-size: 29px; }
  .card-grid, .card-grid--three, .company-layout, .contact-layout { grid-template-columns: 1fr; }
  .card-grid--four, .card-grid--six, .detail-story { grid-template-columns: 1fr; }
  .company-layout img, .contact-layout > img { max-height: 270px; }
  .detail-story--reverse img { order: 0; }
  .detail-story img, .contact-detail > img { max-height: 270px; min-height: 0; }
  .article-row { grid-template-columns: 1fr; gap: 15px; }
  .article-row img { width: 100%; height: 190px; }
  .footer-inner { display: block; }
  .footer-links { margin: 18px 0; }
  .back-to-top { right: 15px; bottom: 15px; }
}
