/* 全局通用样式 */
:root {
    --brand-50: #eff6ff;
    --brand-100: #dbeafe;
    --brand-200: #bfdbfe;
    --brand-300: #93c5fd;
    --brand-500: #4a90e2;
    --brand-600: #3d84d6;
    --brand-700: #2d6fb6;
    --brand-800: #1f5a94;
    --brand-900: #164571;
    --brand-ring: rgba(74, 144, 226, 0.45);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    color: #333;
    line-height: 1.5;
}

/* 导航链接激活状态 */
.nav-link.active {
    color: var(--brand-600);
    border-bottom-color: var(--brand-600);
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 语音波形动画 */
.voice-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
}

.voice-wave span {
    display: inline-block;
    width: 3px;
    height: 100%;
    margin: 0 2px;
    background-color: var(--brand-600);
    animation: wave 1s infinite ease-in-out;
}

.voice-wave span:nth-child(1) { animation-delay: 0s; }
.voice-wave span:nth-child(2) { animation-delay: 0.1s; }
.voice-wave span:nth-child(3) { animation-delay: 0.2s; }
.voice-wave span:nth-child(4) { animation-delay: 0.3s; }

@keyframes wave {
    0%, 100% { height: 20%; }
    50% { height: 100%; }
}

/* 加载动画 */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid var(--brand-600);
    width: 20px;
    height: 20px;
    -webkit-animation: spin 1s linear infinite; /* Safari */
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 卡片悬停效果 */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 主题色覆盖（用于统一浅蓝风格） */
.bg-blue-500 { background-color: var(--brand-500) !important; }
.bg-blue-600 { background-color: var(--brand-500) !important; }
.bg-blue-700 { background-color: var(--brand-600) !important; }
.bg-blue-800 { background-color: var(--brand-700) !important; }
.bg-blue-900 { background-color: var(--brand-600) !important; }

.text-blue-600 { color: var(--brand-600) !important; }
.text-blue-800 { color: var(--brand-700) !important; }
.text-blue-900 { color: var(--brand-800) !important; }
.text-blue-300 { color: var(--brand-100) !important; }
.text-blue-200 { color: var(--brand-50) !important; }

.border-blue-800 { border-color: var(--brand-700) !important; }
.border-blue-700 { border-color: var(--brand-600) !important; }
.border-blue-600 { border-color: var(--brand-600) !important; }
.border-blue-500 { border-color: var(--brand-500) !important; }

.hover\:bg-blue-600:hover { background-color: var(--brand-600) !important; }
.hover\:bg-blue-700:hover { background-color: var(--brand-700) !important; }
.hover\:bg-blue-800:hover { background-color: var(--brand-700) !important; }
.hover\:text-blue-600:hover { color: var(--brand-600) !important; }
.hover\:text-blue-800:hover { color: var(--brand-700) !important; }
.hover\:text-blue-900:hover { color: var(--brand-800) !important; }

.active\:bg-blue-700:active { background-color: var(--brand-700) !important; }

.focus\:ring-blue-500:focus { --tw-ring-color: var(--brand-ring) !important; }
.focus\:border-blue-500:focus { border-color: var(--brand-500) !important; }

.bg-blue-600\/80 { background-color: rgba(74, 144, 226, 0.8) !important; }
.bg-blue-600\/90 { background-color: rgba(74, 144, 226, 0.9) !important; }
.bg-blue-600\/20 { background-color: rgba(74, 144, 226, 0.2) !important; }
