/* 基础变量定义 */
:root {
    --primary-color: #007aff;
    --primary-hover: #0056b3;
    --bg-color: #f5f7fa;
    --panel-bg: #ffffff;
    --border-color: #e4e7ed;
    --text-primary: #2c3e50;
    --text-secondary: #606266;
    --shadow-light: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 4px 16px 0 rgba(0, 0, 0, 0.08);
    --radius-small: 6px;
    --radius-medium: 8px;
    --radius-large: 12px;
}

/* 基础样式 */
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100vh;
    background: var(--bg-color);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* 隐藏 Webkit 滚动条 */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

/* 头部样式 */
.header {
    background: var(--panel-bg);
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0 20px;
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1920px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo样式 */
.logo {
    user-select: none;
    -webkit-user-select: none;
}

.logo a {
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
}

.logo h1 {
    font-size: 20px;
    color: #333;
    font-weight: 600;
    background: linear-gradient(120deg, var(--primary-color), #00c6ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    margin: 0;
}

/* 导航样式 */
.nav {
    display: flex;
    gap: 20px;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    padding: 4px 8px;
    border-radius: var(--radius-small);
}

.nav-item:hover {
    color: var(--primary-color);
}

.nav-item.active {
    color: var(--primary-color);
    font-weight: 500;
    background: rgba(0, 122, 255, 0.1);
}
