:root {
    --c-bg: #0f0f0f;
    --c-bg-soft: #141414;
    --c-surface: #1a1a1a;
    --c-surface-raised: #222222;
    --c-surface-hot: #2a1717;
    --c-text: #e8e8e8;
    --c-text-secondary: #9a9a9a;
    --c-text-muted: #666666;
    --c-border: #303030;
    --c-border-hover: #555555;
    --c-primary: #ff2d2d;
    --c-primary-dark: #e62222;
    --c-primary-light: #ff6b6b;
    --c-primary-ghost: rgba(255, 45, 45, .1);
    --c-accent: #ffe14d;
    --c-accent-light: #00e5ff;
    --c-success: #3ddc84;
    --c-success-bg: rgba(61, 220, 132, .1);
    --c-warning: #ff8a2b;
    --c-warning-bg: rgba(255, 138, 43, .1);
    --c-danger: #ff2d2d;
    --c-danger-bg: rgba(255, 45, 45, .1);
    --radius: 2px;
    --radius-sm: 2px;
    --radius-xs: 2px;
    --shadow-card: none;
    --shadow-card-hover: none;
    --shadow-nav: 0 1px 0 var(--c-border);
    --shadow-focus: 0 0 0 2px rgba(255, 45, 45, .38);
    --content: 1180px;
}

* { box-sizing: border-box; }

html {
    min-height: 100%;
    background: var(--c-bg);
    color: var(--c-text);
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 45, 45, .08), transparent 26rem),
        linear-gradient(180deg, #121212 0%, var(--c-bg) 28rem);
    color: var(--c-text);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
    mix-blend-mode: screen;
    opacity: .55;
}

::selection {
    color: #080808;
    background: var(--c-accent);
}

a {
    color: var(--c-primary-light);
    text-decoration: none;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--c-primary);
    text-decoration: underline;
}

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

button,
input,
textarea,
select { font: inherit; }

button { border: 0; cursor: pointer; }

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

h1,
h2,
h3 {
    color: var(--c-text);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.13;
}

h1 { margin-bottom: 12px; font-size: 3rem; }
h2 { margin-bottom: 10px; font-size: 1.5rem; }
h3 { margin-bottom: 8px; font-size: 1.08rem; }
p { margin-bottom: 1rem; }

:focus-visible {
    outline: 0;
    box-shadow: var(--shadow-focus);
    border-radius: var(--radius-xs);
}
