/**
 * 在线SPSS - 专属设计变量
 * 主色系：Indigo（靛蓝紫）#6366f1 → #4f46e5 → #4338ca
 * 与同平台其他系统颜色区分：
 *   论文系统   → Cyan→Blue  #22d3ee
 *   代码助手   → 天蓝→紫   #6ea8fe
 *   开发者工具 → Teal 青绿  #16a085
 *   在线SPSS   → Indigo 靛紫 #6366f1  ← 本文件
 */

/* ===== 亮色主题（覆盖共享 common.css 的默认主色） ===== */
:root {
    /* Indigo 靛紫色系 */
    --indigo-400: #818cf8;
    --indigo-500: #6366f1;
    --indigo-600: #4f46e5;
    --indigo-700: #4338ca;
    --indigo-800: #3730a3;

    /* 主色覆盖 */
    --primary-color:    #6366f1;   /* indigo-500 */
    --primary-hover:    #4f46e5;   /* indigo-600 */
    --primary-dark:     #4f46e5;   /* indigo-600 */
    --primary-light:    #818cf8;   /* indigo-400 */
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);

    /* primary-NNN 兼容变量（供 online-spss-core-styles.css 引用） */
    --primary-500: 99, 102, 241;   /* RGB 分量，供 rgba() 使用 */
    --primary-600: #4f46e5;
    --primary-700: #4338ca;

    /* 强调色覆盖 */
    --accent-color: #4f46e5;
    --info-color:   #6366f1;

    /* 文字选中高亮 */
    --selection-bg:    rgba(99, 102, 241, 0.25);
    --selection-color: #1e1b4b;
}

/* ===== 深色主题覆盖 ===== */
[data-theme="dark"] {
    --primary-color:  #818cf8;   /* indigo-400，深色下亮一档 */
    --primary-hover:  #6366f1;   /* indigo-500 */
    --primary-dark:   #6366f1;
    --primary-light:  #a5b4fc;   /* indigo-300 */
    --primary-600:    #6366f1;
    --primary-700:    #4f46e5;
    --primary-500:    129, 140, 248;   /* indigo-400 RGB */
    --selection-bg:   rgba(129, 140, 248, 0.3);
    --selection-color: #e0e7ff;
}

/* ===== 滚动条（覆盖 common.css 的青绿滚动条） ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4f46e5;
}

/* ===== 文字选中色 ===== */
::selection {
    background: rgba(99, 102, 241, 0.25);
    color: #1e1b4b;
}
::-moz-selection {
    background: rgba(99, 102, 241, 0.25);
    color: #1e1b4b;
}

[data-theme="dark"] ::selection {
    background: rgba(129, 140, 248, 0.35);
    color: #e0e7ff;
}

/* ===== 导航栏字号与间距 ===== */
/* 覆盖 navigation.html 的内联字号，让导航栏更紧凑 */
.main-nav .brand-logo-text {
    font-size: 1.0rem !important;
}
.main-nav .nav-link {
    font-size: 0.9rem !important;
}
.main-nav .nav-login-btn,
.main-nav .nav-logout-btn {
    font-size: 0.875rem !important;
}
/* 导航栏整体高度缩减 */
.main-nav {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}
