:root {
    --bg-main: #FAFAFA;
    --bg-card: #FFFFFF;
    --text-main: #333333;
    --text-muted: #999999;
    --theme-gold: #C8A951;
    --theme-pink: #D98295;
    --theme-green: #82B39B;
    --border-color: #E0E0E0;
    --font-mono: "Courier New", Courier, monospace;
    --font-sans: "PingFang SC", "Helvetica Neue", "Microsoft YaHei Light", sans-serif;
}

[data-theme="dark"] {
    --bg-main: #1C1B1A;
    --bg-card: #242322;
    --text-main: #E8E6E1;
    --text-muted: #7A7674;
    --theme-gold: #D4B86A;
    --border-color: #3A3837;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-radius: 0 !important;
    cursor: none;
}

body {
    font-family: var(--font-mono), var(--font-sans);
    font-weight: 300;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.8;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.6s ease, color 0.6s ease;
    overflow-x: hidden;
}

.en {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 自定义鼠标 */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.custom-cursor::before,
.custom-cursor::after {
    content: '';
    position: absolute;
    background-color: var(--text-main);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.custom-cursor::before {
    width: 12px;
    height: 1px;
}

.custom-cursor::after {
    width: 1px;
    height: 12px;
}

.custom-cursor.hovered::before {
    width: 24px;
    height: 24px;
    background: transparent;
    border: 1px solid var(--theme-gold);
}

.custom-cursor.hovered::after {
    opacity: 0;
}

/* 动效 */
.fade-in {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 导航栏 */
.top-nav {
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 70px;
    transition: border-color 0.6s ease;
    background: transparent;
}

.brand {
    font-size: 18px;
    color: var(--text-main);
    font-weight: 400;
    letter-spacing: 2px;
}

.brand span {
    color: var(--theme-gold);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 12px;
    color: var(--text-muted);
    transition: color 0.3s;
    font-family: var(--font-mono);
}

.theme-toggle:hover {
    color: var(--theme-gold);
}