:root {
    color-scheme: light;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #20252d;
    background: #fff;
    font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header {
    position: relative;
    z-index: 10;
    height: 72px;
    background: rgba(255, 255, 255, .96);
}
.header-inner {
    width: min(100%, 1240px);
    height: 100%;
    padding: 0 32px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}
.brand {
    display: block;
    width: 145px;
    height: 42px;
    overflow: hidden;
}
.brand img {
    display: block;
    position: relative;
    top: -25px;
    width: 145px;
    height: 90px;
}
.site-nav { display: flex; align-items: center; gap: clamp(28px, 4vw, 56px); }
.site-nav a {
    position: relative;
    padding: 25px 0 24px;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    transition: color .2s ease;
}
.site-nav a:hover, .site-nav a.active { color: #3e9ee9; }
.site-nav a.active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 15px;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: #4ba9ed;
}
.header-cta {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 11px 19px;
    border-radius: 7px;
    background: linear-gradient(105deg, #66c4f3, #4798eb);
    box-shadow: 0 5px 12px rgba(71, 152, 235, .14);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: transform .2s ease, box-shadow .2s ease;
}
.header-cta:hover, .button-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(50, 145, 234, .24); }
.menu-button { display: none; }

.button {
    min-width: 158px;
    min-height: 52px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 17px;
    padding: 0 22px;
    border: 0;
    cursor: pointer;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 650;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.button-primary { color: #fff; background: linear-gradient(105deg, #62c3f2, #4696ef); box-shadow: 0 8px 20px rgba(65, 153, 237, .18); }
.button-secondary { border: 1px solid #cbd2d9; background: rgba(255, 255, 255, .75); }
.button-secondary:hover { transform: translateY(-2px); border-color: #76b9ed; box-shadow: 0 8px 20px rgba(54, 131, 195, .1); }
a:focus-visible, button:focus-visible { outline: 3px solid #2589dc; outline-offset: 4px; }

@media (max-width: 850px) {
    .header-inner { padding: 0 24px; }
    .site-nav { gap: 22px; }
    .site-nav a { font-size: 14px; }
}
@media (max-width: 760px) {
    .site-header { height: 64px; }
    .header-inner { grid-template-columns: 1fr auto; padding: 0 20px; }
    .brand { width: 133px; height: 40px; }
    .brand img { width: 133px; height: auto; top: -23px; }
    .header-cta { display: none; }
    .menu-button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 0; border: 0; background: transparent; cursor: pointer; }
    .menu-button span { width: 21px; height: 2px; border-radius: 2px; background: #273747; }
    .site-nav { position: absolute; top: 64px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; border-top: 1px solid #edf1f4; background: #fff; box-shadow: 0 16px 25px rgba(29, 52, 79, .08); }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 14px 4px; font-size: 16px; }
    .site-nav a.active::after { display: none; }
}
@media (max-width: 640px) {
    .button { min-width: 137px; min-height: 47px; gap: 10px; padding: 0 17px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
