/* 配色：背景 #F5F0E0，主文字 #3a4a4a */
:root {
    --bg: #F5F0E0;
    --text: #3a4a4a;
    --accent: #3a4a4a;
    --hover-bg: #e6dcc8;
    --nav-bg: #3a4a4a;
    --nav-text: #F5F0E0;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    /*cursor: url('../assets/cursors/default.cur'), auto; */
}

/* 导航栏 */
nav {
    background-color: var(--nav-bg);
    padding: 1rem 2rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

    nav a {
        color: var(--nav-text);
        text-decoration: none;
        font-weight: 500;
        padding: 0.3rem 0;
        border-bottom: 2px solid transparent;
        transition: border-color 0.2s;
    }

        nav a:hover {
            border-bottom: 2px solid var(--nav-text);
        }

        nav a.active {
            border-bottom: 2px solid var(--nav-text);
        }

/* 主要内容区 */
.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* 通用卡片样式 */
.card {
    background: white;
    border: 1px solid #d4cdb8;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* 基础按钮样式 */
button, .btn {
    background: var(--accent);
    color: var(--nav-text);
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 5px;
    cursor: url('../assets/cursors/help.cur'), pointer;
    font-size: 1rem;
    transition: opacity 0.2s;
}

    button:hover, .btn:hover {
        opacity: 0.9;
    }

/* 输入框、文本域 */
input, textarea {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0.5rem;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0.8rem;
    background: white;
}


/* --- 全局光标应用 --- */
/* 1. 默认光标已由 body 设置 */
/* 2. 帮助选择（问号）：用于链接、按钮、可点击角色 */
/*
a, button, .btn, [role="button"], [onclick]:not(:disabled) {
    cursor: url('../assets/cursors/help.cur'), pointer;
}
*/
/* 3. 文本选择：用于输入框、文本区域、可编辑元素 */
/*
input[type="text"],
input[type="search"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="url"],
textarea,
[contenteditable="true"] {
    cursor: url('../assets/cursors/text.cur'), text;
}

*/

/* 4. 不可用状态 */
/*
:disabled,
.disabled,
[aria-disabled="true"] {
    cursor: url('../assets/cursors/not-allowed.cur'), not-allowed;
}
    */
/* 5. 移动光标 */
/*
[draggable="true"],
.cursor-move {
    cursor: url('../assets/cursors/move.cur'), move;
}
    */
/* 6. 等待/忙 */
/*
.waiting,
.loading,
.cursor-wait {
    cursor: url('../assets/cursors/wait.cur'), wait;
}

/* 7. 调整大小方向（保持原有的类，可手动添加到元素） */
*/
/*
.resize-h {
    cursor: url('../assets/cursors/horizontal-resize.cur'), ew-resize;
}

.resize-v {
    cursor: url('../assets/cursors/vertical-resize.cur'), ns-resize;
}

.resize-d1 {
    cursor: url('../assets/cursors/diagonal1.cur'), nwse-resize;
}

.resize-d2 {
    cursor: url('../assets/cursors/diagonal2.cur'), nesw-resize;
}

.cursor-progress {
    cursor: url('../assets/cursors/progress.cur'), progress;
}
*/