:root {
  --page-width: 1200px;
  --navy: #1037a0;
  --navy-deep: #00142e;
  --navy-soft: #194ea9;
  --gold: #eed5b0;
  --red: #e60000;
  --text-dark: #111111;
  --text-main: #2a3457;
  --text-muted: #6a7189;
  --body-size: 16px;
  --title-size: 32px;
  --subtitle-size: 26px;
  --copy-size: 20px;
  --line: rgba(255, 255, 255, 0.22);
  --service-icon: url("https://www.figma.com/api/mcp/asset/084aea64-8a2d-49cf-b910-72c8c9cc6a0f");
}

*{
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: "DINOT-Bold";
  src: url("./assets/font/DINOT-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "Source Han Serif SC";
  src: url("./assets/font/SourceHanSansSC-Regular-2.otf") format("truetype");
  font-style: normal;
  font-weight: 500;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 1200px;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: var(--body-size);
  color: #111111;
  background: #ffffff;
}

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

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(10px);
}

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

.brand img {
  width: 148px;
  height: 54px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 42px;
  font-size: 16px;
  color: var(--text-muted);
}

.main-nav > a,
.nav-contact > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 25px 0 24px;
  transition: color 0.25s ease;
}

.main-nav > a:hover,
.main-nav > a.is-active,
.nav-contact:hover > a,
.nav-contact:focus-within > a {
  color: var(--text-main);
  font-weight: 600;
}

.main-nav > a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 60px;
  height: 5px;
  background: var(--navy);
  transform: translateX(-50%);
}

.nav-contact {
  position: relative;
}

.contact-pop {
  position: absolute;
  top: calc(100% + 18px);
  right: 50%;
  width: 227px;
  height: 240px;
  padding: 22px 18px 26px;
  border: 2px solid #ffffff;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateX(50%) translateY(8px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
  pointer-events: none;
  z-index: 60;
}

.nav-contact:hover .contact-pop,
.nav-contact:focus-within .contact-pop {
  opacity: 1;
  visibility: visible;
  transform: translateX(50%) translateY(0);
  pointer-events: auto;
}

.contact-pop::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: #ffffff;
  transform: translateX(-50%) rotate(45deg);
}

.contact-pop-code {
  width: 136px;
  height: 129px;
  margin: 0 auto;
  object-fit: cover;
}

.contact-pop-badge {
  position: absolute;
  top: 71px;
  left: 50%;
  width: 29px;
  height: 29px;
  transform: translateX(-50%);
}

.contact-pop-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 16px;
  font-weight: 500;
  color: #121212;
  padding:  0 28px;
}

.contact-pop-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0 4px;
  font-size: 16px;
  color: #121212;
  padding-left: 29px;
}

.contact-pop-phone img {
  width: 12px;
  height: 12px;
}

.copyright {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 1200px;
  height: 160px;
  background: var(--navy-deep);
  color: #ffffff;
  font-size: 22px;
  line-height: 40px;
  text-align: center;
  letter-spacing: -1.8px;
}

.copyright p {
  margin: 0;
}
