/**
 * 组件样式 - 现代动态设计
 */

/* 加载动画 - 流畅旋转 */
.loader {
    border: 4px solid #f0f0f0;
    border-top: 4px solid #000000;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 模态对话框 - 流畅动画 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.modal-close {
    cursor: pointer;
    font-size: 1.5rem;
    color: #000000;
    font-weight: 700;
    transition: all 0.3s;
}

.modal-close:hover {
    color: #666666;
    transform: rotate(90deg);
}

/* 标签页 - 圆角卡片设计 */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background-color: #f5f5f5;
    padding: 0.5rem;
    border-radius: 12px;
}

.tab {
    padding: 0.875rem 1.75rem;
    cursor: pointer;
    color: #666666;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
}

.tab:hover {
    color: #000000;
    background-color: rgba(255,255,255,0.5);
}

.tab.active {
    color: #000000;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: scale(1.05);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
    display: block;
}

/* 卡片 - 现代动态卡片 */
.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
}

.card-body {
    color: #000000;
    line-height: 1.8;
}

/* 徽章 - 圆润徽章 */
.badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    transition: all 0.3s;
}

.badge:hover {
    transform: scale(1.05);
}

.badge-primary {
    background-color: #000000;
    color: #ffffff;
}

.badge-success {
    background-color: #dcfce7;
    color: #166534;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background-color: #e0f2fe;
    color: #075985;
}

/* 提示框 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #2c3e50;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 0.5rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 列表 */
.list {
    list-style: none;
}

.list-item {
    padding: 1rem;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background-color: #f8f9fa;
}

/* 空状态 - 友好提示卡片 */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: #666666;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    animation: fadeIn 0.6s ease-out;
}

.empty-state-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.empty-state-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: #000000;
}

.empty-state-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #666666;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-item {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-item:hover {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination-item.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 面包屑 */
.breadcrumb {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
    color: #7f8c8d;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
}

/* 下拉菜单 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    z-index: 1000;
    margin-top: 0.5rem;
}

.dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-divider {
    height: 1px;
    background-color: #ecf0f1;
    margin: 0.5rem 0;
}

