.site-header,
.site-footer {
    font-family: -apple-system, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    line-height: 1.5;
}
.site-header .container,
.site-footer .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
    background: #fff;
    border-bottom: 1px solid #e9edf4;
    box-shadow: 0 2px 12px rgb(0 0 0 / 2%);
}
.site-header .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 24px;
    min-height: 44px;
}
.site-header .logo { display: flex; align-items: center; flex: 0 0 auto; }
.site-header .logo img { display: block; width: auto; height: 44px; max-width: 100%; }
.site-header .nav-links { display: flex; align-items: center; flex-wrap: nowrap; gap: 20px; }
.site-header .nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 4px;
    border-bottom: 2px solid transparent;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s, border-color .2s, background-color .2s;
}
.site-header .nav-links a:hover,
.site-header .nav-links a.active { color: #2563eb; border-bottom-color: #2563eb; }
.site-header .nav-links .nav-dl {
    padding: 10px 24px;
    border: 0;
    border-radius: 40px;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
}
.site-header .nav-links .nav-dl:hover { background: #1d4ed8; color: #fff; transform: none; }
.site-icon { width: 20px; height: 20px; flex: 0 0 20px; }
.site-header a:focus-visible,
.site-footer a:focus-visible { outline: 3px solid #60a5fa; outline-offset: 4px; border-radius: 4px; }

.site-footer {
    padding: 48px 0 28px;
    background: #0a1929;
    color: #b7c6d8;
    line-height: 1.7;
}
.site-footer .footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 36px;
    margin-bottom: 32px;
}
.site-footer .footer-grid > * { min-width: 0; }
.site-footer .brand .name {
    display: inline-block;
    margin-bottom: 10px;
    color: #60a5fa;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}
.site-footer .brand p { max-width: 320px; color: #b7c6d8; font-size: 14px; line-height: 1.8; }
.site-footer .col h2 { margin: 0 0 12px; color: #fff; font-size: 16px; font-weight: 600; line-height: 1.5; }
.site-footer .col ul { margin: 0; padding: 0; list-style: none; }
.site-footer .col li { margin: 0 0 6px; }
.site-footer .col a,
.site-footer .footer-bottom a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: #b7c6d8;
    font-size: 14px;
    text-decoration: none;
    transition: color .2s;
}
.site-footer .col a:hover,
.site-footer .footer-bottom a:hover { color: #fff; }




.site-footer .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-top: 20px;
    border-top: 1px solid rgb(255 255 255 / 12%);
    color: #b7c6d8;
    font-size: 13px;
}
.site-footer .footer-legal,
.site-footer .footer-copyright { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.site-footer .footer-bottom a { font-size: 13px; }

@media (max-width: 992px) {
    .site-header .container,
    .site-footer .container { padding-right: 24px; padding-left: 24px; }
    .site-header .nav-inner { flex-wrap: wrap; }
    .site-header .nav-links { flex-wrap: wrap; }
    .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
    .site-footer .brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .site-header .container,
    .site-footer .container { padding-right: 16px; padding-left: 16px; }
    .site-footer { padding-top: 36px; }
    .site-footer .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; text-align: center; }
    .site-footer .brand p { margin: 0 auto; max-width: 340px; }

.site-footer .col a { min-height: 44px; }
    .site-footer .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
    .site-footer .footer-legal,
    .site-footer .footer-copyright { justify-content: center; }
    .site-footer .footer-legal a { min-height: 44px; }
}
@media (max-width: 480px) {
    .site-header .container,
    .site-footer .container { padding-right: 12px; padding-left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .site-header a,
    .site-footer a { transition: none; }
}
