:root {
  --ink: #143044;
  --muted: #4d6574;
  --line: #d3e6f0;
  --paper: #f4fafc;
  --navy: #0080c0;
  --blue: #0080c0;
  --blue-deep: #006494;
  --ice: #e5f4fb;
  --white: #fff;
  --shadow: 0 16px 40px rgba(0, 80, 128, 0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Source Han Sans SC", Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

h1, h2, h3, .button, button, .wpcf7-form input[type="submit"] {
  font-family: inherit;
  font-weight: 600;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }
img { max-width: 100%; height: auto; }

.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  background: #e8f6fc;
  color: var(--blue);
  font-size: 13px;
}

.topbar-inner {
  display: flex;
  gap: 16px 28px;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
}

.topbar a { color: var(--blue); }

.topbar-meta {
  display: flex;
  gap: 16px;
  margin: 0;
  white-space: nowrap;
}

.slogan {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
  margin: 0;
}

.slogan-zh {
  letter-spacing: 0.22em;
  font-weight: 600;
}

.slogan-en {
  letter-spacing: 0.12em;
  font-size: 12px;
  text-transform: uppercase;
}

.slogan-bar .slogan-zh { color: var(--blue); font-size: 13px; }
.slogan-bar .slogan-en { color: #4aa3cc; }

h1.slogan-hero { font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit; }
.slogan-hero { display: grid; gap: 6px; margin: 0 0 18px; }
.slogan-hero .slogan-zh {
  color: var(--blue);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.25;
}
.slogan-hero .slogan-en { color: #4aa3cc; font-size: 14px; }

.slogan-footer { margin: 10px 0 14px; }
.slogan-footer .slogan-zh { color: var(--blue); letter-spacing: 0.16em; }
.slogan-footer .slogan-en { color: #4aa3cc; }

.slogan-inline { margin: 0 0 12px; }
.slogan-inline .slogan-zh { color: var(--blue-deep); letter-spacing: 0.14em; }
.slogan-inline .slogan-en { color: var(--muted); }

.hero-lead {
  margin: 0 0 10px;
  color: var(--blue-deep);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
}

.footer-logo {
  height: 42px;
  width: auto;
  filter: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.brand-word { height: 42px; width: auto; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-toggle,
.nav-toggle-label { display: none; }

.primary-nav ul,
.lang-switch ul,
.footer-grid ul {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 15px;
}

.lang-switch {
  display: flex;
  gap: 6px;
  align-items: center;
}

.lang-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.lang-icon.is-current {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.primary-nav a:hover,
.lang-switch .current-lang a,
.primary-nav .current-menu-item a,
.primary-nav .current_page_item a {
  background: var(--ice);
  color: var(--blue-deep);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(244, 250, 252, 0.82) 46%, rgba(0, 128, 192, 0.12) 100%),
    url("lobby/campus-facade.jpg") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent, #000 40%);
}

.hero-rotate { background: #e8f6fc; }

.hero-slides { position: absolute; inset: 0; }
.hero-slides img:not([src]) { visibility: hidden; }

.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: hero-fade 28s infinite;
}

.hero-slides img:nth-child(2) { animation-delay: 7s; }
.hero-slides img:nth-child(3) { animation-delay: 14s; }
.hero-slides img:nth-child(4) { animation-delay: 21s; }

@keyframes hero-fade {
  0% { opacity: 0; }
  4% { opacity: 1; }
  22% { opacity: 1; }
  28% { opacity: 0; }
  100% { opacity: 0; }
}

.hero-rotate::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(244, 250, 252, 0.82) 46%, rgba(0, 128, 192, 0.12) 100%);
}

.hero::before { z-index: 2; }

.hero-dots {
  position: absolute;
  z-index: 3;
  left: max(20px, calc((100% - 1160px) / 2));
  bottom: 56px;
  display: flex;
  gap: 8px;
}

.hero-dots span {
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: rgba(0, 128, 192, 0.25);
  overflow: hidden;
}

.hero-dots span::after {
  content: "";
  display: block;
  height: 100%;
  width: 0;
  background: var(--blue);
  animation: hero-dot 28s infinite;
}

.hero-dots span:nth-child(2)::after { animation-delay: 7s; }
.hero-dots span:nth-child(3)::after { animation-delay: 14s; }
.hero-dots span:nth-child(4)::after { animation-delay: 21s; }

@keyframes hero-dot {
  0% { width: 0; }
  4% { width: 0; }
  22% { width: 100%; }
  28% { width: 100%; }
  29% { width: 0; }
  100% { width: 0; }
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 720px;
  padding: 92px 0 108px;
}

.hero-short .hero-copy { padding: 64px 0 72px; }

.eyebrow {
  margin: 0 0 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  color: #b9d7f5;
}

.hero h1 {
  margin: 0 0 16px;
  max-width: 12em;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.15;
  font-weight: 600;
  color: var(--blue);
}

.hero p { max-width: 40rem; color: var(--ink); font-size: 18px; }
.hero .button { background: var(--blue); color: #fff; }
.hero .button:hover { color: #fff; background: var(--blue-deep); }
.hero .button-secondary { background: #fff; color: var(--blue); border-color: #9fd4ea; }
.hero .button-secondary:hover { background: var(--ice); color: var(--blue-deep); }

.hero-panel {
  justify-self: end;
  width: min(320px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.04);
}

.hero-panel img { width: 62%; border-radius: 24px; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.button {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  color: var(--navy);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
}

.button:hover { color: var(--blue-deep); }
.button-secondary { background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, 0.45); }
.button-secondary:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }

.counters { background: var(--white); margin-top: -36px; position: relative; }

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.counter-grid article { padding: 26px 22px; }
.counter-grid article + article { border-left: 1px solid var(--line); }
.counter-grid.six { grid-template-columns: repeat(6, 1fr); }
.counter-grid.three { grid-template-columns: repeat(3, 1fr); margin-bottom: 22px; }
.counter-grid strong { display: block; font-size: 28px; color: var(--blue-deep); letter-spacing: -0.03em; }
.counter-grid span { color: var(--muted); font-size: 14px; }

.section { padding: 72px 0; }
.section-muted { background: var(--paper); }

.section h2,
main h1 {
  margin: 0 0 22px;
  font-size: 32px;
  letter-spacing: -0.03em;
}

.card-grid,
.footer-grid { display: grid; gap: 18px; }
.card-grid { grid-template-columns: repeat(3, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 160px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  color: inherit;
  box-shadow: 0 1px 0 rgba(20, 32, 51, 0.02);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.card h2, .card h3 { margin: 0; font-size: 20px; }
.card p, .news-card time { color: var(--muted); }
.contact-grid { margin-top: 8px; }
.contact-card { min-height: 0; gap: 4px; }
.contact-card h3 { font-size: 18px; }
.contact-card .role { color: var(--blue-deep); font-size: 14px; }
.contact-card p { margin: 0; }
.catalog-nav { margin-bottom: 12px; }
.catalog-title { margin: 56px 0 18px; font-size: 28px; }
.catalog-title a { color: inherit; }
.card .count { color: var(--blue); font-size: 13px; letter-spacing: 0.06em; }
.product-card { min-height: 0; }
.product-card h2 { font-size: 16px; line-height: 1.45; }

.card-index {
  color: var(--blue);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.split { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 40px; align-items: center; }
.split p { color: var(--muted); }

.steps { margin: 0; padding: 8px; list-style: none; background: var(--white); border-radius: 18px; border: 1px solid var(--line); }
.steps li { margin: 0; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps strong { display: block; color: var(--blue); font-size: 13px; letter-spacing: 0.12em; }

.certs { background: var(--navy); color: var(--white); }
.certs p { margin: 14px 0 0; color: #c5d5e4; }
.cert-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 28px 0 0; list-style: none; }
.cert-row li {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  letter-spacing: 0.06em;
  font-size: 13px;
}

.product-photo {
  display: block;
  margin: -22px -22px 8px;
  background: var(--paper);
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.product-photo img { width: 100%; height: 100%; object-fit: contain; background: #f7fafc; }
.news-card time { font-size: 13px; }

.news-list { display: grid; gap: 28px; }
.news-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.news-thumb {
  position: relative;
  display: block;
  background: var(--paper);
  border-radius: 8px;
  overflow: hidden;
  min-height: 160px;
}
.news-thumb img { width: 100%; height: 180px; object-fit: cover; display: block; }
.news-date {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 58px;
  height: 64px;
  background: var(--blue);
  color: #fff;
  line-height: 1;
}
.news-date small { font-size: 13px; }
.news-date strong { font-size: 26px; }
.news-copy h2 { margin: 0 0 10px; font-size: 26px; line-height: 1.35; }
.news-copy h2 a { color: var(--ink); }
.news-copy p { margin: 0 0 16px; color: var(--muted); }
.button-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid #c5d0dc;
}
.article-photo { margin: 18px 0; }
.news-pager { margin-top: 24px; }

.inquiry { background: linear-gradient(180deg, var(--white), var(--ice)); }
.inquiry .wrap {
  max-width: 760px;
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.wpcf7-form p { margin: 0 0 14px; }
.wpcf7-form label { display: block; font-size: 14px; color: var(--muted); }
.wpcf7-form input,
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
}
.wpcf7-form input[type="submit"],
button {
  width: auto;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  padding: 12px 22px;
  cursor: pointer;
}

.site-footer { background: #e8f6fc; color: var(--ink); padding: 56px 0 32px; }
.site-footer a { color: var(--blue); }
.footer-grid { grid-template-columns: 1.4fr 1fr 0.8fr 1.2fr; }
.footer-grid h2 { margin: 0 0 12px; color: var(--blue); font-size: 15px; }
.footer-grid ul { display: grid; gap: 6px; }
.footer-grid p { margin: 0 0 8px; }

main.section, .prose { }
.prose { max-width: 760px; }
.prose h1 { font-size: 36px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }
.facts { display: grid; gap: 10px; margin: 20px 0; }
.facts div { display: grid; grid-template-columns: 7rem 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.crumb { color: var(--muted); font-size: 14px; }

.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote-grid article { margin: 0; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.quote-grid span { color: var(--blue); font-size: 13px; letter-spacing: 0.14em; }
.quote-grid p { margin: 8px 0 0; font-size: 18px; }
.quote-stack { grid-template-columns: 1fr; }

.photo-frame { margin: 0; }
.photo-frame img { width: 100%; border-radius: 20px; object-fit: cover; max-height: 460px; }

.cert-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.cert-grid li { display: grid; gap: 6px; }
.cert-grid img { width: 100%; height: 150px; object-fit: contain; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.cert-grid strong { font-size: 14px; }
.cert-grid span, .note { color: var(--muted); font-size: 14px; }

.figure-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 28px; }
.figure { margin: 0; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.figure img, .figure-empty { display: grid; place-items: center; width: 100%; height: 150px; object-fit: contain; background: #f7fafc; border-radius: 10px; }
.figure-empty { color: var(--muted); font-size: 13px; }
.figure h3 { margin: 10px 0 0; font-size: 15px; text-align: center; }

.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { margin: 0 0 18px; padding-left: 16px; border-left: 2px solid var(--blue); }
.timeline strong { color: var(--blue-deep); }
.timeline p { margin: 4px 0 0; color: var(--muted); }

.plain-list { margin: 0; padding-left: 18px; }
.plain-list li { margin: 0 0 8px; }

.name-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; padding: 0; list-style: none; }
.name-row li { padding: 8px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; }

.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mosaic img { width: 100%; height: 220px; object-fit: cover; border-radius: 16px; }

@media (max-width: 1100px) {
  .counter-grid.six, .cert-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .topbar-inner { align-items: flex-start; flex-direction: column; padding: 8px 0; }
  .slogan-hero .slogan-zh { letter-spacing: 0.12em; }
  .hero-copy { padding: 56px 0 72px; }
  .card-grid, .card-grid.four, .split, .footer-grid, .quote-grid, .mosaic { grid-template-columns: 1fr; }
  .counter-grid, .counter-grid.six, .counter-grid.three, .cert-grid { grid-template-columns: 1fr 1fr; }
  .counter-grid article + article { border-left: 0; border-top: 1px solid var(--line); }
  .hero-panel { display: none; }
  .hero-grid { padding: 56px 0 72px; }
  .nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
  .nav-toggle-label {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
  }
  .header-nav { display: none; width: 100%; }
  .nav-toggle:checked ~ .header-nav,
  .header-bar:has(.nav-toggle:checked) .header-nav {
    display: grid;
    gap: 12px;
    padding-bottom: 16px;
  }
  .header-bar { flex-wrap: wrap; }
  .news-row { grid-template-columns: 1fr; }
  .primary-nav ul { display: grid; }
}
