/* ============================================
   全局基础样式 - Tailwind CSS 项目
   仅保留 Tailwind 无法处理的必要样式
   ============================================ */

/* CSS变量定义（保留用于向后兼容和主题切换） */
:root {
    --primary-color: #0ea5e9;      /* sky-500 */
    --primary-hover: #0284c7;      /* sky-600 */
    --success-color: #10b981;      /* emerald-500 */
    --error-color: #ef4444;        /* red-500 */
    --warning-color: #f59e0b;      /* amber-500 */
    --text-primary: #0f172a;       /* slate-900 */
    --text-secondary: #64748b;     /* slate-500 */
    --border-color: #e2e8f0;       /* slate-200 */
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 尊重用户的无障碍设置 */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 导航栏下拉菜单动画（Tailwind group-hover 的替代方案） */
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Font Awesome 图标垂直对齐微调 */
.fa-solid, .fa-regular, .fa-brands {
    vertical-align: middle;
}

/* 键盘按键样式（用于显示快捷键） */
kbd {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    line-height: 1.4;
    color: #24292e;
    vertical-align: middle;
    background-color: #fafbfc;
    border: 1px solid #d1d5da;
    border-radius: 6px;
    box-shadow: inset 0 -1px 0 #d1d5da;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* 打印样式优化 */
@media print {
    .no-print {
        display: none !important;
    }
    body {
        background: white !important;
    }
}

/* 选择文本的颜色 */
::selection {
    background-color: #bae6fd;
    color: #0c4a6e;
}

/* 滚动条美化（仅 Webkit 浏览器） */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
