/* 全局变量定义 */
:root {
    --primary: #1a73e8;
    --primary-dark: #0d47a1;
    --secondary: #f5f7fa;
    --accent: #34a853;
    --danger: #ea4335;
    --warning: #fbbc05;
    --text: #202124;
    --text-light: #5f6368;
    --border: #dadce0;
    --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: var(--text);
    line-height: 1.6;
}

/* 加载状态 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 1.2rem;
    color: var(--text-light);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(26, 115, 232, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 错误提示 */
.error-message {
    background: rgba(234, 67, 53, 0.1);
    color: var(--danger);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.error-message::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    font-weight: bold;
}

/* 滚动条样式 */
.tech-tooltip-content::-webkit-scrollbar {
    width: 4px;
}

.tech-tooltip-content::-webkit-scrollbar-thumb {
    background: rgba(26, 115, 232, 0.3);
    border-radius: 2px;
}
