:root {
    --bg: #080808;
    --surface: #111111;
    --surface-strong: #161616;
    --surface-soft: rgba(22, 22, 22, 0.78);
    --blue: #1677ff;
    --blue-light: #62a5ff;
    --gold: #d4af37;
    --gold-light: #f1d170;
    --white: #ffffff;
    --text: #f3f5f8;
    --muted: #9da3ae;
    --line: rgba(255, 255, 255, 0.11);
    --line-strong: rgba(255, 255, 255, 0.19);
    --font-display: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
    --font-body: "Microsoft YaHei", "PingFang SC", sans-serif;
    --container: 1240px;
    --header-height: 76px;
    --radius: 6px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
p,
dl,
dd {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    letter-spacing: 0;
}

::selection {
    background: var(--blue);
    color: var(--white);
}

:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 4px;
}

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

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 10px 16px;
    transform: translateY(-160%);
    background: var(--white);
    color: var(--bg);
    border-radius: 4px;
    transition: transform 180ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
}

.eyebrow span {
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    transition: transform 200ms var(--ease), border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    gap: 24px;
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 12px 36px rgba(22, 119, 255, 0.24);
}

.button-primary:hover {
    background: #3388ff;
    box-shadow: 0 16px 42px rgba(22, 119, 255, 0.34);
}

.button-secondary {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(8, 8, 8, 0.4);
    color: var(--white);
}

.button-secondary:hover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: var(--white);
    font-weight: 700;
}

.text-link span {
    color: var(--gold);
    transition: transform 200ms ease;
}

.text-link:hover span {
    transform: translateX(5px);
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 50;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(212, 175, 55, 0.42);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    background: rgba(14, 14, 14, 0.9);
    color: var(--gold-light);
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: 200ms ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
    .reveal { opacity: 1; transform: none; }
}
