/* 样式重置 + 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", "Microsoft Yahei", "PingFang SC", sans-serif;
}

html, body {
    height: 100%;
    font-size: 14px;
    color: var(--text-main);
    background-color: var(--bg-deep);
}

ul, ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

button, input, select, textarea {
    outline: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    transition: all 0.2s ease;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c0c6cc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #86909c;
}

/* 基础动画 */
.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 通用按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: #165DFF;
    color: white;
}

.btn-primary:hover {
    background: #0E4BD8;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #f2f3f5;
    color: #4E5969;
    border-color: #e5e6eb;
}

.btn-secondary:hover {
    background: #e5e6eb;
}

.btn-danger {
    background: #F53F3F;
    color: white;
}

.btn-danger:hover {
    background: #D83737;
}

.btn-success {
    background: #00B42A;
    color: white;
}

.btn-success:hover {
    background: #009A25;
}

/* 通用卡片样式 */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-line);
    border-radius: 12px;
    box-shadow: var(--shadow-main);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* 通用表单样式 */
.form-control {
    padding: 8px 12px;
    border: 1px solid var(--border-line);
    border-radius: 6px;
    background: var(--bg-input);
    color: var(--text-bright);
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}