:root {
    --bg-color: #0a0a0a;
    --card-bg: #141414;
    --text-main: #e5e5e5;
    --text-muted: #888888;
    --accent: #c44c4c;
    --border: #333333;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    --font-serif: 'Playfair Display', Georgia, serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-mono);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Watermark matching your site */
body::before {
    content: "反 向 外 壳";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25vw;
    color: #ffffff;
    opacity: 0.02;
    z-index: -1;
    white-space: nowrap;
    font-family: serif;
    pointer-events: none;
}

/* Navigation Bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid var(--border);
    background-color: var(--bg-color);
}

.nav-brand {
    font-weight: bold;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.2s;
    font-size: 0.9rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

/* Main Container */
.container {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    width: 100%;
    flex: 1;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 60px;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: normal;
    margin-bottom: 10px;
}

.hero p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards (Like your Chess UI) */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 15px;
    height: 15px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
}

.card h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--accent);
    font-weight: normal;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

/* Content Typography (for Setup/Docs) */
.content h1, .content h2, .content h3 {
    font-family: var(--font-serif);
    font-weight: normal;
    margin: 30px 0 15px 0;
    color: var(--text-main);
}
.content h1 { font-size: 2.5rem; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.content h2 { font-size: 1.8rem; }
.content h3 { font-size: 1.4rem; }

.content p { margin-bottom: 15px; }
.content ul, .content ol { margin-bottom: 15px; padding-left: 20px; }
.content li { margin-bottom: 5px; }

.content code {
    background-color: #1a1a1a;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--accent);
}

.content pre {
    background-color: #1a1a1a;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.content pre code {
    background: none;
    padding: 0;
    color: #d4d4d4;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.2s;
    cursor: pointer;
    font-family: var(--font-mono);
    background: transparent;
}

.btn:hover {
    background-color: rgba(196, 76, 76, 0.1);
}

/* Utility */
.text-center { text-align: center; }
.mt-4 { margin-top: 40px; }
