/* 基本动画和过渡效果 */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* 卡片和阴影样式 */
.card-shadow {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 状态徽章样式 */
.status-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

/* 拍卖中状态样式 */
.status-badge-auctioning {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

/* 已流拍状态样式 */
.status-badge-failed {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

/* 待拍卖状态样式 */
.status-badge-pending {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* 已成交状态样式 */
.status-badge-sold {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* 响应式布局调整 */
@media (max-width: 768px) {
    .grid-cols-1 {
        grid-template-columns: 1fr;
    }
    
    .lg\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .lg\:grid-cols-4 {
        grid-template-columns: 1fr 1fr;
    }
    
    .md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .md\:flex-row {
        flex-direction: column;
    }
    
    .md\:items-center {
        align-items: stretch;
    }
    
    .md\:justify-between {
        justify-content: flex-start;
    }
    
    .md\:mb-0 {
        margin-bottom: 1rem;
    }
    
    .md\:w-64 {
        width: 100%;
    }
    
    .flex-wrap {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .lg\:grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .px-4 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .py-6 {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .text-xl {
        font-size: 1.25rem;
    }
    
    .text-2xl {
        font-size: 1.5rem;
    }
}

/* 表格样式增强 */
table {
    border-collapse: collapse;
    width: 100%;
}

th {
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1.5rem;
    color: #4b5563;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    background-color: #f9fafb;
}

td {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
}

tr:hover {
    background-color: #f9fafb;
}

/* 模态框样式 */
#itemModal {
    backdrop-filter: blur(4px);
}

#itemModal .max-h-\[90vh\] {
    max-height: 90vh;
}

#itemModal .overflow-y-auto {
    overflow-y: auto;
}

/* 图片容器样式 */
.aspect-w-16 {
    position: relative;
    padding-bottom: 62.5%;
}

.aspect-w-16 > * {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* 输入框和选择框样式 */
input[type="text"], select {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input[type="text"]:focus, select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 按钮样式 */
button {
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.375rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}