/* 确保自定义颜色类有足够的优先级 */
.bg-primary, 
header.bg-primary {
    background-color: #1e3a8a !important;
}

.text-primary {
    color: #1e3a8a !important;
}

.border-primary {
    border-color: #1e3a8a !important;
}

.ring-primary {
    --tw-ring-color: #1e3a8a !important;
}

.focus\:ring-primary:focus {
    --tw-ring-color: #1e3a8a !important;
}

.focus\:border-primary:focus {
    border-color: #1e3a8a !important;
}

/* 可用墓位颜色 */
.bg-available {
    background-color: #10b981 !important;
}

.text-available {
    color: #10b981 !important;
}

.border-available {
    border-color: #10b981 !important;
}

/* 已售墓位颜色 */
.bg-sold {
    background-color: #ef4444 !important;
}

.text-sold {
    color: #ef4444 !important;
}

.border-sold {
    border-color: #ef4444 !important;
}

/* 辅助颜色 */
.bg-secondary {
    background-color: #475569 !important;
}

.text-secondary {
    color: #475569 !important;
}

.bg-neutral {
    background-color: #f3f4f6 !important;
}

/* 透明度变体 - 关键部分 */
.bg-primary\/10 {
    background-color: rgba(30, 58, 138, 0.1) !important;
}

.bg-sold\/10 {
    background-color: rgba(239, 68, 68, 0.1) !important;
}

.bg-available\/10 {
    background-color: rgba(16, 185, 129, 0.1) !important;
}

.hover\:text-primary\/80:hover {
    color: rgba(30, 58, 138, 0.8) !important;
}

/* 自定义网格样式 */
.tomb-grid {
    display: grid;
    grid-template-columns: repeat(20, minmax(0, 1fr));
    gap: 2px;
}

.tomb-cell {
    aspect-ratio: 1/1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tomb-cell:hover {
    transform: scale(1.1);
    z-index: 10;
}

/* 滚动条样式 */
.scrollbar-thin {
    scrollbar-width: thin;
}

.scrollbar-thin::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.5);
    border-radius: 3px;
}