:root {
    --am-pink: #fa233b;
    --am-pink-dark: #d13c86;
    --text-main: #1d1d1f;
    --text-muted: #626572;
    --bg-color: #fbfbfd;
    --section-bg: #ffffff;
}

html { scroll-padding-top: 100px; }
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body > main { flex: 1; }

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 5%;
    background: rgba(251, 251, 253, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--am-pink); }

.site-footer {
    padding: 40px 20px;
    text-align: center;
    background-color: var(--bg-color);
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.footer-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 18px; color: var(--text-main); }
.footer-brand img { width: 28px; height: 28px; border-radius: 7px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 24px; margin: 10px 0 24px; }
.site-footer a { color: var(--am-pink-dark); text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }
.page-shell { width: 90%; max-width: 1100px; margin: 104px auto 80px; }
a:focus-visible { outline: 2px solid var(--am-pink); outline-offset: 5px; border-radius: 4px; }
.skip-link {
    position: absolute;
    left: 5%;
    top: -80px;
    padding: 8px 14px;
    border-radius: 6px;
    background: var(--text-main);
    color: white;
    font-size: 14px;
    text-decoration: none;
}
.skip-link:focus { top: 12px; }

@media (max-width: 640px) {
    .site-header { padding: 12px 5%; flex-wrap: wrap; gap: 12px; }
    .brand { gap: 8px; font-size: 17px; }
    .brand img { width: 28px; height: 28px; }
    .nav-links { gap: 8px; flex: 1 1 100%; justify-content: space-between; }
    .nav-links a { font-size: clamp(10px, 2.8vw, 12px); white-space: nowrap; }
    html { scroll-padding-top: 130px; }
    .page-shell { margin-top: 132px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
@media print { .site-header { display: none; } }
