:root {
  --blue: #1e73d8;
  --deep: #173f74;
  --ink: #172033;
  --muted: #667085;
  --line: #e5ebf2;
  --soft: #f5f8fc;
  --gold: #c8a24b;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: var(--white);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1 0 auto;
}

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

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

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

.topbar {
  width: min(1180px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), #e3c778);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(200, 162, 75, 0.24);
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 4px;
  background: var(--white);
}

.brand strong {
  display: block;
  font-size: 17px;
  line-height: 1.3;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0;
  line-height: 1.4;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.main-nav a,
.login-link {
  padding: 10px 13px;
  color: #334155;
  font-size: 14px;
  border-radius: 4px;
}

.main-nav a:hover,
.main-nav a.active,
.login-link:hover {
  color: var(--blue);
  background: #eef6ff;
}

.login-link {
  border: 1px solid var(--line);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--white);
  width: 42px;
  height: 38px;
  border-radius: 4px;
}

.hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--deep);
}

.slides,
.slide {
  position: absolute;
  inset: 0;
}

.slide {
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 700ms ease;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 32, 61, 0.72), rgba(10, 32, 61, 0.26), rgba(10, 32, 61, 0.06));
}

.slide.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--white);
  padding-top: 36px;
}

.hero-content p {
  margin: 0 0 10px;
  font-size: 18px;
}

.hero-content h1 {
  width: min(700px, 100%);
  margin: 0 0 28px;
  font-size: 44px;
  line-height: 1.22;
  font-weight: 700;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border: 0;
  color: var(--white);
  background: var(--blue);
  border-radius: 4px;
  font: inherit;
  cursor: pointer;
}

.primary-btn:hover {
  background: #155fb6;
}

.primary-btn.wide {
  width: 100%;
}

.slide-controls {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 38px;
  height: 4px;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 0;
  cursor: pointer;
}

.dot.active {
  background: var(--gold);
}

.quick-links {
  width: min(1180px, calc(100% - 32px));
  margin: -44px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  box-shadow: 0 20px 55px rgba(25, 42, 70, 0.13);
}

.quick-links a {
  padding: 28px;
  border-right: 1px solid var(--line);
}

.quick-links a:last-child {
  border-right: 0;
}

.quick-links span {
  color: var(--blue);
  font-weight: 700;
}

.quick-links strong,
.quick-links small {
  display: block;
}

.quick-links strong {
  margin: 8px 0 4px;
  font-size: 20px;
}

.quick-links small {
  color: var(--muted);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 82px auto;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  align-items: center;
}

.split img {
  width: 100%;
  border: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  word-break: break-word;
}

h2 {
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1.35;
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 700;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 24px;
}

.product-grid,
.values,
.jobs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-grid {
  grid-template-columns: repeat(4, 1fr);
}

.product-grid.compact {
  grid-template-columns: repeat(3, 1fr);
}

.product-grid article,
.values article,
.jobs article,
.contact-card,
.auth-card {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 6px;
}

.product-grid article {
  overflow: hidden;
  min-height: 310px;
}

.product-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--soft);
}

.product-grid h3,
.product-grid p {
  margin-left: 18px;
  margin-right: 18px;
}

.product-grid h3 {
  margin-top: 18px;
  margin-bottom: 8px;
}

.product-grid p {
  margin-top: 4px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
}

.page-banner {
  min-height: 300px;
  padding: 92px 16px 70px;
  color: var(--white);
  text-align: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 37, 70, 0.62);
}

.page-banner.light {
  color: var(--ink);
  background: linear-gradient(180deg, #f4f8fd, #ffffff);
}

.page-banner.light::before {
  display: none;
}

.page-banner h1,
.page-banner p {
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

.page-banner h1 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 38px;
}

.page-banner p {
  max-width: 720px;
  color: inherit;
}

.values article,
.jobs article,
.contact-card {
  padding: 28px;
}

.values strong,
.jobs span {
  color: var(--blue);
  font-weight: 700;
}

.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 13px;
  font: inherit;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 115, 216, 0.12);
}

.toolbar input {
  flex: 1;
}

.toolbar select {
  max-width: 180px;
}

.news-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
}

.news-list article {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.news-list article:first-child {
  padding-top: 0;
}

.news-list time {
  color: var(--blue);
  font-weight: 700;
}

.news-list h2,
.jobs h2 {
  font-size: 22px;
  margin: 8px 0;
}

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 34px 0 0;
  flex-wrap: wrap;
}

.pager a,
.pager span {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #334155;
  background: var(--white);
}

.pager a:hover,
.pager a.active {
  color: var(--white);
  border-color: var(--blue);
  background: var(--blue);
}

.pager .disabled {
  color: #98a2b3;
  background: #f8fafc;
  cursor: not-allowed;
}

.news-pager {
  justify-content: flex-start;
}

.jobs article {
  background: var(--soft);
}

.jobs strong {
  display: block;
  margin-top: 16px;
  color: var(--deep);
}

.contact-layout img {
  width: 100%;
  border: 1px solid var(--line);
}

.site-footer {
  flex-shrink: 0;
  padding: 34px 16px;
  color: #dbe7f6;
  text-align: center;
  background: #16385f;
}

.site-footer p {
  margin: 5px 0;
}

.auth-page {
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background: linear-gradient(180deg, #f3f8ff, #ffffff);
}

.auth-brand {
  position: absolute;
  top: 28px;
  left: 32px;
}

.auth-card {
  width: min(460px, 100%);
  padding: 34px;
  box-shadow: 0 20px 55px rgba(25, 42, 70, 0.1);
}

.register-card {
  width: min(760px, 100%);
}

.auth-card h1 {
  margin: 0 0 24px;
  text-align: center;
  font-size: 26px;
}

.auth-card label {
  display: block;
  margin-bottom: 16px;
  font-weight: 700;
}

.auth-card label input,
.auth-card label select,
.auth-card label textarea {
  margin-top: 8px;
  font-weight: 400;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 18px;
}

.auth-card p {
  text-align: center;
}

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

.form-message {
  display: block;
  min-height: 28px;
  color: var(--blue);
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .topbar {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    order: 4;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
  }

  .main-nav.open {
    display: flex;
  }

  .login-link {
    margin-left: 0;
  }

  .quick-links,
  .product-grid,
  .product-grid.compact,
  .values,
  .jobs,
  .split,
  .news-layout,
  .contact-layout {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content h1 {
    font-size: 34px;
  }
}

@media (max-width: 640px) {
  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 430px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .quick-links,
  .product-grid,
  .product-grid.compact,
  .values,
  .jobs,
  .split,
  .news-layout,
  .contact-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .quick-links a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .toolbar {
    flex-direction: column;
  }

  .toolbar select {
    max-width: none;
  }

  .auth-brand {
    position: static;
    margin-bottom: 24px;
  }

  .auth-page {
    place-items: start center;
  }
}
